a811c1f86162e1ea8f92452d09484c1b82898b19
[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 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 #  include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 #  include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 #  include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
465
466 ac_unique_file=""Makefile.config.in""
467 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 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 PURIFY PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED USE_SPEC UPB DISABLE_LLC_DIFFS JIT SPEC_ROOT BCR PAPIDIR LTLIBOBJS'
468 ac_subst_files=''
469
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
489
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
507
508 ac_prev=
509 for ac_option
510 do
511   # If the previous option needs an argument, assign it.
512   if test -n "$ac_prev"; then
513     eval "$ac_prev=\$ac_option"
514     ac_prev=
515     continue
516   fi
517
518   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520   # Accept the important Cygnus configure options, so we can diagnose typos.
521
522   case $ac_option in
523
524   -bindir | --bindir | --bindi | --bind | --bin | --bi)
525     ac_prev=bindir ;;
526   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527     bindir=$ac_optarg ;;
528
529   -build | --build | --buil | --bui | --bu)
530     ac_prev=build_alias ;;
531   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532     build_alias=$ac_optarg ;;
533
534   -cache-file | --cache-file | --cache-fil | --cache-fi \
535   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536     ac_prev=cache_file ;;
537   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539     cache_file=$ac_optarg ;;
540
541   --config-cache | -C)
542     cache_file=config.cache ;;
543
544   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545     ac_prev=datadir ;;
546   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547   | --da=*)
548     datadir=$ac_optarg ;;
549
550   -disable-* | --disable-*)
551     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552     # Reject names that are not valid shell variable names.
553     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555    { (exit 1); exit 1; }; }
556     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557     eval "enable_$ac_feature=no" ;;
558
559   -enable-* | --enable-*)
560     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561     # Reject names that are not valid shell variable names.
562     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564    { (exit 1); exit 1; }; }
565     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566     case $ac_option in
567       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568       *) ac_optarg=yes ;;
569     esac
570     eval "enable_$ac_feature='$ac_optarg'" ;;
571
572   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574   | --exec | --exe | --ex)
575     ac_prev=exec_prefix ;;
576   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578   | --exec=* | --exe=* | --ex=*)
579     exec_prefix=$ac_optarg ;;
580
581   -gas | --gas | --ga | --g)
582     # Obsolete; use --with-gas.
583     with_gas=yes ;;
584
585   -help | --help | --hel | --he | -h)
586     ac_init_help=long ;;
587   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588     ac_init_help=recursive ;;
589   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590     ac_init_help=short ;;
591
592   -host | --host | --hos | --ho)
593     ac_prev=host_alias ;;
594   -host=* | --host=* | --hos=* | --ho=*)
595     host_alias=$ac_optarg ;;
596
597   -includedir | --includedir | --includedi | --included | --include \
598   | --includ | --inclu | --incl | --inc)
599     ac_prev=includedir ;;
600   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601   | --includ=* | --inclu=* | --incl=* | --inc=*)
602     includedir=$ac_optarg ;;
603
604   -infodir | --infodir | --infodi | --infod | --info | --inf)
605     ac_prev=infodir ;;
606   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607     infodir=$ac_optarg ;;
608
609   -libdir | --libdir | --libdi | --libd)
610     ac_prev=libdir ;;
611   -libdir=* | --libdir=* | --libdi=* | --libd=*)
612     libdir=$ac_optarg ;;
613
614   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615   | --libexe | --libex | --libe)
616     ac_prev=libexecdir ;;
617   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618   | --libexe=* | --libex=* | --libe=*)
619     libexecdir=$ac_optarg ;;
620
621   -localstatedir | --localstatedir | --localstatedi | --localstated \
622   | --localstate | --localstat | --localsta | --localst \
623   | --locals | --local | --loca | --loc | --lo)
624     ac_prev=localstatedir ;;
625   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628     localstatedir=$ac_optarg ;;
629
630   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631     ac_prev=mandir ;;
632   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633     mandir=$ac_optarg ;;
634
635   -nfp | --nfp | --nf)
636     # Obsolete; use --without-fp.
637     with_fp=no ;;
638
639   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640   | --no-cr | --no-c | -n)
641     no_create=yes ;;
642
643   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645     no_recursion=yes ;;
646
647   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649   | --oldin | --oldi | --old | --ol | --o)
650     ac_prev=oldincludedir ;;
651   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654     oldincludedir=$ac_optarg ;;
655
656   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657     ac_prev=prefix ;;
658   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659     prefix=$ac_optarg ;;
660
661   -program-prefix | --program-prefix | --program-prefi | --program-pref \
662   | --program-pre | --program-pr | --program-p)
663     ac_prev=program_prefix ;;
664   -program-prefix=* | --program-prefix=* | --program-prefi=* \
665   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666     program_prefix=$ac_optarg ;;
667
668   -program-suffix | --program-suffix | --program-suffi | --program-suff \
669   | --program-suf | --program-su | --program-s)
670     ac_prev=program_suffix ;;
671   -program-suffix=* | --program-suffix=* | --program-suffi=* \
672   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673     program_suffix=$ac_optarg ;;
674
675   -program-transform-name | --program-transform-name \
676   | --program-transform-nam | --program-transform-na \
677   | --program-transform-n | --program-transform- \
678   | --program-transform | --program-transfor \
679   | --program-transfo | --program-transf \
680   | --program-trans | --program-tran \
681   | --progr-tra | --program-tr | --program-t)
682     ac_prev=program_transform_name ;;
683   -program-transform-name=* | --program-transform-name=* \
684   | --program-transform-nam=* | --program-transform-na=* \
685   | --program-transform-n=* | --program-transform-=* \
686   | --program-transform=* | --program-transfor=* \
687   | --program-transfo=* | --program-transf=* \
688   | --program-trans=* | --program-tran=* \
689   | --progr-tra=* | --program-tr=* | --program-t=*)
690     program_transform_name=$ac_optarg ;;
691
692   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693   | -silent | --silent | --silen | --sile | --sil)
694     silent=yes ;;
695
696   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697     ac_prev=sbindir ;;
698   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699   | --sbi=* | --sb=*)
700     sbindir=$ac_optarg ;;
701
702   -sharedstatedir | --sharedstatedir | --sharedstatedi \
703   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704   | --sharedst | --shareds | --shared | --share | --shar \
705   | --sha | --sh)
706     ac_prev=sharedstatedir ;;
707   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710   | --sha=* | --sh=*)
711     sharedstatedir=$ac_optarg ;;
712
713   -site | --site | --sit)
714     ac_prev=site ;;
715   -site=* | --site=* | --sit=*)
716     site=$ac_optarg ;;
717
718   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719     ac_prev=srcdir ;;
720   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721     srcdir=$ac_optarg ;;
722
723   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724   | --syscon | --sysco | --sysc | --sys | --sy)
725     ac_prev=sysconfdir ;;
726   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728     sysconfdir=$ac_optarg ;;
729
730   -target | --target | --targe | --targ | --tar | --ta | --t)
731     ac_prev=target_alias ;;
732   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733     target_alias=$ac_optarg ;;
734
735   -v | -verbose | --verbose | --verbos | --verbo | --verb)
736     verbose=yes ;;
737
738   -version | --version | --versio | --versi | --vers | -V)
739     ac_init_version=: ;;
740
741   -with-* | --with-*)
742     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743     # Reject names that are not valid shell variable names.
744     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745       { echo "$as_me: error: invalid package name: $ac_package" >&2
746    { (exit 1); exit 1; }; }
747     ac_package=`echo $ac_package| sed 's/-/_/g'`
748     case $ac_option in
749       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750       *) ac_optarg=yes ;;
751     esac
752     eval "with_$ac_package='$ac_optarg'" ;;
753
754   -without-* | --without-*)
755     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756     # Reject names that are not valid shell variable names.
757     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758       { echo "$as_me: error: invalid package name: $ac_package" >&2
759    { (exit 1); exit 1; }; }
760     ac_package=`echo $ac_package | sed 's/-/_/g'`
761     eval "with_$ac_package=no" ;;
762
763   --x)
764     # Obsolete; use --with-x.
765     with_x=yes ;;
766
767   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768   | --x-incl | --x-inc | --x-in | --x-i)
769     ac_prev=x_includes ;;
770   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772     x_includes=$ac_optarg ;;
773
774   -x-libraries | --x-libraries | --x-librarie | --x-librari \
775   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776     ac_prev=x_libraries ;;
777   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779     x_libraries=$ac_optarg ;;
780
781   -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783    { (exit 1); exit 1; }; }
784     ;;
785
786   *=*)
787     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788     # Reject names that are not valid shell variable names.
789     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791    { (exit 1); exit 1; }; }
792     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793     eval "$ac_envvar='$ac_optarg'"
794     export $ac_envvar ;;
795
796   *)
797     # FIXME: should be removed in autoconf 3.0.
798     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802     ;;
803
804   esac
805 done
806
807 if test -n "$ac_prev"; then
808   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809   { echo "$as_me: error: missing argument to $ac_option" >&2
810    { (exit 1); exit 1; }; }
811 fi
812
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
815 do
816   eval ac_val=$`echo $ac_var`
817   case $ac_val in
818     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820    { (exit 1); exit 1; }; };;
821   esac
822 done
823
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826               localstatedir libdir includedir oldincludedir infodir mandir
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
842
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845   if test "x$build_alias" = x; then
846     cross_compiling=maybe
847     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848     If a cross compiler is detected then cross compile mode will be used." >&2
849   elif test "x$build_alias" != "x$host_alias"; then
850     cross_compiling=yes
851   fi
852 fi
853
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857 test "$silent" = yes && exec 6>/dev/null
858
859
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862   ac_srcdir_defaulted=yes
863   # Try the directory containing this script, then its parent.
864   ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866          X"$0" : 'X\(//\)[^/]' \| \
867          X"$0" : 'X\(//\)$' \| \
868          X"$0" : 'X\(/\)' \| \
869          .     : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873           /^X\(\/\/\)$/{ s//\1/; q; }
874           /^X\(\/\).*/{ s//\1/; q; }
875           s/.*/./; q'`
876   srcdir=$ac_confdir
877   if test ! -r $srcdir/$ac_unique_file; then
878     srcdir=..
879   fi
880 else
881   ac_srcdir_defaulted=no
882 fi
883 if test ! -r $srcdir/$ac_unique_file; then
884   if test "$ac_srcdir_defaulted" = yes; then
885     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886    { (exit 1); exit 1; }; }
887   else
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889    { (exit 1); exit 1; }; }
890   fi
891 fi
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894    { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CXX_set=${CXX+set}
909 ac_env_CXX_value=$CXX
910 ac_cv_env_CXX_set=${CXX+set}
911 ac_cv_env_CXX_value=$CXX
912 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
913 ac_env_CXXFLAGS_value=$CXXFLAGS
914 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
915 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CC_set=${CC+set}
925 ac_env_CC_value=$CC
926 ac_cv_env_CC_set=${CC+set}
927 ac_cv_env_CC_value=$CC
928 ac_env_CFLAGS_set=${CFLAGS+set}
929 ac_env_CFLAGS_value=$CFLAGS
930 ac_cv_env_CFLAGS_set=${CFLAGS+set}
931 ac_cv_env_CFLAGS_value=$CFLAGS
932 ac_env_CPP_set=${CPP+set}
933 ac_env_CPP_value=$CPP
934 ac_cv_env_CPP_set=${CPP+set}
935 ac_cv_env_CPP_value=$CPP
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
948
949 #
950 # Report the --help message.
951 #
952 if test "$ac_init_help" = "long"; then
953   # Omit some internal or obsolete options to make the list less imposing.
954   # This message is too long to be a string in the A/UX 3.1 sh.
955   cat <<_ACEOF
956 \`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
957
958 Usage: $0 [OPTION]... [VAR=VALUE]...
959
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE.  See below for descriptions of some of the useful variables.
962
963 Defaults for the options are specified in brackets.
964
965 Configuration:
966   -h, --help              display this help and exit
967       --help=short        display options specific to this package
968       --help=recursive    display the short help of all the included packages
969   -V, --version           display version information and exit
970   -q, --quiet, --silent   do not print \`checking...' messages
971       --cache-file=FILE   cache test results in FILE [disabled]
972   -C, --config-cache      alias for \`--cache-file=config.cache'
973   -n, --no-create         do not create output files
974       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
975
976 _ACEOF
977
978   cat <<_ACEOF
979 Installation directories:
980   --prefix=PREFIX         install architecture-independent files in PREFIX
981                           [$ac_default_prefix]
982   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
983                           [PREFIX]
984
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
989
990 For better control, use the options below.
991
992 Fine tuning of the installation directories:
993   --bindir=DIR           user executables [EPREFIX/bin]
994   --sbindir=DIR          system admin executables [EPREFIX/sbin]
995   --libexecdir=DIR       program executables [EPREFIX/libexec]
996   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
997   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
998   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
999   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1000   --libdir=DIR           object code libraries [EPREFIX/lib]
1001   --includedir=DIR       C header files [PREFIX/include]
1002   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1003   --infodir=DIR          info documentation [PREFIX/info]
1004   --mandir=DIR           man documentation [PREFIX/man]
1005 _ACEOF
1006
1007   cat <<\_ACEOF
1008
1009 System types:
1010   --build=BUILD     configure for building on BUILD [guessed]
1011   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1012   --target=TARGET   configure for building compilers for TARGET [HOST]
1013 _ACEOF
1014 fi
1015
1016 if test -n "$ac_init_help"; then
1017   case $ac_init_help in
1018      short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1019    esac
1020   cat <<\_ACEOF
1021
1022 Optional Features:
1023   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1024   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1025   --enable-shared[=PKGS]
1026                           build shared libraries [default=yes]
1027   --enable-static[=PKGS]
1028                           build static libraries [default=yes]
1029   --enable-fast-install[=PKGS]
1030                           optimize for fast installation [default=yes]
1031   --disable-libtool-lock  avoid locking (might break parallel builds)
1032   --enable-purify         Compile with purify (default is NO)
1033   --enable-optimized      Compile with optimizations enabled (default is NO)
1034   --enable-spec           Compile SPEC benchmarks (default is NO)
1035   --enable-precompiled_bytecode
1036                           Use pre-compiled bytecode (default is NO)
1037   --enable-llc_diffs      Enable LLC Diffs when testing (default is YES)
1038   --enable-jit            Enable Just In Time Compiling (default is YES)
1039
1040 Optional Packages:
1041   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1042   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1043   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1044   --with-pic              try to use only PIC/non-PIC objects [default=use
1045                           both]
1046   --with-tags[=TAGS]
1047                           include additional configurations [automatic]
1048   --with-spec             Location of SPEC benchmarks
1049   --with-llvmgccdir       Location of LLVM GCC front-end
1050   --with-bcrepos          Location of Bytecode Repository
1051   --with-papi             Location of PAPI
1052   --with-purify           Location of purify program
1053
1054 Some influential environment variables:
1055   CXX         C++ compiler command
1056   CXXFLAGS    C++ compiler flags
1057   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1058               nonstandard directory <lib dir>
1059   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060               headers in a nonstandard directory <include dir>
1061   CC          C compiler command
1062   CFLAGS      C compiler flags
1063   CPP         C preprocessor
1064   CXXCPP      C++ preprocessor
1065   F77         Fortran 77 compiler command
1066   FFLAGS      Fortran 77 compiler flags
1067
1068 Use these variables to override the choices made by `configure' or to help
1069 it to find libraries and programs with nonstandard names/locations.
1070
1071 Report bugs to <llvmbugs@cs.uiuc.edu>.
1072 _ACEOF
1073 fi
1074
1075 if test "$ac_init_help" = "recursive"; then
1076   # If there are subdirs, report their specific --help.
1077   ac_popdir=`pwd`
1078   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079     test -d $ac_dir || continue
1080     ac_builddir=.
1081
1082 if test "$ac_dir" != .; then
1083   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084   # A "../" for each directory in $ac_dir_suffix.
1085   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086 else
1087   ac_dir_suffix= ac_top_builddir=
1088 fi
1089
1090 case $srcdir in
1091   .)  # No --srcdir option.  We are building in place.
1092     ac_srcdir=.
1093     if test -z "$ac_top_builddir"; then
1094        ac_top_srcdir=.
1095     else
1096        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097     fi ;;
1098   [\\/]* | ?:[\\/]* )  # Absolute path.
1099     ac_srcdir=$srcdir$ac_dir_suffix;
1100     ac_top_srcdir=$srcdir ;;
1101   *) # Relative path.
1102     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104 esac
1105 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1106 # absolute.
1107 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1108 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1109 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1111
1112     cd $ac_dir
1113     # Check for guested configure; otherwise get Cygnus style configure.
1114     if test -f $ac_srcdir/configure.gnu; then
1115       echo
1116       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1117     elif test -f $ac_srcdir/configure; then
1118       echo
1119       $SHELL $ac_srcdir/configure  --help=recursive
1120     elif test -f $ac_srcdir/configure.ac ||
1121            test -f $ac_srcdir/configure.in; then
1122       echo
1123       $ac_configure --help
1124     else
1125       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126     fi
1127     cd $ac_popdir
1128   done
1129 fi
1130
1131 test -n "$ac_init_help" && exit 0
1132 if $ac_init_version; then
1133   cat <<\_ACEOF
1134 [LLVM] configure [1.0]
1135 generated by GNU Autoconf 2.57
1136
1137 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138 Free Software Foundation, Inc.
1139 This configure script is free software; the Free Software Foundation
1140 gives unlimited permission to copy, distribute and modify it.
1141 _ACEOF
1142   exit 0
1143 fi
1144 exec 5>config.log
1145 cat >&5 <<_ACEOF
1146 This file contains any messages produced by compilers while
1147 running configure, to aid debugging if configure makes a mistake.
1148
1149 It was created by [LLVM] $as_me [1.0], which was
1150 generated by GNU Autoconf 2.57.  Invocation command line was
1151
1152   $ $0 $@
1153
1154 _ACEOF
1155 {
1156 cat <<_ASUNAME
1157 ## --------- ##
1158 ## Platform. ##
1159 ## --------- ##
1160
1161 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1169
1170 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1171 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1172 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1174 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1175 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1176 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1177
1178 _ASUNAME
1179
1180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181 for as_dir in $PATH
1182 do
1183   IFS=$as_save_IFS
1184   test -z "$as_dir" && as_dir=.
1185   echo "PATH: $as_dir"
1186 done
1187
1188 } >&5
1189
1190 cat >&5 <<_ACEOF
1191
1192
1193 ## ----------- ##
1194 ## Core tests. ##
1195 ## ----------- ##
1196
1197 _ACEOF
1198
1199
1200 # Keep a trace of the command line.
1201 # Strip out --no-create and --no-recursion so they do not pile up.
1202 # Strip out --silent because we don't want to record it for future runs.
1203 # Also quote any args containing shell meta-characters.
1204 # Make two passes to allow for proper duplicate-argument suppression.
1205 ac_configure_args=
1206 ac_configure_args0=
1207 ac_configure_args1=
1208 ac_sep=
1209 ac_must_keep_next=false
1210 for ac_pass in 1 2
1211 do
1212   for ac_arg
1213   do
1214     case $ac_arg in
1215     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217     | -silent | --silent | --silen | --sile | --sil)
1218       continue ;;
1219     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221     esac
1222     case $ac_pass in
1223     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224     2)
1225       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226       if test $ac_must_keep_next = true; then
1227         ac_must_keep_next=false # Got value, back to normal.
1228       else
1229         case $ac_arg in
1230           *=* | --config-cache | -C | -disable-* | --disable-* \
1231           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233           | -with-* | --with-* | -without-* | --without-* | --x)
1234             case "$ac_configure_args0 " in
1235               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236             esac
1237             ;;
1238           -* ) ac_must_keep_next=true ;;
1239         esac
1240       fi
1241       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242       # Get rid of the leading space.
1243       ac_sep=" "
1244       ;;
1245     esac
1246   done
1247 done
1248 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1250
1251 # When interrupted or exit'd, cleanup temporary files, and complete
1252 # config.log.  We remove comments because anyway the quotes in there
1253 # would cause problems or look ugly.
1254 # WARNING: Be sure not to use single quotes in there, as some shells,
1255 # such as our DU 5.0 friend, will then `close' the trap.
1256 trap 'exit_status=$?
1257   # Save into config.log some information that might help in debugging.
1258   {
1259     echo
1260
1261     cat <<\_ASBOX
1262 ## ---------------- ##
1263 ## Cache variables. ##
1264 ## ---------------- ##
1265 _ASBOX
1266     echo
1267     # The following way of writing the cache mishandles newlines in values,
1268 {
1269   (set) 2>&1 |
1270     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271     *ac_space=\ *)
1272       sed -n \
1273         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275       ;;
1276     *)
1277       sed -n \
1278         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279       ;;
1280     esac;
1281 }
1282     echo
1283
1284     cat <<\_ASBOX
1285 ## ----------------- ##
1286 ## Output variables. ##
1287 ## ----------------- ##
1288 _ASBOX
1289     echo
1290     for ac_var in $ac_subst_vars
1291     do
1292       eval ac_val=$`echo $ac_var`
1293       echo "$ac_var='"'"'$ac_val'"'"'"
1294     done | sort
1295     echo
1296
1297     if test -n "$ac_subst_files"; then
1298       cat <<\_ASBOX
1299 ## ------------- ##
1300 ## Output files. ##
1301 ## ------------- ##
1302 _ASBOX
1303       echo
1304       for ac_var in $ac_subst_files
1305       do
1306         eval ac_val=$`echo $ac_var`
1307         echo "$ac_var='"'"'$ac_val'"'"'"
1308       done | sort
1309       echo
1310     fi
1311
1312     if test -s confdefs.h; then
1313       cat <<\_ASBOX
1314 ## ----------- ##
1315 ## confdefs.h. ##
1316 ## ----------- ##
1317 _ASBOX
1318       echo
1319       sed "/^$/d" confdefs.h | sort
1320       echo
1321     fi
1322     test "$ac_signal" != 0 &&
1323       echo "$as_me: caught signal $ac_signal"
1324     echo "$as_me: exit $exit_status"
1325   } >&5
1326   rm -f core core.* *.core &&
1327   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328     exit $exit_status
1329      ' 0
1330 for ac_signal in 1 2 13 15; do
1331   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332 done
1333 ac_signal=0
1334
1335 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1336 rm -rf conftest* confdefs.h
1337 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338 echo >confdefs.h
1339
1340 # Predefined preprocessor variables.
1341
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_NAME "$PACKAGE_NAME"
1344 _ACEOF
1345
1346
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349 _ACEOF
1350
1351
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1354 _ACEOF
1355
1356
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_STRING "$PACKAGE_STRING"
1359 _ACEOF
1360
1361
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364 _ACEOF
1365
1366
1367 # Let the site file select an alternate cache file if it wants to.
1368 # Prefer explicitly selected file to automatically selected ones.
1369 if test -z "$CONFIG_SITE"; then
1370   if test "x$prefix" != xNONE; then
1371     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372   else
1373     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374   fi
1375 fi
1376 for ac_site_file in $CONFIG_SITE; do
1377   if test -r "$ac_site_file"; then
1378     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379 echo "$as_me: loading site script $ac_site_file" >&6;}
1380     sed 's/^/| /' "$ac_site_file" >&5
1381     . "$ac_site_file"
1382   fi
1383 done
1384
1385 if test -r "$cache_file"; then
1386   # Some versions of bash will fail to source /dev/null (special
1387   # files actually), so we avoid doing that.
1388   if test -f "$cache_file"; then
1389     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390 echo "$as_me: loading cache $cache_file" >&6;}
1391     case $cache_file in
1392       [\\/]* | ?:[\\/]* ) . $cache_file;;
1393       *)                      . ./$cache_file;;
1394     esac
1395   fi
1396 else
1397   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398 echo "$as_me: creating cache $cache_file" >&6;}
1399   >$cache_file
1400 fi
1401
1402 # Check that the precious variables saved in the cache have kept the same
1403 # value.
1404 ac_cache_corrupted=false
1405 for ac_var in `(set) 2>&1 |
1406                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408   eval ac_new_set=\$ac_env_${ac_var}_set
1409   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410   eval ac_new_val="\$ac_env_${ac_var}_value"
1411   case $ac_old_set,$ac_new_set in
1412     set,)
1413       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415       ac_cache_corrupted=: ;;
1416     ,set)
1417       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419       ac_cache_corrupted=: ;;
1420     ,);;
1421     *)
1422       if test "x$ac_old_val" != "x$ac_new_val"; then
1423         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1426 echo "$as_me:   former value:  $ac_old_val" >&2;}
1427         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1428 echo "$as_me:   current value: $ac_new_val" >&2;}
1429         ac_cache_corrupted=:
1430       fi;;
1431   esac
1432   # Pass precious variables to config.status.
1433   if test "$ac_new_set" = set; then
1434     case $ac_new_val in
1435     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437     *) ac_arg=$ac_var=$ac_new_val ;;
1438     esac
1439     case " $ac_configure_args " in
1440       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1441       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442     esac
1443   fi
1444 done
1445 if $ac_cache_corrupted; then
1446   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450    { (exit 1); exit 1; }; }
1451 fi
1452
1453 ac_ext=c
1454 ac_cpp='$CPP $CPPFLAGS'
1455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486 ac_aux_dir=
1487 for ac_dir in autoconf $srcdir/autoconf; do
1488   if test -f $ac_dir/install-sh; then
1489     ac_aux_dir=$ac_dir
1490     ac_install_sh="$ac_aux_dir/install-sh -c"
1491     break
1492   elif test -f $ac_dir/install.sh; then
1493     ac_aux_dir=$ac_dir
1494     ac_install_sh="$ac_aux_dir/install.sh -c"
1495     break
1496   elif test -f $ac_dir/shtool; then
1497     ac_aux_dir=$ac_dir
1498     ac_install_sh="$ac_aux_dir/shtool install -c"
1499     break
1500   fi
1501 done
1502 if test -z "$ac_aux_dir"; then
1503   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1504 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1505    { (exit 1); exit 1; }; }
1506 fi
1507 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
1511
1512           ac_config_headers="$ac_config_headers include/Config/config.h"
1513
1514           ac_config_commands="$ac_config_commands Makefile"
1515
1516
1517           ac_config_commands="$ac_config_commands Makefile.common"
1518
1519
1520           ac_config_commands="$ac_config_commands Makefile.rules"
1521
1522
1523           ac_config_commands="$ac_config_commands lib/Makefile"
1524
1525
1526           ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
1527
1528
1529           ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
1530
1531
1532           ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
1533
1534
1535           ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
1536
1537
1538           ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
1539
1540
1541           ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
1542
1543
1544           ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
1545
1546
1547           ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
1548
1549
1550           ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
1551
1552
1553           ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
1554
1555
1556           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
1557
1558
1559           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
1560
1561
1562           ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
1563
1564
1565           ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
1566
1567
1568           ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
1569
1570
1571           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
1572
1573
1574           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
1575
1576
1577           ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
1578
1579
1580           ac_config_commands="$ac_config_commands lib/Support/Makefile"
1581
1582
1583           ac_config_commands="$ac_config_commands lib/Target/Makefile"
1584
1585
1586           ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
1587
1588
1589           ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
1590
1591
1592           ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
1593
1594
1595           ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
1596
1597
1598           ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
1599
1600
1601           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
1602
1603
1604           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
1605
1606
1607           ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
1608
1609
1610           ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
1611
1612
1613           ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
1614
1615
1616           ac_config_commands="$ac_config_commands runtime/Makefile"
1617
1618
1619           ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
1620
1621
1622           ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
1623
1624
1625           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
1626
1627
1628           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
1629
1630
1631           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
1632
1633
1634           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
1635
1636
1637           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
1638
1639
1640           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
1641
1642
1643           ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
1644
1645
1646           ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
1647
1648
1649           ac_config_commands="$ac_config_commands test/Makefile"
1650
1651
1652           ac_config_commands="$ac_config_commands test/Makefile.tests"
1653
1654
1655           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1656
1657
1658           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1659
1660
1661           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1662
1663
1664           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1665
1666
1667           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1668
1669
1670           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1671
1672
1673           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1674
1675
1676           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1677
1678
1679           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1680
1681
1682           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1683
1684
1685           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1686
1687
1688           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1689
1690
1691           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1692
1693
1694           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1695
1696
1697           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1698
1699
1700           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1701
1702
1703           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1704
1705
1706           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1707
1708
1709           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
1710
1711
1712           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
1713
1714
1715           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
1716
1717
1718           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
1719
1720
1721           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
1722
1723
1724           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
1725
1726
1727           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
1728
1729
1730           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
1731
1732
1733           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
1734
1735
1736           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
1737
1738
1739           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
1740
1741
1742           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
1743
1744
1745           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
1746
1747
1748           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
1749
1750
1751           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
1752
1753
1754           ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
1755
1756
1757           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1758
1759
1760           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1761
1762
1763           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Burg/Makefile"
1764
1765
1766           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Fhourstones/Makefile"
1767
1768
1769           ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/Makefile"
1770
1771
1772           ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/01-qbsort/Makefile"
1773
1774
1775           ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/03-testtrie/Makefile"
1776
1777
1778           ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/04-bisect/Makefile"
1779
1780
1781           ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/05-eks/Makefile"
1782
1783
1784           ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/08-main/Makefile"
1785
1786
1787           ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/09-vor/Makefile"
1788
1789
1790           ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/12-IOtest/Makefile"
1791
1792
1793           ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/15-trie/Makefile"
1794
1795
1796           ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/17-bintr/Makefile"
1797
1798
1799           ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/18-imp/Makefile"
1800
1801
1802           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/Makefile"
1803
1804
1805           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/bh/Makefile"
1806
1807
1808           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/bisort/Makefile"
1809
1810
1811           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/em3d/Makefile"
1812
1813
1814           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/health/Makefile"
1815
1816
1817           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/mst/Makefile"
1818
1819
1820           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/perimeter/Makefile"
1821
1822
1823           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/power/Makefile"
1824
1825
1826           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/treeadd/Makefile"
1827
1828
1829           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/tsp/Makefile"
1830
1831
1832           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/voronoi/Makefile"
1833
1834
1835           ac_config_commands="$ac_config_commands test/Programs/MultiSource/OptimizerEval/Makefile"
1836
1837
1838           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/Makefile"
1839
1840
1841           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/anagram/Makefile"
1842
1843
1844           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/bc/Makefile"
1845
1846
1847           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/ft/Makefile"
1848
1849
1850           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/ks/Makefile"
1851
1852
1853           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/yacr2/Makefile"
1854
1855
1856           ac_config_commands="$ac_config_commands test/Programs/MultiSource/aha/Makefile"
1857
1858
1859           ac_config_commands="$ac_config_commands test/Programs/MultiSource/llubenchmark/Makefile"
1860
1861
1862           ac_config_commands="$ac_config_commands test/Programs/MultiSource/sgefa/Makefile"
1863
1864
1865           ac_config_commands="$ac_config_commands test/Programs/MultiSource/sim/Makefile"
1866
1867
1868           ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
1869
1870
1871           ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
1872
1873
1874           ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
1875
1876
1877           ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
1878
1879
1880           ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
1881
1882
1883           ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
1884
1885
1886           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1887
1888
1889           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1890
1891
1892           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1893
1894
1895           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1896
1897
1898           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1899
1900
1901           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1902
1903
1904           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1905
1906
1907           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1908
1909
1910           ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
1911
1912
1913           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
1914
1915
1916           ac_config_commands="$ac_config_commands tools/Makefile"
1917
1918
1919           ac_config_commands="$ac_config_commands tools/analyze/Makefile"
1920
1921
1922           ac_config_commands="$ac_config_commands tools/as/Makefile"
1923
1924
1925           ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
1926
1927
1928           ac_config_commands="$ac_config_commands tools/dis/Makefile"
1929
1930
1931           ac_config_commands="$ac_config_commands tools/extract/Makefile"
1932
1933
1934           ac_config_commands="$ac_config_commands tools/gccas/Makefile"
1935
1936
1937           ac_config_commands="$ac_config_commands tools/gccld/Makefile"
1938
1939
1940           ac_config_commands="$ac_config_commands tools/link/Makefile"
1941
1942
1943           ac_config_commands="$ac_config_commands tools/llc/Makefile"
1944
1945
1946           ac_config_commands="$ac_config_commands tools/lli/Makefile"
1947
1948
1949           ac_config_commands="$ac_config_commands tools/opt/Makefile"
1950
1951
1952           ac_config_commands="$ac_config_commands tools/llee/Makefile"
1953
1954
1955           ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
1956
1957
1958           ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
1959
1960
1961           ac_config_commands="$ac_config_commands utils/Makefile"
1962
1963
1964           ac_config_commands="$ac_config_commands utils/Burg/Makefile"
1965
1966
1967           ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
1968
1969
1970           ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
1971
1972
1973           ac_config_commands="$ac_config_commands www/docs/Makefile"
1974
1975
1976           ac_config_commands="$ac_config_commands projects/Makefile"
1977
1978
1979           ac_config_commands="$ac_config_commands projects/sample/Makefile"
1980
1981
1982           ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
1983
1984
1985           ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
1986
1987
1988           ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
1989
1990
1991           ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
1992
1993
1994           ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
1995
1996
1997           ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
1998
1999
2000           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
2001
2002
2003           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
2004
2005
2006           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
2007
2008
2009           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
2010
2011
2012
2013
2014 # Find a good install program.  We prefer a C program (faster),
2015 # so one script is as good as another.  But avoid the broken or
2016 # incompatible versions:
2017 # SysV /etc/install, /usr/sbin/install
2018 # SunOS /usr/etc/install
2019 # IRIX /sbin/install
2020 # AIX /bin/install
2021 # AmigaOS /C/install, which installs bootblocks on floppy discs
2022 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2023 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2024 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2025 # ./install, which can be erroneously created by make from ./install.sh.
2026 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2027 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2028 if test -z "$INSTALL"; then
2029 if test "${ac_cv_path_install+set}" = set; then
2030   echo $ECHO_N "(cached) $ECHO_C" >&6
2031 else
2032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033 for as_dir in $PATH
2034 do
2035   IFS=$as_save_IFS
2036   test -z "$as_dir" && as_dir=.
2037   # Account for people who put trailing slashes in PATH elements.
2038 case $as_dir/ in
2039   ./ | .// | /cC/* | \
2040   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2041   /usr/ucb/* ) ;;
2042   *)
2043     # OSF1 and SCO ODT 3.0 have their own names for install.
2044     # Don't use installbsd from OSF since it installs stuff as root
2045     # by default.
2046     for ac_prog in ginstall scoinst install; do
2047       for ac_exec_ext in '' $ac_executable_extensions; do
2048         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2049           if test $ac_prog = install &&
2050             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2051             # AIX install.  It has an incompatible calling convention.
2052             :
2053           elif test $ac_prog = install &&
2054             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2055             # program-specific install script used by HP pwplus--don't use.
2056             :
2057           else
2058             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2059             break 3
2060           fi
2061         fi
2062       done
2063     done
2064     ;;
2065 esac
2066 done
2067
2068
2069 fi
2070   if test "${ac_cv_path_install+set}" = set; then
2071     INSTALL=$ac_cv_path_install
2072   else
2073     # As a last resort, use the slow shell script.  We don't cache a
2074     # path for INSTALL within a source directory, because that will
2075     # break other packages using the cache if that directory is
2076     # removed, or if the path is relative.
2077     INSTALL=$ac_install_sh
2078   fi
2079 fi
2080 echo "$as_me:$LINENO: result: $INSTALL" >&5
2081 echo "${ECHO_T}$INSTALL" >&6
2082
2083 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2084 # It thinks the first close brace ends the variable substitution.
2085 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2086
2087 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2088
2089 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2090
2091
2092 # Make sure we can run config.sub.
2093 $ac_config_sub sun4 >/dev/null 2>&1 ||
2094   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2095 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2096    { (exit 1); exit 1; }; }
2097
2098 echo "$as_me:$LINENO: checking build system type" >&5
2099 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2100 if test "${ac_cv_build+set}" = set; then
2101   echo $ECHO_N "(cached) $ECHO_C" >&6
2102 else
2103   ac_cv_build_alias=$build_alias
2104 test -z "$ac_cv_build_alias" &&
2105   ac_cv_build_alias=`$ac_config_guess`
2106 test -z "$ac_cv_build_alias" &&
2107   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2108 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2109    { (exit 1); exit 1; }; }
2110 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2111   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2112 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2113    { (exit 1); exit 1; }; }
2114
2115 fi
2116 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2117 echo "${ECHO_T}$ac_cv_build" >&6
2118 build=$ac_cv_build
2119 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2120 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2121 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2122
2123
2124 echo "$as_me:$LINENO: checking host system type" >&5
2125 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2126 if test "${ac_cv_host+set}" = set; then
2127   echo $ECHO_N "(cached) $ECHO_C" >&6
2128 else
2129   ac_cv_host_alias=$host_alias
2130 test -z "$ac_cv_host_alias" &&
2131   ac_cv_host_alias=$ac_cv_build_alias
2132 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2133   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2134 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2135    { (exit 1); exit 1; }; }
2136
2137 fi
2138 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2139 echo "${ECHO_T}$ac_cv_host" >&6
2140 host=$ac_cv_host
2141 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2142 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2143 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2144
2145
2146 echo "$as_me:$LINENO: checking target system type" >&5
2147 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2148 if test "${ac_cv_target+set}" = set; then
2149   echo $ECHO_N "(cached) $ECHO_C" >&6
2150 else
2151   ac_cv_target_alias=$target_alias
2152 test "x$ac_cv_target_alias" = "x" &&
2153   ac_cv_target_alias=$ac_cv_host_alias
2154 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2155   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2156 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2157    { (exit 1); exit 1; }; }
2158
2159 fi
2160 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2161 echo "${ECHO_T}$ac_cv_target" >&6
2162 target=$ac_cv_target
2163 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2164 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2165 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2166
2167
2168 # The aliases save the names the user supplied, while $host etc.
2169 # will get canonicalized.
2170 test -n "$target_alias" &&
2171   test "$program_prefix$program_suffix$program_transform_name" = \
2172     NONENONEs,x,x, &&
2173   program_prefix=${target_alias}-
2174
2175 case $build in
2176         *i*86*)  OS=Linux
2177
2178                  LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2179
2180                  ;;
2181
2182         *sparc*) OS=SunOS
2183
2184                  LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2185
2186                  ;;
2187
2188         *)       OS=Unknown
2189
2190                  ;;
2191 esac
2192
2193 case $target in
2194         *sparc*solaris*)  target=sparcv9-sun-solaris2.8
2195
2196                           ;;
2197 esac
2198
2199 case $target in
2200         *i*86*)           ARCH=x86
2201
2202                           ;;
2203         *sparc*solaris*)  ARCH=Sparc
2204
2205                           ;;
2206 esac
2207
2208
2209 ac_ext=cc
2210 ac_cpp='$CXXCPP $CPPFLAGS'
2211 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2212 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2213 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2214 if test -n "$ac_tool_prefix"; then
2215   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2216   do
2217     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2218 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2219 echo "$as_me:$LINENO: checking for $ac_word" >&5
2220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2221 if test "${ac_cv_prog_CXX+set}" = set; then
2222   echo $ECHO_N "(cached) $ECHO_C" >&6
2223 else
2224   if test -n "$CXX"; then
2225   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2226 else
2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 for as_dir in $PATH
2229 do
2230   IFS=$as_save_IFS
2231   test -z "$as_dir" && as_dir=.
2232   for ac_exec_ext in '' $ac_executable_extensions; do
2233   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2234     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236     break 2
2237   fi
2238 done
2239 done
2240
2241 fi
2242 fi
2243 CXX=$ac_cv_prog_CXX
2244 if test -n "$CXX"; then
2245   echo "$as_me:$LINENO: result: $CXX" >&5
2246 echo "${ECHO_T}$CXX" >&6
2247 else
2248   echo "$as_me:$LINENO: result: no" >&5
2249 echo "${ECHO_T}no" >&6
2250 fi
2251
2252     test -n "$CXX" && break
2253   done
2254 fi
2255 if test -z "$CXX"; then
2256   ac_ct_CXX=$CXX
2257   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2258 do
2259   # Extract the first word of "$ac_prog", so it can be a program name with args.
2260 set dummy $ac_prog; ac_word=$2
2261 echo "$as_me:$LINENO: checking for $ac_word" >&5
2262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2263 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2264   echo $ECHO_N "(cached) $ECHO_C" >&6
2265 else
2266   if test -n "$ac_ct_CXX"; then
2267   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2268 else
2269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270 for as_dir in $PATH
2271 do
2272   IFS=$as_save_IFS
2273   test -z "$as_dir" && as_dir=.
2274   for ac_exec_ext in '' $ac_executable_extensions; do
2275   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2276     ac_cv_prog_ac_ct_CXX="$ac_prog"
2277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278     break 2
2279   fi
2280 done
2281 done
2282
2283 fi
2284 fi
2285 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2286 if test -n "$ac_ct_CXX"; then
2287   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2288 echo "${ECHO_T}$ac_ct_CXX" >&6
2289 else
2290   echo "$as_me:$LINENO: result: no" >&5
2291 echo "${ECHO_T}no" >&6
2292 fi
2293
2294   test -n "$ac_ct_CXX" && break
2295 done
2296 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2297
2298   CXX=$ac_ct_CXX
2299 fi
2300
2301
2302 # Provide some information about the compiler.
2303 echo "$as_me:$LINENO:" \
2304      "checking for C++ compiler version" >&5
2305 ac_compiler=`set X $ac_compile; echo $2`
2306 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2307   (eval $ac_compiler --version </dev/null >&5) 2>&5
2308   ac_status=$?
2309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310   (exit $ac_status); }
2311 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2312   (eval $ac_compiler -v </dev/null >&5) 2>&5
2313   ac_status=$?
2314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315   (exit $ac_status); }
2316 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2317   (eval $ac_compiler -V </dev/null >&5) 2>&5
2318   ac_status=$?
2319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320   (exit $ac_status); }
2321
2322 cat >conftest.$ac_ext <<_ACEOF
2323 #line $LINENO "configure"
2324 /* confdefs.h.  */
2325 _ACEOF
2326 cat confdefs.h >>conftest.$ac_ext
2327 cat >>conftest.$ac_ext <<_ACEOF
2328 /* end confdefs.h.  */
2329
2330 int
2331 main ()
2332 {
2333
2334   ;
2335   return 0;
2336 }
2337 _ACEOF
2338 ac_clean_files_save=$ac_clean_files
2339 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2340 # Try to create an executable without -o first, disregard a.out.
2341 # It will help us diagnose broken compilers, and finding out an intuition
2342 # of exeext.
2343 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2344 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2345 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2346 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2347   (eval $ac_link_default) 2>&5
2348   ac_status=$?
2349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350   (exit $ac_status); }; then
2351   # Find the output, starting from the most likely.  This scheme is
2352 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2353 # resort.
2354
2355 # Be careful to initialize this variable, since it used to be cached.
2356 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2357 ac_cv_exeext=
2358 # b.out is created by i960 compilers.
2359 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2360 do
2361   test -f "$ac_file" || continue
2362   case $ac_file in
2363     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2364         ;;
2365     conftest.$ac_ext )
2366         # This is the source file.
2367         ;;
2368     [ab].out )
2369         # We found the default executable, but exeext='' is most
2370         # certainly right.
2371         break;;
2372     *.* )
2373         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2374         # FIXME: I believe we export ac_cv_exeext for Libtool,
2375         # but it would be cool to find out if it's true.  Does anybody
2376         # maintain Libtool? --akim.
2377         export ac_cv_exeext
2378         break;;
2379     * )
2380         break;;
2381   esac
2382 done
2383 else
2384   echo "$as_me: failed program was:" >&5
2385 sed 's/^/| /' conftest.$ac_ext >&5
2386
2387 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2388 See \`config.log' for more details." >&5
2389 echo "$as_me: error: C++ compiler cannot create executables
2390 See \`config.log' for more details." >&2;}
2391    { (exit 77); exit 77; }; }
2392 fi
2393
2394 ac_exeext=$ac_cv_exeext
2395 echo "$as_me:$LINENO: result: $ac_file" >&5
2396 echo "${ECHO_T}$ac_file" >&6
2397
2398 # Check the compiler produces executables we can run.  If not, either
2399 # the compiler is broken, or we cross compile.
2400 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2401 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2402 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2403 # If not cross compiling, check that we can run a simple program.
2404 if test "$cross_compiling" != yes; then
2405   if { ac_try='./$ac_file'
2406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407   (eval $ac_try) 2>&5
2408   ac_status=$?
2409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410   (exit $ac_status); }; }; then
2411     cross_compiling=no
2412   else
2413     if test "$cross_compiling" = maybe; then
2414         cross_compiling=yes
2415     else
2416         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2417 If you meant to cross compile, use \`--host'.
2418 See \`config.log' for more details." >&5
2419 echo "$as_me: error: cannot run C++ compiled programs.
2420 If you meant to cross compile, use \`--host'.
2421 See \`config.log' for more details." >&2;}
2422    { (exit 1); exit 1; }; }
2423     fi
2424   fi
2425 fi
2426 echo "$as_me:$LINENO: result: yes" >&5
2427 echo "${ECHO_T}yes" >&6
2428
2429 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2430 ac_clean_files=$ac_clean_files_save
2431 # Check the compiler produces executables we can run.  If not, either
2432 # the compiler is broken, or we cross compile.
2433 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2434 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2435 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2436 echo "${ECHO_T}$cross_compiling" >&6
2437
2438 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2439 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2441   (eval $ac_link) 2>&5
2442   ac_status=$?
2443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444   (exit $ac_status); }; then
2445   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2446 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2447 # work properly (i.e., refer to `conftest.exe'), while it won't with
2448 # `rm'.
2449 for ac_file in conftest.exe conftest conftest.*; do
2450   test -f "$ac_file" || continue
2451   case $ac_file in
2452     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2453     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2454           export ac_cv_exeext
2455           break;;
2456     * ) break;;
2457   esac
2458 done
2459 else
2460   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2461 See \`config.log' for more details." >&5
2462 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2463 See \`config.log' for more details." >&2;}
2464    { (exit 1); exit 1; }; }
2465 fi
2466
2467 rm -f conftest$ac_cv_exeext
2468 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2469 echo "${ECHO_T}$ac_cv_exeext" >&6
2470
2471 rm -f conftest.$ac_ext
2472 EXEEXT=$ac_cv_exeext
2473 ac_exeext=$EXEEXT
2474 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2475 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2476 if test "${ac_cv_objext+set}" = set; then
2477   echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479   cat >conftest.$ac_ext <<_ACEOF
2480 #line $LINENO "configure"
2481 /* confdefs.h.  */
2482 _ACEOF
2483 cat confdefs.h >>conftest.$ac_ext
2484 cat >>conftest.$ac_ext <<_ACEOF
2485 /* end confdefs.h.  */
2486
2487 int
2488 main ()
2489 {
2490
2491   ;
2492   return 0;
2493 }
2494 _ACEOF
2495 rm -f conftest.o conftest.obj
2496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2497   (eval $ac_compile) 2>&5
2498   ac_status=$?
2499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500   (exit $ac_status); }; then
2501   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2502   case $ac_file in
2503     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2504     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2505        break;;
2506   esac
2507 done
2508 else
2509   echo "$as_me: failed program was:" >&5
2510 sed 's/^/| /' conftest.$ac_ext >&5
2511
2512 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2513 See \`config.log' for more details." >&5
2514 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2515 See \`config.log' for more details." >&2;}
2516    { (exit 1); exit 1; }; }
2517 fi
2518
2519 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2520 fi
2521 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2522 echo "${ECHO_T}$ac_cv_objext" >&6
2523 OBJEXT=$ac_cv_objext
2524 ac_objext=$OBJEXT
2525 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2526 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2527 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2528   echo $ECHO_N "(cached) $ECHO_C" >&6
2529 else
2530   cat >conftest.$ac_ext <<_ACEOF
2531 #line $LINENO "configure"
2532 /* confdefs.h.  */
2533 _ACEOF
2534 cat confdefs.h >>conftest.$ac_ext
2535 cat >>conftest.$ac_ext <<_ACEOF
2536 /* end confdefs.h.  */
2537
2538 int
2539 main ()
2540 {
2541 #ifndef __GNUC__
2542        choke me
2543 #endif
2544
2545   ;
2546   return 0;
2547 }
2548 _ACEOF
2549 rm -f conftest.$ac_objext
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551   (eval $ac_compile) 2>&5
2552   ac_status=$?
2553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554   (exit $ac_status); } &&
2555          { ac_try='test -s conftest.$ac_objext'
2556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557   (eval $ac_try) 2>&5
2558   ac_status=$?
2559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560   (exit $ac_status); }; }; then
2561   ac_compiler_gnu=yes
2562 else
2563   echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2565
2566 ac_compiler_gnu=no
2567 fi
2568 rm -f conftest.$ac_objext conftest.$ac_ext
2569 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2570
2571 fi
2572 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2573 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2574 GXX=`test $ac_compiler_gnu = yes && echo yes`
2575 ac_test_CXXFLAGS=${CXXFLAGS+set}
2576 ac_save_CXXFLAGS=$CXXFLAGS
2577 CXXFLAGS="-g"
2578 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2579 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2580 if test "${ac_cv_prog_cxx_g+set}" = set; then
2581   echo $ECHO_N "(cached) $ECHO_C" >&6
2582 else
2583   cat >conftest.$ac_ext <<_ACEOF
2584 #line $LINENO "configure"
2585 /* confdefs.h.  */
2586 _ACEOF
2587 cat confdefs.h >>conftest.$ac_ext
2588 cat >>conftest.$ac_ext <<_ACEOF
2589 /* end confdefs.h.  */
2590
2591 int
2592 main ()
2593 {
2594
2595   ;
2596   return 0;
2597 }
2598 _ACEOF
2599 rm -f conftest.$ac_objext
2600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601   (eval $ac_compile) 2>&5
2602   ac_status=$?
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); } &&
2605          { ac_try='test -s conftest.$ac_objext'
2606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607   (eval $ac_try) 2>&5
2608   ac_status=$?
2609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610   (exit $ac_status); }; }; then
2611   ac_cv_prog_cxx_g=yes
2612 else
2613   echo "$as_me: failed program was:" >&5
2614 sed 's/^/| /' conftest.$ac_ext >&5
2615
2616 ac_cv_prog_cxx_g=no
2617 fi
2618 rm -f conftest.$ac_objext conftest.$ac_ext
2619 fi
2620 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2621 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2622 if test "$ac_test_CXXFLAGS" = set; then
2623   CXXFLAGS=$ac_save_CXXFLAGS
2624 elif test $ac_cv_prog_cxx_g = yes; then
2625   if test "$GXX" = yes; then
2626     CXXFLAGS="-g -O2"
2627   else
2628     CXXFLAGS="-g"
2629   fi
2630 else
2631   if test "$GXX" = yes; then
2632     CXXFLAGS="-O2"
2633   else
2634     CXXFLAGS=
2635   fi
2636 fi
2637 for ac_declaration in \
2638    ''\
2639    '#include <stdlib.h>' \
2640    'extern "C" void std::exit (int) throw (); using std::exit;' \
2641    'extern "C" void std::exit (int); using std::exit;' \
2642    'extern "C" void exit (int) throw ();' \
2643    'extern "C" void exit (int);' \
2644    'void exit (int);'
2645 do
2646   cat >conftest.$ac_ext <<_ACEOF
2647 #line $LINENO "configure"
2648 /* confdefs.h.  */
2649 _ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h.  */
2653 #include <stdlib.h>
2654 $ac_declaration
2655 int
2656 main ()
2657 {
2658 exit (42);
2659   ;
2660   return 0;
2661 }
2662 _ACEOF
2663 rm -f conftest.$ac_objext
2664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2665   (eval $ac_compile) 2>&5
2666   ac_status=$?
2667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668   (exit $ac_status); } &&
2669          { ac_try='test -s conftest.$ac_objext'
2670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671   (eval $ac_try) 2>&5
2672   ac_status=$?
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); }; }; then
2675   :
2676 else
2677   echo "$as_me: failed program was:" >&5
2678 sed 's/^/| /' conftest.$ac_ext >&5
2679
2680 continue
2681 fi
2682 rm -f conftest.$ac_objext conftest.$ac_ext
2683   cat >conftest.$ac_ext <<_ACEOF
2684 #line $LINENO "configure"
2685 /* confdefs.h.  */
2686 _ACEOF
2687 cat confdefs.h >>conftest.$ac_ext
2688 cat >>conftest.$ac_ext <<_ACEOF
2689 /* end confdefs.h.  */
2690 $ac_declaration
2691 int
2692 main ()
2693 {
2694 exit (42);
2695   ;
2696   return 0;
2697 }
2698 _ACEOF
2699 rm -f conftest.$ac_objext
2700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2701   (eval $ac_compile) 2>&5
2702   ac_status=$?
2703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704   (exit $ac_status); } &&
2705          { ac_try='test -s conftest.$ac_objext'
2706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707   (eval $ac_try) 2>&5
2708   ac_status=$?
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); }; }; then
2711   break
2712 else
2713   echo "$as_me: failed program was:" >&5
2714 sed 's/^/| /' conftest.$ac_ext >&5
2715
2716 fi
2717 rm -f conftest.$ac_objext conftest.$ac_ext
2718 done
2719 rm -f conftest*
2720 if test -n "$ac_declaration"; then
2721   echo '#ifdef __cplusplus' >>confdefs.h
2722   echo $ac_declaration      >>confdefs.h
2723   echo '#endif'             >>confdefs.h
2724 fi
2725
2726 ac_ext=c
2727 ac_cpp='$CPP $CPPFLAGS'
2728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2731
2732 ac_ext=c
2733 ac_cpp='$CPP $CPPFLAGS'
2734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2737 if test -n "$ac_tool_prefix"; then
2738   for ac_prog in gcc
2739   do
2740     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2741 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2742 echo "$as_me:$LINENO: checking for $ac_word" >&5
2743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2744 if test "${ac_cv_prog_CC+set}" = set; then
2745   echo $ECHO_N "(cached) $ECHO_C" >&6
2746 else
2747   if test -n "$CC"; then
2748   ac_cv_prog_CC="$CC" # Let the user override the test.
2749 else
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 for as_dir in $PATH
2752 do
2753   IFS=$as_save_IFS
2754   test -z "$as_dir" && as_dir=.
2755   for ac_exec_ext in '' $ac_executable_extensions; do
2756   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2757     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2759     break 2
2760   fi
2761 done
2762 done
2763
2764 fi
2765 fi
2766 CC=$ac_cv_prog_CC
2767 if test -n "$CC"; then
2768   echo "$as_me:$LINENO: result: $CC" >&5
2769 echo "${ECHO_T}$CC" >&6
2770 else
2771   echo "$as_me:$LINENO: result: no" >&5
2772 echo "${ECHO_T}no" >&6
2773 fi
2774
2775     test -n "$CC" && break
2776   done
2777 fi
2778 if test -z "$CC"; then
2779   ac_ct_CC=$CC
2780   for ac_prog in gcc
2781 do
2782   # Extract the first word of "$ac_prog", so it can be a program name with args.
2783 set dummy $ac_prog; ac_word=$2
2784 echo "$as_me:$LINENO: checking for $ac_word" >&5
2785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2786 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2787   echo $ECHO_N "(cached) $ECHO_C" >&6
2788 else
2789   if test -n "$ac_ct_CC"; then
2790   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2791 else
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2794 do
2795   IFS=$as_save_IFS
2796   test -z "$as_dir" && as_dir=.
2797   for ac_exec_ext in '' $ac_executable_extensions; do
2798   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2799     ac_cv_prog_ac_ct_CC="$ac_prog"
2800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801     break 2
2802   fi
2803 done
2804 done
2805
2806 fi
2807 fi
2808 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2809 if test -n "$ac_ct_CC"; then
2810   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2811 echo "${ECHO_T}$ac_ct_CC" >&6
2812 else
2813   echo "$as_me:$LINENO: result: no" >&5
2814 echo "${ECHO_T}no" >&6
2815 fi
2816
2817   test -n "$ac_ct_CC" && break
2818 done
2819
2820   CC=$ac_ct_CC
2821 fi
2822
2823
2824 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2825 See \`config.log' for more details." >&5
2826 echo "$as_me: error: no acceptable C compiler found in \$PATH
2827 See \`config.log' for more details." >&2;}
2828    { (exit 1); exit 1; }; }
2829
2830 # Provide some information about the compiler.
2831 echo "$as_me:$LINENO:" \
2832      "checking for C compiler version" >&5
2833 ac_compiler=`set X $ac_compile; echo $2`
2834 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2835   (eval $ac_compiler --version </dev/null >&5) 2>&5
2836   ac_status=$?
2837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838   (exit $ac_status); }
2839 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2840   (eval $ac_compiler -v </dev/null >&5) 2>&5
2841   ac_status=$?
2842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843   (exit $ac_status); }
2844 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2845   (eval $ac_compiler -V </dev/null >&5) 2>&5
2846   ac_status=$?
2847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848   (exit $ac_status); }
2849
2850 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2851 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2852 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2853   echo $ECHO_N "(cached) $ECHO_C" >&6
2854 else
2855   cat >conftest.$ac_ext <<_ACEOF
2856 #line $LINENO "configure"
2857 /* confdefs.h.  */
2858 _ACEOF
2859 cat confdefs.h >>conftest.$ac_ext
2860 cat >>conftest.$ac_ext <<_ACEOF
2861 /* end confdefs.h.  */
2862
2863 int
2864 main ()
2865 {
2866 #ifndef __GNUC__
2867        choke me
2868 #endif
2869
2870   ;
2871   return 0;
2872 }
2873 _ACEOF
2874 rm -f conftest.$ac_objext
2875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2876   (eval $ac_compile) 2>&5
2877   ac_status=$?
2878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879   (exit $ac_status); } &&
2880          { ac_try='test -s conftest.$ac_objext'
2881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2882   (eval $ac_try) 2>&5
2883   ac_status=$?
2884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885   (exit $ac_status); }; }; then
2886   ac_compiler_gnu=yes
2887 else
2888   echo "$as_me: failed program was:" >&5
2889 sed 's/^/| /' conftest.$ac_ext >&5
2890
2891 ac_compiler_gnu=no
2892 fi
2893 rm -f conftest.$ac_objext conftest.$ac_ext
2894 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2895
2896 fi
2897 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2898 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2899 GCC=`test $ac_compiler_gnu = yes && echo yes`
2900 ac_test_CFLAGS=${CFLAGS+set}
2901 ac_save_CFLAGS=$CFLAGS
2902 CFLAGS="-g"
2903 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2904 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2905 if test "${ac_cv_prog_cc_g+set}" = set; then
2906   echo $ECHO_N "(cached) $ECHO_C" >&6
2907 else
2908   cat >conftest.$ac_ext <<_ACEOF
2909 #line $LINENO "configure"
2910 /* confdefs.h.  */
2911 _ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h.  */
2915
2916 int
2917 main ()
2918 {
2919
2920   ;
2921   return 0;
2922 }
2923 _ACEOF
2924 rm -f conftest.$ac_objext
2925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2926   (eval $ac_compile) 2>&5
2927   ac_status=$?
2928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929   (exit $ac_status); } &&
2930          { ac_try='test -s conftest.$ac_objext'
2931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932   (eval $ac_try) 2>&5
2933   ac_status=$?
2934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935   (exit $ac_status); }; }; then
2936   ac_cv_prog_cc_g=yes
2937 else
2938   echo "$as_me: failed program was:" >&5
2939 sed 's/^/| /' conftest.$ac_ext >&5
2940
2941 ac_cv_prog_cc_g=no
2942 fi
2943 rm -f conftest.$ac_objext conftest.$ac_ext
2944 fi
2945 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2946 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2947 if test "$ac_test_CFLAGS" = set; then
2948   CFLAGS=$ac_save_CFLAGS
2949 elif test $ac_cv_prog_cc_g = yes; then
2950   if test "$GCC" = yes; then
2951     CFLAGS="-g -O2"
2952   else
2953     CFLAGS="-g"
2954   fi
2955 else
2956   if test "$GCC" = yes; then
2957     CFLAGS="-O2"
2958   else
2959     CFLAGS=
2960   fi
2961 fi
2962 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2963 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2964 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2965   echo $ECHO_N "(cached) $ECHO_C" >&6
2966 else
2967   ac_cv_prog_cc_stdc=no
2968 ac_save_CC=$CC
2969 cat >conftest.$ac_ext <<_ACEOF
2970 #line $LINENO "configure"
2971 /* confdefs.h.  */
2972 _ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h.  */
2976 #include <stdarg.h>
2977 #include <stdio.h>
2978 #include <sys/types.h>
2979 #include <sys/stat.h>
2980 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2981 struct buf { int x; };
2982 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2983 static char *e (p, i)
2984      char **p;
2985      int i;
2986 {
2987   return p[i];
2988 }
2989 static char *f (char * (*g) (char **, int), char **p, ...)
2990 {
2991   char *s;
2992   va_list v;
2993   va_start (v,p);
2994   s = g (p, va_arg (v,int));
2995   va_end (v);
2996   return s;
2997 }
2998 int test (int i, double x);
2999 struct s1 {int (*f) (int a);};
3000 struct s2 {int (*f) (double a);};
3001 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3002 int argc;
3003 char **argv;
3004 int
3005 main ()
3006 {
3007 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3008   ;
3009   return 0;
3010 }
3011 _ACEOF
3012 # Don't try gcc -ansi; that turns off useful extensions and
3013 # breaks some systems' header files.
3014 # AIX                   -qlanglvl=ansi
3015 # Ultrix and OSF/1      -std1
3016 # HP-UX 10.20 and later -Ae
3017 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3018 # SVR4                  -Xc -D__EXTENSIONS__
3019 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3020 do
3021   CC="$ac_save_CC $ac_arg"
3022   rm -f conftest.$ac_objext
3023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3024   (eval $ac_compile) 2>&5
3025   ac_status=$?
3026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027   (exit $ac_status); } &&
3028          { ac_try='test -s conftest.$ac_objext'
3029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030   (eval $ac_try) 2>&5
3031   ac_status=$?
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); }; }; then
3034   ac_cv_prog_cc_stdc=$ac_arg
3035 break
3036 else
3037   echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3039
3040 fi
3041 rm -f conftest.$ac_objext
3042 done
3043 rm -f conftest.$ac_ext conftest.$ac_objext
3044 CC=$ac_save_CC
3045
3046 fi
3047
3048 case "x$ac_cv_prog_cc_stdc" in
3049   x|xno)
3050     echo "$as_me:$LINENO: result: none needed" >&5
3051 echo "${ECHO_T}none needed" >&6 ;;
3052   *)
3053     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3054 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3055     CC="$CC $ac_cv_prog_cc_stdc" ;;
3056 esac
3057
3058 # Some people use a C++ compiler to compile C.  Since we use `exit',
3059 # in C++ we need to declare it.  In case someone uses the same compiler
3060 # for both compiling C and C++ we need to have the C++ compiler decide
3061 # the declaration of exit, since it's the most demanding environment.
3062 cat >conftest.$ac_ext <<_ACEOF
3063 #ifndef __cplusplus
3064   choke me
3065 #endif
3066 _ACEOF
3067 rm -f conftest.$ac_objext
3068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3069   (eval $ac_compile) 2>&5
3070   ac_status=$?
3071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072   (exit $ac_status); } &&
3073          { ac_try='test -s conftest.$ac_objext'
3074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3075   (eval $ac_try) 2>&5
3076   ac_status=$?
3077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078   (exit $ac_status); }; }; then
3079   for ac_declaration in \
3080    ''\
3081    '#include <stdlib.h>' \
3082    'extern "C" void std::exit (int) throw (); using std::exit;' \
3083    'extern "C" void std::exit (int); using std::exit;' \
3084    'extern "C" void exit (int) throw ();' \
3085    'extern "C" void exit (int);' \
3086    'void exit (int);'
3087 do
3088   cat >conftest.$ac_ext <<_ACEOF
3089 #line $LINENO "configure"
3090 /* confdefs.h.  */
3091 _ACEOF
3092 cat confdefs.h >>conftest.$ac_ext
3093 cat >>conftest.$ac_ext <<_ACEOF
3094 /* end confdefs.h.  */
3095 #include <stdlib.h>
3096 $ac_declaration
3097 int
3098 main ()
3099 {
3100 exit (42);
3101   ;
3102   return 0;
3103 }
3104 _ACEOF
3105 rm -f conftest.$ac_objext
3106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3107   (eval $ac_compile) 2>&5
3108   ac_status=$?
3109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110   (exit $ac_status); } &&
3111          { ac_try='test -s conftest.$ac_objext'
3112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3113   (eval $ac_try) 2>&5
3114   ac_status=$?
3115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116   (exit $ac_status); }; }; then
3117   :
3118 else
3119   echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3121
3122 continue
3123 fi
3124 rm -f conftest.$ac_objext conftest.$ac_ext
3125   cat >conftest.$ac_ext <<_ACEOF
3126 #line $LINENO "configure"
3127 /* confdefs.h.  */
3128 _ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h.  */
3132 $ac_declaration
3133 int
3134 main ()
3135 {
3136 exit (42);
3137   ;
3138   return 0;
3139 }
3140 _ACEOF
3141 rm -f conftest.$ac_objext
3142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3143   (eval $ac_compile) 2>&5
3144   ac_status=$?
3145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146   (exit $ac_status); } &&
3147          { ac_try='test -s conftest.$ac_objext'
3148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3149   (eval $ac_try) 2>&5
3150   ac_status=$?
3151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152   (exit $ac_status); }; }; then
3153   break
3154 else
3155   echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3157
3158 fi
3159 rm -f conftest.$ac_objext conftest.$ac_ext
3160 done
3161 rm -f conftest*
3162 if test -n "$ac_declaration"; then
3163   echo '#ifdef __cplusplus' >>confdefs.h
3164   echo $ac_declaration      >>confdefs.h
3165   echo '#endif'             >>confdefs.h
3166 fi
3167
3168 else
3169   echo "$as_me: failed program was:" >&5
3170 sed 's/^/| /' conftest.$ac_ext >&5
3171
3172 fi
3173 rm -f conftest.$ac_objext conftest.$ac_ext
3174 ac_ext=c
3175 ac_cpp='$CPP $CPPFLAGS'
3176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3179
3180 ac_ext=c
3181 ac_cpp='$CPP $CPPFLAGS'
3182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3185 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3186 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3187 # On Suns, sometimes $CPP names a directory.
3188 if test -n "$CPP" && test -d "$CPP"; then
3189   CPP=
3190 fi
3191 if test -z "$CPP"; then
3192   if test "${ac_cv_prog_CPP+set}" = set; then
3193   echo $ECHO_N "(cached) $ECHO_C" >&6
3194 else
3195       # Double quotes because CPP needs to be expanded
3196     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3197     do
3198       ac_preproc_ok=false
3199 for ac_c_preproc_warn_flag in '' yes
3200 do
3201   # Use a header file that comes with gcc, so configuring glibc
3202   # with a fresh cross-compiler works.
3203   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3204   # <limits.h> exists even on freestanding compilers.
3205   # On the NeXT, cc -E runs the code through the compiler's parser,
3206   # not just through cpp. "Syntax error" is here to catch this case.
3207   cat >conftest.$ac_ext <<_ACEOF
3208 #line $LINENO "configure"
3209 /* confdefs.h.  */
3210 _ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h.  */
3214 #ifdef __STDC__
3215 # include <limits.h>
3216 #else
3217 # include <assert.h>
3218 #endif
3219                      Syntax error
3220 _ACEOF
3221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3222   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3223   ac_status=$?
3224   grep -v '^ *+' conftest.er1 >conftest.err
3225   rm -f conftest.er1
3226   cat conftest.err >&5
3227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228   (exit $ac_status); } >/dev/null; then
3229   if test -s conftest.err; then
3230     ac_cpp_err=$ac_c_preproc_warn_flag
3231   else
3232     ac_cpp_err=
3233   fi
3234 else
3235   ac_cpp_err=yes
3236 fi
3237 if test -z "$ac_cpp_err"; then
3238   :
3239 else
3240   echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3242
3243   # Broken: fails on valid input.
3244 continue
3245 fi
3246 rm -f conftest.err conftest.$ac_ext
3247
3248   # OK, works on sane cases.  Now check whether non-existent headers
3249   # can be detected and how.
3250   cat >conftest.$ac_ext <<_ACEOF
3251 #line $LINENO "configure"
3252 /* confdefs.h.  */
3253 _ACEOF
3254 cat confdefs.h >>conftest.$ac_ext
3255 cat >>conftest.$ac_ext <<_ACEOF
3256 /* end confdefs.h.  */
3257 #include <ac_nonexistent.h>
3258 _ACEOF
3259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3260   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3261   ac_status=$?
3262   grep -v '^ *+' conftest.er1 >conftest.err
3263   rm -f conftest.er1
3264   cat conftest.err >&5
3265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266   (exit $ac_status); } >/dev/null; then
3267   if test -s conftest.err; then
3268     ac_cpp_err=$ac_c_preproc_warn_flag
3269   else
3270     ac_cpp_err=
3271   fi
3272 else
3273   ac_cpp_err=yes
3274 fi
3275 if test -z "$ac_cpp_err"; then
3276   # Broken: success on invalid input.
3277 continue
3278 else
3279   echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3281
3282   # Passes both tests.
3283 ac_preproc_ok=:
3284 break
3285 fi
3286 rm -f conftest.err conftest.$ac_ext
3287
3288 done
3289 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3290 rm -f conftest.err conftest.$ac_ext
3291 if $ac_preproc_ok; then
3292   break
3293 fi
3294
3295     done
3296     ac_cv_prog_CPP=$CPP
3297
3298 fi
3299   CPP=$ac_cv_prog_CPP
3300 else
3301   ac_cv_prog_CPP=$CPP
3302 fi
3303 echo "$as_me:$LINENO: result: $CPP" >&5
3304 echo "${ECHO_T}$CPP" >&6
3305 ac_preproc_ok=false
3306 for ac_c_preproc_warn_flag in '' yes
3307 do
3308   # Use a header file that comes with gcc, so configuring glibc
3309   # with a fresh cross-compiler works.
3310   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3311   # <limits.h> exists even on freestanding compilers.
3312   # On the NeXT, cc -E runs the code through the compiler's parser,
3313   # not just through cpp. "Syntax error" is here to catch this case.
3314   cat >conftest.$ac_ext <<_ACEOF
3315 #line $LINENO "configure"
3316 /* confdefs.h.  */
3317 _ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h.  */
3321 #ifdef __STDC__
3322 # include <limits.h>
3323 #else
3324 # include <assert.h>
3325 #endif
3326                      Syntax error
3327 _ACEOF
3328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3329   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3330   ac_status=$?
3331   grep -v '^ *+' conftest.er1 >conftest.err
3332   rm -f conftest.er1
3333   cat conftest.err >&5
3334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335   (exit $ac_status); } >/dev/null; then
3336   if test -s conftest.err; then
3337     ac_cpp_err=$ac_c_preproc_warn_flag
3338   else
3339     ac_cpp_err=
3340   fi
3341 else
3342   ac_cpp_err=yes
3343 fi
3344 if test -z "$ac_cpp_err"; then
3345   :
3346 else
3347   echo "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3349
3350   # Broken: fails on valid input.
3351 continue
3352 fi
3353 rm -f conftest.err conftest.$ac_ext
3354
3355   # OK, works on sane cases.  Now check whether non-existent headers
3356   # can be detected and how.
3357   cat >conftest.$ac_ext <<_ACEOF
3358 #line $LINENO "configure"
3359 /* confdefs.h.  */
3360 _ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h.  */
3364 #include <ac_nonexistent.h>
3365 _ACEOF
3366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3367   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3368   ac_status=$?
3369   grep -v '^ *+' conftest.er1 >conftest.err
3370   rm -f conftest.er1
3371   cat conftest.err >&5
3372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373   (exit $ac_status); } >/dev/null; then
3374   if test -s conftest.err; then
3375     ac_cpp_err=$ac_c_preproc_warn_flag
3376   else
3377     ac_cpp_err=
3378   fi
3379 else
3380   ac_cpp_err=yes
3381 fi
3382 if test -z "$ac_cpp_err"; then
3383   # Broken: success on invalid input.
3384 continue
3385 else
3386   echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3388
3389   # Passes both tests.
3390 ac_preproc_ok=:
3391 break
3392 fi
3393 rm -f conftest.err conftest.$ac_ext
3394
3395 done
3396 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3397 rm -f conftest.err conftest.$ac_ext
3398 if $ac_preproc_ok; then
3399   :
3400 else
3401   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3402 See \`config.log' for more details." >&5
3403 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3404 See \`config.log' for more details." >&2;}
3405    { (exit 1); exit 1; }; }
3406 fi
3407
3408 ac_ext=c
3409 ac_cpp='$CPP $CPPFLAGS'
3410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3413
3414
3415 if test "$GCC" != "yes"
3416 then
3417         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3418 echo "$as_me: error: gcc required but not found" >&2;}
3419    { (exit 1); exit 1; }; }
3420 fi
3421
3422 if test "$GXX" != "yes"
3423 then
3424         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3425 echo "$as_me: error: g++ required but not found" >&2;}
3426    { (exit 1); exit 1; }; }
3427 fi
3428
3429 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3430 if test "$gccmajor" -lt "3"
3431 then
3432         { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3433 echo "$as_me: error: gcc 3.x required" >&2;}
3434    { (exit 1); exit 1; }; }
3435 fi
3436
3437  echo "$as_me:$LINENO: checking for GNU make" >&5
3438 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3439 if test "${_cv_gnu_make_command+set}" = set; then
3440   echo $ECHO_N "(cached) $ECHO_C" >&6
3441 else
3442   _cv_gnu_make_command='' ;
3443                 for a in "$MAKE" make gmake gnumake ; do
3444                         if test -z "$a" ; then continue ; fi ;
3445                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3446                                 _cv_gnu_make_command=$a ;
3447                                 break;
3448                         fi
3449                 done ;
3450
3451 fi
3452 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3453 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3454         if test  "x$_cv_gnu_make_command" != "x"  ; then
3455                 ifGNUmake='' ;
3456         else
3457                 ifGNUmake='#' ;
3458                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3459 echo "${ECHO_T}\"Not found\"" >&6;
3460         fi
3461
3462
3463 if test -z "$_cv_gnu_make_command"
3464 then
3465         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3466 echo "$as_me: error: GNU Make required but not found" >&2;}
3467    { (exit 1); exit 1; }; }
3468 fi
3469
3470
3471 echo "$as_me:$LINENO: checking " >&5
3472 echo $ECHO_N "checking ... $ECHO_C" >&6
3473 if test "${ac_cv_has_flex+set}" = set; then
3474   echo $ECHO_N "(cached) $ECHO_C" >&6
3475 else
3476   for ac_prog in flex lex
3477 do
3478   # Extract the first word of "$ac_prog", so it can be a program name with args.
3479 set dummy $ac_prog; ac_word=$2
3480 echo "$as_me:$LINENO: checking for $ac_word" >&5
3481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3482 if test "${ac_cv_prog_LEX+set}" = set; then
3483   echo $ECHO_N "(cached) $ECHO_C" >&6
3484 else
3485   if test -n "$LEX"; then
3486   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3487 else
3488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489 for as_dir in $PATH
3490 do
3491   IFS=$as_save_IFS
3492   test -z "$as_dir" && as_dir=.
3493   for ac_exec_ext in '' $ac_executable_extensions; do
3494   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3495     ac_cv_prog_LEX="$ac_prog"
3496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3497     break 2
3498   fi
3499 done
3500 done
3501
3502 fi
3503 fi
3504 LEX=$ac_cv_prog_LEX
3505 if test -n "$LEX"; then
3506   echo "$as_me:$LINENO: result: $LEX" >&5
3507 echo "${ECHO_T}$LEX" >&6
3508 else
3509   echo "$as_me:$LINENO: result: no" >&5
3510 echo "${ECHO_T}no" >&6
3511 fi
3512
3513   test -n "$LEX" && break
3514 done
3515 test -n "$LEX" || LEX=":"
3516
3517 if test -z "$LEXLIB"
3518 then
3519   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3520 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3521 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3522   echo $ECHO_N "(cached) $ECHO_C" >&6
3523 else
3524   ac_check_lib_save_LIBS=$LIBS
3525 LIBS="-lfl  $LIBS"
3526 cat >conftest.$ac_ext <<_ACEOF
3527 #line $LINENO "configure"
3528 /* confdefs.h.  */
3529 _ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h.  */
3533
3534 /* Override any gcc2 internal prototype to avoid an error.  */
3535 #ifdef __cplusplus
3536 extern "C"
3537 #endif
3538 /* We use char because int might match the return type of a gcc2
3539    builtin and then its argument prototype would still apply.  */
3540 char yywrap ();
3541 int
3542 main ()
3543 {
3544 yywrap ();
3545   ;
3546   return 0;
3547 }
3548 _ACEOF
3549 rm -f conftest.$ac_objext conftest$ac_exeext
3550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3551   (eval $ac_link) 2>&5
3552   ac_status=$?
3553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554   (exit $ac_status); } &&
3555          { ac_try='test -s conftest$ac_exeext'
3556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557   (eval $ac_try) 2>&5
3558   ac_status=$?
3559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560   (exit $ac_status); }; }; then
3561   ac_cv_lib_fl_yywrap=yes
3562 else
3563   echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3565
3566 ac_cv_lib_fl_yywrap=no
3567 fi
3568 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3569 LIBS=$ac_check_lib_save_LIBS
3570 fi
3571 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3572 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3573 if test $ac_cv_lib_fl_yywrap = yes; then
3574   LEXLIB="-lfl"
3575 else
3576   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3577 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3578 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3579   echo $ECHO_N "(cached) $ECHO_C" >&6
3580 else
3581   ac_check_lib_save_LIBS=$LIBS
3582 LIBS="-ll  $LIBS"
3583 cat >conftest.$ac_ext <<_ACEOF
3584 #line $LINENO "configure"
3585 /* confdefs.h.  */
3586 _ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h.  */
3590
3591 /* Override any gcc2 internal prototype to avoid an error.  */
3592 #ifdef __cplusplus
3593 extern "C"
3594 #endif
3595 /* We use char because int might match the return type of a gcc2
3596    builtin and then its argument prototype would still apply.  */
3597 char yywrap ();
3598 int
3599 main ()
3600 {
3601 yywrap ();
3602   ;
3603   return 0;
3604 }
3605 _ACEOF
3606 rm -f conftest.$ac_objext conftest$ac_exeext
3607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3608   (eval $ac_link) 2>&5
3609   ac_status=$?
3610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611   (exit $ac_status); } &&
3612          { ac_try='test -s conftest$ac_exeext'
3613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614   (eval $ac_try) 2>&5
3615   ac_status=$?
3616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617   (exit $ac_status); }; }; then
3618   ac_cv_lib_l_yywrap=yes
3619 else
3620   echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3622
3623 ac_cv_lib_l_yywrap=no
3624 fi
3625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3626 LIBS=$ac_check_lib_save_LIBS
3627 fi
3628 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3629 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3630 if test $ac_cv_lib_l_yywrap = yes; then
3631   LEXLIB="-ll"
3632 fi
3633
3634 fi
3635
3636 fi
3637
3638 if test "x$LEX" != "x:"; then
3639   echo "$as_me:$LINENO: checking lex output file root" >&5
3640 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3641 if test "${ac_cv_prog_lex_root+set}" = set; then
3642   echo $ECHO_N "(cached) $ECHO_C" >&6
3643 else
3644   # The minimal lex program is just a single line: %%.  But some broken lexes
3645 # (Solaris, I think it was) want two %% lines, so accommodate them.
3646 cat >conftest.l <<_ACEOF
3647 %%
3648 %%
3649 _ACEOF
3650 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3651   (eval $LEX conftest.l) 2>&5
3652   ac_status=$?
3653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654   (exit $ac_status); }
3655 if test -f lex.yy.c; then
3656   ac_cv_prog_lex_root=lex.yy
3657 elif test -f lexyy.c; then
3658   ac_cv_prog_lex_root=lexyy
3659 else
3660   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3661 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3662    { (exit 1); exit 1; }; }
3663 fi
3664 fi
3665 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3666 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3667 rm -f conftest.l
3668 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3669
3670 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3671 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3672 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3673   echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675   # POSIX says lex can declare yytext either as a pointer or an array; the
3676 # default is implementation-dependent. Figure out which it is, since
3677 # not all implementations provide the %pointer and %array declarations.
3678 ac_cv_prog_lex_yytext_pointer=no
3679 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3680 ac_save_LIBS=$LIBS
3681 LIBS="$LIBS $LEXLIB"
3682 cat >conftest.$ac_ext <<_ACEOF
3683 `cat $LEX_OUTPUT_ROOT.c`
3684 _ACEOF
3685 rm -f conftest.$ac_objext conftest$ac_exeext
3686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3687   (eval $ac_link) 2>&5
3688   ac_status=$?
3689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690   (exit $ac_status); } &&
3691          { ac_try='test -s conftest$ac_exeext'
3692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693   (eval $ac_try) 2>&5
3694   ac_status=$?
3695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696   (exit $ac_status); }; }; then
3697   ac_cv_prog_lex_yytext_pointer=yes
3698 else
3699   echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3701
3702 fi
3703 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3704 LIBS=$ac_save_LIBS
3705 rm -f "${LEX_OUTPUT_ROOT}.c"
3706
3707 fi
3708 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3709 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3710 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3711
3712 cat >>confdefs.h <<\_ACEOF
3713 #define YYTEXT_POINTER 1
3714 _ACEOF
3715
3716 fi
3717
3718 fi
3719
3720 fi
3721 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3722 echo "${ECHO_T}$ac_cv_has_flex" >&6
3723 if test "$LEX" != "flex"; then
3724   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3725 echo "$as_me: error: flex not found but required" >&2;}
3726    { (exit 1); exit 1; }; }
3727 fi
3728
3729 echo "$as_me:$LINENO: checking " >&5
3730 echo $ECHO_N "checking ... $ECHO_C" >&6
3731 if test "${ac_cv_has_bison+set}" = set; then
3732   echo $ECHO_N "(cached) $ECHO_C" >&6
3733 else
3734   for ac_prog in 'bison -y' byacc
3735 do
3736   # Extract the first word of "$ac_prog", so it can be a program name with args.
3737 set dummy $ac_prog; ac_word=$2
3738 echo "$as_me:$LINENO: checking for $ac_word" >&5
3739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3740 if test "${ac_cv_prog_YACC+set}" = set; then
3741   echo $ECHO_N "(cached) $ECHO_C" >&6
3742 else
3743   if test -n "$YACC"; then
3744   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3745 else
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH
3748 do
3749   IFS=$as_save_IFS
3750   test -z "$as_dir" && as_dir=.
3751   for ac_exec_ext in '' $ac_executable_extensions; do
3752   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3753     ac_cv_prog_YACC="$ac_prog"
3754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3755     break 2
3756   fi
3757 done
3758 done
3759
3760 fi
3761 fi
3762 YACC=$ac_cv_prog_YACC
3763 if test -n "$YACC"; then
3764   echo "$as_me:$LINENO: result: $YACC" >&5
3765 echo "${ECHO_T}$YACC" >&6
3766 else
3767   echo "$as_me:$LINENO: result: no" >&5
3768 echo "${ECHO_T}no" >&6
3769 fi
3770
3771   test -n "$YACC" && break
3772 done
3773 test -n "$YACC" || YACC="yacc"
3774
3775
3776 fi
3777 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3778 echo "${ECHO_T}$ac_cv_has_bison" >&6
3779 if test "$YACC" != "bison -y"; then
3780   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3781 echo "$as_me: error: bison not found but required" >&2;}
3782    { (exit 1); exit 1; }; }
3783 else
3784   YACC=bison
3785
3786 fi
3787
3788
3789 # Check whether --enable-shared or --disable-shared was given.
3790 if test "${enable_shared+set}" = set; then
3791   enableval="$enable_shared"
3792   p=${PACKAGE-default}
3793     case $enableval in
3794     yes) enable_shared=yes ;;
3795     no) enable_shared=no ;;
3796     *)
3797       enable_shared=no
3798       # Look at the argument we got.  We use all the common list separators.
3799       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3800       for pkg in $enableval; do
3801         IFS="$lt_save_ifs"
3802         if test "X$pkg" = "X$p"; then
3803           enable_shared=yes
3804         fi
3805       done
3806       IFS="$lt_save_ifs"
3807       ;;
3808     esac
3809 else
3810   enable_shared=yes
3811 fi;
3812
3813 # Check whether --enable-static or --disable-static was given.
3814 if test "${enable_static+set}" = set; then
3815   enableval="$enable_static"
3816   p=${PACKAGE-default}
3817     case $enableval in
3818     yes) enable_static=yes ;;
3819     no) enable_static=no ;;
3820     *)
3821      enable_static=no
3822       # Look at the argument we got.  We use all the common list separators.
3823       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3824       for pkg in $enableval; do
3825         IFS="$lt_save_ifs"
3826         if test "X$pkg" = "X$p"; then
3827           enable_static=yes
3828         fi
3829       done
3830       IFS="$lt_save_ifs"
3831       ;;
3832     esac
3833 else
3834   enable_static=yes
3835 fi;
3836
3837 # Check whether --enable-fast-install or --disable-fast-install was given.
3838 if test "${enable_fast_install+set}" = set; then
3839   enableval="$enable_fast_install"
3840   p=${PACKAGE-default}
3841     case $enableval in
3842     yes) enable_fast_install=yes ;;
3843     no) enable_fast_install=no ;;
3844     *)
3845       enable_fast_install=no
3846       # Look at the argument we got.  We use all the common list separators.
3847       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3848       for pkg in $enableval; do
3849         IFS="$lt_save_ifs"
3850         if test "X$pkg" = "X$p"; then
3851           enable_fast_install=yes
3852         fi
3853       done
3854       IFS="$lt_save_ifs"
3855       ;;
3856     esac
3857 else
3858   enable_fast_install=yes
3859 fi;
3860
3861 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3862 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3863 if test "${lt_cv_path_SED+set}" = set; then
3864   echo $ECHO_N "(cached) $ECHO_C" >&6
3865 else
3866   # Loop through the user's path and test for sed and gsed.
3867 # Then use that list of sed's as ones to test for truncation.
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 for as_dir in $PATH
3870 do
3871   IFS=$as_save_IFS
3872   test -z "$as_dir" && as_dir=.
3873   for lt_ac_prog in sed gsed; do
3874     for ac_exec_ext in '' $ac_executable_extensions; do
3875       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3876         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3877       fi
3878     done
3879   done
3880 done
3881 lt_ac_max=0
3882 lt_ac_count=0
3883 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3884 # along with /bin/sed that truncates output.
3885 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3886   test ! -f $lt_ac_sed && break
3887   cat /dev/null > conftest.in
3888   lt_ac_count=0
3889   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3890   # Check for GNU sed and select it if it is found.
3891   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3892     lt_cv_path_SED=$lt_ac_sed
3893     break
3894   fi
3895   while true; do
3896     cat conftest.in conftest.in >conftest.tmp
3897     mv conftest.tmp conftest.in
3898     cp conftest.in conftest.nl
3899     echo >>conftest.nl
3900     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3901     cmp -s conftest.out conftest.nl || break
3902     # 10000 chars as input seems more than enough
3903     test $lt_ac_count -gt 10 && break
3904     lt_ac_count=`expr $lt_ac_count + 1`
3905     if test $lt_ac_count -gt $lt_ac_max; then
3906       lt_ac_max=$lt_ac_count
3907       lt_cv_path_SED=$lt_ac_sed
3908     fi
3909   done
3910 done
3911 SED=$lt_cv_path_SED
3912
3913 fi
3914
3915 echo "$as_me:$LINENO: result: $SED" >&5
3916 echo "${ECHO_T}$SED" >&6
3917
3918 echo "$as_me:$LINENO: checking for egrep" >&5
3919 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3920 if test "${ac_cv_prog_egrep+set}" = set; then
3921   echo $ECHO_N "(cached) $ECHO_C" >&6
3922 else
3923   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3924     then ac_cv_prog_egrep='grep -E'
3925     else ac_cv_prog_egrep='egrep'
3926     fi
3927 fi
3928 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3929 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3930  EGREP=$ac_cv_prog_egrep
3931
3932
3933
3934 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3935 if test "${with_gnu_ld+set}" = set; then
3936   withval="$with_gnu_ld"
3937   test "$withval" = no || with_gnu_ld=yes
3938 else
3939   with_gnu_ld=no
3940 fi;
3941 ac_prog=ld
3942 if test "$GCC" = yes; then
3943   # Check if gcc -print-prog-name=ld gives a path.
3944   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3945 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3946   case $host in
3947   *-*-mingw*)
3948     # gcc leaves a trailing carriage return which upsets mingw
3949     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3950   *)
3951     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3952   esac
3953   case $ac_prog in
3954     # Accept absolute paths.
3955     [\\/]* | ?:[\\/]*)
3956       re_direlt='/[^/][^/]*/\.\./'
3957       # Canonicalize the path of ld
3958       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3959       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3960         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3961       done
3962       test -z "$LD" && LD="$ac_prog"
3963       ;;
3964   "")
3965     # If it fails, then pretend we aren't using GCC.
3966     ac_prog=ld
3967     ;;
3968   *)
3969     # If it is relative, then search for the first ld in PATH.
3970     with_gnu_ld=unknown
3971     ;;
3972   esac
3973 elif test "$with_gnu_ld" = yes; then
3974   echo "$as_me:$LINENO: checking for GNU ld" >&5
3975 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3976 else
3977   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3978 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3979 fi
3980 if test "${lt_cv_path_LD+set}" = set; then
3981   echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983   if test -z "$LD"; then
3984   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3985   for ac_dir in $PATH; do
3986     IFS="$lt_save_ifs"
3987     test -z "$ac_dir" && ac_dir=.
3988     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3989       lt_cv_path_LD="$ac_dir/$ac_prog"
3990       # Check to see if the program is GNU ld.  I'd rather use --version,
3991       # but apparently some GNU ld's only accept -v.
3992       # Break only if it was the GNU/non-GNU ld that we prefer.
3993       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3994       *GNU* | *'with BFD'*)
3995         test "$with_gnu_ld" != no && break
3996         ;;
3997       *)
3998         test "$with_gnu_ld" != yes && break
3999         ;;
4000       esac
4001     fi
4002   done
4003   IFS="$lt_save_ifs"
4004 else
4005   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4006 fi
4007 fi
4008
4009 LD="$lt_cv_path_LD"
4010 if test -n "$LD"; then
4011   echo "$as_me:$LINENO: result: $LD" >&5
4012 echo "${ECHO_T}$LD" >&6
4013 else
4014   echo "$as_me:$LINENO: result: no" >&5
4015 echo "${ECHO_T}no" >&6
4016 fi
4017 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4018 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4019    { (exit 1); exit 1; }; }
4020 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4021 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4022 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4023   echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4026 case `"$LD" -v 2>&1 </dev/null` in
4027 *GNU* | *'with BFD'*)
4028   lt_cv_prog_gnu_ld=yes
4029   ;;
4030 *)
4031   lt_cv_prog_gnu_ld=no
4032   ;;
4033 esac
4034 fi
4035 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4036 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4037 with_gnu_ld=$lt_cv_prog_gnu_ld
4038
4039
4040 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4041 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4042 if test "${lt_cv_ld_reload_flag+set}" = set; then
4043   echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045   lt_cv_ld_reload_flag='-r'
4046 fi
4047 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4048 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4049 reload_flag=$lt_cv_ld_reload_flag
4050 case $reload_flag in
4051 "" | " "*) ;;
4052 *) reload_flag=" $reload_flag" ;;
4053 esac
4054 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4055
4056 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4057 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4058 if test "${lt_cv_path_NM+set}" = set; then
4059   echo $ECHO_N "(cached) $ECHO_C" >&6
4060 else
4061   if test -n "$NM"; then
4062   # Let the user override the test.
4063   lt_cv_path_NM="$NM"
4064 else
4065   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4066   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4067     IFS="$lt_save_ifs"
4068     test -z "$ac_dir" && ac_dir=.
4069     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4070     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4071       # Check to see if the nm accepts a BSD-compat flag.
4072       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4073       #   nm: unknown option "B" ignored
4074       # Tru64's nm complains that /dev/null is an invalid object file
4075       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4076       */dev/null* | *'Invalid file or object type'*)
4077         lt_cv_path_NM="$tmp_nm -B"
4078         break
4079         ;;
4080       *)
4081         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4082         */dev/null*)
4083           lt_cv_path_NM="$tmp_nm -p"
4084           break
4085           ;;
4086         *)
4087           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4088           continue # so that we can try to find one that supports BSD flags
4089           ;;
4090         esac
4091       esac
4092     fi
4093   done
4094   IFS="$lt_save_ifs"
4095   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4096 fi
4097 fi
4098 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4099 echo "${ECHO_T}$lt_cv_path_NM" >&6
4100 NM="$lt_cv_path_NM"
4101
4102 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4103 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4104 LN_S=$as_ln_s
4105 if test "$LN_S" = "ln -s"; then
4106   echo "$as_me:$LINENO: result: yes" >&5
4107 echo "${ECHO_T}yes" >&6
4108 else
4109   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4110 echo "${ECHO_T}no, using $LN_S" >&6
4111 fi
4112
4113 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4114 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4115 if test "${lt_cv_deplibs_check_method+set}" = set; then
4116   echo $ECHO_N "(cached) $ECHO_C" >&6
4117 else
4118   lt_cv_file_magic_cmd='$MAGIC_CMD'
4119 lt_cv_file_magic_test_file=
4120 lt_cv_deplibs_check_method='unknown'
4121 # Need to set the preceding variable on all platforms that support
4122 # interlibrary dependencies.
4123 # 'none' -- dependencies not supported.
4124 # `unknown' -- same as none, but documents that we really don't know.
4125 # 'pass_all' -- all dependencies passed with no checks.
4126 # 'test_compile' -- check by making test program.
4127 # 'file_magic [[regex]]' -- check by looking for files in library path
4128 # which responds to the $file_magic_cmd with a given extended regex.
4129 # If you have `file' or equivalent on your system and you're not sure
4130 # whether `pass_all' will *always* work, you probably want this one.
4131
4132 case $host_os in
4133 aix4* | aix5*)
4134   lt_cv_deplibs_check_method=pass_all
4135   ;;
4136
4137 beos*)
4138   lt_cv_deplibs_check_method=pass_all
4139   ;;
4140
4141 bsdi4*)
4142   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4143   lt_cv_file_magic_cmd='/usr/bin/file -L'
4144   lt_cv_file_magic_test_file=/shlib/libc.so
4145   ;;
4146
4147 cygwin* | mingw* | pw32*)
4148   # win32_libid is a shell function defined in ltmain.sh
4149   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4150   lt_cv_file_magic_cmd='win32_libid'
4151   ;;
4152
4153 darwin* | rhapsody*)
4154   # this will be overwritten by pass_all, but leave it in just in case
4155   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4156   lt_cv_file_magic_cmd='/usr/bin/file -L'
4157   case "$host_os" in
4158   rhapsody* | darwin1.[012])
4159     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4160     ;;
4161   *) # Darwin 1.3 on
4162     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4163     ;;
4164   esac
4165   lt_cv_deplibs_check_method=pass_all
4166   ;;
4167
4168 freebsd*)
4169   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4170     case $host_cpu in
4171     i*86 )
4172       # Not sure whether the presence of OpenBSD here was a mistake.
4173       # Let's accept both of them until this is cleared up.
4174       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4175       lt_cv_file_magic_cmd=/usr/bin/file
4176       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4177       ;;
4178     esac
4179   else
4180     lt_cv_deplibs_check_method=pass_all
4181   fi
4182   ;;
4183
4184 gnu*)
4185   lt_cv_deplibs_check_method=pass_all
4186   ;;
4187
4188 hpux10.20* | hpux11*)
4189   lt_cv_file_magic_cmd=/usr/bin/file
4190   case "$host_cpu" in
4191   ia64*)
4192     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4193     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4194     ;;
4195   hppa*64*)
4196     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]'
4197     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4198     ;;
4199   *)
4200     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4201     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4202     ;;
4203   esac
4204   ;;
4205
4206 irix5* | irix6* | nonstopux*)
4207   case $host_os in
4208   irix5* | nonstopux*)
4209     # this will be overridden with pass_all, but let us keep it just in case
4210     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4211     ;;
4212   *)
4213     case $LD in
4214     *-32|*"-32 ") libmagic=32-bit;;
4215     *-n32|*"-n32 ") libmagic=N32;;
4216     *-64|*"-64 ") libmagic=64-bit;;
4217     *) libmagic=never-match;;
4218     esac
4219     # this will be overridden with pass_all, but let us keep it just in case
4220     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4221     ;;
4222   esac
4223   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4224   lt_cv_deplibs_check_method=pass_all
4225   ;;
4226
4227 # This must be Linux ELF.
4228 linux*)
4229   case $host_cpu in
4230   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4231     lt_cv_deplibs_check_method=pass_all ;;
4232   *)
4233     # glibc up to 2.1.1 does not perform some relocations on ARM
4234     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4235   esac
4236   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4237   ;;
4238
4239 netbsd*)
4240   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4241     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4242   else
4243     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4244   fi
4245   ;;
4246
4247 newos6*)
4248   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4249   lt_cv_file_magic_cmd=/usr/bin/file
4250   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4251   ;;
4252
4253 nto-qnx)
4254   lt_cv_deplibs_check_method=unknown
4255   ;;
4256
4257 openbsd*)
4258   lt_cv_file_magic_cmd=/usr/bin/file
4259   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4260   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4261     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4262   else
4263     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4264   fi
4265   ;;
4266
4267 osf3* | osf4* | osf5*)
4268   # this will be overridden with pass_all, but let us keep it just in case
4269   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4270   lt_cv_file_magic_test_file=/shlib/libc.so
4271   lt_cv_deplibs_check_method=pass_all
4272   ;;
4273
4274 sco3.2v5*)
4275   lt_cv_deplibs_check_method=pass_all
4276   ;;
4277
4278 solaris*)
4279   lt_cv_deplibs_check_method=pass_all
4280   lt_cv_file_magic_test_file=/lib/libc.so
4281   ;;
4282
4283 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4284   case $host_vendor in
4285   motorola)
4286     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]'
4287     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4288     ;;
4289   ncr)
4290     lt_cv_deplibs_check_method=pass_all
4291     ;;
4292   sequent)
4293     lt_cv_file_magic_cmd='/bin/file'
4294     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4295     ;;
4296   sni)
4297     lt_cv_file_magic_cmd='/bin/file'
4298     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4299     lt_cv_file_magic_test_file=/lib/libc.so
4300     ;;
4301   siemens)
4302     lt_cv_deplibs_check_method=pass_all
4303     ;;
4304   esac
4305   ;;
4306
4307 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4308   lt_cv_deplibs_check_method=pass_all
4309   ;;
4310 esac
4311
4312 fi
4313 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4314 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4315 file_magic_cmd=$lt_cv_file_magic_cmd
4316 deplibs_check_method=$lt_cv_deplibs_check_method
4317 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4318
4319
4320
4321
4322 # If no C compiler was specified, use CC.
4323 LTCC=${LTCC-"$CC"}
4324
4325 # Allow CC to be a program name with arguments.
4326 compiler=$CC
4327
4328 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4329 if test "${enable_libtool_lock+set}" = set; then
4330   enableval="$enable_libtool_lock"
4331
4332 fi;
4333 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4334
4335 # Some flags need to be propagated to the compiler or linker for good
4336 # libtool support.
4337 case $host in
4338 ia64-*-hpux*)
4339   # Find out which ABI we are using.
4340   echo 'int i;' > conftest.$ac_ext
4341   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4342   (eval $ac_compile) 2>&5
4343   ac_status=$?
4344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345   (exit $ac_status); }; then
4346     case `/usr/bin/file conftest.$ac_objext` in
4347     *ELF-32*)
4348       HPUX_IA64_MODE="32"
4349       ;;
4350     *ELF-64*)
4351       HPUX_IA64_MODE="64"
4352       ;;
4353     esac
4354   fi
4355   rm -rf conftest*
4356   ;;
4357 *-*-irix6*)
4358   # Find out which ABI we are using.
4359   echo '#line 4359 "configure"' > conftest.$ac_ext
4360   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4361   (eval $ac_compile) 2>&5
4362   ac_status=$?
4363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364   (exit $ac_status); }; then
4365    if test "$lt_cv_prog_gnu_ld" = yes; then
4366     case `/usr/bin/file conftest.$ac_objext` in
4367     *32-bit*)
4368       LD="${LD-ld} -melf32bsmip"
4369       ;;
4370     *N32*)
4371       LD="${LD-ld} -melf32bmipn32"
4372       ;;
4373     *64-bit*)
4374       LD="${LD-ld} -melf64bmip"
4375       ;;
4376     esac
4377    else
4378     case `/usr/bin/file conftest.$ac_objext` in
4379     *32-bit*)
4380       LD="${LD-ld} -32"
4381       ;;
4382     *N32*)
4383       LD="${LD-ld} -n32"
4384       ;;
4385     *64-bit*)
4386       LD="${LD-ld} -64"
4387       ;;
4388     esac
4389    fi
4390   fi
4391   rm -rf conftest*
4392   ;;
4393
4394 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4395   # Find out which ABI we are using.
4396   echo 'int i;' > conftest.$ac_ext
4397   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4398   (eval $ac_compile) 2>&5
4399   ac_status=$?
4400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401   (exit $ac_status); }; then
4402     case "`/usr/bin/file conftest.o`" in
4403     *32-bit*)
4404       case $host in
4405         x86_64-*linux*)
4406           LD="${LD-ld} -m elf_i386"
4407           ;;
4408         ppc64-*linux*)
4409           LD="${LD-ld} -m elf32ppclinux"
4410           ;;
4411         s390x-*linux*)
4412           LD="${LD-ld} -m elf_s390"
4413           ;;
4414         sparc64-*linux*)
4415           LD="${LD-ld} -m elf32_sparc"
4416           ;;
4417       esac
4418       ;;
4419     *64-bit*)
4420       case $host in
4421         x86_64-*linux*)
4422           LD="${LD-ld} -m elf_x86_64"
4423           ;;
4424         ppc*-*linux*|powerpc*-*linux*)
4425           LD="${LD-ld} -m elf64ppc"
4426           ;;
4427         s390*-*linux*)
4428           LD="${LD-ld} -m elf64_s390"
4429           ;;
4430         sparc*-*linux*)
4431           LD="${LD-ld} -m elf64_sparc"
4432           ;;
4433       esac
4434       ;;
4435     esac
4436   fi
4437   rm -rf conftest*
4438   ;;
4439
4440 *-*-sco3.2v5*)
4441   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4442   SAVE_CFLAGS="$CFLAGS"
4443   CFLAGS="$CFLAGS -belf"
4444   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4445 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4446 if test "${lt_cv_cc_needs_belf+set}" = set; then
4447   echo $ECHO_N "(cached) $ECHO_C" >&6
4448 else
4449   ac_ext=c
4450 ac_cpp='$CPP $CPPFLAGS'
4451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4454
4455      cat >conftest.$ac_ext <<_ACEOF
4456 #line $LINENO "configure"
4457 /* confdefs.h.  */
4458 _ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h.  */
4462
4463 int
4464 main ()
4465 {
4466
4467   ;
4468   return 0;
4469 }
4470 _ACEOF
4471 rm -f conftest.$ac_objext conftest$ac_exeext
4472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4473   (eval $ac_link) 2>&5
4474   ac_status=$?
4475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476   (exit $ac_status); } &&
4477          { ac_try='test -s conftest$ac_exeext'
4478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479   (eval $ac_try) 2>&5
4480   ac_status=$?
4481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482   (exit $ac_status); }; }; then
4483   lt_cv_cc_needs_belf=yes
4484 else
4485   echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.$ac_ext >&5
4487
4488 lt_cv_cc_needs_belf=no
4489 fi
4490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4491      ac_ext=c
4492 ac_cpp='$CPP $CPPFLAGS'
4493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4496
4497 fi
4498 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4499 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4500   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4501     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4502     CFLAGS="$SAVE_CFLAGS"
4503   fi
4504   ;;
4505
4506 esac
4507
4508 need_locks="$enable_libtool_lock"
4509
4510
4511
4512 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4513 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4514 if test "${ac_cv_header_stdc+set}" = set; then
4515   echo $ECHO_N "(cached) $ECHO_C" >&6
4516 else
4517   cat >conftest.$ac_ext <<_ACEOF
4518 #line $LINENO "configure"
4519 /* confdefs.h.  */
4520 _ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h.  */
4524 #include <stdlib.h>
4525 #include <stdarg.h>
4526 #include <string.h>
4527 #include <float.h>
4528
4529 int
4530 main ()
4531 {
4532
4533   ;
4534   return 0;
4535 }
4536 _ACEOF
4537 rm -f conftest.$ac_objext
4538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4539   (eval $ac_compile) 2>&5
4540   ac_status=$?
4541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542   (exit $ac_status); } &&
4543          { ac_try='test -s conftest.$ac_objext'
4544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545   (eval $ac_try) 2>&5
4546   ac_status=$?
4547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548   (exit $ac_status); }; }; then
4549   ac_cv_header_stdc=yes
4550 else
4551   echo "$as_me: failed program was:" >&5
4552 sed 's/^/| /' conftest.$ac_ext >&5
4553
4554 ac_cv_header_stdc=no
4555 fi
4556 rm -f conftest.$ac_objext conftest.$ac_ext
4557
4558 if test $ac_cv_header_stdc = yes; then
4559   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4560   cat >conftest.$ac_ext <<_ACEOF
4561 #line $LINENO "configure"
4562 /* confdefs.h.  */
4563 _ACEOF
4564 cat confdefs.h >>conftest.$ac_ext
4565 cat >>conftest.$ac_ext <<_ACEOF
4566 /* end confdefs.h.  */
4567 #include <string.h>
4568
4569 _ACEOF
4570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4571   $EGREP "memchr" >/dev/null 2>&1; then
4572   :
4573 else
4574   ac_cv_header_stdc=no
4575 fi
4576 rm -f conftest*
4577
4578 fi
4579
4580 if test $ac_cv_header_stdc = yes; then
4581   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4582   cat >conftest.$ac_ext <<_ACEOF
4583 #line $LINENO "configure"
4584 /* confdefs.h.  */
4585 _ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h.  */
4589 #include <stdlib.h>
4590
4591 _ACEOF
4592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4593   $EGREP "free" >/dev/null 2>&1; then
4594   :
4595 else
4596   ac_cv_header_stdc=no
4597 fi
4598 rm -f conftest*
4599
4600 fi
4601
4602 if test $ac_cv_header_stdc = yes; then
4603   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4604   if test "$cross_compiling" = yes; then
4605   :
4606 else
4607   cat >conftest.$ac_ext <<_ACEOF
4608 #line $LINENO "configure"
4609 /* confdefs.h.  */
4610 _ACEOF
4611 cat confdefs.h >>conftest.$ac_ext
4612 cat >>conftest.$ac_ext <<_ACEOF
4613 /* end confdefs.h.  */
4614 #include <ctype.h>
4615 #if ((' ' & 0x0FF) == 0x020)
4616 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4617 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4618 #else
4619 # define ISLOWER(c) \
4620                    (('a' <= (c) && (c) <= 'i') \
4621                      || ('j' <= (c) && (c) <= 'r') \
4622                      || ('s' <= (c) && (c) <= 'z'))
4623 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4624 #endif
4625
4626 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4627 int
4628 main ()
4629 {
4630   int i;
4631   for (i = 0; i < 256; i++)
4632     if (XOR (islower (i), ISLOWER (i))
4633         || toupper (i) != TOUPPER (i))
4634       exit(2);
4635   exit (0);
4636 }
4637 _ACEOF
4638 rm -f conftest$ac_exeext
4639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4640   (eval $ac_link) 2>&5
4641   ac_status=$?
4642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645   (eval $ac_try) 2>&5
4646   ac_status=$?
4647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648   (exit $ac_status); }; }; then
4649   :
4650 else
4651   echo "$as_me: program exited with status $ac_status" >&5
4652 echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.$ac_ext >&5
4654
4655 ( exit $ac_status )
4656 ac_cv_header_stdc=no
4657 fi
4658 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4659 fi
4660 fi
4661 fi
4662 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4663 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4664 if test $ac_cv_header_stdc = yes; then
4665
4666 cat >>confdefs.h <<\_ACEOF
4667 #define STDC_HEADERS 1
4668 _ACEOF
4669
4670 fi
4671
4672 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4683                   inttypes.h stdint.h unistd.h
4684 do
4685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4686 echo "$as_me:$LINENO: checking for $ac_header" >&5
4687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4689   echo $ECHO_N "(cached) $ECHO_C" >&6
4690 else
4691   cat >conftest.$ac_ext <<_ACEOF
4692 #line $LINENO "configure"
4693 /* confdefs.h.  */
4694 _ACEOF
4695 cat confdefs.h >>conftest.$ac_ext
4696 cat >>conftest.$ac_ext <<_ACEOF
4697 /* end confdefs.h.  */
4698 $ac_includes_default
4699
4700 #include <$ac_header>
4701 _ACEOF
4702 rm -f conftest.$ac_objext
4703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4704   (eval $ac_compile) 2>&5
4705   ac_status=$?
4706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707   (exit $ac_status); } &&
4708          { ac_try='test -s conftest.$ac_objext'
4709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710   (eval $ac_try) 2>&5
4711   ac_status=$?
4712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713   (exit $ac_status); }; }; then
4714   eval "$as_ac_Header=yes"
4715 else
4716   echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4718
4719 eval "$as_ac_Header=no"
4720 fi
4721 rm -f conftest.$ac_objext conftest.$ac_ext
4722 fi
4723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4726   cat >>confdefs.h <<_ACEOF
4727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4728 _ACEOF
4729
4730 fi
4731
4732 done
4733
4734
4735
4736 for ac_header in dlfcn.h
4737 do
4738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4740   echo "$as_me:$LINENO: checking for $ac_header" >&5
4741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4743   echo $ECHO_N "(cached) $ECHO_C" >&6
4744 fi
4745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4747 else
4748   # Is the header compilable?
4749 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4751 cat >conftest.$ac_ext <<_ACEOF
4752 #line $LINENO "configure"
4753 /* confdefs.h.  */
4754 _ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h.  */
4758 $ac_includes_default
4759 #include <$ac_header>
4760 _ACEOF
4761 rm -f conftest.$ac_objext
4762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4763   (eval $ac_compile) 2>&5
4764   ac_status=$?
4765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766   (exit $ac_status); } &&
4767          { ac_try='test -s conftest.$ac_objext'
4768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4769   (eval $ac_try) 2>&5
4770   ac_status=$?
4771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772   (exit $ac_status); }; }; then
4773   ac_header_compiler=yes
4774 else
4775   echo "$as_me: failed program was:" >&5
4776 sed 's/^/| /' conftest.$ac_ext >&5
4777
4778 ac_header_compiler=no
4779 fi
4780 rm -f conftest.$ac_objext conftest.$ac_ext
4781 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4782 echo "${ECHO_T}$ac_header_compiler" >&6
4783
4784 # Is the header present?
4785 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4787 cat >conftest.$ac_ext <<_ACEOF
4788 #line $LINENO "configure"
4789 /* confdefs.h.  */
4790 _ACEOF
4791 cat confdefs.h >>conftest.$ac_ext
4792 cat >>conftest.$ac_ext <<_ACEOF
4793 /* end confdefs.h.  */
4794 #include <$ac_header>
4795 _ACEOF
4796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4797   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4798   ac_status=$?
4799   grep -v '^ *+' conftest.er1 >conftest.err
4800   rm -f conftest.er1
4801   cat conftest.err >&5
4802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803   (exit $ac_status); } >/dev/null; then
4804   if test -s conftest.err; then
4805     ac_cpp_err=$ac_c_preproc_warn_flag
4806   else
4807     ac_cpp_err=
4808   fi
4809 else
4810   ac_cpp_err=yes
4811 fi
4812 if test -z "$ac_cpp_err"; then
4813   ac_header_preproc=yes
4814 else
4815   echo "$as_me: failed program was:" >&5
4816 sed 's/^/| /' conftest.$ac_ext >&5
4817
4818   ac_header_preproc=no
4819 fi
4820 rm -f conftest.err conftest.$ac_ext
4821 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4822 echo "${ECHO_T}$ac_header_preproc" >&6
4823
4824 # So?  What about this header?
4825 case $ac_header_compiler:$ac_header_preproc in
4826   yes:no )
4827     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4828 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4829     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4831     (
4832       cat <<\_ASBOX
4833 ## ------------------------------------ ##
4834 ## Report this to bug-autoconf@gnu.org. ##
4835 ## ------------------------------------ ##
4836 _ASBOX
4837     ) |
4838       sed "s/^/$as_me: WARNING:     /" >&2
4839     ;;
4840   no:yes )
4841     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4843     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4845     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4847     (
4848       cat <<\_ASBOX
4849 ## ------------------------------------ ##
4850 ## Report this to bug-autoconf@gnu.org. ##
4851 ## ------------------------------------ ##
4852 _ASBOX
4853     ) |
4854       sed "s/^/$as_me: WARNING:     /" >&2
4855     ;;
4856 esac
4857 echo "$as_me:$LINENO: checking for $ac_header" >&5
4858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4860   echo $ECHO_N "(cached) $ECHO_C" >&6
4861 else
4862   eval "$as_ac_Header=$ac_header_preproc"
4863 fi
4864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4866
4867 fi
4868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4869   cat >>confdefs.h <<_ACEOF
4870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4871 _ACEOF
4872
4873 fi
4874
4875 done
4876
4877 ac_ext=cc
4878 ac_cpp='$CXXCPP $CPPFLAGS'
4879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4882 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4883 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4884 if test -z "$CXXCPP"; then
4885   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4886   echo $ECHO_N "(cached) $ECHO_C" >&6
4887 else
4888       # Double quotes because CXXCPP needs to be expanded
4889     for CXXCPP in "$CXX -E" "/lib/cpp"
4890     do
4891       ac_preproc_ok=false
4892 for ac_cxx_preproc_warn_flag in '' yes
4893 do
4894   # Use a header file that comes with gcc, so configuring glibc
4895   # with a fresh cross-compiler works.
4896   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4897   # <limits.h> exists even on freestanding compilers.
4898   # On the NeXT, cc -E runs the code through the compiler's parser,
4899   # not just through cpp. "Syntax error" is here to catch this case.
4900   cat >conftest.$ac_ext <<_ACEOF
4901 #line $LINENO "configure"
4902 /* confdefs.h.  */
4903 _ACEOF
4904 cat confdefs.h >>conftest.$ac_ext
4905 cat >>conftest.$ac_ext <<_ACEOF
4906 /* end confdefs.h.  */
4907 #ifdef __STDC__
4908 # include <limits.h>
4909 #else
4910 # include <assert.h>
4911 #endif
4912                      Syntax error
4913 _ACEOF
4914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4915   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4916   ac_status=$?
4917   grep -v '^ *+' conftest.er1 >conftest.err
4918   rm -f conftest.er1
4919   cat conftest.err >&5
4920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921   (exit $ac_status); } >/dev/null; then
4922   if test -s conftest.err; then
4923     ac_cpp_err=$ac_cxx_preproc_warn_flag
4924   else
4925     ac_cpp_err=
4926   fi
4927 else
4928   ac_cpp_err=yes
4929 fi
4930 if test -z "$ac_cpp_err"; then
4931   :
4932 else
4933   echo "$as_me: failed program was:" >&5
4934 sed 's/^/| /' conftest.$ac_ext >&5
4935
4936   # Broken: fails on valid input.
4937 continue
4938 fi
4939 rm -f conftest.err conftest.$ac_ext
4940
4941   # OK, works on sane cases.  Now check whether non-existent headers
4942   # can be detected and how.
4943   cat >conftest.$ac_ext <<_ACEOF
4944 #line $LINENO "configure"
4945 /* confdefs.h.  */
4946 _ACEOF
4947 cat confdefs.h >>conftest.$ac_ext
4948 cat >>conftest.$ac_ext <<_ACEOF
4949 /* end confdefs.h.  */
4950 #include <ac_nonexistent.h>
4951 _ACEOF
4952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4953   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4954   ac_status=$?
4955   grep -v '^ *+' conftest.er1 >conftest.err
4956   rm -f conftest.er1
4957   cat conftest.err >&5
4958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959   (exit $ac_status); } >/dev/null; then
4960   if test -s conftest.err; then
4961     ac_cpp_err=$ac_cxx_preproc_warn_flag
4962   else
4963     ac_cpp_err=
4964   fi
4965 else
4966   ac_cpp_err=yes
4967 fi
4968 if test -z "$ac_cpp_err"; then
4969   # Broken: success on invalid input.
4970 continue
4971 else
4972   echo "$as_me: failed program was:" >&5
4973 sed 's/^/| /' conftest.$ac_ext >&5
4974
4975   # Passes both tests.
4976 ac_preproc_ok=:
4977 break
4978 fi
4979 rm -f conftest.err conftest.$ac_ext
4980
4981 done
4982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4983 rm -f conftest.err conftest.$ac_ext
4984 if $ac_preproc_ok; then
4985   break
4986 fi
4987
4988     done
4989     ac_cv_prog_CXXCPP=$CXXCPP
4990
4991 fi
4992   CXXCPP=$ac_cv_prog_CXXCPP
4993 else
4994   ac_cv_prog_CXXCPP=$CXXCPP
4995 fi
4996 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4997 echo "${ECHO_T}$CXXCPP" >&6
4998 ac_preproc_ok=false
4999 for ac_cxx_preproc_warn_flag in '' yes
5000 do
5001   # Use a header file that comes with gcc, so configuring glibc
5002   # with a fresh cross-compiler works.
5003   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5004   # <limits.h> exists even on freestanding compilers.
5005   # On the NeXT, cc -E runs the code through the compiler's parser,
5006   # not just through cpp. "Syntax error" is here to catch this case.
5007   cat >conftest.$ac_ext <<_ACEOF
5008 #line $LINENO "configure"
5009 /* confdefs.h.  */
5010 _ACEOF
5011 cat confdefs.h >>conftest.$ac_ext
5012 cat >>conftest.$ac_ext <<_ACEOF
5013 /* end confdefs.h.  */
5014 #ifdef __STDC__
5015 # include <limits.h>
5016 #else
5017 # include <assert.h>
5018 #endif
5019                      Syntax error
5020 _ACEOF
5021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5022   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5023   ac_status=$?
5024   grep -v '^ *+' conftest.er1 >conftest.err
5025   rm -f conftest.er1
5026   cat conftest.err >&5
5027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028   (exit $ac_status); } >/dev/null; then
5029   if test -s conftest.err; then
5030     ac_cpp_err=$ac_cxx_preproc_warn_flag
5031   else
5032     ac_cpp_err=
5033   fi
5034 else
5035   ac_cpp_err=yes
5036 fi
5037 if test -z "$ac_cpp_err"; then
5038   :
5039 else
5040   echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5042
5043   # Broken: fails on valid input.
5044 continue
5045 fi
5046 rm -f conftest.err conftest.$ac_ext
5047
5048   # OK, works on sane cases.  Now check whether non-existent headers
5049   # can be detected and how.
5050   cat >conftest.$ac_ext <<_ACEOF
5051 #line $LINENO "configure"
5052 /* confdefs.h.  */
5053 _ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h.  */
5057 #include <ac_nonexistent.h>
5058 _ACEOF
5059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5060   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5061   ac_status=$?
5062   grep -v '^ *+' conftest.er1 >conftest.err
5063   rm -f conftest.er1
5064   cat conftest.err >&5
5065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066   (exit $ac_status); } >/dev/null; then
5067   if test -s conftest.err; then
5068     ac_cpp_err=$ac_cxx_preproc_warn_flag
5069   else
5070     ac_cpp_err=
5071   fi
5072 else
5073   ac_cpp_err=yes
5074 fi
5075 if test -z "$ac_cpp_err"; then
5076   # Broken: success on invalid input.
5077 continue
5078 else
5079   echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5081
5082   # Passes both tests.
5083 ac_preproc_ok=:
5084 break
5085 fi
5086 rm -f conftest.err conftest.$ac_ext
5087
5088 done
5089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5090 rm -f conftest.err conftest.$ac_ext
5091 if $ac_preproc_ok; then
5092   :
5093 else
5094   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5095 See \`config.log' for more details." >&5
5096 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5097 See \`config.log' for more details." >&2;}
5098    { (exit 1); exit 1; }; }
5099 fi
5100
5101 ac_ext=cc
5102 ac_cpp='$CXXCPP $CPPFLAGS'
5103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5106
5107
5108 ac_ext=f
5109 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5110 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5111 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5112 if test -n "$ac_tool_prefix"; then
5113   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5114   do
5115     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5116 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5117 echo "$as_me:$LINENO: checking for $ac_word" >&5
5118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5119 if test "${ac_cv_prog_F77+set}" = set; then
5120   echo $ECHO_N "(cached) $ECHO_C" >&6
5121 else
5122   if test -n "$F77"; then
5123   ac_cv_prog_F77="$F77" # Let the user override the test.
5124 else
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 for as_dir in $PATH
5127 do
5128   IFS=$as_save_IFS
5129   test -z "$as_dir" && as_dir=.
5130   for ac_exec_ext in '' $ac_executable_extensions; do
5131   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5132     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5134     break 2
5135   fi
5136 done
5137 done
5138
5139 fi
5140 fi
5141 F77=$ac_cv_prog_F77
5142 if test -n "$F77"; then
5143   echo "$as_me:$LINENO: result: $F77" >&5
5144 echo "${ECHO_T}$F77" >&6
5145 else
5146   echo "$as_me:$LINENO: result: no" >&5
5147 echo "${ECHO_T}no" >&6
5148 fi
5149
5150     test -n "$F77" && break
5151   done
5152 fi
5153 if test -z "$F77"; then
5154   ac_ct_F77=$F77
5155   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5156 do
5157   # Extract the first word of "$ac_prog", so it can be a program name with args.
5158 set dummy $ac_prog; ac_word=$2
5159 echo "$as_me:$LINENO: checking for $ac_word" >&5
5160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5161 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5162   echo $ECHO_N "(cached) $ECHO_C" >&6
5163 else
5164   if test -n "$ac_ct_F77"; then
5165   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5166 else
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH
5169 do
5170   IFS=$as_save_IFS
5171   test -z "$as_dir" && as_dir=.
5172   for ac_exec_ext in '' $ac_executable_extensions; do
5173   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5174     ac_cv_prog_ac_ct_F77="$ac_prog"
5175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5176     break 2
5177   fi
5178 done
5179 done
5180
5181 fi
5182 fi
5183 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5184 if test -n "$ac_ct_F77"; then
5185   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5186 echo "${ECHO_T}$ac_ct_F77" >&6
5187 else
5188   echo "$as_me:$LINENO: result: no" >&5
5189 echo "${ECHO_T}no" >&6
5190 fi
5191
5192   test -n "$ac_ct_F77" && break
5193 done
5194
5195   F77=$ac_ct_F77
5196 fi
5197
5198
5199 # Provide some information about the compiler.
5200 echo "$as_me:5200:" \
5201      "checking for Fortran 77 compiler version" >&5
5202 ac_compiler=`set X $ac_compile; echo $2`
5203 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5204   (eval $ac_compiler --version </dev/null >&5) 2>&5
5205   ac_status=$?
5206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207   (exit $ac_status); }
5208 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5209   (eval $ac_compiler -v </dev/null >&5) 2>&5
5210   ac_status=$?
5211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212   (exit $ac_status); }
5213 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5214   (eval $ac_compiler -V </dev/null >&5) 2>&5
5215   ac_status=$?
5216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217   (exit $ac_status); }
5218
5219 # If we don't use `.F' as extension, the preprocessor is not run on the
5220 # input file.
5221 ac_save_ext=$ac_ext
5222 ac_ext=F
5223 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5224 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5225 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5226   echo $ECHO_N "(cached) $ECHO_C" >&6
5227 else
5228   cat >conftest.$ac_ext <<_ACEOF
5229       program main
5230 #ifndef __GNUC__
5231        choke me
5232 #endif
5233
5234       end
5235 _ACEOF
5236 rm -f conftest.$ac_objext
5237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5238   (eval $ac_compile) 2>&5
5239   ac_status=$?
5240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241   (exit $ac_status); } &&
5242          { ac_try='test -s conftest.$ac_objext'
5243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244   (eval $ac_try) 2>&5
5245   ac_status=$?
5246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247   (exit $ac_status); }; }; then
5248   ac_compiler_gnu=yes
5249 else
5250   echo "$as_me: failed program was:" >&5
5251 sed 's/^/| /' conftest.$ac_ext >&5
5252
5253 ac_compiler_gnu=no
5254 fi
5255 rm -f conftest.$ac_objext conftest.$ac_ext
5256 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5257
5258 fi
5259 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5260 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5261 ac_ext=$ac_save_ext
5262 G77=`test $ac_compiler_gnu = yes && echo yes`
5263 ac_test_FFLAGS=${FFLAGS+set}
5264 ac_save_FFLAGS=$FFLAGS
5265 FFLAGS=
5266 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5267 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5268 if test "${ac_cv_prog_f77_g+set}" = set; then
5269   echo $ECHO_N "(cached) $ECHO_C" >&6
5270 else
5271   FFLAGS=-g
5272 cat >conftest.$ac_ext <<_ACEOF
5273       program main
5274
5275       end
5276 _ACEOF
5277 rm -f conftest.$ac_objext
5278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5279   (eval $ac_compile) 2>&5
5280   ac_status=$?
5281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282   (exit $ac_status); } &&
5283          { ac_try='test -s conftest.$ac_objext'
5284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285   (eval $ac_try) 2>&5
5286   ac_status=$?
5287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288   (exit $ac_status); }; }; then
5289   ac_cv_prog_f77_g=yes
5290 else
5291   echo "$as_me: failed program was:" >&5
5292 sed 's/^/| /' conftest.$ac_ext >&5
5293
5294 ac_cv_prog_f77_g=no
5295 fi
5296 rm -f conftest.$ac_objext conftest.$ac_ext
5297
5298 fi
5299 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5300 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5301 if test "$ac_test_FFLAGS" = set; then
5302   FFLAGS=$ac_save_FFLAGS
5303 elif test $ac_cv_prog_f77_g = yes; then
5304   if test "$G77" = yes; then
5305     FFLAGS="-g -O2"
5306   else
5307     FFLAGS="-g"
5308   fi
5309 else
5310   if test "$G77" = yes; then
5311     FFLAGS="-O2"
5312   else
5313     FFLAGS=
5314   fi
5315 fi
5316 ac_ext=c
5317 ac_cpp='$CPP $CPPFLAGS'
5318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5321
5322
5323
5324 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5325
5326 # find the maximum length of command line arguments
5327 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5328 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5329 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5330   echo $ECHO_N "(cached) $ECHO_C" >&6
5331 else
5332     i=0
5333   testring="ABCD"
5334
5335   case $build_os in
5336   msdosdjgpp*)
5337     # On DJGPP, this test can blow up pretty badly due to problems in libc
5338     # (any single argument exceeding 2000 bytes causes a buffer overrun
5339     # during glob expansion).  Even if it were fixed, the result of this
5340     # check would be larger than it should be.
5341     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5342     ;;
5343
5344   gnu*)
5345     # Under GNU Hurd, this test is not required because there is
5346     # no limit to the length of command line arguments.
5347     # Libtool will interpret -1 as no limit whatsoever
5348     lt_cv_sys_max_cmd_len=-1;
5349     ;;
5350
5351   cygwin* | mingw*)
5352     # On Win9x/ME, this test blows up -- it succeeds, but takes
5353     # about 5 minutes as the teststring grows exponentially.
5354     # Worse, since 9x/ME are not pre-emptively multitasking,
5355     # you end up with a "frozen" computer, even though with patience
5356     # the test eventually succeeds (with a max line length of 256k).
5357     # Instead, let's just punt: use the minimum linelength reported by
5358     # all of the supported platforms: 8192 (on NT/2K/XP).
5359     lt_cv_sys_max_cmd_len=8192;
5360     ;;
5361
5362  *)
5363     # If test is not a shell built-in, we'll probably end up computing a
5364     # maximum length that is only half of the actual maximum length, but
5365     # we can't tell.
5366     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5367                = "XX$testring") >/dev/null 2>&1 &&
5368             new_result=`expr "X$testring" : ".*" 2>&1` &&
5369             lt_cv_sys_max_cmd_len=$new_result &&
5370             test $i != 17 # 1/2 MB should be enough
5371     do
5372       i=`expr $i + 1`
5373       testring=$testring$testring
5374     done
5375     testring=
5376     # Add a significant safety factor because C++ compilers can tack on massive
5377     # amounts of additional arguments before passing them to the linker.
5378     # It appears as though 1/2 is a usable value.
5379     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5380     ;;
5381   esac
5382
5383 fi
5384
5385 if test -n $lt_cv_sys_max_cmd_len ; then
5386   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5387 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5388 else
5389   echo "$as_me:$LINENO: result: none" >&5
5390 echo "${ECHO_T}none" >&6
5391 fi
5392
5393
5394
5395
5396 # Check for command to grab the raw symbol name followed by C symbol from nm.
5397 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5398 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5399 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5400   echo $ECHO_N "(cached) $ECHO_C" >&6
5401 else
5402
5403 # These are sane defaults that work on at least a few old systems.
5404 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5405
5406 # Character class describing NM global symbol codes.
5407 symcode='[BCDEGRST]'
5408
5409 # Regexp to match symbols that can be accessed directly from C.
5410 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5411
5412 # Transform the above into a raw symbol and a C symbol.
5413 symxfrm='\1 \2\3 \3'
5414
5415 # Transform an extracted symbol line into a proper C declaration
5416 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5417
5418 # Transform an extracted symbol line into symbol name and symbol address
5419 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'"
5420
5421 # Define system-specific variables.
5422 case $host_os in
5423 aix*)
5424   symcode='[BCDT]'
5425   ;;
5426 cygwin* | mingw* | pw32*)
5427   symcode='[ABCDGISTW]'
5428   ;;
5429 hpux*) # Its linker distinguishes data from code symbols
5430   if test "$host_cpu" = ia64; then
5431     symcode='[ABCDEGRST]'
5432   fi
5433   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5434   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'"
5435   ;;
5436 irix* | nonstopux*)
5437   symcode='[BCDEGRST]'
5438   ;;
5439 osf*)
5440   symcode='[BCDEGQRST]'
5441   ;;
5442 solaris* | sysv5*)
5443   symcode='[BDT]'
5444   ;;
5445 sysv4)
5446   symcode='[DFNSTU]'
5447   ;;
5448 esac
5449
5450 # Handle CRLF in mingw tool chain
5451 opt_cr=
5452 case $build_os in
5453 mingw*)
5454   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5455   ;;
5456 esac
5457
5458 # If we're using GNU nm, then use its standard symbol codes.
5459 case `$NM -V 2>&1` in
5460 *GNU* | *'with BFD'*)
5461   symcode='[ABCDGISTW]' ;;
5462 esac
5463
5464 # Try without a prefix undercore, then with it.
5465 for ac_symprfx in "" "_"; do
5466
5467   # Write the raw and C identifiers.
5468   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5469
5470   # Check to see that the pipe works correctly.
5471   pipe_works=no
5472
5473   rm -f conftest*
5474   cat > conftest.$ac_ext <<EOF
5475 #ifdef __cplusplus
5476 extern "C" {
5477 #endif
5478 char nm_test_var;
5479 void nm_test_func(){}
5480 #ifdef __cplusplus
5481 }
5482 #endif
5483 int main(){nm_test_var='a';nm_test_func();return(0);}
5484 EOF
5485
5486   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5487   (eval $ac_compile) 2>&5
5488   ac_status=$?
5489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490   (exit $ac_status); }; then
5491     # Now try to grab the symbols.
5492     nlist=conftest.nm
5493     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5494   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5495   ac_status=$?
5496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497   (exit $ac_status); } && test -s "$nlist"; then
5498       # Try sorting and uniquifying the output.
5499       if sort "$nlist" | uniq > "$nlist"T; then
5500         mv -f "$nlist"T "$nlist"
5501       else
5502         rm -f "$nlist"T
5503       fi
5504
5505       # Make sure that we snagged all the symbols we need.
5506       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5507         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5508           cat <<EOF > conftest.$ac_ext
5509 #ifdef __cplusplus
5510 extern "C" {
5511 #endif
5512
5513 EOF
5514           # Now generate the symbol file.
5515           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5516
5517           cat <<EOF >> conftest.$ac_ext
5518 #if defined (__STDC__) && __STDC__
5519 # define lt_ptr_t void *
5520 #else
5521 # define lt_ptr_t char *
5522 # define const
5523 #endif
5524
5525 /* The mapping between symbol names and symbols. */
5526 const struct {
5527   const char *name;
5528   lt_ptr_t address;
5529 }
5530 lt_preloaded_symbols[] =
5531 {
5532 EOF
5533           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5534           cat <<\EOF >> conftest.$ac_ext
5535   {0, (lt_ptr_t) 0}
5536 };
5537
5538 #ifdef __cplusplus
5539 }
5540 #endif
5541 EOF
5542           # Now try linking the two files.
5543           mv conftest.$ac_objext conftstm.$ac_objext
5544           lt_save_LIBS="$LIBS"
5545           lt_save_CFLAGS="$CFLAGS"
5546           LIBS="conftstm.$ac_objext"
5547           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5548           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5549   (eval $ac_link) 2>&5
5550   ac_status=$?
5551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5553             pipe_works=yes
5554           fi
5555           LIBS="$lt_save_LIBS"
5556           CFLAGS="$lt_save_CFLAGS"
5557         else
5558           echo "cannot find nm_test_func in $nlist" >&5
5559         fi
5560       else
5561         echo "cannot find nm_test_var in $nlist" >&5
5562       fi
5563     else
5564       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5565     fi
5566   else
5567     echo "$progname: failed program was:" >&5
5568     cat conftest.$ac_ext >&5
5569   fi
5570   rm -f conftest* conftst*
5571
5572   # Do not use the global_symbol_pipe unless it works.
5573   if test "$pipe_works" = yes; then
5574     break
5575   else
5576     lt_cv_sys_global_symbol_pipe=
5577   fi
5578 done
5579
5580 fi
5581
5582 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5583   lt_cv_sys_global_symbol_to_cdecl=
5584 fi
5585 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5586   echo "$as_me:$LINENO: result: failed" >&5
5587 echo "${ECHO_T}failed" >&6
5588 else
5589   echo "$as_me:$LINENO: result: ok" >&5
5590 echo "${ECHO_T}ok" >&6
5591 fi
5592
5593 echo "$as_me:$LINENO: checking for objdir" >&5
5594 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5595 if test "${lt_cv_objdir+set}" = set; then
5596   echo $ECHO_N "(cached) $ECHO_C" >&6
5597 else
5598   rm -f .libs 2>/dev/null
5599 mkdir .libs 2>/dev/null
5600 if test -d .libs; then
5601   lt_cv_objdir=.libs
5602 else
5603   # MS-DOS does not allow filenames that begin with a dot.
5604   lt_cv_objdir=_libs
5605 fi
5606 rmdir .libs 2>/dev/null
5607 fi
5608 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5609 echo "${ECHO_T}$lt_cv_objdir" >&6
5610 objdir=$lt_cv_objdir
5611
5612
5613
5614
5615
5616 case $host_os in
5617 aix3*)
5618   # AIX sometimes has problems with the GCC collect2 program.  For some
5619   # reason, if we set the COLLECT_NAMES environment variable, the problems
5620   # vanish in a puff of smoke.
5621   if test "X${COLLECT_NAMES+set}" != Xset; then
5622     COLLECT_NAMES=
5623     export COLLECT_NAMES
5624   fi
5625   ;;
5626 esac
5627
5628 # Sed substitution that helps us do robust quoting.  It backslashifies
5629 # metacharacters that are still active within double-quoted strings.
5630 Xsed='sed -e s/^X//'
5631 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5632
5633 # Same as above, but do not quote variable references.
5634 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5635
5636 # Sed substitution to delay expansion of an escaped shell variable in a
5637 # double_quote_subst'ed string.
5638 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5639
5640 # Sed substitution to avoid accidental globbing in evaled expressions
5641 no_glob_subst='s/\*/\\\*/g'
5642
5643 # Constants:
5644 rm="rm -f"
5645
5646 # Global variables:
5647 default_ofile=mklib
5648 can_build_shared=yes
5649
5650 # All known linkers require a `.a' archive for static linking (except M$VC,
5651 # which needs '.lib').
5652 libext=a
5653 ltmain="$ac_aux_dir/ltmain.sh"
5654 ofile="$default_ofile"
5655 with_gnu_ld="$lt_cv_prog_gnu_ld"
5656
5657 if test -n "$ac_tool_prefix"; then
5658   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5659 set dummy ${ac_tool_prefix}ar; ac_word=$2
5660 echo "$as_me:$LINENO: checking for $ac_word" >&5
5661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5662 if test "${ac_cv_prog_AR+set}" = set; then
5663   echo $ECHO_N "(cached) $ECHO_C" >&6
5664 else
5665   if test -n "$AR"; then
5666   ac_cv_prog_AR="$AR" # Let the user override the test.
5667 else
5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 for as_dir in $PATH
5670 do
5671   IFS=$as_save_IFS
5672   test -z "$as_dir" && as_dir=.
5673   for ac_exec_ext in '' $ac_executable_extensions; do
5674   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5675     ac_cv_prog_AR="${ac_tool_prefix}ar"
5676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5677     break 2
5678   fi
5679 done
5680 done
5681
5682 fi
5683 fi
5684 AR=$ac_cv_prog_AR
5685 if test -n "$AR"; then
5686   echo "$as_me:$LINENO: result: $AR" >&5
5687 echo "${ECHO_T}$AR" >&6
5688 else
5689   echo "$as_me:$LINENO: result: no" >&5
5690 echo "${ECHO_T}no" >&6
5691 fi
5692
5693 fi
5694 if test -z "$ac_cv_prog_AR"; then
5695   ac_ct_AR=$AR
5696   # Extract the first word of "ar", so it can be a program name with args.
5697 set dummy ar; ac_word=$2
5698 echo "$as_me:$LINENO: checking for $ac_word" >&5
5699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5700 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5701   echo $ECHO_N "(cached) $ECHO_C" >&6
5702 else
5703   if test -n "$ac_ct_AR"; then
5704   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5705 else
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 for as_dir in $PATH
5708 do
5709   IFS=$as_save_IFS
5710   test -z "$as_dir" && as_dir=.
5711   for ac_exec_ext in '' $ac_executable_extensions; do
5712   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5713     ac_cv_prog_ac_ct_AR="ar"
5714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5715     break 2
5716   fi
5717 done
5718 done
5719
5720   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5721 fi
5722 fi
5723 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5724 if test -n "$ac_ct_AR"; then
5725   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5726 echo "${ECHO_T}$ac_ct_AR" >&6
5727 else
5728   echo "$as_me:$LINENO: result: no" >&5
5729 echo "${ECHO_T}no" >&6
5730 fi
5731
5732   AR=$ac_ct_AR
5733 else
5734   AR="$ac_cv_prog_AR"
5735 fi
5736
5737 if test -n "$ac_tool_prefix"; then
5738   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5739 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5740 echo "$as_me:$LINENO: checking for $ac_word" >&5
5741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5742 if test "${ac_cv_prog_RANLIB+set}" = set; then
5743   echo $ECHO_N "(cached) $ECHO_C" >&6
5744 else
5745   if test -n "$RANLIB"; then
5746   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5747 else
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 for as_dir in $PATH
5750 do
5751   IFS=$as_save_IFS
5752   test -z "$as_dir" && as_dir=.
5753   for ac_exec_ext in '' $ac_executable_extensions; do
5754   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5755     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5757     break 2
5758   fi
5759 done
5760 done
5761
5762 fi
5763 fi
5764 RANLIB=$ac_cv_prog_RANLIB
5765 if test -n "$RANLIB"; then
5766   echo "$as_me:$LINENO: result: $RANLIB" >&5
5767 echo "${ECHO_T}$RANLIB" >&6
5768 else
5769   echo "$as_me:$LINENO: result: no" >&5
5770 echo "${ECHO_T}no" >&6
5771 fi
5772
5773 fi
5774 if test -z "$ac_cv_prog_RANLIB"; then
5775   ac_ct_RANLIB=$RANLIB
5776   # Extract the first word of "ranlib", so it can be a program name with args.
5777 set dummy ranlib; ac_word=$2
5778 echo "$as_me:$LINENO: checking for $ac_word" >&5
5779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5780 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5781   echo $ECHO_N "(cached) $ECHO_C" >&6
5782 else
5783   if test -n "$ac_ct_RANLIB"; then
5784   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5785 else
5786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787 for as_dir in $PATH
5788 do
5789   IFS=$as_save_IFS
5790   test -z "$as_dir" && as_dir=.
5791   for ac_exec_ext in '' $ac_executable_extensions; do
5792   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5793     ac_cv_prog_ac_ct_RANLIB="ranlib"
5794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5795     break 2
5796   fi
5797 done
5798 done
5799
5800   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5801 fi
5802 fi
5803 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5804 if test -n "$ac_ct_RANLIB"; then
5805   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5806 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5807 else
5808   echo "$as_me:$LINENO: result: no" >&5
5809 echo "${ECHO_T}no" >&6
5810 fi
5811
5812   RANLIB=$ac_ct_RANLIB
5813 else
5814   RANLIB="$ac_cv_prog_RANLIB"
5815 fi
5816
5817 if test -n "$ac_tool_prefix"; then
5818   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5819 set dummy ${ac_tool_prefix}strip; ac_word=$2
5820 echo "$as_me:$LINENO: checking for $ac_word" >&5
5821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5822 if test "${ac_cv_prog_STRIP+set}" = set; then
5823   echo $ECHO_N "(cached) $ECHO_C" >&6
5824 else
5825   if test -n "$STRIP"; then
5826   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5827 else
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 for as_dir in $PATH
5830 do
5831   IFS=$as_save_IFS
5832   test -z "$as_dir" && as_dir=.
5833   for ac_exec_ext in '' $ac_executable_extensions; do
5834   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5835     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5837     break 2
5838   fi
5839 done
5840 done
5841
5842 fi
5843 fi
5844 STRIP=$ac_cv_prog_STRIP
5845 if test -n "$STRIP"; then
5846   echo "$as_me:$LINENO: result: $STRIP" >&5
5847 echo "${ECHO_T}$STRIP" >&6
5848 else
5849   echo "$as_me:$LINENO: result: no" >&5
5850 echo "${ECHO_T}no" >&6
5851 fi
5852
5853 fi
5854 if test -z "$ac_cv_prog_STRIP"; then
5855   ac_ct_STRIP=$STRIP
5856   # Extract the first word of "strip", so it can be a program name with args.
5857 set dummy strip; ac_word=$2
5858 echo "$as_me:$LINENO: checking for $ac_word" >&5
5859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5860 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5861   echo $ECHO_N "(cached) $ECHO_C" >&6
5862 else
5863   if test -n "$ac_ct_STRIP"; then
5864   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5865 else
5866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867 for as_dir in $PATH
5868 do
5869   IFS=$as_save_IFS
5870   test -z "$as_dir" && as_dir=.
5871   for ac_exec_ext in '' $ac_executable_extensions; do
5872   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5873     ac_cv_prog_ac_ct_STRIP="strip"
5874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5875     break 2
5876   fi
5877 done
5878 done
5879
5880   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5881 fi
5882 fi
5883 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5884 if test -n "$ac_ct_STRIP"; then
5885   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5886 echo "${ECHO_T}$ac_ct_STRIP" >&6
5887 else
5888   echo "$as_me:$LINENO: result: no" >&5
5889 echo "${ECHO_T}no" >&6
5890 fi
5891
5892   STRIP=$ac_ct_STRIP
5893 else
5894   STRIP="$ac_cv_prog_STRIP"
5895 fi
5896
5897
5898 old_CC="$CC"
5899 old_CFLAGS="$CFLAGS"
5900
5901 # Set sane defaults for various variables
5902 test -z "$AR" && AR=ar
5903 test -z "$AR_FLAGS" && AR_FLAGS=cru
5904 test -z "$AS" && AS=as
5905 test -z "$CC" && CC=cc
5906 test -z "$LTCC" && LTCC=$CC
5907 test -z "$DLLTOOL" && DLLTOOL=dlltool
5908 test -z "$LD" && LD=ld
5909 test -z "$LN_S" && LN_S="ln -s"
5910 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5911 test -z "$NM" && NM=nm
5912 test -z "$SED" && SED=sed
5913 test -z "$OBJDUMP" && OBJDUMP=objdump
5914 test -z "$RANLIB" && RANLIB=:
5915 test -z "$STRIP" && STRIP=:
5916 test -z "$ac_objext" && ac_objext=o
5917
5918 # Determine commands to create old-style static archives.
5919 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5920 old_postinstall_cmds='chmod 644 $oldlib'
5921 old_postuninstall_cmds=
5922
5923 if test -n "$RANLIB"; then
5924   case $host_os in
5925   openbsd*)
5926     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5927     ;;
5928   *)
5929     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5930     ;;
5931   esac
5932   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5933 fi
5934
5935 # Only perform the check for file, if the check method requires it
5936 case $deplibs_check_method in
5937 file_magic*)
5938   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5939     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5940 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5941 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5942   echo $ECHO_N "(cached) $ECHO_C" >&6
5943 else
5944   case $MAGIC_CMD in
5945 [\\/*] |  ?:[\\/]*)
5946   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5947   ;;
5948 *)
5949   lt_save_MAGIC_CMD="$MAGIC_CMD"
5950   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5951   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5952   for ac_dir in $ac_dummy; do
5953     IFS="$lt_save_ifs"
5954     test -z "$ac_dir" && ac_dir=.
5955     if test -f $ac_dir/${ac_tool_prefix}file; then
5956       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5957       if test -n "$file_magic_test_file"; then
5958         case $deplibs_check_method in
5959         "file_magic "*)
5960           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5961           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5962           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5963             $EGREP "$file_magic_regex" > /dev/null; then
5964             :
5965           else
5966             cat <<EOF 1>&2
5967
5968 *** Warning: the command libtool uses to detect shared libraries,
5969 *** $file_magic_cmd, produces output that libtool cannot recognize.
5970 *** The result is that libtool may fail to recognize shared libraries
5971 *** as such.  This will affect the creation of libtool libraries that
5972 *** depend on shared libraries, but programs linked with such libtool
5973 *** libraries will work regardless of this problem.  Nevertheless, you
5974 *** may want to report the problem to your system manager and/or to
5975 *** bug-libtool@gnu.org
5976
5977 EOF
5978           fi ;;
5979         esac
5980       fi
5981       break
5982     fi
5983   done
5984   IFS="$lt_save_ifs"
5985   MAGIC_CMD="$lt_save_MAGIC_CMD"
5986   ;;
5987 esac
5988 fi
5989
5990 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5991 if test -n "$MAGIC_CMD"; then
5992   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5993 echo "${ECHO_T}$MAGIC_CMD" >&6
5994 else
5995   echo "$as_me:$LINENO: result: no" >&5
5996 echo "${ECHO_T}no" >&6
5997 fi
5998
5999 if test -z "$lt_cv_path_MAGIC_CMD"; then
6000   if test -n "$ac_tool_prefix"; then
6001     echo "$as_me:$LINENO: checking for file" >&5
6002 echo $ECHO_N "checking for file... $ECHO_C" >&6
6003 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6004   echo $ECHO_N "(cached) $ECHO_C" >&6
6005 else
6006   case $MAGIC_CMD in
6007 [\\/*] |  ?:[\\/]*)
6008   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6009   ;;
6010 *)
6011   lt_save_MAGIC_CMD="$MAGIC_CMD"
6012   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6013   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6014   for ac_dir in $ac_dummy; do
6015     IFS="$lt_save_ifs"
6016     test -z "$ac_dir" && ac_dir=.
6017     if test -f $ac_dir/file; then
6018       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6019       if test -n "$file_magic_test_file"; then
6020         case $deplibs_check_method in
6021         "file_magic "*)
6022           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6023           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6024           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6025             $EGREP "$file_magic_regex" > /dev/null; then
6026             :
6027           else
6028             cat <<EOF 1>&2
6029
6030 *** Warning: the command libtool uses to detect shared libraries,
6031 *** $file_magic_cmd, produces output that libtool cannot recognize.
6032 *** The result is that libtool may fail to recognize shared libraries
6033 *** as such.  This will affect the creation of libtool libraries that
6034 *** depend on shared libraries, but programs linked with such libtool
6035 *** libraries will work regardless of this problem.  Nevertheless, you
6036 *** may want to report the problem to your system manager and/or to
6037 *** bug-libtool@gnu.org
6038
6039 EOF
6040           fi ;;
6041         esac
6042       fi
6043       break
6044     fi
6045   done
6046   IFS="$lt_save_ifs"
6047   MAGIC_CMD="$lt_save_MAGIC_CMD"
6048   ;;
6049 esac
6050 fi
6051
6052 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6053 if test -n "$MAGIC_CMD"; then
6054   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6055 echo "${ECHO_T}$MAGIC_CMD" >&6
6056 else
6057   echo "$as_me:$LINENO: result: no" >&5
6058 echo "${ECHO_T}no" >&6
6059 fi
6060
6061   else
6062     MAGIC_CMD=:
6063   fi
6064 fi
6065
6066   fi
6067   ;;
6068 esac
6069
6070 enable_dlopen=no
6071 enable_win32_dll=no
6072
6073 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6074 if test "${enable_libtool_lock+set}" = set; then
6075   enableval="$enable_libtool_lock"
6076
6077 fi;
6078 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6079
6080
6081 # Check whether --with-pic or --without-pic was given.
6082 if test "${with_pic+set}" = set; then
6083   withval="$with_pic"
6084   pic_mode="$withval"
6085 else
6086   pic_mode=default
6087 fi;
6088 test -z "$pic_mode" && pic_mode=default
6089
6090 # Use C for the default configuration in the libtool script
6091 tagname=
6092 lt_save_CC="$CC"
6093 ac_ext=c
6094 ac_cpp='$CPP $CPPFLAGS'
6095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6098
6099
6100 # Source file extension for C test sources.
6101 ac_ext=c
6102
6103 # Object file extension for compiled C test sources.
6104 objext=o
6105 objext=$objext
6106
6107 # Code to be used in simple compile tests
6108 lt_simple_compile_test_code="int some_variable = 0;\n"
6109
6110 # Code to be used in simple link tests
6111 lt_simple_link_test_code='int main(){return(0);}\n'
6112
6113
6114 # If no C compiler was specified, use CC.
6115 LTCC=${LTCC-"$CC"}
6116
6117 # Allow CC to be a program name with arguments.
6118 compiler=$CC
6119
6120
6121 #
6122 # Check for any special shared library compilation flags.
6123 #
6124 lt_prog_cc_shlib=
6125 if test "$GCC" = no; then
6126   case $host_os in
6127   sco3.2v5*)
6128     lt_prog_cc_shlib='-belf'
6129     ;;
6130   esac
6131 fi
6132 if test -n "$lt_prog_cc_shlib"; then
6133   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6134 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6135   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6136   else
6137     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6138 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6139     lt_cv_prog_cc_can_build_shared=no
6140   fi
6141 fi
6142
6143
6144 #
6145 # Check to make sure the static flag actually works.
6146 #
6147 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6148 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6149 if test "${lt_prog_compiler_static_works+set}" = set; then
6150   echo $ECHO_N "(cached) $ECHO_C" >&6
6151 else
6152   lt_prog_compiler_static_works=no
6153    save_LDFLAGS="$LDFLAGS"
6154    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6155    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6156    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6157      # The compiler can only warn and ignore the option if not recognized
6158      # So say no if there are warnings
6159      if test -s conftest.err; then
6160        # Append any errors to the config.log.
6161        cat conftest.err 1>&5
6162      else
6163        lt_prog_compiler_static_works=yes
6164      fi
6165    fi
6166    $rm conftest*
6167    LDFLAGS="$save_LDFLAGS"
6168
6169 fi
6170 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6171 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6172
6173 if test x"$lt_prog_compiler_static_works" = xyes; then
6174     :
6175 else
6176     lt_prog_compiler_static=
6177 fi
6178
6179
6180
6181 ## CAVEAT EMPTOR:
6182 ## There is no encapsulation within the following macros, do not change
6183 ## the running order or otherwise move them around unless you know exactly
6184 ## what you are doing...
6185
6186 lt_prog_compiler_no_builtin_flag=
6187
6188 if test "$GCC" = yes; then
6189   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6190
6191   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6192 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6193 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6194   echo $ECHO_N "(cached) $ECHO_C" >&6
6195 else
6196   lt_cv_prog_compiler_rtti_exceptions=no
6197   ac_outfile=conftest.$ac_objext
6198    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6199    lt_compiler_flag="-fno-rtti -fno-exceptions"
6200    # Insert the option either (1) after the last *FLAGS variable, or
6201    # (2) before a word containing "conftest.", or (3) at the end.
6202    # Note that $ac_compile itself does not contain backslashes and begins
6203    # with a dollar sign (not a hyphen), so the echo should work correctly.
6204    # The option is referenced via a variable to avoid confusing sed.
6205    lt_compile=`echo "$ac_compile" | $SED \
6206    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6207    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6208    -e 's:$: $lt_compiler_flag:'`
6209    (eval echo "\"\$as_me:6209: $lt_compile\"" >&5)
6210    (eval "$lt_compile" 2>conftest.err)
6211    ac_status=$?
6212    cat conftest.err >&5
6213    echo "$as_me:6213: \$? = $ac_status" >&5
6214    if (exit $ac_status) && test -s "$ac_outfile"; then
6215      # The compiler can only warn and ignore the option if not recognized
6216      # So say no if there are warnings
6217      if test ! -s conftest.err; then
6218        lt_cv_prog_compiler_rtti_exceptions=yes
6219      fi
6220    fi
6221    $rm conftest*
6222
6223 fi
6224 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6225 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6226
6227 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6228     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6229 else
6230     :
6231 fi
6232
6233 fi
6234
6235 lt_prog_compiler_wl=
6236 lt_prog_compiler_pic=
6237 lt_prog_compiler_static=
6238
6239 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6240 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6241
6242   if test "$GCC" = yes; then
6243     lt_prog_compiler_wl='-Wl,'
6244     lt_prog_compiler_static='-static'
6245
6246     case $host_os in
6247       aix*)
6248       # All AIX code is PIC.
6249       if test "$host_cpu" = ia64; then
6250         # AIX 5 now supports IA64 processor
6251         lt_prog_compiler_static='-Bstatic'
6252       fi
6253       ;;
6254
6255     amigaos*)
6256       # FIXME: we need at least 68020 code to build shared libraries, but
6257       # adding the `-m68020' flag to GCC prevents building anything better,
6258       # like `-m68040'.
6259       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6260       ;;
6261
6262     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6263       # PIC is the default for these OSes.
6264       ;;
6265
6266     mingw* | pw32* | os2*)
6267       # This hack is so that the source file can tell whether it is being
6268       # built for inclusion in a dll (and should export symbols for example).
6269       lt_prog_compiler_pic='-DDLL_EXPORT'
6270       ;;
6271
6272     darwin* | rhapsody*)
6273       # PIC is the default on this platform
6274       # Common symbols not allowed in MH_DYLIB files
6275       lt_prog_compiler_pic='-fno-common'
6276       ;;
6277
6278     msdosdjgpp*)
6279       # Just because we use GCC doesn't mean we suddenly get shared libraries
6280       # on systems that don't support them.
6281       lt_prog_compiler_can_build_shared=no
6282       enable_shared=no
6283       ;;
6284
6285     sysv4*MP*)
6286       if test -d /usr/nec; then
6287         lt_prog_compiler_pic=-Kconform_pic
6288       fi
6289       ;;
6290
6291     hpux*)
6292       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6293       # not for PA HP-UX.
6294       case "$host_cpu" in
6295       hppa*64*|ia64*)
6296         # +Z the default
6297         ;;
6298       *)
6299         lt_prog_compiler_pic='-fPIC'
6300         ;;
6301       esac
6302       ;;
6303
6304     *)
6305       lt_prog_compiler_pic='-fPIC'
6306       ;;
6307     esac
6308   else
6309     # PORTME Check for flag to pass linker flags through the system compiler.
6310     case $host_os in
6311     aix*)
6312       lt_prog_compiler_wl='-Wl,'
6313       if test "$host_cpu" = ia64; then
6314         # AIX 5 now supports IA64 processor
6315         lt_prog_compiler_static='-Bstatic'
6316       else
6317         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6318       fi
6319       ;;
6320
6321     mingw* | pw32* | os2*)
6322       # This hack is so that the source file can tell whether it is being
6323       # built for inclusion in a dll (and should export symbols for example).
6324       lt_prog_compiler_pic='-DDLL_EXPORT'
6325       ;;
6326
6327     hpux9* | hpux10* | hpux11*)
6328       lt_prog_compiler_wl='-Wl,'
6329       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6330       # not for PA HP-UX.
6331       case "$host_cpu" in
6332       hppa*64*|ia64*)
6333         # +Z the default
6334         ;;
6335       *)
6336         lt_prog_compiler_pic='+Z'
6337         ;;
6338       esac
6339       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6340       lt_prog_compiler_static='${wl}-a ${wl}archive'
6341       ;;
6342
6343     irix5* | irix6* | nonstopux*)
6344       lt_prog_compiler_wl='-Wl,'
6345       # PIC (with -KPIC) is the default.
6346       lt_prog_compiler_static='-non_shared'
6347       ;;
6348
6349     newsos6)
6350       lt_prog_compiler_pic='-KPIC'
6351       lt_prog_compiler_static='-Bstatic'
6352       ;;
6353
6354     linux*)
6355       case $CC in
6356       icc|ecc)
6357         lt_prog_compiler_wl='-Wl,'
6358         lt_prog_compiler_pic='-KPIC'
6359         lt_prog_compiler_static='-static'
6360         ;;
6361       ccc)
6362         lt_prog_compiler_wl='-Wl,'
6363         # All Alpha code is PIC.
6364         lt_prog_compiler_static='-non_shared'
6365         ;;
6366       esac
6367       ;;
6368
6369     osf3* | osf4* | osf5*)
6370       lt_prog_compiler_wl='-Wl,'
6371       # All OSF/1 code is PIC.
6372       lt_prog_compiler_static='-non_shared'
6373       ;;
6374
6375     sco3.2v5*)
6376       lt_prog_compiler_pic='-Kpic'
6377       lt_prog_compiler_static='-dn'
6378       ;;
6379
6380     solaris*)
6381       lt_prog_compiler_wl='-Wl,'
6382       lt_prog_compiler_pic='-KPIC'
6383       lt_prog_compiler_static='-Bstatic'
6384       ;;
6385
6386     sunos4*)
6387       lt_prog_compiler_wl='-Qoption ld '
6388       lt_prog_compiler_pic='-PIC'
6389       lt_prog_compiler_static='-Bstatic'
6390       ;;
6391
6392     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6393       lt_prog_compiler_wl='-Wl,'
6394       lt_prog_compiler_pic='-KPIC'
6395       lt_prog_compiler_static='-Bstatic'
6396       ;;
6397
6398     sysv4*MP*)
6399       if test -d /usr/nec ;then
6400         lt_prog_compiler_pic='-Kconform_pic'
6401         lt_prog_compiler_static='-Bstatic'
6402       fi
6403       ;;
6404
6405     uts4*)
6406       lt_prog_compiler_pic='-pic'
6407       lt_prog_compiler_static='-Bstatic'
6408       ;;
6409
6410     *)
6411       lt_prog_compiler_can_build_shared=no
6412       ;;
6413     esac
6414   fi
6415
6416 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6417 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6418
6419 #
6420 # Check to make sure the PIC flag actually works.
6421 #
6422 if test -n "$lt_prog_compiler_pic"; then
6423   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6424 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6425 if test "${lt_prog_compiler_pic_works+set}" = set; then
6426   echo $ECHO_N "(cached) $ECHO_C" >&6
6427 else
6428   lt_prog_compiler_pic_works=no
6429   ac_outfile=conftest.$ac_objext
6430    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6431    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6432    # Insert the option either (1) after the last *FLAGS variable, or
6433    # (2) before a word containing "conftest.", or (3) at the end.
6434    # Note that $ac_compile itself does not contain backslashes and begins
6435    # with a dollar sign (not a hyphen), so the echo should work correctly.
6436    # The option is referenced via a variable to avoid confusing sed.
6437    lt_compile=`echo "$ac_compile" | $SED \
6438    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6439    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6440    -e 's:$: $lt_compiler_flag:'`
6441    (eval echo "\"\$as_me:6441: $lt_compile\"" >&5)
6442    (eval "$lt_compile" 2>conftest.err)
6443    ac_status=$?
6444    cat conftest.err >&5
6445    echo "$as_me:6445: \$? = $ac_status" >&5
6446    if (exit $ac_status) && test -s "$ac_outfile"; then
6447      # The compiler can only warn and ignore the option if not recognized
6448      # So say no if there are warnings
6449      if test ! -s conftest.err; then
6450        lt_prog_compiler_pic_works=yes
6451      fi
6452    fi
6453    $rm conftest*
6454
6455 fi
6456 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6457 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6458
6459 if test x"$lt_prog_compiler_pic_works" = xyes; then
6460     case $lt_prog_compiler_pic in
6461      "" | " "*) ;;
6462      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6463      esac
6464 else
6465     lt_prog_compiler_pic=
6466      lt_prog_compiler_can_build_shared=no
6467 fi
6468
6469 fi
6470 case "$host_os" in
6471   # For platforms which do not support PIC, -DPIC is meaningless:
6472   *djgpp*)
6473     lt_prog_compiler_pic=
6474     ;;
6475   *)
6476     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6477     ;;
6478 esac
6479
6480 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6481 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6482 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6483   echo $ECHO_N "(cached) $ECHO_C" >&6
6484 else
6485   lt_cv_prog_compiler_c_o=no
6486    $rm -r conftest 2>/dev/null
6487    mkdir conftest
6488    cd conftest
6489    mkdir out
6490    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6491
6492    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6493    # that will create temporary files in the current directory regardless of
6494    # the output directory.  Thus, making CWD read-only will cause this test
6495    # to fail, enabling locking or at least warning the user not to do parallel
6496    # builds.
6497    chmod -w .
6498
6499    lt_compiler_flag="-o out/conftest2.$ac_objext"
6500    # Insert the option either (1) after the last *FLAGS variable, or
6501    # (2) before a word containing "conftest.", or (3) at the end.
6502    # Note that $ac_compile itself does not contain backslashes and begins
6503    # with a dollar sign (not a hyphen), so the echo should work correctly.
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>out/conftest.err)
6510    ac_status=$?
6511    cat out/conftest.err >&5
6512    echo "$as_me:6512: \$? = $ac_status" >&5
6513    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6514    then
6515      # The compiler can only warn and ignore the option if not recognized
6516      # So say no if there are warnings
6517      if test ! -s out/conftest.err; then
6518        lt_cv_prog_compiler_c_o=yes
6519      fi
6520    fi
6521    chmod u+w .
6522    $rm conftest* out/*
6523    rmdir out
6524    cd ..
6525    rmdir conftest
6526    $rm conftest*
6527
6528 fi
6529 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6530 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6531
6532
6533 hard_links="nottested"
6534 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6535   # do not overwrite the value of need_locks provided by the user
6536   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6537 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6538   hard_links=yes
6539   $rm conftest*
6540   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6541   touch conftest.a
6542   ln conftest.a conftest.b 2>&5 || hard_links=no
6543   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6544   echo "$as_me:$LINENO: result: $hard_links" >&5
6545 echo "${ECHO_T}$hard_links" >&6
6546   if test "$hard_links" = no; then
6547     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6548 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6549     need_locks=warn
6550   fi
6551 else
6552   need_locks=no
6553 fi
6554
6555 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6556 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6557
6558   runpath_var=
6559   allow_undefined_flag=
6560   enable_shared_with_static_runtimes=no
6561   archive_cmds=
6562   archive_expsym_cmds=
6563   old_archive_From_new_cmds=
6564   old_archive_from_expsyms_cmds=
6565   export_dynamic_flag_spec=
6566   whole_archive_flag_spec=
6567   thread_safe_flag_spec=
6568   hardcode_libdir_flag_spec=
6569   hardcode_libdir_flag_spec_ld=
6570   hardcode_libdir_separator=
6571   hardcode_direct=no
6572   hardcode_minus_L=no
6573   hardcode_shlibpath_var=unsupported
6574   link_all_deplibs=unknown
6575   hardcode_automatic=no
6576   module_cmds=
6577   module_expsym_cmds=
6578   always_export_symbols=no
6579   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6580   # include_expsyms should be a list of space-separated symbols to be *always*
6581   # included in the symbol list
6582   include_expsyms=
6583   # exclude_expsyms can be an extended regexp of symbols to exclude
6584   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6585   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6586   # as well as any symbol that contains `d'.
6587   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6588   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6589   # platforms (ab)use it in PIC code, but their linkers get confused if
6590   # the symbol is explicitly referenced.  Since portable code cannot
6591   # rely on this symbol name, it's probably fine to never include it in
6592   # preloaded symbol tables.
6593   extract_expsyms_cmds=
6594
6595   case $host_os in
6596   cygwin* | mingw* | pw32*)
6597     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6598     # When not using gcc, we currently assume that we are using
6599     # Microsoft Visual C++.
6600     if test "$GCC" != yes; then
6601       with_gnu_ld=no
6602     fi
6603     ;;
6604   openbsd*)
6605     with_gnu_ld=no
6606     ;;
6607   esac
6608
6609   ld_shlibs=yes
6610   if test "$with_gnu_ld" = yes; then
6611     # If archive_cmds runs LD, not CC, wlarc should be empty
6612     wlarc='${wl}'
6613
6614     # See if GNU ld supports shared libraries.
6615     case $host_os in
6616     aix3* | aix4* | aix5*)
6617       # On AIX/PPC, the GNU linker is very broken
6618       if test "$host_cpu" != ia64; then
6619         ld_shlibs=no
6620         cat <<EOF 1>&2
6621
6622 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6623 *** to be unable to reliably create shared libraries on AIX.
6624 *** Therefore, libtool is disabling shared libraries support.  If you
6625 *** really care for shared libraries, you may want to modify your PATH
6626 *** so that a non-GNU linker is found, and then restart.
6627
6628 EOF
6629       fi
6630       ;;
6631
6632     amigaos*)
6633       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)'
6634       hardcode_libdir_flag_spec='-L$libdir'
6635       hardcode_minus_L=yes
6636
6637       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6638       # that the semantics of dynamic libraries on AmigaOS, at least up
6639       # to version 4, is to share data among multiple programs linked
6640       # with the same dynamic library.  Since this doesn't match the
6641       # behavior of shared libraries on other platforms, we can't use
6642       # them.
6643       ld_shlibs=no
6644       ;;
6645
6646     beos*)
6647       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6648         allow_undefined_flag=unsupported
6649         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6650         # support --undefined.  This deserves some investigation.  FIXME
6651         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6652       else
6653         ld_shlibs=no
6654       fi
6655       ;;
6656
6657     cygwin* | mingw* | pw32*)
6658       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6659       # as there is no search path for DLLs.
6660       hardcode_libdir_flag_spec='-L$libdir'
6661       allow_undefined_flag=unsupported
6662       always_export_symbols=no
6663       enable_shared_with_static_runtimes=yes
6664       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6665
6666       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6667         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6668         # If the export-symbols file already is a .def file (1st line
6669         # is EXPORTS), use it as is; otherwise, prepend...
6670         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6671           cp $export_symbols $output_objdir/$soname.def;
6672         else
6673           echo EXPORTS > $output_objdir/$soname.def;
6674           cat $export_symbols >> $output_objdir/$soname.def;
6675         fi~
6676         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6677       else
6678         ld_shlibs=no
6679       fi
6680       ;;
6681
6682     netbsd*)
6683       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6684         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6685         wlarc=
6686       else
6687         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6688         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6689       fi
6690       ;;
6691
6692     solaris* | sysv5*)
6693       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6694         ld_shlibs=no
6695         cat <<EOF 1>&2
6696
6697 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6698 *** create shared libraries on Solaris systems.  Therefore, libtool
6699 *** is disabling shared libraries support.  We urge you to upgrade GNU
6700 *** binutils to release 2.9.1 or newer.  Another option is to modify
6701 *** your PATH or compiler configuration so that the native linker is
6702 *** used, and then restart.
6703
6704 EOF
6705       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6706         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6707         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6708       else
6709         ld_shlibs=no
6710       fi
6711       ;;
6712
6713     sunos4*)
6714       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6715       wlarc=
6716       hardcode_direct=yes
6717       hardcode_shlibpath_var=no
6718       ;;
6719
6720     *)
6721       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6722         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6723         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6724       else
6725         ld_shlibs=no
6726       fi
6727       ;;
6728     esac
6729
6730     if test "$ld_shlibs" = yes; then
6731       runpath_var=LD_RUN_PATH
6732       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6733       export_dynamic_flag_spec='${wl}--export-dynamic'
6734       # ancient GNU ld didn't support --whole-archive et. al.
6735       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6736         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6737       else
6738         whole_archive_flag_spec=
6739       fi
6740     fi
6741   else
6742     # PORTME fill in a description of your system's linker (not GNU ld)
6743     case $host_os in
6744     aix3*)
6745       allow_undefined_flag=unsupported
6746       always_export_symbols=yes
6747       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'
6748       # Note: this linker hardcodes the directories in LIBPATH if there
6749       # are no directories specified by -L.
6750       hardcode_minus_L=yes
6751       if test "$GCC" = yes && test -z "$link_static_flag"; then
6752         # Neither direct hardcoding nor static linking is supported with a
6753         # broken collect2.
6754         hardcode_direct=unsupported
6755       fi
6756       ;;
6757
6758     aix4* | aix5*)
6759       if test "$host_cpu" = ia64; then
6760         # On IA64, the linker does run time linking by default, so we don't
6761         # have to do anything special.
6762         aix_use_runtimelinking=no
6763         exp_sym_flag='-Bexport'
6764         no_entry_flag=""
6765       else
6766         # If we're using GNU nm, then we don't want the "-C" option.
6767         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6768         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6769           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'
6770         else
6771           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'
6772         fi
6773         aix_use_runtimelinking=no
6774
6775         # Test if we are trying to use run time linking or normal
6776         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6777         # need to do runtime linking.
6778         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6779           for ld_flag in $LDFLAGS; do
6780           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6781             aix_use_runtimelinking=yes
6782             break
6783           fi
6784           done
6785         esac
6786
6787         exp_sym_flag='-bexport'
6788         no_entry_flag='-bnoentry'
6789       fi
6790
6791       # When large executables or shared objects are built, AIX ld can
6792       # have problems creating the table of contents.  If linking a library
6793       # or program results in "error TOC overflow" add -mminimal-toc to
6794       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6795       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6796
6797       archive_cmds=''
6798       hardcode_direct=yes
6799       hardcode_libdir_separator=':'
6800       link_all_deplibs=yes
6801
6802       if test "$GCC" = yes; then
6803         case $host_os in aix4.012|aix4.012.*)
6804         # We only want to do this on AIX 4.2 and lower, the check
6805         # below for broken collect2 doesn't work under 4.3+
6806           collect2name=`${CC} -print-prog-name=collect2`
6807           if test -f "$collect2name" && \
6808            strings "$collect2name" | grep resolve_lib_name >/dev/null
6809           then
6810           # We have reworked collect2
6811           hardcode_direct=yes
6812           else
6813           # We have old collect2
6814           hardcode_direct=unsupported
6815           # It fails to find uninstalled libraries when the uninstalled
6816           # path is not listed in the libpath.  Setting hardcode_minus_L
6817           # to unsupported forces relinking
6818           hardcode_minus_L=yes
6819           hardcode_libdir_flag_spec='-L$libdir'
6820           hardcode_libdir_separator=
6821           fi
6822         esac
6823         shared_flag='-shared'
6824       else
6825         # not using gcc
6826         if test "$host_cpu" = ia64; then
6827         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6828         # chokes on -Wl,-G. The following line is correct:
6829           shared_flag='-G'
6830         else
6831         if test "$aix_use_runtimelinking" = yes; then
6832             shared_flag='${wl}-G'
6833           else
6834             shared_flag='${wl}-bM:SRE'
6835         fi
6836         fi
6837       fi
6838
6839       # It seems that -bexpall does not export symbols beginning with
6840       # underscore (_), so it is better to generate a list of symbols to export.
6841       always_export_symbols=yes
6842       if test "$aix_use_runtimelinking" = yes; then
6843         # Warning - without using the other runtime loading flags (-brtl),
6844         # -berok will link without error, but may produce a broken library.
6845         allow_undefined_flag='-berok'
6846        # Determine the default libpath from the value encoded in an empty executable.
6847        cat >conftest.$ac_ext <<_ACEOF
6848 #line $LINENO "configure"
6849 /* confdefs.h.  */
6850 _ACEOF
6851 cat confdefs.h >>conftest.$ac_ext
6852 cat >>conftest.$ac_ext <<_ACEOF
6853 /* end confdefs.h.  */
6854
6855 int
6856 main ()
6857 {
6858
6859   ;
6860   return 0;
6861 }
6862 _ACEOF
6863 rm -f conftest.$ac_objext conftest$ac_exeext
6864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6865   (eval $ac_link) 2>&5
6866   ac_status=$?
6867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868   (exit $ac_status); } &&
6869          { ac_try='test -s conftest$ac_exeext'
6870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6871   (eval $ac_try) 2>&5
6872   ac_status=$?
6873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874   (exit $ac_status); }; }; then
6875
6876 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6877 }'`
6878 # Check for a 64-bit object if we didn't find anything.
6879 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; }
6880 }'`; fi
6881 else
6882   echo "$as_me: failed program was:" >&5
6883 sed 's/^/| /' conftest.$ac_ext >&5
6884
6885 fi
6886 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6887 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6888
6889        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6890         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"
6891        else
6892         if test "$host_cpu" = ia64; then
6893           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6894           allow_undefined_flag="-z nodefs"
6895           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"
6896         else
6897          # Determine the default libpath from the value encoded in an empty executable.
6898          cat >conftest.$ac_ext <<_ACEOF
6899 #line $LINENO "configure"
6900 /* confdefs.h.  */
6901 _ACEOF
6902 cat confdefs.h >>conftest.$ac_ext
6903 cat >>conftest.$ac_ext <<_ACEOF
6904 /* end confdefs.h.  */
6905
6906 int
6907 main ()
6908 {
6909
6910   ;
6911   return 0;
6912 }
6913 _ACEOF
6914 rm -f conftest.$ac_objext conftest$ac_exeext
6915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6916   (eval $ac_link) 2>&5
6917   ac_status=$?
6918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919   (exit $ac_status); } &&
6920          { ac_try='test -s conftest$ac_exeext'
6921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922   (eval $ac_try) 2>&5
6923   ac_status=$?
6924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925   (exit $ac_status); }; }; then
6926
6927 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6928 }'`
6929 # Check for a 64-bit object if we didn't find anything.
6930 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; }
6931 }'`; fi
6932 else
6933   echo "$as_me: failed program was:" >&5
6934 sed 's/^/| /' conftest.$ac_ext >&5
6935
6936 fi
6937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6938 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6939
6940          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6941           # Warning - without using the other run time loading flags,
6942           # -berok will link without error, but may produce a broken library.
6943           no_undefined_flag=' ${wl}-bernotok'
6944           allow_undefined_flag=' ${wl}-berok'
6945           # -bexpall does not export symbols beginning with underscore (_)
6946           always_export_symbols=yes
6947           # Exported symbols can be pulled into shared objects from archives
6948           whole_archive_flag_spec=' '
6949           archive_cmds_need_lc=yes
6950           # This is similar to how AIX traditionally builds it's shared libraries.
6951           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'
6952         fi
6953       fi
6954       ;;
6955
6956     amigaos*)
6957       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)'
6958       hardcode_libdir_flag_spec='-L$libdir'
6959       hardcode_minus_L=yes
6960       # see comment about different semantics on the GNU ld section
6961       ld_shlibs=no
6962       ;;
6963
6964     bsdi4*)
6965       export_dynamic_flag_spec=-rdynamic
6966       ;;
6967
6968     cygwin* | mingw* | pw32*)
6969       # When not using gcc, we currently assume that we are using
6970       # Microsoft Visual C++.
6971       # hardcode_libdir_flag_spec is actually meaningless, as there is
6972       # no search path for DLLs.
6973       hardcode_libdir_flag_spec=' '
6974       allow_undefined_flag=unsupported
6975       # Tell ltmain to make .lib files, not .a files.
6976       libext=lib
6977       # Tell ltmain to make .dll files, not .so files.
6978       shrext=".dll"
6979       # FIXME: Setting linknames here is a bad hack.
6980       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6981       # The linker will automatically build a .lib file if we build a DLL.
6982       old_archive_From_new_cmds='true'
6983       # FIXME: Should let the user specify the lib program.
6984       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6985       fix_srcfile_path='`cygpath -w "$srcfile"`'
6986       enable_shared_with_static_runtimes=yes
6987       ;;
6988
6989     darwin* | rhapsody*)
6990     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6991       archive_cmds_need_lc=no
6992       case "$host_os" in
6993       rhapsody* | darwin1.[012])
6994         allow_undefined_flag='-undefined suppress'
6995         ;;
6996       *) # Darwin 1.3 on
6997         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6998         ;;
6999       esac
7000       # FIXME: Relying on posixy $() will cause problems for
7001       #        cross-compilation, but unfortunately the echo tests do not
7002       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7003       #        `"' quotes if we put them in here... so don't!
7004         lt_int_apple_cc_single_mod=no
7005         output_verbose_link_cmd='echo'
7006         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7007           lt_int_apple_cc_single_mod=yes
7008         fi
7009         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7010           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7011         else
7012         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'
7013       fi
7014       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7015       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7016         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7017           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}'
7018         else
7019           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}'
7020         fi
7021           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}'
7022       hardcode_direct=no
7023       hardcode_automatic=yes
7024       hardcode_shlibpath_var=unsupported
7025       whole_archive_flag_spec='-all_load $convenience'
7026       link_all_deplibs=yes
7027     fi
7028       ;;
7029
7030     dgux*)
7031       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7032       hardcode_libdir_flag_spec='-L$libdir'
7033       hardcode_shlibpath_var=no
7034       ;;
7035
7036     freebsd1*)
7037       ld_shlibs=no
7038       ;;
7039
7040     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7041     # support.  Future versions do this automatically, but an explicit c++rt0.o
7042     # does not break anything, and helps significantly (at the cost of a little
7043     # extra space).
7044     freebsd2.2*)
7045       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7046       hardcode_libdir_flag_spec='-R$libdir'
7047       hardcode_direct=yes
7048       hardcode_shlibpath_var=no
7049       ;;
7050
7051     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7052     freebsd2*)
7053       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7054       hardcode_direct=yes
7055       hardcode_minus_L=yes
7056       hardcode_shlibpath_var=no
7057       ;;
7058
7059     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7060     freebsd*)
7061       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7062       hardcode_libdir_flag_spec='-R$libdir'
7063       hardcode_direct=yes
7064       hardcode_shlibpath_var=no
7065       ;;
7066
7067     hpux9*)
7068       if test "$GCC" = yes; then
7069         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'
7070       else
7071         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'
7072       fi
7073       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7074       hardcode_libdir_separator=:
7075       hardcode_direct=yes
7076
7077       # hardcode_minus_L: Not really in the search PATH,
7078       # but as the default location of the library.
7079       hardcode_minus_L=yes
7080       export_dynamic_flag_spec='${wl}-E'
7081       ;;
7082
7083     hpux10* | hpux11*)
7084       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7085         case "$host_cpu" in
7086         hppa*64*|ia64*)
7087           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7088           ;;
7089         *)
7090           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7091           ;;
7092         esac
7093       else
7094         case "$host_cpu" in
7095         hppa*64*|ia64*)
7096           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7097           ;;
7098         *)
7099           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7100           ;;
7101         esac
7102       fi
7103       if test "$with_gnu_ld" = no; then
7104         case "$host_cpu" in
7105         hppa*64*)
7106           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7107           hardcode_libdir_flag_spec_ld='+b $libdir'
7108           hardcode_libdir_separator=:
7109           hardcode_direct=no
7110           hardcode_shlibpath_var=no
7111           ;;
7112         ia64*)
7113           hardcode_libdir_flag_spec='-L$libdir'
7114           hardcode_direct=no
7115           hardcode_shlibpath_var=no
7116
7117           # hardcode_minus_L: Not really in the search PATH,
7118           # but as the default location of the library.
7119           hardcode_minus_L=yes
7120           ;;
7121         *)
7122           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7123           hardcode_libdir_separator=:
7124           hardcode_direct=yes
7125           export_dynamic_flag_spec='${wl}-E'
7126
7127           # hardcode_minus_L: Not really in the search PATH,
7128           # but as the default location of the library.
7129           hardcode_minus_L=yes
7130           ;;
7131         esac
7132       fi
7133       ;;
7134
7135     irix5* | irix6* | nonstopux*)
7136       if test "$GCC" = yes; then
7137         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'
7138       else
7139         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'
7140         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7141       fi
7142       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7143       hardcode_libdir_separator=:
7144       link_all_deplibs=yes
7145       ;;
7146
7147     netbsd*)
7148       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7149         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7150       else
7151         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7152       fi
7153       hardcode_libdir_flag_spec='-R$libdir'
7154       hardcode_direct=yes
7155       hardcode_shlibpath_var=no
7156       ;;
7157
7158     newsos6)
7159       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7160       hardcode_direct=yes
7161       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7162       hardcode_libdir_separator=:
7163       hardcode_shlibpath_var=no
7164       ;;
7165
7166     openbsd*)
7167       hardcode_direct=yes
7168       hardcode_shlibpath_var=no
7169       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7170         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7171         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7172         export_dynamic_flag_spec='${wl}-E'
7173       else
7174        case $host_os in
7175          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7176            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7177            hardcode_libdir_flag_spec='-R$libdir'
7178            ;;
7179          *)
7180            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7181            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7182            ;;
7183        esac
7184       fi
7185       ;;
7186
7187     os2*)
7188       hardcode_libdir_flag_spec='-L$libdir'
7189       hardcode_minus_L=yes
7190       allow_undefined_flag=unsupported
7191       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'
7192       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7193       ;;
7194
7195     osf3*)
7196       if test "$GCC" = yes; then
7197         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7198         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'
7199       else
7200         allow_undefined_flag=' -expect_unresolved \*'
7201         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'
7202       fi
7203       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7204       hardcode_libdir_separator=:
7205       ;;
7206
7207     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7208       if test "$GCC" = yes; then
7209         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7210         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'
7211         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7212       else
7213         allow_undefined_flag=' -expect_unresolved \*'
7214         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'
7215         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7216         $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'
7217
7218         # Both c and cxx compiler support -rpath directly
7219         hardcode_libdir_flag_spec='-rpath $libdir'
7220       fi
7221       hardcode_libdir_separator=:
7222       ;;
7223
7224     sco3.2v5*)
7225       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7226       hardcode_shlibpath_var=no
7227       export_dynamic_flag_spec='${wl}-Bexport'
7228       runpath_var=LD_RUN_PATH
7229       hardcode_runpath_var=yes
7230       ;;
7231
7232     solaris*)
7233       no_undefined_flag=' -z text'
7234       if test "$GCC" = yes; then
7235         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7236         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7237           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7238       else
7239         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7240         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7241         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7242       fi
7243       hardcode_libdir_flag_spec='-R$libdir'
7244       hardcode_shlibpath_var=no
7245       case $host_os in
7246       solaris2.[0-5] | solaris2.[0-5].*) ;;
7247       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7248         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7249       esac
7250       link_all_deplibs=yes
7251       ;;
7252
7253     sunos4*)
7254       if test "x$host_vendor" = xsequent; then
7255         # Use $CC to link under sequent, because it throws in some extra .o
7256         # files that make .init and .fini sections work.
7257         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7258       else
7259         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7260       fi
7261       hardcode_libdir_flag_spec='-L$libdir'
7262       hardcode_direct=yes
7263       hardcode_minus_L=yes
7264       hardcode_shlibpath_var=no
7265       ;;
7266
7267     sysv4)
7268       case $host_vendor in
7269         sni)
7270           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7271           hardcode_direct=yes # is this really true???
7272         ;;
7273         siemens)
7274           ## LD is ld it makes a PLAMLIB
7275           ## CC just makes a GrossModule.
7276           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7277           reload_cmds='$CC -r -o $output$reload_objs'
7278           hardcode_direct=no
7279         ;;
7280         motorola)
7281           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7282           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7283         ;;
7284       esac
7285       runpath_var='LD_RUN_PATH'
7286       hardcode_shlibpath_var=no
7287       ;;
7288
7289     sysv4.3*)
7290       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7291       hardcode_shlibpath_var=no
7292       export_dynamic_flag_spec='-Bexport'
7293       ;;
7294
7295     sysv4*MP*)
7296       if test -d /usr/nec; then
7297         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7298         hardcode_shlibpath_var=no
7299         runpath_var=LD_RUN_PATH
7300         hardcode_runpath_var=yes
7301         ld_shlibs=yes
7302       fi
7303       ;;
7304
7305     sysv4.2uw2*)
7306       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7307       hardcode_direct=yes
7308       hardcode_minus_L=no
7309       hardcode_shlibpath_var=no
7310       hardcode_runpath_var=yes
7311       runpath_var=LD_RUN_PATH
7312       ;;
7313
7314    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7315       no_undefined_flag='${wl}-z ${wl}text'
7316       if test "$GCC" = yes; then
7317         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7318       else
7319         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7320       fi
7321       runpath_var='LD_RUN_PATH'
7322       hardcode_shlibpath_var=no
7323       ;;
7324
7325     sysv5*)
7326       no_undefined_flag=' -z text'
7327       # $CC -shared without GNU ld will not create a library from C++
7328       # object files and a static libstdc++, better avoid it by now
7329       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7330       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7331                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7332       hardcode_libdir_flag_spec=
7333       hardcode_shlibpath_var=no
7334       runpath_var='LD_RUN_PATH'
7335       ;;
7336
7337     uts4*)
7338       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7339       hardcode_libdir_flag_spec='-L$libdir'
7340       hardcode_shlibpath_var=no
7341       ;;
7342
7343     *)
7344       ld_shlibs=no
7345       ;;
7346     esac
7347   fi
7348
7349 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7350 echo "${ECHO_T}$ld_shlibs" >&6
7351 test "$ld_shlibs" = no && can_build_shared=no
7352
7353 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7354 if test "$GCC" = yes; then
7355   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7356 fi
7357
7358 #
7359 # Do we need to explicitly link libc?
7360 #
7361 case "x$archive_cmds_need_lc" in
7362 x|xyes)
7363   # Assume -lc should be added
7364   archive_cmds_need_lc=yes
7365
7366   if test "$enable_shared" = yes && test "$GCC" = yes; then
7367     case $archive_cmds in
7368     *'~'*)
7369       # FIXME: we may have to deal with multi-command sequences.
7370       ;;
7371     '$CC '*)
7372       # Test whether the compiler implicitly links with -lc since on some
7373       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7374       # to ld, don't add -lc before -lgcc.
7375       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7376 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7377       $rm conftest*
7378       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7379
7380       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7381   (eval $ac_compile) 2>&5
7382   ac_status=$?
7383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384   (exit $ac_status); } 2>conftest.err; then
7385         soname=conftest
7386         lib=conftest
7387         libobjs=conftest.$ac_objext
7388         deplibs=
7389         wl=$lt_prog_compiler_wl
7390         compiler_flags=-v
7391         linker_flags=-v
7392         verstring=
7393         output_objdir=.
7394         libname=conftest
7395         lt_save_allow_undefined_flag=$allow_undefined_flag
7396         allow_undefined_flag=
7397         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7398   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7399   ac_status=$?
7400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401   (exit $ac_status); }
7402         then
7403           archive_cmds_need_lc=no
7404         else
7405           archive_cmds_need_lc=yes
7406         fi
7407         allow_undefined_flag=$lt_save_allow_undefined_flag
7408       else
7409         cat conftest.err 1>&5
7410       fi
7411       $rm conftest*
7412       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7413 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7414       ;;
7415     esac
7416   fi
7417   ;;
7418 esac
7419
7420 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7421 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7422 hardcode_action=
7423 if test -n "$hardcode_libdir_flag_spec" || \
7424    test -n "$runpath_var " || \
7425    test "X$hardcode_automatic"="Xyes" ; then
7426
7427   # We can hardcode non-existant directories.
7428   if test "$hardcode_direct" != no &&
7429      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7430      # have to relink, otherwise we might link with an installed library
7431      # when we should be linking with a yet-to-be-installed one
7432      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7433      test "$hardcode_minus_L" != no; then
7434     # Linking always hardcodes the temporary library directory.
7435     hardcode_action=relink
7436   else
7437     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7438     hardcode_action=immediate
7439   fi
7440 else
7441   # We cannot hardcode anything, or else we can only hardcode existing
7442   # directories.
7443   hardcode_action=unsupported
7444 fi
7445 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7446 echo "${ECHO_T}$hardcode_action" >&6
7447
7448 if test "$hardcode_action" = relink; then
7449   # Fast installation is not supported
7450   enable_fast_install=no
7451 elif test "$shlibpath_overrides_runpath" = yes ||
7452      test "$enable_shared" = no; then
7453   # Fast installation is not necessary
7454   enable_fast_install=needless
7455 fi
7456
7457 striplib=
7458 old_striplib=
7459 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7460 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7461 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7462   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7463   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7464   echo "$as_me:$LINENO: result: yes" >&5
7465 echo "${ECHO_T}yes" >&6
7466 else
7467 # FIXME - insert some real tests, host_os isn't really good enough
7468   case $host_os in
7469    darwin*)
7470        if test -n "$STRIP" ; then
7471          striplib="$STRIP -x"
7472          echo "$as_me:$LINENO: result: yes" >&5
7473 echo "${ECHO_T}yes" >&6
7474        else
7475   echo "$as_me:$LINENO: result: no" >&5
7476 echo "${ECHO_T}no" >&6
7477 fi
7478        ;;
7479    *)
7480   echo "$as_me:$LINENO: result: no" >&5
7481 echo "${ECHO_T}no" >&6
7482     ;;
7483   esac
7484 fi
7485
7486 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7487 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7488 library_names_spec=
7489 libname_spec='lib$name'
7490 soname_spec=
7491 shrext=".so"
7492 postinstall_cmds=
7493 postuninstall_cmds=
7494 finish_cmds=
7495 finish_eval=
7496 shlibpath_var=
7497 shlibpath_overrides_runpath=unknown
7498 version_type=none
7499 dynamic_linker="$host_os ld.so"
7500 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7501 if test "$GCC" = yes; then
7502   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7503   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7504     # if the path contains ";" then we assume it to be the separator
7505     # otherwise default to the standard path separator (i.e. ":") - it is
7506     # assumed that no part of a normal pathname contains ";" but that should
7507     # okay in the real world where ";" in dirpaths is itself problematic.
7508     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7509   else
7510     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7511   fi
7512 else
7513   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7514 fi
7515 need_lib_prefix=unknown
7516 hardcode_into_libs=no
7517
7518 # when you set need_version to no, make sure it does not cause -set_version
7519 # flags to be left without arguments
7520 need_version=unknown
7521
7522 case $host_os in
7523 aix3*)
7524   version_type=linux
7525   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7526   shlibpath_var=LIBPATH
7527
7528   # AIX 3 has no versioning support, so we append a major version to the name.
7529   soname_spec='${libname}${release}${shared_ext}$major'
7530   ;;
7531
7532 aix4* | aix5*)
7533   version_type=linux
7534   need_lib_prefix=no
7535   need_version=no
7536   hardcode_into_libs=yes
7537   if test "$host_cpu" = ia64; then
7538     # AIX 5 supports IA64
7539     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7540     shlibpath_var=LD_LIBRARY_PATH
7541   else
7542     # With GCC up to 2.95.x, collect2 would create an import file
7543     # for dependence libraries.  The import file would start with
7544     # the line `#! .'.  This would cause the generated library to
7545     # depend on `.', always an invalid library.  This was fixed in
7546     # development snapshots of GCC prior to 3.0.
7547     case $host_os in
7548       aix4 | aix4.[01] | aix4.[01].*)
7549       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7550            echo ' yes '
7551            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7552         :
7553       else
7554         can_build_shared=no
7555       fi
7556       ;;
7557     esac
7558     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7559     # soname into executable. Probably we can add versioning support to
7560     # collect2, so additional links can be useful in future.
7561     if test "$aix_use_runtimelinking" = yes; then
7562       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7563       # instead of lib<name>.a to let people know that these are not
7564       # typical AIX shared libraries.
7565       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7566     else
7567       # We preserve .a as extension for shared libraries through AIX4.2
7568       # and later when we are not doing run time linking.
7569       library_names_spec='${libname}${release}.a $libname.a'
7570       soname_spec='${libname}${release}${shared_ext}$major'
7571     fi
7572     shlibpath_var=LIBPATH
7573   fi
7574   ;;
7575
7576 amigaos*)
7577   library_names_spec='$libname.ixlibrary $libname.a'
7578   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7579   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'
7580   ;;
7581
7582 beos*)
7583   library_names_spec='${libname}${shared_ext}'
7584   dynamic_linker="$host_os ld.so"
7585   shlibpath_var=LIBRARY_PATH
7586   ;;
7587
7588 bsdi4*)
7589   version_type=linux
7590   need_version=no
7591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7592   soname_spec='${libname}${release}${shared_ext}$major'
7593   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7594   shlibpath_var=LD_LIBRARY_PATH
7595   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7596   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7597   # the default ld.so.conf also contains /usr/contrib/lib and
7598   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7599   # libtool to hard-code these into programs
7600   ;;
7601
7602 cygwin* | mingw* | pw32*)
7603   version_type=windows
7604   shrext=".dll"
7605   need_version=no
7606   need_lib_prefix=no
7607
7608   case $GCC,$host_os in
7609   yes,cygwin* | yes,mingw* | yes,pw32*)
7610     library_names_spec='$libname.dll.a'
7611     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7612     postinstall_cmds='base_file=`basename \${file}`~
7613       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7614       dldir=$destdir/`dirname \$dlpath`~
7615       test -d \$dldir || mkdir -p \$dldir~
7616       $install_prog $dir/$dlname \$dldir/$dlname'
7617     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7618       dlpath=$dir/\$dldll~
7619        $rm \$dlpath'
7620     shlibpath_overrides_runpath=yes
7621
7622     case $host_os in
7623     cygwin*)
7624       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7625       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7626       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7627       ;;
7628     mingw*)
7629       # MinGW DLLs use traditional 'lib' prefix
7630       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7631       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7632       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7633         # It is most probably a Windows format PATH printed by
7634         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7635         # path with ; separators, and with drive letters. We can handle the
7636         # drive letters (cygwin fileutils understands them), so leave them,
7637         # especially as we might pass files found there to a mingw objdump,
7638         # which wouldn't understand a cygwinified path. Ahh.
7639         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7640       else
7641         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7642       fi
7643       ;;
7644     pw32*)
7645       # pw32 DLLs use 'pw' prefix rather than 'lib'
7646       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7647       ;;
7648     esac
7649     ;;
7650
7651   *)
7652     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7653     ;;
7654   esac
7655   dynamic_linker='Win32 ld.exe'
7656   # FIXME: first we should search . and the directory the executable is in
7657   shlibpath_var=PATH
7658   ;;
7659
7660 darwin* | rhapsody*)
7661   dynamic_linker="$host_os dyld"
7662   version_type=darwin
7663   need_lib_prefix=no
7664   need_version=no
7665   # FIXME: Relying on posixy $() will cause problems for
7666   #        cross-compilation, but unfortunately the echo tests do not
7667   #        yet detect zsh echo's removal of \ escapes.
7668   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7669   soname_spec='${libname}${release}${major}$shared_ext'
7670   shlibpath_overrides_runpath=yes
7671   shlibpath_var=DYLD_LIBRARY_PATH
7672   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7673   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7674   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7675   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"`
7676   fi
7677   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7678   ;;
7679
7680 dgux*)
7681   version_type=linux
7682   need_lib_prefix=no
7683   need_version=no
7684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7685   soname_spec='${libname}${release}${shared_ext}$major'
7686   shlibpath_var=LD_LIBRARY_PATH
7687   ;;
7688
7689 freebsd1*)
7690   dynamic_linker=no
7691   ;;
7692
7693 freebsd*)
7694   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7695   version_type=freebsd-$objformat
7696   case $version_type in
7697     freebsd-elf*)
7698       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7699       need_version=no
7700       need_lib_prefix=no
7701       ;;
7702     freebsd-*)
7703       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7704       need_version=yes
7705       ;;
7706   esac
7707   shlibpath_var=LD_LIBRARY_PATH
7708   case $host_os in
7709   freebsd2*)
7710     shlibpath_overrides_runpath=yes
7711     ;;
7712   freebsd3.01* | freebsdelf3.01*)
7713     shlibpath_overrides_runpath=yes
7714     hardcode_into_libs=yes
7715     ;;
7716   *) # from 3.2 on
7717     shlibpath_overrides_runpath=no
7718     hardcode_into_libs=yes
7719     ;;
7720   esac
7721   ;;
7722
7723 gnu*)
7724   version_type=linux
7725   need_lib_prefix=no
7726   need_version=no
7727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7728   soname_spec='${libname}${release}${shared_ext}$major'
7729   shlibpath_var=LD_LIBRARY_PATH
7730   hardcode_into_libs=yes
7731   ;;
7732
7733 hpux9* | hpux10* | hpux11*)
7734   # Give a soname corresponding to the major version so that dld.sl refuses to
7735   # link against other versions.
7736   version_type=sunos
7737   need_lib_prefix=no
7738   need_version=no
7739   case "$host_cpu" in
7740   ia64*)
7741     shrext='.so'
7742     hardcode_into_libs=yes
7743     dynamic_linker="$host_os dld.so"
7744     shlibpath_var=LD_LIBRARY_PATH
7745     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7746     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7747     soname_spec='${libname}${release}${shared_ext}$major'
7748     if test "X$HPUX_IA64_MODE" = X32; then
7749       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7750     else
7751       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7752     fi
7753     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7754     ;;
7755    hppa*64*)
7756      shrext='.sl'
7757      hardcode_into_libs=yes
7758      dynamic_linker="$host_os dld.sl"
7759      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7760      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7761      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7762      soname_spec='${libname}${release}${shared_ext}$major'
7763      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7764      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7765      ;;
7766    *)
7767     shrext='.sl'
7768     dynamic_linker="$host_os dld.sl"
7769     shlibpath_var=SHLIB_PATH
7770     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7771     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7772     soname_spec='${libname}${release}${shared_ext}$major'
7773     ;;
7774   esac
7775   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7776   postinstall_cmds='chmod 555 $lib'
7777   ;;
7778
7779 irix5* | irix6* | nonstopux*)
7780   case $host_os in
7781     nonstopux*) version_type=nonstopux ;;
7782     *)
7783         if test "$lt_cv_prog_gnu_ld" = yes; then
7784                 version_type=linux
7785         else
7786                 version_type=irix
7787         fi ;;
7788   esac
7789   need_lib_prefix=no
7790   need_version=no
7791   soname_spec='${libname}${release}${shared_ext}$major'
7792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7793   case $host_os in
7794   irix5* | nonstopux*)
7795     libsuff= shlibsuff=
7796     ;;
7797   *)
7798     case $LD in # libtool.m4 will add one of these switches to LD
7799     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7800       libsuff= shlibsuff= libmagic=32-bit;;
7801     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7802       libsuff=32 shlibsuff=N32 libmagic=N32;;
7803     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7804       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7805     *) libsuff= shlibsuff= libmagic=never-match;;
7806     esac
7807     ;;
7808   esac
7809   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7810   shlibpath_overrides_runpath=no
7811   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7812   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7813   hardcode_into_libs=yes
7814   ;;
7815
7816 # No shared lib support for Linux oldld, aout, or coff.
7817 linux*oldld* | linux*aout* | linux*coff*)
7818   dynamic_linker=no
7819   ;;
7820
7821 # This must be Linux ELF.
7822 linux*)
7823   version_type=linux
7824   need_lib_prefix=no
7825   need_version=no
7826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7827   soname_spec='${libname}${release}${shared_ext}$major'
7828   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7829   shlibpath_var=LD_LIBRARY_PATH
7830   shlibpath_overrides_runpath=no
7831   # This implies no fast_install, which is unacceptable.
7832   # Some rework will be needed to allow for fast_install
7833   # before this can be enabled.
7834   hardcode_into_libs=yes
7835
7836   # We used to test for /lib/ld.so.1 and disable shared libraries on
7837   # powerpc, because MkLinux only supported shared libraries with the
7838   # GNU dynamic linker.  Since this was broken with cross compilers,
7839   # most powerpc-linux boxes support dynamic linking these days and
7840   # people can always --disable-shared, the test was removed, and we
7841   # assume the GNU/Linux dynamic linker is in use.
7842   dynamic_linker='GNU/Linux ld.so'
7843   ;;
7844
7845 netbsd*)
7846   version_type=sunos
7847   need_lib_prefix=no
7848   need_version=no
7849   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7850     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7851     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7852     dynamic_linker='NetBSD (a.out) ld.so'
7853   else
7854     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7855     soname_spec='${libname}${release}${shared_ext}$major'
7856     dynamic_linker='NetBSD ld.elf_so'
7857   fi
7858   shlibpath_var=LD_LIBRARY_PATH
7859   shlibpath_overrides_runpath=yes
7860   hardcode_into_libs=yes
7861   ;;
7862
7863 newsos6)
7864   version_type=linux
7865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7866   shlibpath_var=LD_LIBRARY_PATH
7867   shlibpath_overrides_runpath=yes
7868   ;;
7869
7870 nto-qnx)
7871   version_type=linux
7872   need_lib_prefix=no
7873   need_version=no
7874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7875   soname_spec='${libname}${release}${shared_ext}$major'
7876   shlibpath_var=LD_LIBRARY_PATH
7877   shlibpath_overrides_runpath=yes
7878   ;;
7879
7880 openbsd*)
7881   version_type=sunos
7882   need_lib_prefix=no
7883   need_version=no
7884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7885   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7886   shlibpath_var=LD_LIBRARY_PATH
7887   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7888     case $host_os in
7889       openbsd2.[89] | openbsd2.[89].*)
7890         shlibpath_overrides_runpath=no
7891         ;;
7892       *)
7893         shlibpath_overrides_runpath=yes
7894         ;;
7895       esac
7896   else
7897     shlibpath_overrides_runpath=yes
7898   fi
7899   ;;
7900
7901 os2*)
7902   libname_spec='$name'
7903   shrext=".dll"
7904   need_lib_prefix=no
7905   library_names_spec='$libname${shared_ext} $libname.a'
7906   dynamic_linker='OS/2 ld.exe'
7907   shlibpath_var=LIBPATH
7908   ;;
7909
7910 osf3* | osf4* | osf5*)
7911   version_type=osf
7912   need_lib_prefix=no
7913   need_version=no
7914   soname_spec='${libname}${release}${shared_ext}$major'
7915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7916   shlibpath_var=LD_LIBRARY_PATH
7917   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7918   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7919   ;;
7920
7921 sco3.2v5*)
7922   version_type=osf
7923   soname_spec='${libname}${release}${shared_ext}$major'
7924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7925   shlibpath_var=LD_LIBRARY_PATH
7926   ;;
7927
7928 solaris*)
7929   version_type=linux
7930   need_lib_prefix=no
7931   need_version=no
7932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7933   soname_spec='${libname}${release}${shared_ext}$major'
7934   shlibpath_var=LD_LIBRARY_PATH
7935   shlibpath_overrides_runpath=yes
7936   hardcode_into_libs=yes
7937   # ldd complains unless libraries are executable
7938   postinstall_cmds='chmod +x $lib'
7939   ;;
7940
7941 sunos4*)
7942   version_type=sunos
7943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7944   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7945   shlibpath_var=LD_LIBRARY_PATH
7946   shlibpath_overrides_runpath=yes
7947   if test "$with_gnu_ld" = yes; then
7948     need_lib_prefix=no
7949   fi
7950   need_version=yes
7951   ;;
7952
7953 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7954   version_type=linux
7955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7956   soname_spec='${libname}${release}${shared_ext}$major'
7957   shlibpath_var=LD_LIBRARY_PATH
7958   case $host_vendor in
7959     sni)
7960       shlibpath_overrides_runpath=no
7961       need_lib_prefix=no
7962       export_dynamic_flag_spec='${wl}-Blargedynsym'
7963       runpath_var=LD_RUN_PATH
7964       ;;
7965     siemens)
7966       need_lib_prefix=no
7967       ;;
7968     motorola)
7969       need_lib_prefix=no
7970       need_version=no
7971       shlibpath_overrides_runpath=no
7972       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7973       ;;
7974   esac
7975   ;;
7976
7977 sysv4*MP*)
7978   if test -d /usr/nec ;then
7979     version_type=linux
7980     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7981     soname_spec='$libname${shared_ext}.$major'
7982     shlibpath_var=LD_LIBRARY_PATH
7983   fi
7984   ;;
7985
7986 uts4*)
7987   version_type=linux
7988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7989   soname_spec='${libname}${release}${shared_ext}$major'
7990   shlibpath_var=LD_LIBRARY_PATH
7991   ;;
7992
7993 *)
7994   dynamic_linker=no
7995   ;;
7996 esac
7997 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7998 echo "${ECHO_T}$dynamic_linker" >&6
7999 test "$dynamic_linker" = no && can_build_shared=no
8000
8001 if test "x$enable_dlopen" != xyes; then
8002   enable_dlopen=unknown
8003   enable_dlopen_self=unknown
8004   enable_dlopen_self_static=unknown
8005 else
8006   lt_cv_dlopen=no
8007   lt_cv_dlopen_libs=
8008
8009   case $host_os in
8010   beos*)
8011     lt_cv_dlopen="load_add_on"
8012     lt_cv_dlopen_libs=
8013     lt_cv_dlopen_self=yes
8014     ;;
8015
8016   mingw* | pw32*)
8017     lt_cv_dlopen="LoadLibrary"
8018     lt_cv_dlopen_libs=
8019    ;;
8020
8021   cygwin*)
8022     lt_cv_dlopen="dlopen"
8023     lt_cv_dlopen_libs=
8024    ;;
8025
8026   darwin*)
8027   # if libdl is installed we need to link against it
8028     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8029 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8030 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8031   echo $ECHO_N "(cached) $ECHO_C" >&6
8032 else
8033   ac_check_lib_save_LIBS=$LIBS
8034 LIBS="-ldl  $LIBS"
8035 cat >conftest.$ac_ext <<_ACEOF
8036 #line $LINENO "configure"
8037 /* confdefs.h.  */
8038 _ACEOF
8039 cat confdefs.h >>conftest.$ac_ext
8040 cat >>conftest.$ac_ext <<_ACEOF
8041 /* end confdefs.h.  */
8042
8043 /* Override any gcc2 internal prototype to avoid an error.  */
8044 #ifdef __cplusplus
8045 extern "C"
8046 #endif
8047 /* We use char because int might match the return type of a gcc2
8048    builtin and then its argument prototype would still apply.  */
8049 char dlopen ();
8050 int
8051 main ()
8052 {
8053 dlopen ();
8054   ;
8055   return 0;
8056 }
8057 _ACEOF
8058 rm -f conftest.$ac_objext conftest$ac_exeext
8059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8060   (eval $ac_link) 2>&5
8061   ac_status=$?
8062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063   (exit $ac_status); } &&
8064          { ac_try='test -s conftest$ac_exeext'
8065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066   (eval $ac_try) 2>&5
8067   ac_status=$?
8068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069   (exit $ac_status); }; }; then
8070   ac_cv_lib_dl_dlopen=yes
8071 else
8072   echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8074
8075 ac_cv_lib_dl_dlopen=no
8076 fi
8077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8078 LIBS=$ac_check_lib_save_LIBS
8079 fi
8080 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8081 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8082 if test $ac_cv_lib_dl_dlopen = yes; then
8083   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8084 else
8085
8086     lt_cv_dlopen="dyld"
8087     lt_cv_dlopen_libs=
8088     lt_cv_dlopen_self=yes
8089
8090 fi
8091
8092    ;;
8093
8094   *)
8095     echo "$as_me:$LINENO: checking for shl_load" >&5
8096 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8097 if test "${ac_cv_func_shl_load+set}" = set; then
8098   echo $ECHO_N "(cached) $ECHO_C" >&6
8099 else
8100   cat >conftest.$ac_ext <<_ACEOF
8101 #line $LINENO "configure"
8102 /* confdefs.h.  */
8103 _ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h.  */
8107 /* System header to define __stub macros and hopefully few prototypes,
8108     which can conflict with char shl_load (); below.
8109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8110     <limits.h> exists even on freestanding compilers.  */
8111 #ifdef __STDC__
8112 # include <limits.h>
8113 #else
8114 # include <assert.h>
8115 #endif
8116 /* Override any gcc2 internal prototype to avoid an error.  */
8117 #ifdef __cplusplus
8118 extern "C"
8119 {
8120 #endif
8121 /* We use char because int might match the return type of a gcc2
8122    builtin and then its argument prototype would still apply.  */
8123 char shl_load ();
8124 /* The GNU C library defines this for functions which it implements
8125     to always fail with ENOSYS.  Some functions are actually named
8126     something starting with __ and the normal name is an alias.  */
8127 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8128 choke me
8129 #else
8130 char (*f) () = shl_load;
8131 #endif
8132 #ifdef __cplusplus
8133 }
8134 #endif
8135
8136 int
8137 main ()
8138 {
8139 return f != shl_load;
8140   ;
8141   return 0;
8142 }
8143 _ACEOF
8144 rm -f conftest.$ac_objext conftest$ac_exeext
8145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8146   (eval $ac_link) 2>&5
8147   ac_status=$?
8148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149   (exit $ac_status); } &&
8150          { ac_try='test -s conftest$ac_exeext'
8151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8152   (eval $ac_try) 2>&5
8153   ac_status=$?
8154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155   (exit $ac_status); }; }; then
8156   ac_cv_func_shl_load=yes
8157 else
8158   echo "$as_me: failed program was:" >&5
8159 sed 's/^/| /' conftest.$ac_ext >&5
8160
8161 ac_cv_func_shl_load=no
8162 fi
8163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8164 fi
8165 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8166 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8167 if test $ac_cv_func_shl_load = yes; then
8168   lt_cv_dlopen="shl_load"
8169 else
8170   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8171 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8172 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8173   echo $ECHO_N "(cached) $ECHO_C" >&6
8174 else
8175   ac_check_lib_save_LIBS=$LIBS
8176 LIBS="-ldld  $LIBS"
8177 cat >conftest.$ac_ext <<_ACEOF
8178 #line $LINENO "configure"
8179 /* confdefs.h.  */
8180 _ACEOF
8181 cat confdefs.h >>conftest.$ac_ext
8182 cat >>conftest.$ac_ext <<_ACEOF
8183 /* end confdefs.h.  */
8184
8185 /* Override any gcc2 internal prototype to avoid an error.  */
8186 #ifdef __cplusplus
8187 extern "C"
8188 #endif
8189 /* We use char because int might match the return type of a gcc2
8190    builtin and then its argument prototype would still apply.  */
8191 char shl_load ();
8192 int
8193 main ()
8194 {
8195 shl_load ();
8196   ;
8197   return 0;
8198 }
8199 _ACEOF
8200 rm -f conftest.$ac_objext conftest$ac_exeext
8201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8202   (eval $ac_link) 2>&5
8203   ac_status=$?
8204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205   (exit $ac_status); } &&
8206          { ac_try='test -s conftest$ac_exeext'
8207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8208   (eval $ac_try) 2>&5
8209   ac_status=$?
8210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211   (exit $ac_status); }; }; then
8212   ac_cv_lib_dld_shl_load=yes
8213 else
8214   echo "$as_me: failed program was:" >&5
8215 sed 's/^/| /' conftest.$ac_ext >&5
8216
8217 ac_cv_lib_dld_shl_load=no
8218 fi
8219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8220 LIBS=$ac_check_lib_save_LIBS
8221 fi
8222 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8223 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8224 if test $ac_cv_lib_dld_shl_load = yes; then
8225   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8226 else
8227   echo "$as_me:$LINENO: checking for dlopen" >&5
8228 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8229 if test "${ac_cv_func_dlopen+set}" = set; then
8230   echo $ECHO_N "(cached) $ECHO_C" >&6
8231 else
8232   cat >conftest.$ac_ext <<_ACEOF
8233 #line $LINENO "configure"
8234 /* confdefs.h.  */
8235 _ACEOF
8236 cat confdefs.h >>conftest.$ac_ext
8237 cat >>conftest.$ac_ext <<_ACEOF
8238 /* end confdefs.h.  */
8239 /* System header to define __stub macros and hopefully few prototypes,
8240     which can conflict with char dlopen (); below.
8241     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8242     <limits.h> exists even on freestanding compilers.  */
8243 #ifdef __STDC__
8244 # include <limits.h>
8245 #else
8246 # include <assert.h>
8247 #endif
8248 /* Override any gcc2 internal prototype to avoid an error.  */
8249 #ifdef __cplusplus
8250 extern "C"
8251 {
8252 #endif
8253 /* We use char because int might match the return type of a gcc2
8254    builtin and then its argument prototype would still apply.  */
8255 char dlopen ();
8256 /* The GNU C library defines this for functions which it implements
8257     to always fail with ENOSYS.  Some functions are actually named
8258     something starting with __ and the normal name is an alias.  */
8259 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8260 choke me
8261 #else
8262 char (*f) () = dlopen;
8263 #endif
8264 #ifdef __cplusplus
8265 }
8266 #endif
8267
8268 int
8269 main ()
8270 {
8271 return f != dlopen;
8272   ;
8273   return 0;
8274 }
8275 _ACEOF
8276 rm -f conftest.$ac_objext conftest$ac_exeext
8277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8278   (eval $ac_link) 2>&5
8279   ac_status=$?
8280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281   (exit $ac_status); } &&
8282          { ac_try='test -s conftest$ac_exeext'
8283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8284   (eval $ac_try) 2>&5
8285   ac_status=$?
8286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287   (exit $ac_status); }; }; then
8288   ac_cv_func_dlopen=yes
8289 else
8290   echo "$as_me: failed program was:" >&5
8291 sed 's/^/| /' conftest.$ac_ext >&5
8292
8293 ac_cv_func_dlopen=no
8294 fi
8295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8296 fi
8297 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8298 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8299 if test $ac_cv_func_dlopen = yes; then
8300   lt_cv_dlopen="dlopen"
8301 else
8302   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8303 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8304 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8305   echo $ECHO_N "(cached) $ECHO_C" >&6
8306 else
8307   ac_check_lib_save_LIBS=$LIBS
8308 LIBS="-ldl  $LIBS"
8309 cat >conftest.$ac_ext <<_ACEOF
8310 #line $LINENO "configure"
8311 /* confdefs.h.  */
8312 _ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h.  */
8316
8317 /* Override any gcc2 internal prototype to avoid an error.  */
8318 #ifdef __cplusplus
8319 extern "C"
8320 #endif
8321 /* We use char because int might match the return type of a gcc2
8322    builtin and then its argument prototype would still apply.  */
8323 char dlopen ();
8324 int
8325 main ()
8326 {
8327 dlopen ();
8328   ;
8329   return 0;
8330 }
8331 _ACEOF
8332 rm -f conftest.$ac_objext conftest$ac_exeext
8333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8334   (eval $ac_link) 2>&5
8335   ac_status=$?
8336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337   (exit $ac_status); } &&
8338          { ac_try='test -s conftest$ac_exeext'
8339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340   (eval $ac_try) 2>&5
8341   ac_status=$?
8342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343   (exit $ac_status); }; }; then
8344   ac_cv_lib_dl_dlopen=yes
8345 else
8346   echo "$as_me: failed program was:" >&5
8347 sed 's/^/| /' conftest.$ac_ext >&5
8348
8349 ac_cv_lib_dl_dlopen=no
8350 fi
8351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8352 LIBS=$ac_check_lib_save_LIBS
8353 fi
8354 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8355 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8356 if test $ac_cv_lib_dl_dlopen = yes; then
8357   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8358 else
8359   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8360 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8361 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8362   echo $ECHO_N "(cached) $ECHO_C" >&6
8363 else
8364   ac_check_lib_save_LIBS=$LIBS
8365 LIBS="-lsvld  $LIBS"
8366 cat >conftest.$ac_ext <<_ACEOF
8367 #line $LINENO "configure"
8368 /* confdefs.h.  */
8369 _ACEOF
8370 cat confdefs.h >>conftest.$ac_ext
8371 cat >>conftest.$ac_ext <<_ACEOF
8372 /* end confdefs.h.  */
8373
8374 /* Override any gcc2 internal prototype to avoid an error.  */
8375 #ifdef __cplusplus
8376 extern "C"
8377 #endif
8378 /* We use char because int might match the return type of a gcc2
8379    builtin and then its argument prototype would still apply.  */
8380 char dlopen ();
8381 int
8382 main ()
8383 {
8384 dlopen ();
8385   ;
8386   return 0;
8387 }
8388 _ACEOF
8389 rm -f conftest.$ac_objext conftest$ac_exeext
8390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8391   (eval $ac_link) 2>&5
8392   ac_status=$?
8393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394   (exit $ac_status); } &&
8395          { ac_try='test -s conftest$ac_exeext'
8396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397   (eval $ac_try) 2>&5
8398   ac_status=$?
8399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400   (exit $ac_status); }; }; then
8401   ac_cv_lib_svld_dlopen=yes
8402 else
8403   echo "$as_me: failed program was:" >&5
8404 sed 's/^/| /' conftest.$ac_ext >&5
8405
8406 ac_cv_lib_svld_dlopen=no
8407 fi
8408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8409 LIBS=$ac_check_lib_save_LIBS
8410 fi
8411 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8412 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8413 if test $ac_cv_lib_svld_dlopen = yes; then
8414   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8415 else
8416   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8417 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8418 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8419   echo $ECHO_N "(cached) $ECHO_C" >&6
8420 else
8421   ac_check_lib_save_LIBS=$LIBS
8422 LIBS="-ldld  $LIBS"
8423 cat >conftest.$ac_ext <<_ACEOF
8424 #line $LINENO "configure"
8425 /* confdefs.h.  */
8426 _ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h.  */
8430
8431 /* Override any gcc2 internal prototype to avoid an error.  */
8432 #ifdef __cplusplus
8433 extern "C"
8434 #endif
8435 /* We use char because int might match the return type of a gcc2
8436    builtin and then its argument prototype would still apply.  */
8437 char dld_link ();
8438 int
8439 main ()
8440 {
8441 dld_link ();
8442   ;
8443   return 0;
8444 }
8445 _ACEOF
8446 rm -f conftest.$ac_objext conftest$ac_exeext
8447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8448   (eval $ac_link) 2>&5
8449   ac_status=$?
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); } &&
8452          { ac_try='test -s conftest$ac_exeext'
8453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454   (eval $ac_try) 2>&5
8455   ac_status=$?
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); }; }; then
8458   ac_cv_lib_dld_dld_link=yes
8459 else
8460   echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8462
8463 ac_cv_lib_dld_dld_link=no
8464 fi
8465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8466 LIBS=$ac_check_lib_save_LIBS
8467 fi
8468 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8469 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8470 if test $ac_cv_lib_dld_dld_link = yes; then
8471   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8472 fi
8473
8474
8475 fi
8476
8477
8478 fi
8479
8480
8481 fi
8482
8483
8484 fi
8485
8486
8487 fi
8488
8489     ;;
8490   esac
8491
8492   if test "x$lt_cv_dlopen" != xno; then
8493     enable_dlopen=yes
8494   else
8495     enable_dlopen=no
8496   fi
8497
8498   case $lt_cv_dlopen in
8499   dlopen)
8500     save_CPPFLAGS="$CPPFLAGS"
8501     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8502
8503     save_LDFLAGS="$LDFLAGS"
8504     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8505
8506     save_LIBS="$LIBS"
8507     LIBS="$lt_cv_dlopen_libs $LIBS"
8508
8509     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8510 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8511 if test "${lt_cv_dlopen_self+set}" = set; then
8512   echo $ECHO_N "(cached) $ECHO_C" >&6
8513 else
8514           if test "$cross_compiling" = yes; then :
8515   lt_cv_dlopen_self=cross
8516 else
8517   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8518   lt_status=$lt_dlunknown
8519   cat > conftest.$ac_ext <<EOF
8520 #line 8520 "configure"
8521 #include "confdefs.h"
8522
8523 #if HAVE_DLFCN_H
8524 #include <dlfcn.h>
8525 #endif
8526
8527 #include <stdio.h>
8528
8529 #ifdef RTLD_GLOBAL
8530 #  define LT_DLGLOBAL           RTLD_GLOBAL
8531 #else
8532 #  ifdef DL_GLOBAL
8533 #    define LT_DLGLOBAL         DL_GLOBAL
8534 #  else
8535 #    define LT_DLGLOBAL         0
8536 #  endif
8537 #endif
8538
8539 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8540    find out it does not work in some platform. */
8541 #ifndef LT_DLLAZY_OR_NOW
8542 #  ifdef RTLD_LAZY
8543 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8544 #  else
8545 #    ifdef DL_LAZY
8546 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8547 #    else
8548 #      ifdef RTLD_NOW
8549 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8550 #      else
8551 #        ifdef DL_NOW
8552 #          define LT_DLLAZY_OR_NOW      DL_NOW
8553 #        else
8554 #          define LT_DLLAZY_OR_NOW      0
8555 #        endif
8556 #      endif
8557 #    endif
8558 #  endif
8559 #endif
8560
8561 #ifdef __cplusplus
8562 extern "C" void exit (int);
8563 #endif
8564
8565 void fnord() { int i=42;}
8566 int main ()
8567 {
8568   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8569   int status = $lt_dlunknown;
8570
8571   if (self)
8572     {
8573       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8574       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8575       /* dlclose (self); */
8576     }
8577
8578     exit (status);
8579 }
8580 EOF
8581   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8582   (eval $ac_link) 2>&5
8583   ac_status=$?
8584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8586     (./conftest; exit; ) 2>/dev/null
8587     lt_status=$?
8588     case x$lt_status in
8589       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8590       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8591       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8592     esac
8593   else :
8594     # compilation failed
8595     lt_cv_dlopen_self=no
8596   fi
8597 fi
8598 rm -fr conftest*
8599
8600
8601 fi
8602 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8603 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8604
8605     if test "x$lt_cv_dlopen_self" = xyes; then
8606       LDFLAGS="$LDFLAGS $link_static_flag"
8607       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8608 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8609 if test "${lt_cv_dlopen_self_static+set}" = set; then
8610   echo $ECHO_N "(cached) $ECHO_C" >&6
8611 else
8612           if test "$cross_compiling" = yes; then :
8613   lt_cv_dlopen_self_static=cross
8614 else
8615   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8616   lt_status=$lt_dlunknown
8617   cat > conftest.$ac_ext <<EOF
8618 #line 8618 "configure"
8619 #include "confdefs.h"
8620
8621 #if HAVE_DLFCN_H
8622 #include <dlfcn.h>
8623 #endif
8624
8625 #include <stdio.h>
8626
8627 #ifdef RTLD_GLOBAL
8628 #  define LT_DLGLOBAL           RTLD_GLOBAL
8629 #else
8630 #  ifdef DL_GLOBAL
8631 #    define LT_DLGLOBAL         DL_GLOBAL
8632 #  else
8633 #    define LT_DLGLOBAL         0
8634 #  endif
8635 #endif
8636
8637 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8638    find out it does not work in some platform. */
8639 #ifndef LT_DLLAZY_OR_NOW
8640 #  ifdef RTLD_LAZY
8641 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8642 #  else
8643 #    ifdef DL_LAZY
8644 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8645 #    else
8646 #      ifdef RTLD_NOW
8647 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8648 #      else
8649 #        ifdef DL_NOW
8650 #          define LT_DLLAZY_OR_NOW      DL_NOW
8651 #        else
8652 #          define LT_DLLAZY_OR_NOW      0
8653 #        endif
8654 #      endif
8655 #    endif
8656 #  endif
8657 #endif
8658
8659 #ifdef __cplusplus
8660 extern "C" void exit (int);
8661 #endif
8662
8663 void fnord() { int i=42;}
8664 int main ()
8665 {
8666   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8667   int status = $lt_dlunknown;
8668
8669   if (self)
8670     {
8671       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8672       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8673       /* dlclose (self); */
8674     }
8675
8676     exit (status);
8677 }
8678 EOF
8679   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8680   (eval $ac_link) 2>&5
8681   ac_status=$?
8682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8684     (./conftest; exit; ) 2>/dev/null
8685     lt_status=$?
8686     case x$lt_status in
8687       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8688       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8689       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8690     esac
8691   else :
8692     # compilation failed
8693     lt_cv_dlopen_self_static=no
8694   fi
8695 fi
8696 rm -fr conftest*
8697
8698
8699 fi
8700 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8701 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8702     fi
8703
8704     CPPFLAGS="$save_CPPFLAGS"
8705     LDFLAGS="$save_LDFLAGS"
8706     LIBS="$save_LIBS"
8707     ;;
8708   esac
8709
8710   case $lt_cv_dlopen_self in
8711   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8712   *) enable_dlopen_self=unknown ;;
8713   esac
8714
8715   case $lt_cv_dlopen_self_static in
8716   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8717   *) enable_dlopen_self_static=unknown ;;
8718   esac
8719 fi
8720
8721
8722 # Report which librarie types wil actually be built
8723 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8724 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8725 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8726 echo "${ECHO_T}$can_build_shared" >&6
8727
8728 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8729 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8730 test "$can_build_shared" = "no" && enable_shared=no
8731
8732 # On AIX, shared libraries and static libraries use the same namespace, and
8733 # are all built from PIC.
8734 case "$host_os" in
8735 aix3*)
8736   test "$enable_shared" = yes && enable_static=no
8737   if test -n "$RANLIB"; then
8738     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8739     postinstall_cmds='$RANLIB $lib'
8740   fi
8741   ;;
8742
8743 aix4*)
8744   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8745     test "$enable_shared" = yes && enable_static=no
8746   fi
8747   ;;
8748   darwin* | rhapsody*)
8749   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8750     archive_cmds_need_lc=no
8751     case "$host_os" in
8752     rhapsody* | darwin1.[012])
8753       allow_undefined_flag='-undefined suppress'
8754       ;;
8755     *) # Darwin 1.3 on
8756       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8757       ;;
8758     esac
8759     # FIXME: Relying on posixy $() will cause problems for
8760     #        cross-compilation, but unfortunately the echo tests do not
8761     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8762     #          `"' quotes if we put them in here... so don't!
8763                 output_verbose_link_cmd='echo'
8764     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8765     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8766     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8767                   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}'
8768                   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}'
8769     hardcode_direct=no
8770     hardcode_automatic=yes
8771     hardcode_shlibpath_var=unsupported
8772     whole_archive_flag_spec='-all_load $convenience'
8773     link_all_deplibs=yes
8774     fi
8775     ;;
8776 esac
8777 echo "$as_me:$LINENO: result: $enable_shared" >&5
8778 echo "${ECHO_T}$enable_shared" >&6
8779
8780 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8781 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8782 # Make sure either enable_shared or enable_static is yes.
8783 test "$enable_shared" = yes || enable_static=yes
8784 echo "$as_me:$LINENO: result: $enable_static" >&5
8785 echo "${ECHO_T}$enable_static" >&6
8786
8787 # The else clause should only fire when bootstrapping the
8788 # libtool distribution, otherwise you forgot to ship ltmain.sh
8789 # with your package, and you will get complaints that there are
8790 # no rules to generate ltmain.sh.
8791 if test -f "$ltmain"; then
8792   # See if we are running on zsh, and set the options which allow our commands through
8793   # without removal of \ escapes.
8794   if test -n "${ZSH_VERSION+set}" ; then
8795     setopt NO_GLOB_SUBST
8796   fi
8797   # Now quote all the things that may contain metacharacters while being
8798   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8799   # variables and quote the copies for generation of the libtool script.
8800   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8801     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8802     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8803     deplibs_check_method reload_flag reload_cmds need_locks \
8804     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8805     lt_cv_sys_global_symbol_to_c_name_address \
8806     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8807     old_postinstall_cmds old_postuninstall_cmds \
8808     compiler \
8809     CC \
8810     LD \
8811     lt_prog_compiler_wl \
8812     lt_prog_compiler_pic \
8813     lt_prog_compiler_static \
8814     lt_prog_compiler_no_builtin_flag \
8815     export_dynamic_flag_spec \
8816     thread_safe_flag_spec \
8817     whole_archive_flag_spec \
8818     enable_shared_with_static_runtimes \
8819     old_archive_cmds \
8820     old_archive_from_new_cmds \
8821     predep_objects \
8822     postdep_objects \
8823     predeps \
8824     postdeps \
8825     compiler_lib_search_path \
8826     archive_cmds \
8827     archive_expsym_cmds \
8828     postinstall_cmds \
8829     postuninstall_cmds \
8830     old_archive_from_expsyms_cmds \
8831     allow_undefined_flag \
8832     no_undefined_flag \
8833     export_symbols_cmds \
8834     hardcode_libdir_flag_spec \
8835     hardcode_libdir_flag_spec_ld \
8836     hardcode_libdir_separator \
8837     hardcode_automatic \
8838     module_cmds \
8839     module_expsym_cmds \
8840     lt_cv_prog_compiler_c_o \
8841     exclude_expsyms \
8842     include_expsyms; do
8843
8844     case $var in
8845     old_archive_cmds | \
8846     old_archive_from_new_cmds | \
8847     archive_cmds | \
8848     archive_expsym_cmds | \
8849     module_cmds | \
8850     module_expsym_cmds | \
8851     old_archive_from_expsyms_cmds | \
8852     export_symbols_cmds | \
8853     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8854     postinstall_cmds | postuninstall_cmds | \
8855     old_postinstall_cmds | old_postuninstall_cmds | \
8856     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8857       # Double-quote double-evaled strings.
8858       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8859       ;;
8860     *)
8861       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8862       ;;
8863     esac
8864   done
8865
8866   case $lt_echo in
8867   *'\$0 --fallback-echo"')
8868     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8869     ;;
8870   esac
8871
8872 cfgfile="${ofile}T"
8873   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8874   $rm -f "$cfgfile"
8875   { echo "$as_me:$LINENO: creating $ofile" >&5
8876 echo "$as_me: creating $ofile" >&6;}
8877
8878   cat <<__EOF__ >> "$cfgfile"
8879 #! $SHELL
8880
8881 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8882 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8883 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8884 #
8885 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8886 # Free Software Foundation, Inc.
8887 #
8888 # This file is part of GNU Libtool:
8889 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8890 #
8891 # This program is free software; you can redistribute it and/or modify
8892 # it under the terms of the GNU General Public License as published by
8893 # the Free Software Foundation; either version 2 of the License, or
8894 # (at your option) any later version.
8895 #
8896 # This program is distributed in the hope that it will be useful, but
8897 # WITHOUT ANY WARRANTY; without even the implied warranty of
8898 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8899 # General Public License for more details.
8900 #
8901 # You should have received a copy of the GNU General Public License
8902 # along with this program; if not, write to the Free Software
8903 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8904 #
8905 # As a special exception to the GNU General Public License, if you
8906 # distribute this file as part of a program that contains a
8907 # configuration script generated by Autoconf, you may include it under
8908 # the same distribution terms that you use for the rest of that program.
8909
8910 # A sed program that does not truncate output.
8911 SED=$lt_SED
8912
8913 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8914 Xsed="$SED -e s/^X//"
8915
8916 # The HP-UX ksh and POSIX shell print the target directory to stdout
8917 # if CDPATH is set.
8918 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8919
8920 # The names of the tagged configurations supported by this script.
8921 available_tags=
8922
8923 # ### BEGIN LIBTOOL CONFIG
8924
8925 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8926
8927 # Shell to use when invoking shell scripts.
8928 SHELL=$lt_SHELL
8929
8930 # Whether or not to build shared libraries.
8931 build_libtool_libs=$enable_shared
8932
8933 # Whether or not to build static libraries.
8934 build_old_libs=$enable_static
8935
8936 # Whether or not to add -lc for building shared libraries.
8937 build_libtool_need_lc=$archive_cmds_need_lc
8938
8939 # Whether or not to disallow shared libs when runtime libs are static
8940 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8941
8942 # Whether or not to optimize for fast installation.
8943 fast_install=$enable_fast_install
8944
8945 # The host system.
8946 host_alias=$host_alias
8947 host=$host
8948
8949 # An echo program that does not interpret backslashes.
8950 echo=$lt_echo
8951
8952 # The archiver.
8953 AR=$lt_AR
8954 AR_FLAGS=$lt_AR_FLAGS
8955
8956 # A C compiler.
8957 LTCC=$lt_LTCC
8958
8959 # A language-specific compiler.
8960 CC=$lt_compiler
8961
8962 # Is the compiler the GNU C compiler?
8963 with_gcc=$GCC
8964
8965 # An ERE matcher.
8966 EGREP=$lt_EGREP
8967
8968 # The linker used to build libraries.
8969 LD=$lt_LD
8970
8971 # Whether we need hard or soft links.
8972 LN_S=$lt_LN_S
8973
8974 # A BSD-compatible nm program.
8975 NM=$lt_NM
8976
8977 # A symbol stripping program
8978 STRIP=$STRIP
8979
8980 # Used to examine libraries when file_magic_cmd begins "file"
8981 MAGIC_CMD=$MAGIC_CMD
8982
8983 # Used on cygwin: DLL creation program.
8984 DLLTOOL="$DLLTOOL"
8985
8986 # Used on cygwin: object dumper.
8987 OBJDUMP="$OBJDUMP"
8988
8989 # Used on cygwin: assembler.
8990 AS="$AS"
8991
8992 # The name of the directory that contains temporary libtool files.
8993 objdir=$objdir
8994
8995 # How to create reloadable object files.
8996 reload_flag=$lt_reload_flag
8997 reload_cmds=$lt_reload_cmds
8998
8999 # How to pass a linker flag through the compiler.
9000 wl=$lt_lt_prog_compiler_wl
9001
9002 # Object file suffix (normally "o").
9003 objext="$ac_objext"
9004
9005 # Old archive suffix (normally "a").
9006 libext="$libext"
9007
9008 # Shared library suffix (normally ".so").
9009 shrext='$shrext'
9010
9011 # Executable file suffix (normally "").
9012 exeext="$exeext"
9013
9014 # Additional compiler flags for building library objects.
9015 pic_flag=$lt_lt_prog_compiler_pic
9016 pic_mode=$pic_mode
9017
9018 # What is the maximum length of a command?
9019 max_cmd_len=$lt_cv_sys_max_cmd_len
9020
9021 # Does compiler simultaneously support -c and -o options?
9022 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9023
9024 # Must we lock files when doing compilation ?
9025 need_locks=$lt_need_locks
9026
9027 # Do we need the lib prefix for modules?
9028 need_lib_prefix=$need_lib_prefix
9029
9030 # Do we need a version for libraries?
9031 need_version=$need_version
9032
9033 # Whether dlopen is supported.
9034 dlopen_support=$enable_dlopen
9035
9036 # Whether dlopen of programs is supported.
9037 dlopen_self=$enable_dlopen_self
9038
9039 # Whether dlopen of statically linked programs is supported.
9040 dlopen_self_static=$enable_dlopen_self_static
9041
9042 # Compiler flag to prevent dynamic linking.
9043 link_static_flag=$lt_lt_prog_compiler_static
9044
9045 # Compiler flag to turn off builtin functions.
9046 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9047
9048 # Compiler flag to allow reflexive dlopens.
9049 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9050
9051 # Compiler flag to generate shared objects directly from archives.
9052 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9053
9054 # Compiler flag to generate thread-safe objects.
9055 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9056
9057 # Library versioning type.
9058 version_type=$version_type
9059
9060 # Format of library name prefix.
9061 libname_spec=$lt_libname_spec
9062
9063 # List of archive names.  First name is the real one, the rest are links.
9064 # The last name is the one that the linker finds with -lNAME.
9065 library_names_spec=$lt_library_names_spec
9066
9067 # The coded name of the library, if different from the real name.
9068 soname_spec=$lt_soname_spec
9069
9070 # Commands used to build and install an old-style archive.
9071 RANLIB=$lt_RANLIB
9072 old_archive_cmds=$lt_old_archive_cmds
9073 old_postinstall_cmds=$lt_old_postinstall_cmds
9074 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9075
9076 # Create an old-style archive from a shared archive.
9077 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9078
9079 # Create a temporary old-style archive to link instead of a shared archive.
9080 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9081
9082 # Commands used to build and install a shared archive.
9083 archive_cmds=$lt_archive_cmds
9084 archive_expsym_cmds=$lt_archive_expsym_cmds
9085 postinstall_cmds=$lt_postinstall_cmds
9086 postuninstall_cmds=$lt_postuninstall_cmds
9087
9088 # Commands used to build a loadable module (assumed same as above if empty)
9089 module_cmds=$lt_module_cmds
9090 module_expsym_cmds=$lt_module_expsym_cmds
9091
9092 # Commands to strip libraries.
9093 old_striplib=$lt_old_striplib
9094 striplib=$lt_striplib
9095
9096 # Dependencies to place before the objects being linked to create a
9097 # shared library.
9098 predep_objects=$lt_predep_objects
9099
9100 # Dependencies to place after the objects being linked to create a
9101 # shared library.
9102 postdep_objects=$lt_postdep_objects
9103
9104 # Dependencies to place before the objects being linked to create a
9105 # shared library.
9106 predeps=$lt_predeps
9107
9108 # Dependencies to place after the objects being linked to create a
9109 # shared library.
9110 postdeps=$lt_postdeps
9111
9112 # The library search path used internally by the compiler when linking
9113 # a shared library.
9114 compiler_lib_search_path=$lt_compiler_lib_search_path
9115
9116 # Method to check whether dependent libraries are shared objects.
9117 deplibs_check_method=$lt_deplibs_check_method
9118
9119 # Command to use when deplibs_check_method == file_magic.
9120 file_magic_cmd=$lt_file_magic_cmd
9121
9122 # Flag that allows shared libraries with undefined symbols to be built.
9123 allow_undefined_flag=$lt_allow_undefined_flag
9124
9125 # Flag that forces no undefined symbols.
9126 no_undefined_flag=$lt_no_undefined_flag
9127
9128 # Commands used to finish a libtool library installation in a directory.
9129 finish_cmds=$lt_finish_cmds
9130
9131 # Same as above, but a single script fragment to be evaled but not shown.
9132 finish_eval=$lt_finish_eval
9133
9134 # Take the output of nm and produce a listing of raw symbols and C names.
9135 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9136
9137 # Transform the output of nm in a proper C declaration
9138 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9139
9140 # Transform the output of nm in a C name address pair
9141 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9142
9143 # This is the shared library runtime path variable.
9144 runpath_var=$runpath_var
9145
9146 # This is the shared library path variable.
9147 shlibpath_var=$shlibpath_var
9148
9149 # Is shlibpath searched before the hard-coded library search path?
9150 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9151
9152 # How to hardcode a shared library path into an executable.
9153 hardcode_action=$hardcode_action
9154
9155 # Whether we should hardcode library paths into libraries.
9156 hardcode_into_libs=$hardcode_into_libs
9157
9158 # Flag to hardcode \$libdir into a binary during linking.
9159 # This must work even if \$libdir does not exist.
9160 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9161
9162 # If ld is used when linking, flag to hardcode \$libdir into
9163 # a binary during linking. This must work even if \$libdir does
9164 # not exist.
9165 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9166
9167 # Whether we need a single -rpath flag with a separated argument.
9168 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9169
9170 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9171 # resulting binary.
9172 hardcode_direct=$hardcode_direct
9173
9174 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9175 # resulting binary.
9176 hardcode_minus_L=$hardcode_minus_L
9177
9178 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9179 # the resulting binary.
9180 hardcode_shlibpath_var=$hardcode_shlibpath_var
9181
9182 # Set to yes if building a shared library automatically hardcodes DIR into the library
9183 # and all subsequent libraries and executables linked against it.
9184 hardcode_automatic=$hardcode_automatic
9185
9186 # Variables whose values should be saved in libtool wrapper scripts and
9187 # restored at relink time.
9188 variables_saved_for_relink="$variables_saved_for_relink"
9189
9190 # Whether libtool must link a program against all its dependency libraries.
9191 link_all_deplibs=$link_all_deplibs
9192
9193 # Compile-time system search path for libraries
9194 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9195
9196 # Run-time system search path for libraries
9197 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9198
9199 # Fix the shell variable \$srcfile for the compiler.
9200 fix_srcfile_path="$fix_srcfile_path"
9201
9202 # Set to yes if exported symbols are required.
9203 always_export_symbols=$always_export_symbols
9204
9205 # The commands to list exported symbols.
9206 export_symbols_cmds=$lt_export_symbols_cmds
9207
9208 # The commands to extract the exported symbol list from a shared archive.
9209 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9210
9211 # Symbols that should not be listed in the preloaded symbols.
9212 exclude_expsyms=$lt_exclude_expsyms
9213
9214 # Symbols that must always be exported.
9215 include_expsyms=$lt_include_expsyms
9216
9217 # ### END LIBTOOL CONFIG
9218
9219 __EOF__
9220
9221
9222   case $host_os in
9223   aix3*)
9224     cat <<\EOF >> "$cfgfile"
9225
9226 # AIX sometimes has problems with the GCC collect2 program.  For some
9227 # reason, if we set the COLLECT_NAMES environment variable, the problems
9228 # vanish in a puff of smoke.
9229 if test "X${COLLECT_NAMES+set}" != Xset; then
9230   COLLECT_NAMES=
9231   export COLLECT_NAMES
9232 fi
9233 EOF
9234     ;;
9235   esac
9236
9237   # We use sed instead of cat because bash on DJGPP gets confused if
9238   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9239   # text mode, it properly converts lines to CR/LF.  This bash problem
9240   # is reportedly fixed, but why not run on old versions too?
9241   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9242
9243   mv -f "$cfgfile" "$ofile" || \
9244     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9245   chmod +x "$ofile"
9246
9247 else
9248   # If there is no Makefile yet, we rely on a make rule to execute
9249   # `config.status --recheck' to rerun these tests and create the
9250   # libtool script then.
9251   test -f Makefile && make "$ltmain"
9252 fi
9253
9254
9255 ac_ext=c
9256 ac_cpp='$CPP $CPPFLAGS'
9257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9260
9261 CC="$lt_save_CC"
9262
9263
9264 # Check whether --with-tags or --without-tags was given.
9265 if test "${with_tags+set}" = set; then
9266   withval="$with_tags"
9267   tagnames="$withval"
9268 fi;
9269
9270 if test -f "$ltmain" && test -n "$tagnames"; then
9271   if test ! -f "${ofile}"; then
9272     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9273 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9274   fi
9275
9276   if test -z "$LTCC"; then
9277     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9278     if test -z "$LTCC"; then
9279       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9280 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9281     else
9282       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9283 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9284     fi
9285   fi
9286
9287   # Extract list of available tagged configurations in $ofile.
9288   # Note that this assumes the entire list is on one line.
9289   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9290
9291   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9292   for tagname in $tagnames; do
9293     IFS="$lt_save_ifs"
9294     # Check whether tagname contains only valid characters
9295     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9296     "") ;;
9297     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9298 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9299    { (exit 1); exit 1; }; }
9300         ;;
9301     esac
9302
9303     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9304     then
9305       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9306 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9307    { (exit 1); exit 1; }; }
9308     fi
9309
9310     # Update the list of available tags.
9311     if test -n "$tagname"; then
9312       echo appending configuration tag \"$tagname\" to $ofile
9313
9314       case $tagname in
9315       CXX)
9316         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9317           ac_ext=cc
9318 ac_cpp='$CXXCPP $CPPFLAGS'
9319 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9320 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9321 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9322
9323
9324
9325
9326 archive_cmds_need_lc_CXX=no
9327 allow_undefined_flag_CXX=
9328 always_export_symbols_CXX=no
9329 archive_expsym_cmds_CXX=
9330 export_dynamic_flag_spec_CXX=
9331 hardcode_direct_CXX=no
9332 hardcode_libdir_flag_spec_CXX=
9333 hardcode_libdir_flag_spec_ld_CXX=
9334 hardcode_libdir_separator_CXX=
9335 hardcode_minus_L_CXX=no
9336 hardcode_automatic_CXX=no
9337 module_cmds_CXX=
9338 module_expsym_cmds_CXX=
9339 link_all_deplibs_CXX=unknown
9340 old_archive_cmds_CXX=$old_archive_cmds
9341 no_undefined_flag_CXX=
9342 whole_archive_flag_spec_CXX=
9343 enable_shared_with_static_runtimes_CXX=no
9344
9345 # Dependencies to place before and after the object being linked:
9346 predep_objects_CXX=
9347 postdep_objects_CXX=
9348 predeps_CXX=
9349 postdeps_CXX=
9350 compiler_lib_search_path_CXX=
9351
9352 # Source file extension for C++ test sources.
9353 ac_ext=cc
9354
9355 # Object file extension for compiled C++ test sources.
9356 objext=o
9357 objext_CXX=$objext
9358
9359 # Code to be used in simple compile tests
9360 lt_simple_compile_test_code="int some_variable = 0;\n"
9361
9362 # Code to be used in simple link tests
9363 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9364
9365 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9366
9367 # If no C compiler was specified, use CC.
9368 LTCC=${LTCC-"$CC"}
9369
9370 # Allow CC to be a program name with arguments.
9371 compiler=$CC
9372
9373
9374 # Allow CC to be a program name with arguments.
9375 lt_save_CC=$CC
9376 lt_save_LD=$LD
9377 lt_save_GCC=$GCC
9378 GCC=$GXX
9379 lt_save_with_gnu_ld=$with_gnu_ld
9380 lt_save_path_LD=$lt_cv_path_LD
9381 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9382   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9383 else
9384   unset lt_cv_prog_gnu_ld
9385 fi
9386 if test -n "${lt_cv_path_LDCXX+set}"; then
9387   lt_cv_path_LD=$lt_cv_path_LDCXX
9388 else
9389   unset lt_cv_path_LD
9390 fi
9391 test -z "${LDCXX+set}" || LD=$LDCXX
9392 CC=${CXX-"c++"}
9393 compiler=$CC
9394 compiler_CXX=$CC
9395 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9396
9397 # We don't want -fno-exception wen compiling C++ code, so set the
9398 # no_builtin_flag separately
9399 if test "$GXX" = yes; then
9400   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9401 else
9402   lt_prog_compiler_no_builtin_flag_CXX=
9403 fi
9404
9405 if test "$GXX" = yes; then
9406   # Set up default GNU C++ configuration
9407
9408
9409 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9410 if test "${with_gnu_ld+set}" = set; then
9411   withval="$with_gnu_ld"
9412   test "$withval" = no || with_gnu_ld=yes
9413 else
9414   with_gnu_ld=no
9415 fi;
9416 ac_prog=ld
9417 if test "$GCC" = yes; then
9418   # Check if gcc -print-prog-name=ld gives a path.
9419   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9420 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9421   case $host in
9422   *-*-mingw*)
9423     # gcc leaves a trailing carriage return which upsets mingw
9424     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9425   *)
9426     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9427   esac
9428   case $ac_prog in
9429     # Accept absolute paths.
9430     [\\/]* | ?:[\\/]*)
9431       re_direlt='/[^/][^/]*/\.\./'
9432       # Canonicalize the path of ld
9433       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9434       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9435         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9436       done
9437       test -z "$LD" && LD="$ac_prog"
9438       ;;
9439   "")
9440     # If it fails, then pretend we aren't using GCC.
9441     ac_prog=ld
9442     ;;
9443   *)
9444     # If it is relative, then search for the first ld in PATH.
9445     with_gnu_ld=unknown
9446     ;;
9447   esac
9448 elif test "$with_gnu_ld" = yes; then
9449   echo "$as_me:$LINENO: checking for GNU ld" >&5
9450 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9451 else
9452   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9453 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9454 fi
9455 if test "${lt_cv_path_LD+set}" = set; then
9456   echo $ECHO_N "(cached) $ECHO_C" >&6
9457 else
9458   if test -z "$LD"; then
9459   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9460   for ac_dir in $PATH; do
9461     IFS="$lt_save_ifs"
9462     test -z "$ac_dir" && ac_dir=.
9463     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9464       lt_cv_path_LD="$ac_dir/$ac_prog"
9465       # Check to see if the program is GNU ld.  I'd rather use --version,
9466       # but apparently some GNU ld's only accept -v.
9467       # Break only if it was the GNU/non-GNU ld that we prefer.
9468       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9469       *GNU* | *'with BFD'*)
9470         test "$with_gnu_ld" != no && break
9471         ;;
9472       *)
9473         test "$with_gnu_ld" != yes && break
9474         ;;
9475       esac
9476     fi
9477   done
9478   IFS="$lt_save_ifs"
9479 else
9480   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9481 fi
9482 fi
9483
9484 LD="$lt_cv_path_LD"
9485 if test -n "$LD"; then
9486   echo "$as_me:$LINENO: result: $LD" >&5
9487 echo "${ECHO_T}$LD" >&6
9488 else
9489   echo "$as_me:$LINENO: result: no" >&5
9490 echo "${ECHO_T}no" >&6
9491 fi
9492 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9493 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9494    { (exit 1); exit 1; }; }
9495 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9496 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9497 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9498   echo $ECHO_N "(cached) $ECHO_C" >&6
9499 else
9500   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9501 case `"$LD" -v 2>&1 </dev/null` in
9502 *GNU* | *'with BFD'*)
9503   lt_cv_prog_gnu_ld=yes
9504   ;;
9505 *)
9506   lt_cv_prog_gnu_ld=no
9507   ;;
9508 esac
9509 fi
9510 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9511 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9512 with_gnu_ld=$lt_cv_prog_gnu_ld
9513
9514
9515
9516   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9517   # archiving commands below assume that GNU ld is being used.
9518   if test "$with_gnu_ld" = yes; then
9519     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9520     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'
9521
9522     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9523     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9524
9525     # If archive_cmds runs LD, not CC, wlarc should be empty
9526     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9527     #     investigate it a little bit more. (MM)
9528     wlarc='${wl}'
9529
9530     # ancient GNU ld didn't support --whole-archive et. al.
9531     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9532         grep 'no-whole-archive' > /dev/null; then
9533       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9534     else
9535       whole_archive_flag_spec_CXX=
9536     fi
9537   else
9538     with_gnu_ld=no
9539     wlarc=
9540
9541     # A generic and very simple default shared library creation
9542     # command for GNU C++ for the case where it uses the native
9543     # linker, instead of GNU ld.  If possible, this setting should
9544     # overridden to take advantage of the native linker features on
9545     # the platform it is being used on.
9546     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9547   fi
9548
9549   # Commands to make compiler produce verbose output that lists
9550   # what "hidden" libraries, object files and flags are used when
9551   # linking a shared library.
9552   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9553
9554 else
9555   GXX=no
9556   with_gnu_ld=no
9557   wlarc=
9558 fi
9559
9560 # PORTME: fill in a description of your system's C++ link characteristics
9561 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9562 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9563 ld_shlibs_CXX=yes
9564 case $host_os in
9565   aix3*)
9566     # FIXME: insert proper C++ library support
9567     ld_shlibs_CXX=no
9568     ;;
9569   aix4* | aix5*)
9570     if test "$host_cpu" = ia64; then
9571       # On IA64, the linker does run time linking by default, so we don't
9572       # have to do anything special.
9573       aix_use_runtimelinking=no
9574       exp_sym_flag='-Bexport'
9575       no_entry_flag=""
9576     else
9577       aix_use_runtimelinking=no
9578
9579       # Test if we are trying to use run time linking or normal
9580       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9581       # need to do runtime linking.
9582       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9583         for ld_flag in $LDFLAGS; do
9584           case $ld_flag in
9585           *-brtl*)
9586             aix_use_runtimelinking=yes
9587             break
9588             ;;
9589           esac
9590         done
9591       esac
9592
9593       exp_sym_flag='-bexport'
9594       no_entry_flag='-bnoentry'
9595     fi
9596
9597     # When large executables or shared objects are built, AIX ld can
9598     # have problems creating the table of contents.  If linking a library
9599     # or program results in "error TOC overflow" add -mminimal-toc to
9600     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9601     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9602
9603     archive_cmds_CXX=''
9604     hardcode_direct_CXX=yes
9605     hardcode_libdir_separator_CXX=':'
9606     link_all_deplibs_CXX=yes
9607
9608     if test "$GXX" = yes; then
9609       case $host_os in aix4.012|aix4.012.*)
9610       # We only want to do this on AIX 4.2 and lower, the check
9611       # below for broken collect2 doesn't work under 4.3+
9612         collect2name=`${CC} -print-prog-name=collect2`
9613         if test -f "$collect2name" && \
9614            strings "$collect2name" | grep resolve_lib_name >/dev/null
9615         then
9616           # We have reworked collect2
9617           hardcode_direct_CXX=yes
9618         else
9619           # We have old collect2
9620           hardcode_direct_CXX=unsupported
9621           # It fails to find uninstalled libraries when the uninstalled
9622           # path is not listed in the libpath.  Setting hardcode_minus_L
9623           # to unsupported forces relinking
9624           hardcode_minus_L_CXX=yes
9625           hardcode_libdir_flag_spec_CXX='-L$libdir'
9626           hardcode_libdir_separator_CXX=
9627         fi
9628       esac
9629       shared_flag='-shared'
9630     else
9631       # not using gcc
9632       if test "$host_cpu" = ia64; then
9633         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9634         # chokes on -Wl,-G. The following line is correct:
9635         shared_flag='-G'
9636       else
9637         if test "$aix_use_runtimelinking" = yes; then
9638           shared_flag='${wl}-G'
9639         else
9640           shared_flag='${wl}-bM:SRE'
9641         fi
9642       fi
9643     fi
9644
9645     # It seems that -bexpall does not export symbols beginning with
9646     # underscore (_), so it is better to generate a list of symbols to export.
9647     always_export_symbols_CXX=yes
9648     if test "$aix_use_runtimelinking" = yes; then
9649       # Warning - without using the other runtime loading flags (-brtl),
9650       # -berok will link without error, but may produce a broken library.
9651       allow_undefined_flag_CXX='-berok'
9652       # Determine the default libpath from the value encoded in an empty executable.
9653       cat >conftest.$ac_ext <<_ACEOF
9654 #line $LINENO "configure"
9655 /* confdefs.h.  */
9656 _ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h.  */
9660
9661 int
9662 main ()
9663 {
9664
9665   ;
9666   return 0;
9667 }
9668 _ACEOF
9669 rm -f conftest.$ac_objext conftest$ac_exeext
9670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9671   (eval $ac_link) 2>&5
9672   ac_status=$?
9673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674   (exit $ac_status); } &&
9675          { ac_try='test -s conftest$ac_exeext'
9676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677   (eval $ac_try) 2>&5
9678   ac_status=$?
9679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680   (exit $ac_status); }; }; then
9681
9682 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9683 }'`
9684 # Check for a 64-bit object if we didn't find anything.
9685 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; }
9686 }'`; fi
9687 else
9688   echo "$as_me: failed program was:" >&5
9689 sed 's/^/| /' conftest.$ac_ext >&5
9690
9691 fi
9692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9693 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9694
9695       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9696
9697       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"
9698      else
9699       if test "$host_cpu" = ia64; then
9700         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9701         allow_undefined_flag_CXX="-z nodefs"
9702         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"
9703       else
9704         # Determine the default libpath from the value encoded in an empty executable.
9705         cat >conftest.$ac_ext <<_ACEOF
9706 #line $LINENO "configure"
9707 /* confdefs.h.  */
9708 _ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h.  */
9712
9713 int
9714 main ()
9715 {
9716
9717   ;
9718   return 0;
9719 }
9720 _ACEOF
9721 rm -f conftest.$ac_objext conftest$ac_exeext
9722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9723   (eval $ac_link) 2>&5
9724   ac_status=$?
9725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726   (exit $ac_status); } &&
9727          { ac_try='test -s conftest$ac_exeext'
9728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9729   (eval $ac_try) 2>&5
9730   ac_status=$?
9731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732   (exit $ac_status); }; }; then
9733
9734 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9735 }'`
9736 # Check for a 64-bit object if we didn't find anything.
9737 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; }
9738 }'`; fi
9739 else
9740   echo "$as_me: failed program was:" >&5
9741 sed 's/^/| /' conftest.$ac_ext >&5
9742
9743 fi
9744 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9745 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9746
9747         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9748         # Warning - without using the other run time loading flags,
9749         # -berok will link without error, but may produce a broken library.
9750         no_undefined_flag_CXX=' ${wl}-bernotok'
9751         allow_undefined_flag_CXX=' ${wl}-berok'
9752         # -bexpall does not export symbols beginning with underscore (_)
9753         always_export_symbols_CXX=yes
9754         # Exported symbols can be pulled into shared objects from archives
9755         whole_archive_flag_spec_CXX=' '
9756         archive_cmds_need_lc_CXX=yes
9757         # This is similar to how AIX traditionally builds it's shared libraries.
9758         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'
9759       fi
9760     fi
9761     ;;
9762   chorus*)
9763     case $cc_basename in
9764       *)
9765         # FIXME: insert proper C++ library support
9766         ld_shlibs_CXX=no
9767         ;;
9768     esac
9769     ;;
9770
9771   cygwin* | mingw* | pw32*)
9772     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9773     # as there is no search path for DLLs.
9774     hardcode_libdir_flag_spec_CXX='-L$libdir'
9775     allow_undefined_flag_CXX=unsupported
9776     always_export_symbols_CXX=no
9777     enable_shared_with_static_runtimes_CXX=yes
9778
9779     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9780       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'
9781       # If the export-symbols file already is a .def file (1st line
9782       # is EXPORTS), use it as is; otherwise, prepend...
9783       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9784         cp $export_symbols $output_objdir/$soname.def;
9785       else
9786         echo EXPORTS > $output_objdir/$soname.def;
9787         cat $export_symbols >> $output_objdir/$soname.def;
9788       fi~
9789       $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'
9790     else
9791       ld_shlibs_CXX=no
9792     fi
9793   ;;
9794
9795   darwin* | rhapsody*)
9796    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9797     archive_cmds_need_lc_CXX=no
9798     case "$host_os" in
9799     rhapsody* | darwin1.[012])
9800       allow_undefined_flag_CXX='-undefined suppress'
9801       ;;
9802     *) # Darwin 1.3 on
9803       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9804       ;;
9805     esac
9806         lt_int_apple_cc_single_mod=no
9807         output_verbose_link_cmd='echo'
9808         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9809           lt_int_apple_cc_single_mod=yes
9810         fi
9811         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9812           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9813         else
9814         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'
9815       fi
9816       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9817
9818     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9819       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9820         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}'
9821       else
9822         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}'
9823       fi
9824         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}'
9825     hardcode_direct_CXX=no
9826     hardcode_automatic_CXX=yes
9827     hardcode_shlibpath_var_CXX=unsupported
9828     whole_archive_flag_spec_CXX='-all_load $convenience'
9829     link_all_deplibs_CXX=yes
9830    fi
9831     ;;
9832
9833   dgux*)
9834     case $cc_basename in
9835       ec++)
9836         # FIXME: insert proper C++ library support
9837         ld_shlibs_CXX=no
9838         ;;
9839       ghcx)
9840         # Green Hills C++ Compiler
9841         # FIXME: insert proper C++ library support
9842         ld_shlibs_CXX=no
9843         ;;
9844       *)
9845         # FIXME: insert proper C++ library support
9846         ld_shlibs_CXX=no
9847         ;;
9848     esac
9849     ;;
9850   freebsd12*)
9851     # C++ shared libraries reported to be fairly broken before switch to ELF
9852     ld_shlibs_CXX=no
9853     ;;
9854   freebsd-elf*)
9855     archive_cmds_need_lc_CXX=no
9856     ;;
9857   freebsd*)
9858     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9859     # conventions
9860     ld_shlibs_CXX=yes
9861     ;;
9862   gnu*)
9863     ;;
9864   hpux9*)
9865     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9866     hardcode_libdir_separator_CXX=:
9867     export_dynamic_flag_spec_CXX='${wl}-E'
9868     hardcode_direct_CXX=yes
9869     hardcode_minus_L_CXX=yes # Not in the search PATH,
9870                                 # but as the default
9871                                 # location of the library.
9872
9873     case $cc_basename in
9874     CC)
9875       # FIXME: insert proper C++ library support
9876       ld_shlibs_CXX=no
9877       ;;
9878     aCC)
9879       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'
9880       # Commands to make compiler produce verbose output that lists
9881       # what "hidden" libraries, object files and flags are used when
9882       # linking a shared library.
9883       #
9884       # There doesn't appear to be a way to prevent this compiler from
9885       # explicitly linking system object files so we need to strip them
9886       # from the output so that they don't get included in the library
9887       # dependencies.
9888       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'
9889       ;;
9890     *)
9891       if test "$GXX" = yes; then
9892         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'
9893       else
9894         # FIXME: insert proper C++ library support
9895         ld_shlibs_CXX=no
9896       fi
9897       ;;
9898     esac
9899     ;;
9900   hpux10*|hpux11*)
9901     if test $with_gnu_ld = no; then
9902       case "$host_cpu" in
9903       hppa*64*)
9904         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9905         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9906         hardcode_libdir_separator_CXX=:
9907         ;;
9908       ia64*)
9909         hardcode_libdir_flag_spec_CXX='-L$libdir'
9910         ;;
9911       *)
9912         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9913         hardcode_libdir_separator_CXX=:
9914         export_dynamic_flag_spec_CXX='${wl}-E'
9915         ;;
9916       esac
9917     fi
9918     case "$host_cpu" in
9919     hppa*64*)
9920       hardcode_direct_CXX=no
9921       hardcode_shlibpath_var_CXX=no
9922       ;;
9923     ia64*)
9924       hardcode_direct_CXX=no
9925       hardcode_shlibpath_var_CXX=no
9926       hardcode_minus_L_CXX=yes # Not in the search PATH,
9927                                               # but as the default
9928                                               # location of the library.
9929       ;;
9930     *)
9931       hardcode_direct_CXX=yes
9932       hardcode_minus_L_CXX=yes # Not in the search PATH,
9933                                               # but as the default
9934                                               # location of the library.
9935       ;;
9936     esac
9937
9938     case $cc_basename in
9939       CC)
9940         # FIXME: insert proper C++ library support
9941         ld_shlibs_CXX=no
9942         ;;
9943       aCC)
9944         case "$host_cpu" in
9945         hppa*64*|ia64*)
9946           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9947           ;;
9948         *)
9949           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9950           ;;
9951         esac
9952         # Commands to make compiler produce verbose output that lists
9953         # what "hidden" libraries, object files and flags are used when
9954         # linking a shared library.
9955         #
9956         # There doesn't appear to be a way to prevent this compiler from
9957         # explicitly linking system object files so we need to strip them
9958         # from the output so that they don't get included in the library
9959         # dependencies.
9960         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'
9961         ;;
9962       *)
9963         if test "$GXX" = yes; then
9964           if test $with_gnu_ld = no; then
9965             case "$host_cpu" in
9966             ia64*|hppa*64*)
9967               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9968               ;;
9969             *)
9970               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'
9971               ;;
9972             esac
9973           fi
9974         else
9975           # FIXME: insert proper C++ library support
9976           ld_shlibs_CXX=no
9977         fi
9978         ;;
9979     esac
9980     ;;
9981   irix5* | irix6*)
9982     case $cc_basename in
9983       CC)
9984         # SGI C++
9985         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'
9986
9987         # Archives containing C++ object files must be created using
9988         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9989         # necessary to make sure instantiated templates are included
9990         # in the archive.
9991         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9992         ;;
9993       *)
9994         if test "$GXX" = yes; then
9995           if test "$with_gnu_ld" = no; then
9996             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'
9997           else
9998             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'
9999           fi
10000         fi
10001         link_all_deplibs_CXX=yes
10002         ;;
10003     esac
10004     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10005     hardcode_libdir_separator_CXX=:
10006     ;;
10007   linux*)
10008     case $cc_basename in
10009       KCC)
10010         # Kuck and Associates, Inc. (KAI) C++ Compiler
10011
10012         # KCC will only create a shared library if the output file
10013         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10014         # to its proper name (with version) after linking.
10015         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'
10016         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'
10017         # Commands to make compiler produce verbose output that lists
10018         # what "hidden" libraries, object files and flags are used when
10019         # linking a shared library.
10020         #
10021         # There doesn't appear to be a way to prevent this compiler from
10022         # explicitly linking system object files so we need to strip them
10023         # from the output so that they don't get included in the library
10024         # dependencies.
10025         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'
10026
10027         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10028         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10029
10030         # Archives containing C++ object files must be created using
10031         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10032         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10033         ;;
10034       icpc)
10035         # Intel C++
10036         with_gnu_ld=yes
10037         archive_cmds_need_lc_CXX=no
10038         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10039         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'
10040         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10041         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10042         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10043         ;;
10044       cxx)
10045         # Compaq C++
10046         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10047         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'
10048
10049         runpath_var=LD_RUN_PATH
10050         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10051         hardcode_libdir_separator_CXX=:
10052
10053         # Commands to make compiler produce verbose output that lists
10054         # what "hidden" libraries, object files and flags are used when
10055         # linking a shared library.
10056         #
10057         # There doesn't appear to be a way to prevent this compiler from
10058         # explicitly linking system object files so we need to strip them
10059         # from the output so that they don't get included in the library
10060         # dependencies.
10061         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'
10062         ;;
10063     esac
10064     ;;
10065   lynxos*)
10066     # FIXME: insert proper C++ library support
10067     ld_shlibs_CXX=no
10068     ;;
10069   m88k*)
10070     # FIXME: insert proper C++ library support
10071     ld_shlibs_CXX=no
10072     ;;
10073   mvs*)
10074     case $cc_basename in
10075       cxx)
10076         # FIXME: insert proper C++ library support
10077         ld_shlibs_CXX=no
10078         ;;
10079       *)
10080         # FIXME: insert proper C++ library support
10081         ld_shlibs_CXX=no
10082         ;;
10083     esac
10084     ;;
10085   netbsd*)
10086     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10087       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10088       wlarc=
10089       hardcode_libdir_flag_spec_CXX='-R$libdir'
10090       hardcode_direct_CXX=yes
10091       hardcode_shlibpath_var_CXX=no
10092     fi
10093     # Workaround some broken pre-1.5 toolchains
10094     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10095     ;;
10096   osf3*)
10097     case $cc_basename in
10098       KCC)
10099         # Kuck and Associates, Inc. (KAI) C++ Compiler
10100
10101         # KCC will only create a shared library if the output file
10102         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10103         # to its proper name (with version) after linking.
10104         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'
10105
10106         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10107         hardcode_libdir_separator_CXX=:
10108
10109         # Archives containing C++ object files must be created using
10110         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10111         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10112
10113         ;;
10114       RCC)
10115         # Rational C++ 2.4.1
10116         # FIXME: insert proper C++ library support
10117         ld_shlibs_CXX=no
10118         ;;
10119       cxx)
10120         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10121         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'
10122
10123         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10124         hardcode_libdir_separator_CXX=:
10125
10126         # Commands to make compiler produce verbose output that lists
10127         # what "hidden" libraries, object files and flags are used when
10128         # linking a shared library.
10129         #
10130         # There doesn't appear to be a way to prevent this compiler from
10131         # explicitly linking system object files so we need to strip them
10132         # from the output so that they don't get included in the library
10133         # dependencies.
10134         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'
10135         ;;
10136       *)
10137         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10138           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10139           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'
10140
10141           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10142           hardcode_libdir_separator_CXX=:
10143
10144           # Commands to make compiler produce verbose output that lists
10145           # what "hidden" libraries, object files and flags are used when
10146           # linking a shared library.
10147           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10148
10149         else
10150           # FIXME: insert proper C++ library support
10151           ld_shlibs_CXX=no
10152         fi
10153         ;;
10154     esac
10155     ;;
10156   osf4* | osf5*)
10157     case $cc_basename in
10158       KCC)
10159         # Kuck and Associates, Inc. (KAI) C++ Compiler
10160
10161         # KCC will only create a shared library if the output file
10162         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10163         # to its proper name (with version) after linking.
10164         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'
10165
10166         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10167         hardcode_libdir_separator_CXX=:
10168
10169         # Archives containing C++ object files must be created using
10170         # the KAI C++ compiler.
10171         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10172         ;;
10173       RCC)
10174         # Rational C++ 2.4.1
10175         # FIXME: insert proper C++ library support
10176         ld_shlibs_CXX=no
10177         ;;
10178       cxx)
10179         allow_undefined_flag_CXX=' -expect_unresolved \*'
10180         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'
10181         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10182           echo "-hidden">> $lib.exp~
10183           $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~
10184           $rm $lib.exp'
10185
10186         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10187         hardcode_libdir_separator_CXX=:
10188
10189         # Commands to make compiler produce verbose output that lists
10190         # what "hidden" libraries, object files and flags are used when
10191         # linking a shared library.
10192         #
10193         # There doesn't appear to be a way to prevent this compiler from
10194         # explicitly linking system object files so we need to strip them
10195         # from the output so that they don't get included in the library
10196         # dependencies.
10197         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'
10198         ;;
10199       *)
10200         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10201           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10202          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'
10203
10204           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10205           hardcode_libdir_separator_CXX=:
10206
10207           # Commands to make compiler produce verbose output that lists
10208           # what "hidden" libraries, object files and flags are used when
10209           # linking a shared library.
10210           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10211
10212         else
10213           # FIXME: insert proper C++ library support
10214           ld_shlibs_CXX=no
10215         fi
10216         ;;
10217     esac
10218     ;;
10219   psos*)
10220     # FIXME: insert proper C++ library support
10221     ld_shlibs_CXX=no
10222     ;;
10223   sco*)
10224     archive_cmds_need_lc_CXX=no
10225     case $cc_basename in
10226       CC)
10227         # FIXME: insert proper C++ library support
10228         ld_shlibs_CXX=no
10229         ;;
10230       *)
10231         # FIXME: insert proper C++ library support
10232         ld_shlibs_CXX=no
10233         ;;
10234     esac
10235     ;;
10236   sunos4*)
10237     case $cc_basename in
10238       CC)
10239         # Sun C++ 4.x
10240         # FIXME: insert proper C++ library support
10241         ld_shlibs_CXX=no
10242         ;;
10243       lcc)
10244         # Lucid
10245         # FIXME: insert proper C++ library support
10246         ld_shlibs_CXX=no
10247         ;;
10248       *)
10249         # FIXME: insert proper C++ library support
10250         ld_shlibs_CXX=no
10251         ;;
10252     esac
10253     ;;
10254   solaris*)
10255     case $cc_basename in
10256       CC)
10257         # Sun C++ 4.2, 5.x and Centerline C++
10258         no_undefined_flag_CXX=' -zdefs'
10259         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10260         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10261         $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'
10262
10263         hardcode_libdir_flag_spec_CXX='-R$libdir'
10264         hardcode_shlibpath_var_CXX=no
10265         case $host_os in
10266           solaris2.0-5 | solaris2.0-5.*) ;;
10267           *)
10268             # The C++ compiler is used as linker so we must use $wl
10269             # flag to pass the commands to the underlying system
10270             # linker.
10271             # Supported since Solaris 2.6 (maybe 2.5.1?)
10272             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10273             ;;
10274         esac
10275         link_all_deplibs_CXX=yes
10276
10277         # Commands to make compiler produce verbose output that lists
10278         # what "hidden" libraries, object files and flags are used when
10279         # linking a shared library.
10280         #
10281         # There doesn't appear to be a way to prevent this compiler from
10282         # explicitly linking system object files so we need to strip them
10283         # from the output so that they don't get included in the library
10284         # dependencies.
10285         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'
10286
10287         # Archives containing C++ object files must be created using
10288         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10289         # necessary to make sure instantiated templates are included
10290         # in the archive.
10291         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10292         ;;
10293       gcx)
10294         # Green Hills C++ Compiler
10295         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10296
10297         # The C++ compiler must be used to create the archive.
10298         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10299         ;;
10300       *)
10301         # GNU C++ compiler with Solaris linker
10302         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10303           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10304           if $CC --version | grep -v '^2\.7' > /dev/null; then
10305             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10306             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10307                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10308
10309             # Commands to make compiler produce verbose output that lists
10310             # what "hidden" libraries, object files and flags are used when
10311             # linking a shared library.
10312             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10313           else
10314             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10315             # platform.
10316             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10317             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10318                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10319
10320             # Commands to make compiler produce verbose output that lists
10321             # what "hidden" libraries, object files and flags are used when
10322             # linking a shared library.
10323             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10324           fi
10325
10326           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10327         fi
10328         ;;
10329     esac
10330     ;;
10331   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10332     archive_cmds_need_lc_CXX=no
10333     ;;
10334   tandem*)
10335     case $cc_basename in
10336       NCC)
10337         # NonStop-UX NCC 3.20
10338         # FIXME: insert proper C++ library support
10339         ld_shlibs_CXX=no
10340         ;;
10341       *)
10342         # FIXME: insert proper C++ library support
10343         ld_shlibs_CXX=no
10344         ;;
10345     esac
10346     ;;
10347   vxworks*)
10348     # FIXME: insert proper C++ library support
10349     ld_shlibs_CXX=no
10350     ;;
10351   *)
10352     # FIXME: insert proper C++ library support
10353     ld_shlibs_CXX=no
10354     ;;
10355 esac
10356 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10357 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10358 test "$ld_shlibs_CXX" = no && can_build_shared=no
10359
10360 GCC_CXX="$GXX"
10361 LD_CXX="$LD"
10362
10363 ## CAVEAT EMPTOR:
10364 ## There is no encapsulation within the following macros, do not change
10365 ## the running order or otherwise move them around unless you know exactly
10366 ## what you are doing...
10367
10368 cat > conftest.$ac_ext <<EOF
10369 class Foo
10370 {
10371 public:
10372   Foo (void) { a = 0; }
10373 private:
10374   int a;
10375 };
10376 EOF
10377
10378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10379   (eval $ac_compile) 2>&5
10380   ac_status=$?
10381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382   (exit $ac_status); }; then
10383   # Parse the compiler output and extract the necessary
10384   # objects, libraries and library flags.
10385
10386   # Sentinel used to keep track of whether or not we are before
10387   # the conftest object file.
10388   pre_test_object_deps_done=no
10389
10390   # The `*' in the case matches for architectures that use `case' in
10391   # $output_verbose_cmd can trigger glob expansion during the loop
10392   # eval without this substitution.
10393   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10394
10395   for p in `eval $output_verbose_link_cmd`; do
10396     case $p in
10397
10398     -L* | -R* | -l*)
10399        # Some compilers place space between "-{L,R}" and the path.
10400        # Remove the space.
10401        if test $p = "-L" \
10402           || test $p = "-R"; then
10403          prev=$p
10404          continue
10405        else
10406          prev=
10407        fi
10408
10409        if test "$pre_test_object_deps_done" = no; then
10410          case $p in
10411          -L* | -R*)
10412            # Internal compiler library paths should come after those
10413            # provided the user.  The postdeps already come after the
10414            # user supplied libs so there is no need to process them.
10415            if test -z "$compiler_lib_search_path_CXX"; then
10416              compiler_lib_search_path_CXX="${prev}${p}"
10417            else
10418              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10419            fi
10420            ;;
10421          # The "-l" case would never come before the object being
10422          # linked, so don't bother handling this case.
10423          esac
10424        else
10425          if test -z "$postdeps_CXX"; then
10426            postdeps_CXX="${prev}${p}"
10427          else
10428            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10429          fi
10430        fi
10431        ;;
10432
10433     *.$objext)
10434        # This assumes that the test object file only shows up
10435        # once in the compiler output.
10436        if test "$p" = "conftest.$objext"; then
10437          pre_test_object_deps_done=yes
10438          continue
10439        fi
10440
10441        if test "$pre_test_object_deps_done" = no; then
10442          if test -z "$predep_objects_CXX"; then
10443            predep_objects_CXX="$p"
10444          else
10445            predep_objects_CXX="$predep_objects_CXX $p"
10446          fi
10447        else
10448          if test -z "$postdep_objects_CXX"; then
10449            postdep_objects_CXX="$p"
10450          else
10451            postdep_objects_CXX="$postdep_objects_CXX $p"
10452          fi
10453        fi
10454        ;;
10455
10456     *) ;; # Ignore the rest.
10457
10458     esac
10459   done
10460
10461   # Clean up.
10462   rm -f a.out a.exe
10463 else
10464   echo "libtool.m4: error: problem compiling CXX test program"
10465 fi
10466
10467 $rm -f confest.$objext
10468
10469 case " $postdeps_CXX " in
10470 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10471 esac
10472
10473 lt_prog_compiler_wl_CXX=
10474 lt_prog_compiler_pic_CXX=
10475 lt_prog_compiler_static_CXX=
10476
10477 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10478 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10479
10480   # C++ specific cases for pic, static, wl, etc.
10481   if test "$GXX" = yes; then
10482     lt_prog_compiler_wl_CXX='-Wl,'
10483     lt_prog_compiler_static_CXX='-static'
10484
10485     case $host_os in
10486     aix*)
10487       # All AIX code is PIC.
10488       if test "$host_cpu" = ia64; then
10489         # AIX 5 now supports IA64 processor
10490         lt_prog_compiler_static_CXX='-Bstatic'
10491       fi
10492       ;;
10493     amigaos*)
10494       # FIXME: we need at least 68020 code to build shared libraries, but
10495       # adding the `-m68020' flag to GCC prevents building anything better,
10496       # like `-m68040'.
10497       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10498       ;;
10499     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10500       # PIC is the default for these OSes.
10501       ;;
10502     mingw* | os2* | pw32*)
10503       # This hack is so that the source file can tell whether it is being
10504       # built for inclusion in a dll (and should export symbols for example).
10505       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10506       ;;
10507     darwin* | rhapsody*)
10508       # PIC is the default on this platform
10509       # Common symbols not allowed in MH_DYLIB files
10510       lt_prog_compiler_pic_CXX='-fno-common'
10511       ;;
10512     *djgpp*)
10513       # DJGPP does not support shared libraries at all
10514       lt_prog_compiler_pic_CXX=
10515       ;;
10516     sysv4*MP*)
10517       if test -d /usr/nec; then
10518         lt_prog_compiler_pic_CXX=-Kconform_pic
10519       fi
10520       ;;
10521     hpux*)
10522       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10523       # not for PA HP-UX.
10524       case "$host_cpu" in
10525       hppa*64*|ia64*)
10526         ;;
10527       *)
10528         lt_prog_compiler_pic_CXX='-fPIC'
10529         ;;
10530       esac
10531       ;;
10532     *)
10533       lt_prog_compiler_pic_CXX='-fPIC'
10534       ;;
10535     esac
10536   else
10537     case $host_os in
10538       aix4* | aix5*)
10539         # All AIX code is PIC.
10540         if test "$host_cpu" = ia64; then
10541           # AIX 5 now supports IA64 processor
10542           lt_prog_compiler_static_CXX='-Bstatic'
10543         else
10544           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10545         fi
10546         ;;
10547       chorus*)
10548         case $cc_basename in
10549         cxch68)
10550           # Green Hills C++ Compiler
10551           # _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"
10552           ;;
10553         esac
10554         ;;
10555       dgux*)
10556         case $cc_basename in
10557           ec++)
10558             lt_prog_compiler_pic_CXX='-KPIC'
10559             ;;
10560           ghcx)
10561             # Green Hills C++ Compiler
10562             lt_prog_compiler_pic_CXX='-pic'
10563             ;;
10564           *)
10565             ;;
10566         esac
10567         ;;
10568       freebsd*)
10569         # FreeBSD uses GNU C++
10570         ;;
10571       hpux9* | hpux10* | hpux11*)
10572         case $cc_basename in
10573           CC)
10574             lt_prog_compiler_wl_CXX='-Wl,'
10575             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10576             if test "$host_cpu" != ia64; then
10577               lt_prog_compiler_pic_CXX='+Z'
10578             fi
10579             ;;
10580           aCC)
10581             lt_prog_compiler_wl_CXX='-Wl,'
10582             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10583             case "$host_cpu" in
10584             hppa*64*|ia64*)
10585               # +Z the default
10586               ;;
10587             *)
10588               lt_prog_compiler_pic_CXX='+Z'
10589               ;;
10590             esac
10591             ;;
10592           *)
10593             ;;
10594         esac
10595         ;;
10596       irix5* | irix6* | nonstopux*)
10597         case $cc_basename in
10598           CC)
10599             lt_prog_compiler_wl_CXX='-Wl,'
10600             lt_prog_compiler_static_CXX='-non_shared'
10601             # CC pic flag -KPIC is the default.
10602             ;;
10603           *)
10604             ;;
10605         esac
10606         ;;
10607       linux*)
10608         case $cc_basename in
10609           KCC)
10610             # KAI C++ Compiler
10611             lt_prog_compiler_wl_CXX='--backend -Wl,'
10612             lt_prog_compiler_pic_CXX='-fPIC'
10613             ;;
10614           icpc)
10615             # Intel C++
10616             lt_prog_compiler_wl_CXX='-Wl,'
10617             lt_prog_compiler_pic_CXX='-KPIC'
10618             lt_prog_compiler_static_CXX='-static'
10619             ;;
10620           cxx)
10621             # Compaq C++
10622             # Make sure the PIC flag is empty.  It appears that all Alpha
10623             # Linux and Compaq Tru64 Unix objects are PIC.
10624             lt_prog_compiler_pic_CXX=
10625             lt_prog_compiler_static_CXX='-non_shared'
10626             ;;
10627           *)
10628             ;;
10629         esac
10630         ;;
10631       lynxos*)
10632         ;;
10633       m88k*)
10634         ;;
10635       mvs*)
10636         case $cc_basename in
10637           cxx)
10638             lt_prog_compiler_pic_CXX='-W c,exportall'
10639             ;;
10640           *)
10641             ;;
10642         esac
10643         ;;
10644       netbsd*)
10645         ;;
10646       osf3* | osf4* | osf5*)
10647         case $cc_basename in
10648           KCC)
10649             lt_prog_compiler_wl_CXX='--backend -Wl,'
10650             ;;
10651           RCC)
10652             # Rational C++ 2.4.1
10653             lt_prog_compiler_pic_CXX='-pic'
10654             ;;
10655           cxx)
10656             # Digital/Compaq C++
10657             lt_prog_compiler_wl_CXX='-Wl,'
10658             # Make sure the PIC flag is empty.  It appears that all Alpha
10659             # Linux and Compaq Tru64 Unix objects are PIC.
10660             lt_prog_compiler_pic_CXX=
10661             lt_prog_compiler_static_CXX='-non_shared'
10662             ;;
10663           *)
10664             ;;
10665         esac
10666         ;;
10667       psos*)
10668         ;;
10669       sco*)
10670         case $cc_basename in
10671           CC)
10672             lt_prog_compiler_pic_CXX='-fPIC'
10673             ;;
10674           *)
10675             ;;
10676         esac
10677         ;;
10678       solaris*)
10679         case $cc_basename in
10680           CC)
10681             # Sun C++ 4.2, 5.x and Centerline C++
10682             lt_prog_compiler_pic_CXX='-KPIC'
10683             lt_prog_compiler_static_CXX='-Bstatic'
10684             lt_prog_compiler_wl_CXX='-Qoption ld '
10685             ;;
10686           gcx)
10687             # Green Hills C++ Compiler
10688             lt_prog_compiler_pic_CXX='-PIC'
10689             ;;
10690           *)
10691             ;;
10692         esac
10693         ;;
10694       sunos4*)
10695         case $cc_basename in
10696           CC)
10697             # Sun C++ 4.x
10698             lt_prog_compiler_pic_CXX='-pic'
10699             lt_prog_compiler_static_CXX='-Bstatic'
10700             ;;
10701           lcc)
10702             # Lucid
10703             lt_prog_compiler_pic_CXX='-pic'
10704             ;;
10705           *)
10706             ;;
10707         esac
10708         ;;
10709       tandem*)
10710         case $cc_basename in
10711           NCC)
10712             # NonStop-UX NCC 3.20
10713             lt_prog_compiler_pic_CXX='-KPIC'
10714             ;;
10715           *)
10716             ;;
10717         esac
10718         ;;
10719       unixware*)
10720         ;;
10721       vxworks*)
10722         ;;
10723       *)
10724         lt_prog_compiler_can_build_shared_CXX=no
10725         ;;
10726     esac
10727   fi
10728
10729 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10730 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10731
10732 #
10733 # Check to make sure the PIC flag actually works.
10734 #
10735 if test -n "$lt_prog_compiler_pic_CXX"; then
10736   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10737 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10738 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10739   echo $ECHO_N "(cached) $ECHO_C" >&6
10740 else
10741   lt_prog_compiler_pic_works_CXX=no
10742   ac_outfile=conftest.$ac_objext
10743    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10744    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10745    # Insert the option either (1) after the last *FLAGS variable, or
10746    # (2) before a word containing "conftest.", or (3) at the end.
10747    # Note that $ac_compile itself does not contain backslashes and begins
10748    # with a dollar sign (not a hyphen), so the echo should work correctly.
10749    # The option is referenced via a variable to avoid confusing sed.
10750    lt_compile=`echo "$ac_compile" | $SED \
10751    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10752    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10753    -e 's:$: $lt_compiler_flag:'`
10754    (eval echo "\"\$as_me:10754: $lt_compile\"" >&5)
10755    (eval "$lt_compile" 2>conftest.err)
10756    ac_status=$?
10757    cat conftest.err >&5
10758    echo "$as_me:10758: \$? = $ac_status" >&5
10759    if (exit $ac_status) && test -s "$ac_outfile"; then
10760      # The compiler can only warn and ignore the option if not recognized
10761      # So say no if there are warnings
10762      if test ! -s conftest.err; then
10763        lt_prog_compiler_pic_works_CXX=yes
10764      fi
10765    fi
10766    $rm conftest*
10767
10768 fi
10769 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10770 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10771
10772 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10773     case $lt_prog_compiler_pic_CXX in
10774      "" | " "*) ;;
10775      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10776      esac
10777 else
10778     lt_prog_compiler_pic_CXX=
10779      lt_prog_compiler_can_build_shared_CXX=no
10780 fi
10781
10782 fi
10783 case "$host_os" in
10784   # For platforms which do not support PIC, -DPIC is meaningless:
10785   *djgpp*)
10786     lt_prog_compiler_pic_CXX=
10787     ;;
10788   *)
10789     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10790     ;;
10791 esac
10792
10793 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10794 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10795 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10796   echo $ECHO_N "(cached) $ECHO_C" >&6
10797 else
10798   lt_cv_prog_compiler_c_o_CXX=no
10799    $rm -r conftest 2>/dev/null
10800    mkdir conftest
10801    cd conftest
10802    mkdir out
10803    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10804
10805    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10806    # that will create temporary files in the current directory regardless of
10807    # the output directory.  Thus, making CWD read-only will cause this test
10808    # to fail, enabling locking or at least warning the user not to do parallel
10809    # builds.
10810    chmod -w .
10811
10812    lt_compiler_flag="-o out/conftest2.$ac_objext"
10813    # Insert the option either (1) after the last *FLAGS variable, or
10814    # (2) before a word containing "conftest.", or (3) at the end.
10815    # Note that $ac_compile itself does not contain backslashes and begins
10816    # with a dollar sign (not a hyphen), so the echo should work correctly.
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>out/conftest.err)
10823    ac_status=$?
10824    cat out/conftest.err >&5
10825    echo "$as_me:10825: \$? = $ac_status" >&5
10826    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10827    then
10828      # The compiler can only warn and ignore the option if not recognized
10829      # So say no if there are warnings
10830      if test ! -s out/conftest.err; then
10831        lt_cv_prog_compiler_c_o_CXX=yes
10832      fi
10833    fi
10834    chmod u+w .
10835    $rm conftest* out/*
10836    rmdir out
10837    cd ..
10838    rmdir conftest
10839    $rm conftest*
10840
10841 fi
10842 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10843 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10844
10845
10846 hard_links="nottested"
10847 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10848   # do not overwrite the value of need_locks provided by the user
10849   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10850 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10851   hard_links=yes
10852   $rm conftest*
10853   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10854   touch conftest.a
10855   ln conftest.a conftest.b 2>&5 || hard_links=no
10856   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10857   echo "$as_me:$LINENO: result: $hard_links" >&5
10858 echo "${ECHO_T}$hard_links" >&6
10859   if test "$hard_links" = no; then
10860     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10861 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10862     need_locks=warn
10863   fi
10864 else
10865   need_locks=no
10866 fi
10867
10868 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10869 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10870
10871   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10872   case $host_os in
10873   aix4* | aix5*)
10874     # If we're using GNU nm, then we don't want the "-C" option.
10875     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10876     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10877       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'
10878     else
10879       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'
10880     fi
10881     ;;
10882   pw32*)
10883     export_symbols_cmds_CXX="$ltdll_cmds"
10884   ;;
10885   cygwin* | mingw*)
10886     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10887   ;;
10888   *)
10889     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10890   ;;
10891   esac
10892
10893 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10894 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10895 test "$ld_shlibs_CXX" = no && can_build_shared=no
10896
10897 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10898 if test "$GCC" = yes; then
10899   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10900 fi
10901
10902 #
10903 # Do we need to explicitly link libc?
10904 #
10905 case "x$archive_cmds_need_lc_CXX" in
10906 x|xyes)
10907   # Assume -lc should be added
10908   archive_cmds_need_lc_CXX=yes
10909
10910   if test "$enable_shared" = yes && test "$GCC" = yes; then
10911     case $archive_cmds_CXX in
10912     *'~'*)
10913       # FIXME: we may have to deal with multi-command sequences.
10914       ;;
10915     '$CC '*)
10916       # Test whether the compiler implicitly links with -lc since on some
10917       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10918       # to ld, don't add -lc before -lgcc.
10919       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10920 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10921       $rm conftest*
10922       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10923
10924       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10925   (eval $ac_compile) 2>&5
10926   ac_status=$?
10927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928   (exit $ac_status); } 2>conftest.err; then
10929         soname=conftest
10930         lib=conftest
10931         libobjs=conftest.$ac_objext
10932         deplibs=
10933         wl=$lt_prog_compiler_wl_CXX
10934         compiler_flags=-v
10935         linker_flags=-v
10936         verstring=
10937         output_objdir=.
10938         libname=conftest
10939         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10940         allow_undefined_flag_CXX=
10941         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10942   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10943   ac_status=$?
10944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945   (exit $ac_status); }
10946         then
10947           archive_cmds_need_lc_CXX=no
10948         else
10949           archive_cmds_need_lc_CXX=yes
10950         fi
10951         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10952       else
10953         cat conftest.err 1>&5
10954       fi
10955       $rm conftest*
10956       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10957 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10958       ;;
10959     esac
10960   fi
10961   ;;
10962 esac
10963
10964 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10965 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10966 hardcode_action_CXX=
10967 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10968    test -n "$runpath_var CXX" || \
10969    test "X$hardcode_automatic_CXX"="Xyes" ; then
10970
10971   # We can hardcode non-existant directories.
10972   if test "$hardcode_direct_CXX" != no &&
10973      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10974      # have to relink, otherwise we might link with an installed library
10975      # when we should be linking with a yet-to-be-installed one
10976      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10977      test "$hardcode_minus_L_CXX" != no; then
10978     # Linking always hardcodes the temporary library directory.
10979     hardcode_action_CXX=relink
10980   else
10981     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10982     hardcode_action_CXX=immediate
10983   fi
10984 else
10985   # We cannot hardcode anything, or else we can only hardcode existing
10986   # directories.
10987   hardcode_action_CXX=unsupported
10988 fi
10989 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10990 echo "${ECHO_T}$hardcode_action_CXX" >&6
10991
10992 if test "$hardcode_action_CXX" = relink; then
10993   # Fast installation is not supported
10994   enable_fast_install=no
10995 elif test "$shlibpath_overrides_runpath" = yes ||
10996      test "$enable_shared" = no; then
10997   # Fast installation is not necessary
10998   enable_fast_install=needless
10999 fi
11000
11001 striplib=
11002 old_striplib=
11003 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11004 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11005 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11006   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11007   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11008   echo "$as_me:$LINENO: result: yes" >&5
11009 echo "${ECHO_T}yes" >&6
11010 else
11011 # FIXME - insert some real tests, host_os isn't really good enough
11012   case $host_os in
11013    darwin*)
11014        if test -n "$STRIP" ; then
11015          striplib="$STRIP -x"
11016          echo "$as_me:$LINENO: result: yes" >&5
11017 echo "${ECHO_T}yes" >&6
11018        else
11019   echo "$as_me:$LINENO: result: no" >&5
11020 echo "${ECHO_T}no" >&6
11021 fi
11022        ;;
11023    *)
11024   echo "$as_me:$LINENO: result: no" >&5
11025 echo "${ECHO_T}no" >&6
11026     ;;
11027   esac
11028 fi
11029
11030 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11031 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11032 library_names_spec=
11033 libname_spec='lib$name'
11034 soname_spec=
11035 shrext=".so"
11036 postinstall_cmds=
11037 postuninstall_cmds=
11038 finish_cmds=
11039 finish_eval=
11040 shlibpath_var=
11041 shlibpath_overrides_runpath=unknown
11042 version_type=none
11043 dynamic_linker="$host_os ld.so"
11044 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11045 if test "$GCC" = yes; then
11046   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11047   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11048     # if the path contains ";" then we assume it to be the separator
11049     # otherwise default to the standard path separator (i.e. ":") - it is
11050     # assumed that no part of a normal pathname contains ";" but that should
11051     # okay in the real world where ";" in dirpaths is itself problematic.
11052     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11053   else
11054     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11055   fi
11056 else
11057   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11058 fi
11059 need_lib_prefix=unknown
11060 hardcode_into_libs=no
11061
11062 # when you set need_version to no, make sure it does not cause -set_version
11063 # flags to be left without arguments
11064 need_version=unknown
11065
11066 case $host_os in
11067 aix3*)
11068   version_type=linux
11069   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11070   shlibpath_var=LIBPATH
11071
11072   # AIX 3 has no versioning support, so we append a major version to the name.
11073   soname_spec='${libname}${release}${shared_ext}$major'
11074   ;;
11075
11076 aix4* | aix5*)
11077   version_type=linux
11078   need_lib_prefix=no
11079   need_version=no
11080   hardcode_into_libs=yes
11081   if test "$host_cpu" = ia64; then
11082     # AIX 5 supports IA64
11083     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11084     shlibpath_var=LD_LIBRARY_PATH
11085   else
11086     # With GCC up to 2.95.x, collect2 would create an import file
11087     # for dependence libraries.  The import file would start with
11088     # the line `#! .'.  This would cause the generated library to
11089     # depend on `.', always an invalid library.  This was fixed in
11090     # development snapshots of GCC prior to 3.0.
11091     case $host_os in
11092       aix4 | aix4.[01] | aix4.[01].*)
11093       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11094            echo ' yes '
11095            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11096         :
11097       else
11098         can_build_shared=no
11099       fi
11100       ;;
11101     esac
11102     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11103     # soname into executable. Probably we can add versioning support to
11104     # collect2, so additional links can be useful in future.
11105     if test "$aix_use_runtimelinking" = yes; then
11106       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11107       # instead of lib<name>.a to let people know that these are not
11108       # typical AIX shared libraries.
11109       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11110     else
11111       # We preserve .a as extension for shared libraries through AIX4.2
11112       # and later when we are not doing run time linking.
11113       library_names_spec='${libname}${release}.a $libname.a'
11114       soname_spec='${libname}${release}${shared_ext}$major'
11115     fi
11116     shlibpath_var=LIBPATH
11117   fi
11118   ;;
11119
11120 amigaos*)
11121   library_names_spec='$libname.ixlibrary $libname.a'
11122   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11123   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'
11124   ;;
11125
11126 beos*)
11127   library_names_spec='${libname}${shared_ext}'
11128   dynamic_linker="$host_os ld.so"
11129   shlibpath_var=LIBRARY_PATH
11130   ;;
11131
11132 bsdi4*)
11133   version_type=linux
11134   need_version=no
11135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11136   soname_spec='${libname}${release}${shared_ext}$major'
11137   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11138   shlibpath_var=LD_LIBRARY_PATH
11139   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11140   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11141   # the default ld.so.conf also contains /usr/contrib/lib and
11142   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11143   # libtool to hard-code these into programs
11144   ;;
11145
11146 cygwin* | mingw* | pw32*)
11147   version_type=windows
11148   shrext=".dll"
11149   need_version=no
11150   need_lib_prefix=no
11151
11152   case $GCC,$host_os in
11153   yes,cygwin* | yes,mingw* | yes,pw32*)
11154     library_names_spec='$libname.dll.a'
11155     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11156     postinstall_cmds='base_file=`basename \${file}`~
11157       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11158       dldir=$destdir/`dirname \$dlpath`~
11159       test -d \$dldir || mkdir -p \$dldir~
11160       $install_prog $dir/$dlname \$dldir/$dlname'
11161     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11162       dlpath=$dir/\$dldll~
11163        $rm \$dlpath'
11164     shlibpath_overrides_runpath=yes
11165
11166     case $host_os in
11167     cygwin*)
11168       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11169       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11170       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11171       ;;
11172     mingw*)
11173       # MinGW DLLs use traditional 'lib' prefix
11174       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11175       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11176       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11177         # It is most probably a Windows format PATH printed by
11178         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11179         # path with ; separators, and with drive letters. We can handle the
11180         # drive letters (cygwin fileutils understands them), so leave them,
11181         # especially as we might pass files found there to a mingw objdump,
11182         # which wouldn't understand a cygwinified path. Ahh.
11183         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11184       else
11185         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11186       fi
11187       ;;
11188     pw32*)
11189       # pw32 DLLs use 'pw' prefix rather than 'lib'
11190       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11191       ;;
11192     esac
11193     ;;
11194
11195   *)
11196     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11197     ;;
11198   esac
11199   dynamic_linker='Win32 ld.exe'
11200   # FIXME: first we should search . and the directory the executable is in
11201   shlibpath_var=PATH
11202   ;;
11203
11204 darwin* | rhapsody*)
11205   dynamic_linker="$host_os dyld"
11206   version_type=darwin
11207   need_lib_prefix=no
11208   need_version=no
11209   # FIXME: Relying on posixy $() will cause problems for
11210   #        cross-compilation, but unfortunately the echo tests do not
11211   #        yet detect zsh echo's removal of \ escapes.
11212   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11213   soname_spec='${libname}${release}${major}$shared_ext'
11214   shlibpath_overrides_runpath=yes
11215   shlibpath_var=DYLD_LIBRARY_PATH
11216   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11217   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11218   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11219   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"`
11220   fi
11221   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11222   ;;
11223
11224 dgux*)
11225   version_type=linux
11226   need_lib_prefix=no
11227   need_version=no
11228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11229   soname_spec='${libname}${release}${shared_ext}$major'
11230   shlibpath_var=LD_LIBRARY_PATH
11231   ;;
11232
11233 freebsd1*)
11234   dynamic_linker=no
11235   ;;
11236
11237 freebsd*)
11238   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11239   version_type=freebsd-$objformat
11240   case $version_type in
11241     freebsd-elf*)
11242       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11243       need_version=no
11244       need_lib_prefix=no
11245       ;;
11246     freebsd-*)
11247       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11248       need_version=yes
11249       ;;
11250   esac
11251   shlibpath_var=LD_LIBRARY_PATH
11252   case $host_os in
11253   freebsd2*)
11254     shlibpath_overrides_runpath=yes
11255     ;;
11256   freebsd3.01* | freebsdelf3.01*)
11257     shlibpath_overrides_runpath=yes
11258     hardcode_into_libs=yes
11259     ;;
11260   *) # from 3.2 on
11261     shlibpath_overrides_runpath=no
11262     hardcode_into_libs=yes
11263     ;;
11264   esac
11265   ;;
11266
11267 gnu*)
11268   version_type=linux
11269   need_lib_prefix=no
11270   need_version=no
11271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11272   soname_spec='${libname}${release}${shared_ext}$major'
11273   shlibpath_var=LD_LIBRARY_PATH
11274   hardcode_into_libs=yes
11275   ;;
11276
11277 hpux9* | hpux10* | hpux11*)
11278   # Give a soname corresponding to the major version so that dld.sl refuses to
11279   # link against other versions.
11280   version_type=sunos
11281   need_lib_prefix=no
11282   need_version=no
11283   case "$host_cpu" in
11284   ia64*)
11285     shrext='.so'
11286     hardcode_into_libs=yes
11287     dynamic_linker="$host_os dld.so"
11288     shlibpath_var=LD_LIBRARY_PATH
11289     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11290     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11291     soname_spec='${libname}${release}${shared_ext}$major'
11292     if test "X$HPUX_IA64_MODE" = X32; then
11293       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11294     else
11295       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11296     fi
11297     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11298     ;;
11299    hppa*64*)
11300      shrext='.sl'
11301      hardcode_into_libs=yes
11302      dynamic_linker="$host_os dld.sl"
11303      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11304      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11305      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11306      soname_spec='${libname}${release}${shared_ext}$major'
11307      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11308      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11309      ;;
11310    *)
11311     shrext='.sl'
11312     dynamic_linker="$host_os dld.sl"
11313     shlibpath_var=SHLIB_PATH
11314     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11315     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11316     soname_spec='${libname}${release}${shared_ext}$major'
11317     ;;
11318   esac
11319   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11320   postinstall_cmds='chmod 555 $lib'
11321   ;;
11322
11323 irix5* | irix6* | nonstopux*)
11324   case $host_os in
11325     nonstopux*) version_type=nonstopux ;;
11326     *)
11327         if test "$lt_cv_prog_gnu_ld" = yes; then
11328                 version_type=linux
11329         else
11330                 version_type=irix
11331         fi ;;
11332   esac
11333   need_lib_prefix=no
11334   need_version=no
11335   soname_spec='${libname}${release}${shared_ext}$major'
11336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11337   case $host_os in
11338   irix5* | nonstopux*)
11339     libsuff= shlibsuff=
11340     ;;
11341   *)
11342     case $LD in # libtool.m4 will add one of these switches to LD
11343     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11344       libsuff= shlibsuff= libmagic=32-bit;;
11345     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11346       libsuff=32 shlibsuff=N32 libmagic=N32;;
11347     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11348       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11349     *) libsuff= shlibsuff= libmagic=never-match;;
11350     esac
11351     ;;
11352   esac
11353   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11354   shlibpath_overrides_runpath=no
11355   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11356   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11357   hardcode_into_libs=yes
11358   ;;
11359
11360 # No shared lib support for Linux oldld, aout, or coff.
11361 linux*oldld* | linux*aout* | linux*coff*)
11362   dynamic_linker=no
11363   ;;
11364
11365 # This must be Linux ELF.
11366 linux*)
11367   version_type=linux
11368   need_lib_prefix=no
11369   need_version=no
11370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11371   soname_spec='${libname}${release}${shared_ext}$major'
11372   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11373   shlibpath_var=LD_LIBRARY_PATH
11374   shlibpath_overrides_runpath=no
11375   # This implies no fast_install, which is unacceptable.
11376   # Some rework will be needed to allow for fast_install
11377   # before this can be enabled.
11378   hardcode_into_libs=yes
11379
11380   # We used to test for /lib/ld.so.1 and disable shared libraries on
11381   # powerpc, because MkLinux only supported shared libraries with the
11382   # GNU dynamic linker.  Since this was broken with cross compilers,
11383   # most powerpc-linux boxes support dynamic linking these days and
11384   # people can always --disable-shared, the test was removed, and we
11385   # assume the GNU/Linux dynamic linker is in use.
11386   dynamic_linker='GNU/Linux ld.so'
11387   ;;
11388
11389 netbsd*)
11390   version_type=sunos
11391   need_lib_prefix=no
11392   need_version=no
11393   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11394     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11395     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11396     dynamic_linker='NetBSD (a.out) ld.so'
11397   else
11398     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11399     soname_spec='${libname}${release}${shared_ext}$major'
11400     dynamic_linker='NetBSD ld.elf_so'
11401   fi
11402   shlibpath_var=LD_LIBRARY_PATH
11403   shlibpath_overrides_runpath=yes
11404   hardcode_into_libs=yes
11405   ;;
11406
11407 newsos6)
11408   version_type=linux
11409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11410   shlibpath_var=LD_LIBRARY_PATH
11411   shlibpath_overrides_runpath=yes
11412   ;;
11413
11414 nto-qnx)
11415   version_type=linux
11416   need_lib_prefix=no
11417   need_version=no
11418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11419   soname_spec='${libname}${release}${shared_ext}$major'
11420   shlibpath_var=LD_LIBRARY_PATH
11421   shlibpath_overrides_runpath=yes
11422   ;;
11423
11424 openbsd*)
11425   version_type=sunos
11426   need_lib_prefix=no
11427   need_version=no
11428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11429   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11430   shlibpath_var=LD_LIBRARY_PATH
11431   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11432     case $host_os in
11433       openbsd2.[89] | openbsd2.[89].*)
11434         shlibpath_overrides_runpath=no
11435         ;;
11436       *)
11437         shlibpath_overrides_runpath=yes
11438         ;;
11439       esac
11440   else
11441     shlibpath_overrides_runpath=yes
11442   fi
11443   ;;
11444
11445 os2*)
11446   libname_spec='$name'
11447   shrext=".dll"
11448   need_lib_prefix=no
11449   library_names_spec='$libname${shared_ext} $libname.a'
11450   dynamic_linker='OS/2 ld.exe'
11451   shlibpath_var=LIBPATH
11452   ;;
11453
11454 osf3* | osf4* | osf5*)
11455   version_type=osf
11456   need_lib_prefix=no
11457   need_version=no
11458   soname_spec='${libname}${release}${shared_ext}$major'
11459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11460   shlibpath_var=LD_LIBRARY_PATH
11461   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11462   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11463   ;;
11464
11465 sco3.2v5*)
11466   version_type=osf
11467   soname_spec='${libname}${release}${shared_ext}$major'
11468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11469   shlibpath_var=LD_LIBRARY_PATH
11470   ;;
11471
11472 solaris*)
11473   version_type=linux
11474   need_lib_prefix=no
11475   need_version=no
11476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11477   soname_spec='${libname}${release}${shared_ext}$major'
11478   shlibpath_var=LD_LIBRARY_PATH
11479   shlibpath_overrides_runpath=yes
11480   hardcode_into_libs=yes
11481   # ldd complains unless libraries are executable
11482   postinstall_cmds='chmod +x $lib'
11483   ;;
11484
11485 sunos4*)
11486   version_type=sunos
11487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11488   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11489   shlibpath_var=LD_LIBRARY_PATH
11490   shlibpath_overrides_runpath=yes
11491   if test "$with_gnu_ld" = yes; then
11492     need_lib_prefix=no
11493   fi
11494   need_version=yes
11495   ;;
11496
11497 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11498   version_type=linux
11499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11500   soname_spec='${libname}${release}${shared_ext}$major'
11501   shlibpath_var=LD_LIBRARY_PATH
11502   case $host_vendor in
11503     sni)
11504       shlibpath_overrides_runpath=no
11505       need_lib_prefix=no
11506       export_dynamic_flag_spec='${wl}-Blargedynsym'
11507       runpath_var=LD_RUN_PATH
11508       ;;
11509     siemens)
11510       need_lib_prefix=no
11511       ;;
11512     motorola)
11513       need_lib_prefix=no
11514       need_version=no
11515       shlibpath_overrides_runpath=no
11516       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11517       ;;
11518   esac
11519   ;;
11520
11521 sysv4*MP*)
11522   if test -d /usr/nec ;then
11523     version_type=linux
11524     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11525     soname_spec='$libname${shared_ext}.$major'
11526     shlibpath_var=LD_LIBRARY_PATH
11527   fi
11528   ;;
11529
11530 uts4*)
11531   version_type=linux
11532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11533   soname_spec='${libname}${release}${shared_ext}$major'
11534   shlibpath_var=LD_LIBRARY_PATH
11535   ;;
11536
11537 *)
11538   dynamic_linker=no
11539   ;;
11540 esac
11541 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11542 echo "${ECHO_T}$dynamic_linker" >&6
11543 test "$dynamic_linker" = no && can_build_shared=no
11544
11545 if test "x$enable_dlopen" != xyes; then
11546   enable_dlopen=unknown
11547   enable_dlopen_self=unknown
11548   enable_dlopen_self_static=unknown
11549 else
11550   lt_cv_dlopen=no
11551   lt_cv_dlopen_libs=
11552
11553   case $host_os in
11554   beos*)
11555     lt_cv_dlopen="load_add_on"
11556     lt_cv_dlopen_libs=
11557     lt_cv_dlopen_self=yes
11558     ;;
11559
11560   mingw* | pw32*)
11561     lt_cv_dlopen="LoadLibrary"
11562     lt_cv_dlopen_libs=
11563    ;;
11564
11565   cygwin*)
11566     lt_cv_dlopen="dlopen"
11567     lt_cv_dlopen_libs=
11568    ;;
11569
11570   darwin*)
11571   # if libdl is installed we need to link against it
11572     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11573 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11574 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11575   echo $ECHO_N "(cached) $ECHO_C" >&6
11576 else
11577   ac_check_lib_save_LIBS=$LIBS
11578 LIBS="-ldl  $LIBS"
11579 cat >conftest.$ac_ext <<_ACEOF
11580 #line $LINENO "configure"
11581 /* confdefs.h.  */
11582 _ACEOF
11583 cat confdefs.h >>conftest.$ac_ext
11584 cat >>conftest.$ac_ext <<_ACEOF
11585 /* end confdefs.h.  */
11586
11587 /* Override any gcc2 internal prototype to avoid an error.  */
11588 #ifdef __cplusplus
11589 extern "C"
11590 #endif
11591 /* We use char because int might match the return type of a gcc2
11592    builtin and then its argument prototype would still apply.  */
11593 char dlopen ();
11594 int
11595 main ()
11596 {
11597 dlopen ();
11598   ;
11599   return 0;
11600 }
11601 _ACEOF
11602 rm -f conftest.$ac_objext conftest$ac_exeext
11603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11604   (eval $ac_link) 2>&5
11605   ac_status=$?
11606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607   (exit $ac_status); } &&
11608          { ac_try='test -s conftest$ac_exeext'
11609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11610   (eval $ac_try) 2>&5
11611   ac_status=$?
11612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613   (exit $ac_status); }; }; then
11614   ac_cv_lib_dl_dlopen=yes
11615 else
11616   echo "$as_me: failed program was:" >&5
11617 sed 's/^/| /' conftest.$ac_ext >&5
11618
11619 ac_cv_lib_dl_dlopen=no
11620 fi
11621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11622 LIBS=$ac_check_lib_save_LIBS
11623 fi
11624 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11625 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11626 if test $ac_cv_lib_dl_dlopen = yes; then
11627   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11628 else
11629
11630     lt_cv_dlopen="dyld"
11631     lt_cv_dlopen_libs=
11632     lt_cv_dlopen_self=yes
11633
11634 fi
11635
11636    ;;
11637
11638   *)
11639     echo "$as_me:$LINENO: checking for shl_load" >&5
11640 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11641 if test "${ac_cv_func_shl_load+set}" = set; then
11642   echo $ECHO_N "(cached) $ECHO_C" >&6
11643 else
11644   cat >conftest.$ac_ext <<_ACEOF
11645 #line $LINENO "configure"
11646 /* confdefs.h.  */
11647 _ACEOF
11648 cat confdefs.h >>conftest.$ac_ext
11649 cat >>conftest.$ac_ext <<_ACEOF
11650 /* end confdefs.h.  */
11651 /* System header to define __stub macros and hopefully few prototypes,
11652     which can conflict with char shl_load (); below.
11653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11654     <limits.h> exists even on freestanding compilers.  */
11655 #ifdef __STDC__
11656 # include <limits.h>
11657 #else
11658 # include <assert.h>
11659 #endif
11660 /* Override any gcc2 internal prototype to avoid an error.  */
11661 #ifdef __cplusplus
11662 extern "C"
11663 {
11664 #endif
11665 /* We use char because int might match the return type of a gcc2
11666    builtin and then its argument prototype would still apply.  */
11667 char shl_load ();
11668 /* The GNU C library defines this for functions which it implements
11669     to always fail with ENOSYS.  Some functions are actually named
11670     something starting with __ and the normal name is an alias.  */
11671 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11672 choke me
11673 #else
11674 char (*f) () = shl_load;
11675 #endif
11676 #ifdef __cplusplus
11677 }
11678 #endif
11679
11680 int
11681 main ()
11682 {
11683 return f != shl_load;
11684   ;
11685   return 0;
11686 }
11687 _ACEOF
11688 rm -f conftest.$ac_objext conftest$ac_exeext
11689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11690   (eval $ac_link) 2>&5
11691   ac_status=$?
11692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693   (exit $ac_status); } &&
11694          { ac_try='test -s conftest$ac_exeext'
11695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11696   (eval $ac_try) 2>&5
11697   ac_status=$?
11698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699   (exit $ac_status); }; }; then
11700   ac_cv_func_shl_load=yes
11701 else
11702   echo "$as_me: failed program was:" >&5
11703 sed 's/^/| /' conftest.$ac_ext >&5
11704
11705 ac_cv_func_shl_load=no
11706 fi
11707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11708 fi
11709 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11710 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11711 if test $ac_cv_func_shl_load = yes; then
11712   lt_cv_dlopen="shl_load"
11713 else
11714   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11715 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11716 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11717   echo $ECHO_N "(cached) $ECHO_C" >&6
11718 else
11719   ac_check_lib_save_LIBS=$LIBS
11720 LIBS="-ldld  $LIBS"
11721 cat >conftest.$ac_ext <<_ACEOF
11722 #line $LINENO "configure"
11723 /* confdefs.h.  */
11724 _ACEOF
11725 cat confdefs.h >>conftest.$ac_ext
11726 cat >>conftest.$ac_ext <<_ACEOF
11727 /* end confdefs.h.  */
11728
11729 /* Override any gcc2 internal prototype to avoid an error.  */
11730 #ifdef __cplusplus
11731 extern "C"
11732 #endif
11733 /* We use char because int might match the return type of a gcc2
11734    builtin and then its argument prototype would still apply.  */
11735 char shl_load ();
11736 int
11737 main ()
11738 {
11739 shl_load ();
11740   ;
11741   return 0;
11742 }
11743 _ACEOF
11744 rm -f conftest.$ac_objext conftest$ac_exeext
11745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11746   (eval $ac_link) 2>&5
11747   ac_status=$?
11748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749   (exit $ac_status); } &&
11750          { ac_try='test -s conftest$ac_exeext'
11751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11752   (eval $ac_try) 2>&5
11753   ac_status=$?
11754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755   (exit $ac_status); }; }; then
11756   ac_cv_lib_dld_shl_load=yes
11757 else
11758   echo "$as_me: failed program was:" >&5
11759 sed 's/^/| /' conftest.$ac_ext >&5
11760
11761 ac_cv_lib_dld_shl_load=no
11762 fi
11763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11764 LIBS=$ac_check_lib_save_LIBS
11765 fi
11766 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11767 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11768 if test $ac_cv_lib_dld_shl_load = yes; then
11769   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11770 else
11771   echo "$as_me:$LINENO: checking for dlopen" >&5
11772 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11773 if test "${ac_cv_func_dlopen+set}" = set; then
11774   echo $ECHO_N "(cached) $ECHO_C" >&6
11775 else
11776   cat >conftest.$ac_ext <<_ACEOF
11777 #line $LINENO "configure"
11778 /* confdefs.h.  */
11779 _ACEOF
11780 cat confdefs.h >>conftest.$ac_ext
11781 cat >>conftest.$ac_ext <<_ACEOF
11782 /* end confdefs.h.  */
11783 /* System header to define __stub macros and hopefully few prototypes,
11784     which can conflict with char dlopen (); below.
11785     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11786     <limits.h> exists even on freestanding compilers.  */
11787 #ifdef __STDC__
11788 # include <limits.h>
11789 #else
11790 # include <assert.h>
11791 #endif
11792 /* Override any gcc2 internal prototype to avoid an error.  */
11793 #ifdef __cplusplus
11794 extern "C"
11795 {
11796 #endif
11797 /* We use char because int might match the return type of a gcc2
11798    builtin and then its argument prototype would still apply.  */
11799 char dlopen ();
11800 /* The GNU C library defines this for functions which it implements
11801     to always fail with ENOSYS.  Some functions are actually named
11802     something starting with __ and the normal name is an alias.  */
11803 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11804 choke me
11805 #else
11806 char (*f) () = dlopen;
11807 #endif
11808 #ifdef __cplusplus
11809 }
11810 #endif
11811
11812 int
11813 main ()
11814 {
11815 return f != dlopen;
11816   ;
11817   return 0;
11818 }
11819 _ACEOF
11820 rm -f conftest.$ac_objext conftest$ac_exeext
11821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11822   (eval $ac_link) 2>&5
11823   ac_status=$?
11824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825   (exit $ac_status); } &&
11826          { ac_try='test -s conftest$ac_exeext'
11827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11828   (eval $ac_try) 2>&5
11829   ac_status=$?
11830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831   (exit $ac_status); }; }; then
11832   ac_cv_func_dlopen=yes
11833 else
11834   echo "$as_me: failed program was:" >&5
11835 sed 's/^/| /' conftest.$ac_ext >&5
11836
11837 ac_cv_func_dlopen=no
11838 fi
11839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11840 fi
11841 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11842 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11843 if test $ac_cv_func_dlopen = yes; then
11844   lt_cv_dlopen="dlopen"
11845 else
11846   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11847 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11848 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11849   echo $ECHO_N "(cached) $ECHO_C" >&6
11850 else
11851   ac_check_lib_save_LIBS=$LIBS
11852 LIBS="-ldl  $LIBS"
11853 cat >conftest.$ac_ext <<_ACEOF
11854 #line $LINENO "configure"
11855 /* confdefs.h.  */
11856 _ACEOF
11857 cat confdefs.h >>conftest.$ac_ext
11858 cat >>conftest.$ac_ext <<_ACEOF
11859 /* end confdefs.h.  */
11860
11861 /* Override any gcc2 internal prototype to avoid an error.  */
11862 #ifdef __cplusplus
11863 extern "C"
11864 #endif
11865 /* We use char because int might match the return type of a gcc2
11866    builtin and then its argument prototype would still apply.  */
11867 char dlopen ();
11868 int
11869 main ()
11870 {
11871 dlopen ();
11872   ;
11873   return 0;
11874 }
11875 _ACEOF
11876 rm -f conftest.$ac_objext conftest$ac_exeext
11877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11878   (eval $ac_link) 2>&5
11879   ac_status=$?
11880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881   (exit $ac_status); } &&
11882          { ac_try='test -s conftest$ac_exeext'
11883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884   (eval $ac_try) 2>&5
11885   ac_status=$?
11886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887   (exit $ac_status); }; }; then
11888   ac_cv_lib_dl_dlopen=yes
11889 else
11890   echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.$ac_ext >&5
11892
11893 ac_cv_lib_dl_dlopen=no
11894 fi
11895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11896 LIBS=$ac_check_lib_save_LIBS
11897 fi
11898 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11899 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11900 if test $ac_cv_lib_dl_dlopen = yes; then
11901   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11902 else
11903   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11904 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11905 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11906   echo $ECHO_N "(cached) $ECHO_C" >&6
11907 else
11908   ac_check_lib_save_LIBS=$LIBS
11909 LIBS="-lsvld  $LIBS"
11910 cat >conftest.$ac_ext <<_ACEOF
11911 #line $LINENO "configure"
11912 /* confdefs.h.  */
11913 _ACEOF
11914 cat confdefs.h >>conftest.$ac_ext
11915 cat >>conftest.$ac_ext <<_ACEOF
11916 /* end confdefs.h.  */
11917
11918 /* Override any gcc2 internal prototype to avoid an error.  */
11919 #ifdef __cplusplus
11920 extern "C"
11921 #endif
11922 /* We use char because int might match the return type of a gcc2
11923    builtin and then its argument prototype would still apply.  */
11924 char dlopen ();
11925 int
11926 main ()
11927 {
11928 dlopen ();
11929   ;
11930   return 0;
11931 }
11932 _ACEOF
11933 rm -f conftest.$ac_objext conftest$ac_exeext
11934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11935   (eval $ac_link) 2>&5
11936   ac_status=$?
11937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938   (exit $ac_status); } &&
11939          { ac_try='test -s conftest$ac_exeext'
11940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941   (eval $ac_try) 2>&5
11942   ac_status=$?
11943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944   (exit $ac_status); }; }; then
11945   ac_cv_lib_svld_dlopen=yes
11946 else
11947   echo "$as_me: failed program was:" >&5
11948 sed 's/^/| /' conftest.$ac_ext >&5
11949
11950 ac_cv_lib_svld_dlopen=no
11951 fi
11952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11953 LIBS=$ac_check_lib_save_LIBS
11954 fi
11955 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11956 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11957 if test $ac_cv_lib_svld_dlopen = yes; then
11958   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11959 else
11960   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11961 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11962 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11963   echo $ECHO_N "(cached) $ECHO_C" >&6
11964 else
11965   ac_check_lib_save_LIBS=$LIBS
11966 LIBS="-ldld  $LIBS"
11967 cat >conftest.$ac_ext <<_ACEOF
11968 #line $LINENO "configure"
11969 /* confdefs.h.  */
11970 _ACEOF
11971 cat confdefs.h >>conftest.$ac_ext
11972 cat >>conftest.$ac_ext <<_ACEOF
11973 /* end confdefs.h.  */
11974
11975 /* Override any gcc2 internal prototype to avoid an error.  */
11976 #ifdef __cplusplus
11977 extern "C"
11978 #endif
11979 /* We use char because int might match the return type of a gcc2
11980    builtin and then its argument prototype would still apply.  */
11981 char dld_link ();
11982 int
11983 main ()
11984 {
11985 dld_link ();
11986   ;
11987   return 0;
11988 }
11989 _ACEOF
11990 rm -f conftest.$ac_objext conftest$ac_exeext
11991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11992   (eval $ac_link) 2>&5
11993   ac_status=$?
11994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995   (exit $ac_status); } &&
11996          { ac_try='test -s conftest$ac_exeext'
11997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998   (eval $ac_try) 2>&5
11999   ac_status=$?
12000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001   (exit $ac_status); }; }; then
12002   ac_cv_lib_dld_dld_link=yes
12003 else
12004   echo "$as_me: failed program was:" >&5
12005 sed 's/^/| /' conftest.$ac_ext >&5
12006
12007 ac_cv_lib_dld_dld_link=no
12008 fi
12009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12010 LIBS=$ac_check_lib_save_LIBS
12011 fi
12012 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12013 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12014 if test $ac_cv_lib_dld_dld_link = yes; then
12015   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12016 fi
12017
12018
12019 fi
12020
12021
12022 fi
12023
12024
12025 fi
12026
12027
12028 fi
12029
12030
12031 fi
12032
12033     ;;
12034   esac
12035
12036   if test "x$lt_cv_dlopen" != xno; then
12037     enable_dlopen=yes
12038   else
12039     enable_dlopen=no
12040   fi
12041
12042   case $lt_cv_dlopen in
12043   dlopen)
12044     save_CPPFLAGS="$CPPFLAGS"
12045     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12046
12047     save_LDFLAGS="$LDFLAGS"
12048     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12049
12050     save_LIBS="$LIBS"
12051     LIBS="$lt_cv_dlopen_libs $LIBS"
12052
12053     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12054 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12055 if test "${lt_cv_dlopen_self+set}" = set; then
12056   echo $ECHO_N "(cached) $ECHO_C" >&6
12057 else
12058           if test "$cross_compiling" = yes; then :
12059   lt_cv_dlopen_self=cross
12060 else
12061   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12062   lt_status=$lt_dlunknown
12063   cat > conftest.$ac_ext <<EOF
12064 #line 12064 "configure"
12065 #include "confdefs.h"
12066
12067 #if HAVE_DLFCN_H
12068 #include <dlfcn.h>
12069 #endif
12070
12071 #include <stdio.h>
12072
12073 #ifdef RTLD_GLOBAL
12074 #  define LT_DLGLOBAL           RTLD_GLOBAL
12075 #else
12076 #  ifdef DL_GLOBAL
12077 #    define LT_DLGLOBAL         DL_GLOBAL
12078 #  else
12079 #    define LT_DLGLOBAL         0
12080 #  endif
12081 #endif
12082
12083 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12084    find out it does not work in some platform. */
12085 #ifndef LT_DLLAZY_OR_NOW
12086 #  ifdef RTLD_LAZY
12087 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12088 #  else
12089 #    ifdef DL_LAZY
12090 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12091 #    else
12092 #      ifdef RTLD_NOW
12093 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12094 #      else
12095 #        ifdef DL_NOW
12096 #          define LT_DLLAZY_OR_NOW      DL_NOW
12097 #        else
12098 #          define LT_DLLAZY_OR_NOW      0
12099 #        endif
12100 #      endif
12101 #    endif
12102 #  endif
12103 #endif
12104
12105 #ifdef __cplusplus
12106 extern "C" void exit (int);
12107 #endif
12108
12109 void fnord() { int i=42;}
12110 int main ()
12111 {
12112   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12113   int status = $lt_dlunknown;
12114
12115   if (self)
12116     {
12117       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12118       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12119       /* dlclose (self); */
12120     }
12121
12122     exit (status);
12123 }
12124 EOF
12125   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12126   (eval $ac_link) 2>&5
12127   ac_status=$?
12128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12130     (./conftest; exit; ) 2>/dev/null
12131     lt_status=$?
12132     case x$lt_status in
12133       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12134       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12135       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12136     esac
12137   else :
12138     # compilation failed
12139     lt_cv_dlopen_self=no
12140   fi
12141 fi
12142 rm -fr conftest*
12143
12144
12145 fi
12146 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12147 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12148
12149     if test "x$lt_cv_dlopen_self" = xyes; then
12150       LDFLAGS="$LDFLAGS $link_static_flag"
12151       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12152 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12153 if test "${lt_cv_dlopen_self_static+set}" = set; then
12154   echo $ECHO_N "(cached) $ECHO_C" >&6
12155 else
12156           if test "$cross_compiling" = yes; then :
12157   lt_cv_dlopen_self_static=cross
12158 else
12159   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12160   lt_status=$lt_dlunknown
12161   cat > conftest.$ac_ext <<EOF
12162 #line 12162 "configure"
12163 #include "confdefs.h"
12164
12165 #if HAVE_DLFCN_H
12166 #include <dlfcn.h>
12167 #endif
12168
12169 #include <stdio.h>
12170
12171 #ifdef RTLD_GLOBAL
12172 #  define LT_DLGLOBAL           RTLD_GLOBAL
12173 #else
12174 #  ifdef DL_GLOBAL
12175 #    define LT_DLGLOBAL         DL_GLOBAL
12176 #  else
12177 #    define LT_DLGLOBAL         0
12178 #  endif
12179 #endif
12180
12181 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12182    find out it does not work in some platform. */
12183 #ifndef LT_DLLAZY_OR_NOW
12184 #  ifdef RTLD_LAZY
12185 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12186 #  else
12187 #    ifdef DL_LAZY
12188 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12189 #    else
12190 #      ifdef RTLD_NOW
12191 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12192 #      else
12193 #        ifdef DL_NOW
12194 #          define LT_DLLAZY_OR_NOW      DL_NOW
12195 #        else
12196 #          define LT_DLLAZY_OR_NOW      0
12197 #        endif
12198 #      endif
12199 #    endif
12200 #  endif
12201 #endif
12202
12203 #ifdef __cplusplus
12204 extern "C" void exit (int);
12205 #endif
12206
12207 void fnord() { int i=42;}
12208 int main ()
12209 {
12210   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12211   int status = $lt_dlunknown;
12212
12213   if (self)
12214     {
12215       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12216       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12217       /* dlclose (self); */
12218     }
12219
12220     exit (status);
12221 }
12222 EOF
12223   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12224   (eval $ac_link) 2>&5
12225   ac_status=$?
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12228     (./conftest; exit; ) 2>/dev/null
12229     lt_status=$?
12230     case x$lt_status in
12231       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12232       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12233       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12234     esac
12235   else :
12236     # compilation failed
12237     lt_cv_dlopen_self_static=no
12238   fi
12239 fi
12240 rm -fr conftest*
12241
12242
12243 fi
12244 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12245 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12246     fi
12247
12248     CPPFLAGS="$save_CPPFLAGS"
12249     LDFLAGS="$save_LDFLAGS"
12250     LIBS="$save_LIBS"
12251     ;;
12252   esac
12253
12254   case $lt_cv_dlopen_self in
12255   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12256   *) enable_dlopen_self=unknown ;;
12257   esac
12258
12259   case $lt_cv_dlopen_self_static in
12260   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12261   *) enable_dlopen_self_static=unknown ;;
12262   esac
12263 fi
12264
12265
12266 # The else clause should only fire when bootstrapping the
12267 # libtool distribution, otherwise you forgot to ship ltmain.sh
12268 # with your package, and you will get complaints that there are
12269 # no rules to generate ltmain.sh.
12270 if test -f "$ltmain"; then
12271   # See if we are running on zsh, and set the options which allow our commands through
12272   # without removal of \ escapes.
12273   if test -n "${ZSH_VERSION+set}" ; then
12274     setopt NO_GLOB_SUBST
12275   fi
12276   # Now quote all the things that may contain metacharacters while being
12277   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12278   # variables and quote the copies for generation of the libtool script.
12279   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12280     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12281     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12282     deplibs_check_method reload_flag reload_cmds need_locks \
12283     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12284     lt_cv_sys_global_symbol_to_c_name_address \
12285     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12286     old_postinstall_cmds old_postuninstall_cmds \
12287     compiler_CXX \
12288     CC_CXX \
12289     LD_CXX \
12290     lt_prog_compiler_wl_CXX \
12291     lt_prog_compiler_pic_CXX \
12292     lt_prog_compiler_static_CXX \
12293     lt_prog_compiler_no_builtin_flag_CXX \
12294     export_dynamic_flag_spec_CXX \
12295     thread_safe_flag_spec_CXX \
12296     whole_archive_flag_spec_CXX \
12297     enable_shared_with_static_runtimes_CXX \
12298     old_archive_cmds_CXX \
12299     old_archive_from_new_cmds_CXX \
12300     predep_objects_CXX \
12301     postdep_objects_CXX \
12302     predeps_CXX \
12303     postdeps_CXX \
12304     compiler_lib_search_path_CXX \
12305     archive_cmds_CXX \
12306     archive_expsym_cmds_CXX \
12307     postinstall_cmds_CXX \
12308     postuninstall_cmds_CXX \
12309     old_archive_from_expsyms_cmds_CXX \
12310     allow_undefined_flag_CXX \
12311     no_undefined_flag_CXX \
12312     export_symbols_cmds_CXX \
12313     hardcode_libdir_flag_spec_CXX \
12314     hardcode_libdir_flag_spec_ld_CXX \
12315     hardcode_libdir_separator_CXX \
12316     hardcode_automatic_CXX \
12317     module_cmds_CXX \
12318     module_expsym_cmds_CXX \
12319     lt_cv_prog_compiler_c_o_CXX \
12320     exclude_expsyms_CXX \
12321     include_expsyms_CXX; do
12322
12323     case $var in
12324     old_archive_cmds_CXX | \
12325     old_archive_from_new_cmds_CXX | \
12326     archive_cmds_CXX | \
12327     archive_expsym_cmds_CXX | \
12328     module_cmds_CXX | \
12329     module_expsym_cmds_CXX | \
12330     old_archive_from_expsyms_cmds_CXX | \
12331     export_symbols_cmds_CXX | \
12332     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12333     postinstall_cmds | postuninstall_cmds | \
12334     old_postinstall_cmds | old_postuninstall_cmds | \
12335     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12336       # Double-quote double-evaled strings.
12337       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12338       ;;
12339     *)
12340       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12341       ;;
12342     esac
12343   done
12344
12345   case $lt_echo in
12346   *'\$0 --fallback-echo"')
12347     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12348     ;;
12349   esac
12350
12351 cfgfile="$ofile"
12352
12353   cat <<__EOF__ >> "$cfgfile"
12354 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12355
12356 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12357
12358 # Shell to use when invoking shell scripts.
12359 SHELL=$lt_SHELL
12360
12361 # Whether or not to build shared libraries.
12362 build_libtool_libs=$enable_shared
12363
12364 # Whether or not to build static libraries.
12365 build_old_libs=$enable_static
12366
12367 # Whether or not to add -lc for building shared libraries.
12368 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12369
12370 # Whether or not to disallow shared libs when runtime libs are static
12371 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12372
12373 # Whether or not to optimize for fast installation.
12374 fast_install=$enable_fast_install
12375
12376 # The host system.
12377 host_alias=$host_alias
12378 host=$host
12379
12380 # An echo program that does not interpret backslashes.
12381 echo=$lt_echo
12382
12383 # The archiver.
12384 AR=$lt_AR
12385 AR_FLAGS=$lt_AR_FLAGS
12386
12387 # A C compiler.
12388 LTCC=$lt_LTCC
12389
12390 # A language-specific compiler.
12391 CC=$lt_compiler_CXX
12392
12393 # Is the compiler the GNU C compiler?
12394 with_gcc=$GCC_CXX
12395
12396 # An ERE matcher.
12397 EGREP=$lt_EGREP
12398
12399 # The linker used to build libraries.
12400 LD=$lt_LD_CXX
12401
12402 # Whether we need hard or soft links.
12403 LN_S=$lt_LN_S
12404
12405 # A BSD-compatible nm program.
12406 NM=$lt_NM
12407
12408 # A symbol stripping program
12409 STRIP=$STRIP
12410
12411 # Used to examine libraries when file_magic_cmd begins "file"
12412 MAGIC_CMD=$MAGIC_CMD
12413
12414 # Used on cygwin: DLL creation program.
12415 DLLTOOL="$DLLTOOL"
12416
12417 # Used on cygwin: object dumper.
12418 OBJDUMP="$OBJDUMP"
12419
12420 # Used on cygwin: assembler.
12421 AS="$AS"
12422
12423 # The name of the directory that contains temporary libtool files.
12424 objdir=$objdir
12425
12426 # How to create reloadable object files.
12427 reload_flag=$lt_reload_flag
12428 reload_cmds=$lt_reload_cmds
12429
12430 # How to pass a linker flag through the compiler.
12431 wl=$lt_lt_prog_compiler_wl_CXX
12432
12433 # Object file suffix (normally "o").
12434 objext="$ac_objext"
12435
12436 # Old archive suffix (normally "a").
12437 libext="$libext"
12438
12439 # Shared library suffix (normally ".so").
12440 shrext='$shrext'
12441
12442 # Executable file suffix (normally "").
12443 exeext="$exeext"
12444
12445 # Additional compiler flags for building library objects.
12446 pic_flag=$lt_lt_prog_compiler_pic_CXX
12447 pic_mode=$pic_mode
12448
12449 # What is the maximum length of a command?
12450 max_cmd_len=$lt_cv_sys_max_cmd_len
12451
12452 # Does compiler simultaneously support -c and -o options?
12453 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12454
12455 # Must we lock files when doing compilation ?
12456 need_locks=$lt_need_locks
12457
12458 # Do we need the lib prefix for modules?
12459 need_lib_prefix=$need_lib_prefix
12460
12461 # Do we need a version for libraries?
12462 need_version=$need_version
12463
12464 # Whether dlopen is supported.
12465 dlopen_support=$enable_dlopen
12466
12467 # Whether dlopen of programs is supported.
12468 dlopen_self=$enable_dlopen_self
12469
12470 # Whether dlopen of statically linked programs is supported.
12471 dlopen_self_static=$enable_dlopen_self_static
12472
12473 # Compiler flag to prevent dynamic linking.
12474 link_static_flag=$lt_lt_prog_compiler_static_CXX
12475
12476 # Compiler flag to turn off builtin functions.
12477 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12478
12479 # Compiler flag to allow reflexive dlopens.
12480 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12481
12482 # Compiler flag to generate shared objects directly from archives.
12483 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12484
12485 # Compiler flag to generate thread-safe objects.
12486 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12487
12488 # Library versioning type.
12489 version_type=$version_type
12490
12491 # Format of library name prefix.
12492 libname_spec=$lt_libname_spec
12493
12494 # List of archive names.  First name is the real one, the rest are links.
12495 # The last name is the one that the linker finds with -lNAME.
12496 library_names_spec=$lt_library_names_spec
12497
12498 # The coded name of the library, if different from the real name.
12499 soname_spec=$lt_soname_spec
12500
12501 # Commands used to build and install an old-style archive.
12502 RANLIB=$lt_RANLIB
12503 old_archive_cmds=$lt_old_archive_cmds_CXX
12504 old_postinstall_cmds=$lt_old_postinstall_cmds
12505 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12506
12507 # Create an old-style archive from a shared archive.
12508 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12509
12510 # Create a temporary old-style archive to link instead of a shared archive.
12511 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12512
12513 # Commands used to build and install a shared archive.
12514 archive_cmds=$lt_archive_cmds_CXX
12515 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12516 postinstall_cmds=$lt_postinstall_cmds
12517 postuninstall_cmds=$lt_postuninstall_cmds
12518
12519 # Commands used to build a loadable module (assumed same as above if empty)
12520 module_cmds=$lt_module_cmds_CXX
12521 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12522
12523 # Commands to strip libraries.
12524 old_striplib=$lt_old_striplib
12525 striplib=$lt_striplib
12526
12527 # Dependencies to place before the objects being linked to create a
12528 # shared library.
12529 predep_objects=$lt_predep_objects_CXX
12530
12531 # Dependencies to place after the objects being linked to create a
12532 # shared library.
12533 postdep_objects=$lt_postdep_objects_CXX
12534
12535 # Dependencies to place before the objects being linked to create a
12536 # shared library.
12537 predeps=$lt_predeps_CXX
12538
12539 # Dependencies to place after the objects being linked to create a
12540 # shared library.
12541 postdeps=$lt_postdeps_CXX
12542
12543 # The library search path used internally by the compiler when linking
12544 # a shared library.
12545 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12546
12547 # Method to check whether dependent libraries are shared objects.
12548 deplibs_check_method=$lt_deplibs_check_method
12549
12550 # Command to use when deplibs_check_method == file_magic.
12551 file_magic_cmd=$lt_file_magic_cmd
12552
12553 # Flag that allows shared libraries with undefined symbols to be built.
12554 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12555
12556 # Flag that forces no undefined symbols.
12557 no_undefined_flag=$lt_no_undefined_flag_CXX
12558
12559 # Commands used to finish a libtool library installation in a directory.
12560 finish_cmds=$lt_finish_cmds
12561
12562 # Same as above, but a single script fragment to be evaled but not shown.
12563 finish_eval=$lt_finish_eval
12564
12565 # Take the output of nm and produce a listing of raw symbols and C names.
12566 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12567
12568 # Transform the output of nm in a proper C declaration
12569 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12570
12571 # Transform the output of nm in a C name address pair
12572 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12573
12574 # This is the shared library runtime path variable.
12575 runpath_var=$runpath_var
12576
12577 # This is the shared library path variable.
12578 shlibpath_var=$shlibpath_var
12579
12580 # Is shlibpath searched before the hard-coded library search path?
12581 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12582
12583 # How to hardcode a shared library path into an executable.
12584 hardcode_action=$hardcode_action_CXX
12585
12586 # Whether we should hardcode library paths into libraries.
12587 hardcode_into_libs=$hardcode_into_libs
12588
12589 # Flag to hardcode \$libdir into a binary during linking.
12590 # This must work even if \$libdir does not exist.
12591 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12592
12593 # If ld is used when linking, flag to hardcode \$libdir into
12594 # a binary during linking. This must work even if \$libdir does
12595 # not exist.
12596 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12597
12598 # Whether we need a single -rpath flag with a separated argument.
12599 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12600
12601 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12602 # resulting binary.
12603 hardcode_direct=$hardcode_direct_CXX
12604
12605 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12606 # resulting binary.
12607 hardcode_minus_L=$hardcode_minus_L_CXX
12608
12609 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12610 # the resulting binary.
12611 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12612
12613 # Set to yes if building a shared library automatically hardcodes DIR into the library
12614 # and all subsequent libraries and executables linked against it.
12615 hardcode_automatic=$hardcode_automatic_CXX
12616
12617 # Variables whose values should be saved in libtool wrapper scripts and
12618 # restored at relink time.
12619 variables_saved_for_relink="$variables_saved_for_relink"
12620
12621 # Whether libtool must link a program against all its dependency libraries.
12622 link_all_deplibs=$link_all_deplibs_CXX
12623
12624 # Compile-time system search path for libraries
12625 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12626
12627 # Run-time system search path for libraries
12628 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12629
12630 # Fix the shell variable \$srcfile for the compiler.
12631 fix_srcfile_path="$fix_srcfile_path_CXX"
12632
12633 # Set to yes if exported symbols are required.
12634 always_export_symbols=$always_export_symbols_CXX
12635
12636 # The commands to list exported symbols.
12637 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12638
12639 # The commands to extract the exported symbol list from a shared archive.
12640 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12641
12642 # Symbols that should not be listed in the preloaded symbols.
12643 exclude_expsyms=$lt_exclude_expsyms_CXX
12644
12645 # Symbols that must always be exported.
12646 include_expsyms=$lt_include_expsyms_CXX
12647
12648 # ### END LIBTOOL TAG CONFIG: $tagname
12649
12650 __EOF__
12651
12652
12653 else
12654   # If there is no Makefile yet, we rely on a make rule to execute
12655   # `config.status --recheck' to rerun these tests and create the
12656   # libtool script then.
12657   test -f Makefile && make "$ltmain"
12658 fi
12659
12660
12661 ac_ext=c
12662 ac_cpp='$CPP $CPPFLAGS'
12663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12666
12667 CC=$lt_save_CC
12668 LDCXX=$LD
12669 LD=$lt_save_LD
12670 GCC=$lt_save_GCC
12671 with_gnu_ldcxx=$with_gnu_ld
12672 with_gnu_ld=$lt_save_with_gnu_ld
12673 lt_cv_path_LDCXX=$lt_cv_path_LD
12674 lt_cv_path_LD=$lt_save_path_LD
12675 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12676 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12677
12678         else
12679           tagname=""
12680         fi
12681         ;;
12682
12683       F77)
12684         if test -n "$F77" && test "X$F77" != "Xno"; then
12685
12686 ac_ext=f
12687 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12688 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12689 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12690
12691
12692 archive_cmds_need_lc_F77=no
12693 allow_undefined_flag_F77=
12694 always_export_symbols_F77=no
12695 archive_expsym_cmds_F77=
12696 export_dynamic_flag_spec_F77=
12697 hardcode_direct_F77=no
12698 hardcode_libdir_flag_spec_F77=
12699 hardcode_libdir_flag_spec_ld_F77=
12700 hardcode_libdir_separator_F77=
12701 hardcode_minus_L_F77=no
12702 hardcode_automatic_F77=no
12703 module_cmds_F77=
12704 module_expsym_cmds_F77=
12705 link_all_deplibs_F77=unknown
12706 old_archive_cmds_F77=$old_archive_cmds
12707 no_undefined_flag_F77=
12708 whole_archive_flag_spec_F77=
12709 enable_shared_with_static_runtimes_F77=no
12710
12711 # Source file extension for f77 test sources.
12712 ac_ext=f
12713
12714 # Object file extension for compiled f77 test sources.
12715 objext=o
12716 objext_F77=$objext
12717
12718 # Code to be used in simple compile tests
12719 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12720
12721 # Code to be used in simple link tests
12722 lt_simple_link_test_code="      program t\n      end\n"
12723
12724 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12725
12726 # If no C compiler was specified, use CC.
12727 LTCC=${LTCC-"$CC"}
12728
12729 # Allow CC to be a program name with arguments.
12730 compiler=$CC
12731
12732
12733 # Allow CC to be a program name with arguments.
12734 lt_save_CC="$CC"
12735 CC=${F77-"f77"}
12736 compiler=$CC
12737 compiler_F77=$CC
12738 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12739
12740 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12741 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12742 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12743 echo "${ECHO_T}$can_build_shared" >&6
12744
12745 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12746 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12747 test "$can_build_shared" = "no" && enable_shared=no
12748
12749 # On AIX, shared libraries and static libraries use the same namespace, and
12750 # are all built from PIC.
12751 case "$host_os" in
12752 aix3*)
12753   test "$enable_shared" = yes && enable_static=no
12754   if test -n "$RANLIB"; then
12755     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12756     postinstall_cmds='$RANLIB $lib'
12757   fi
12758   ;;
12759 aix4*)
12760   test "$enable_shared" = yes && enable_static=no
12761   ;;
12762 esac
12763 echo "$as_me:$LINENO: result: $enable_shared" >&5
12764 echo "${ECHO_T}$enable_shared" >&6
12765
12766 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12767 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12768 # Make sure either enable_shared or enable_static is yes.
12769 test "$enable_shared" = yes || enable_static=yes
12770 echo "$as_me:$LINENO: result: $enable_static" >&5
12771 echo "${ECHO_T}$enable_static" >&6
12772
12773 test "$ld_shlibs_F77" = no && can_build_shared=no
12774
12775 GCC_F77="$G77"
12776 LD_F77="$LD"
12777
12778 lt_prog_compiler_wl_F77=
12779 lt_prog_compiler_pic_F77=
12780 lt_prog_compiler_static_F77=
12781
12782 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12783 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12784
12785   if test "$GCC" = yes; then
12786     lt_prog_compiler_wl_F77='-Wl,'
12787     lt_prog_compiler_static_F77='-static'
12788
12789     case $host_os in
12790       aix*)
12791       # All AIX code is PIC.
12792       if test "$host_cpu" = ia64; then
12793         # AIX 5 now supports IA64 processor
12794         lt_prog_compiler_static_F77='-Bstatic'
12795       fi
12796       ;;
12797
12798     amigaos*)
12799       # FIXME: we need at least 68020 code to build shared libraries, but
12800       # adding the `-m68020' flag to GCC prevents building anything better,
12801       # like `-m68040'.
12802       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12803       ;;
12804
12805     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12806       # PIC is the default for these OSes.
12807       ;;
12808
12809     mingw* | pw32* | os2*)
12810       # This hack is so that the source file can tell whether it is being
12811       # built for inclusion in a dll (and should export symbols for example).
12812       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12813       ;;
12814
12815     darwin* | rhapsody*)
12816       # PIC is the default on this platform
12817       # Common symbols not allowed in MH_DYLIB files
12818       lt_prog_compiler_pic_F77='-fno-common'
12819       ;;
12820
12821     msdosdjgpp*)
12822       # Just because we use GCC doesn't mean we suddenly get shared libraries
12823       # on systems that don't support them.
12824       lt_prog_compiler_can_build_shared_F77=no
12825       enable_shared=no
12826       ;;
12827
12828     sysv4*MP*)
12829       if test -d /usr/nec; then
12830         lt_prog_compiler_pic_F77=-Kconform_pic
12831       fi
12832       ;;
12833
12834     hpux*)
12835       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12836       # not for PA HP-UX.
12837       case "$host_cpu" in
12838       hppa*64*|ia64*)
12839         # +Z the default
12840         ;;
12841       *)
12842         lt_prog_compiler_pic_F77='-fPIC'
12843         ;;
12844       esac
12845       ;;
12846
12847     *)
12848       lt_prog_compiler_pic_F77='-fPIC'
12849       ;;
12850     esac
12851   else
12852     # PORTME Check for flag to pass linker flags through the system compiler.
12853     case $host_os in
12854     aix*)
12855       lt_prog_compiler_wl_F77='-Wl,'
12856       if test "$host_cpu" = ia64; then
12857         # AIX 5 now supports IA64 processor
12858         lt_prog_compiler_static_F77='-Bstatic'
12859       else
12860         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12861       fi
12862       ;;
12863
12864     mingw* | pw32* | os2*)
12865       # This hack is so that the source file can tell whether it is being
12866       # built for inclusion in a dll (and should export symbols for example).
12867       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12868       ;;
12869
12870     hpux9* | hpux10* | hpux11*)
12871       lt_prog_compiler_wl_F77='-Wl,'
12872       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12873       # not for PA HP-UX.
12874       case "$host_cpu" in
12875       hppa*64*|ia64*)
12876         # +Z the default
12877         ;;
12878       *)
12879         lt_prog_compiler_pic_F77='+Z'
12880         ;;
12881       esac
12882       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12883       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12884       ;;
12885
12886     irix5* | irix6* | nonstopux*)
12887       lt_prog_compiler_wl_F77='-Wl,'
12888       # PIC (with -KPIC) is the default.
12889       lt_prog_compiler_static_F77='-non_shared'
12890       ;;
12891
12892     newsos6)
12893       lt_prog_compiler_pic_F77='-KPIC'
12894       lt_prog_compiler_static_F77='-Bstatic'
12895       ;;
12896
12897     linux*)
12898       case $CC in
12899       icc|ecc)
12900         lt_prog_compiler_wl_F77='-Wl,'
12901         lt_prog_compiler_pic_F77='-KPIC'
12902         lt_prog_compiler_static_F77='-static'
12903         ;;
12904       ccc)
12905         lt_prog_compiler_wl_F77='-Wl,'
12906         # All Alpha code is PIC.
12907         lt_prog_compiler_static_F77='-non_shared'
12908         ;;
12909       esac
12910       ;;
12911
12912     osf3* | osf4* | osf5*)
12913       lt_prog_compiler_wl_F77='-Wl,'
12914       # All OSF/1 code is PIC.
12915       lt_prog_compiler_static_F77='-non_shared'
12916       ;;
12917
12918     sco3.2v5*)
12919       lt_prog_compiler_pic_F77='-Kpic'
12920       lt_prog_compiler_static_F77='-dn'
12921       ;;
12922
12923     solaris*)
12924       lt_prog_compiler_wl_F77='-Wl,'
12925       lt_prog_compiler_pic_F77='-KPIC'
12926       lt_prog_compiler_static_F77='-Bstatic'
12927       ;;
12928
12929     sunos4*)
12930       lt_prog_compiler_wl_F77='-Qoption ld '
12931       lt_prog_compiler_pic_F77='-PIC'
12932       lt_prog_compiler_static_F77='-Bstatic'
12933       ;;
12934
12935     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12936       lt_prog_compiler_wl_F77='-Wl,'
12937       lt_prog_compiler_pic_F77='-KPIC'
12938       lt_prog_compiler_static_F77='-Bstatic'
12939       ;;
12940
12941     sysv4*MP*)
12942       if test -d /usr/nec ;then
12943         lt_prog_compiler_pic_F77='-Kconform_pic'
12944         lt_prog_compiler_static_F77='-Bstatic'
12945       fi
12946       ;;
12947
12948     uts4*)
12949       lt_prog_compiler_pic_F77='-pic'
12950       lt_prog_compiler_static_F77='-Bstatic'
12951       ;;
12952
12953     *)
12954       lt_prog_compiler_can_build_shared_F77=no
12955       ;;
12956     esac
12957   fi
12958
12959 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12960 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12961
12962 #
12963 # Check to make sure the PIC flag actually works.
12964 #
12965 if test -n "$lt_prog_compiler_pic_F77"; then
12966   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12967 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12968 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12969   echo $ECHO_N "(cached) $ECHO_C" >&6
12970 else
12971   lt_prog_compiler_pic_works_F77=no
12972   ac_outfile=conftest.$ac_objext
12973    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12974    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12975    # Insert the option either (1) after the last *FLAGS variable, or
12976    # (2) before a word containing "conftest.", or (3) at the end.
12977    # Note that $ac_compile itself does not contain backslashes and begins
12978    # with a dollar sign (not a hyphen), so the echo should work correctly.
12979    # The option is referenced via a variable to avoid confusing sed.
12980    lt_compile=`echo "$ac_compile" | $SED \
12981    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12982    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12983    -e 's:$: $lt_compiler_flag:'`
12984    (eval echo "\"\$as_me:12984: $lt_compile\"" >&5)
12985    (eval "$lt_compile" 2>conftest.err)
12986    ac_status=$?
12987    cat conftest.err >&5
12988    echo "$as_me:12988: \$? = $ac_status" >&5
12989    if (exit $ac_status) && test -s "$ac_outfile"; then
12990      # The compiler can only warn and ignore the option if not recognized
12991      # So say no if there are warnings
12992      if test ! -s conftest.err; then
12993        lt_prog_compiler_pic_works_F77=yes
12994      fi
12995    fi
12996    $rm conftest*
12997
12998 fi
12999 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13000 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13001
13002 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13003     case $lt_prog_compiler_pic_F77 in
13004      "" | " "*) ;;
13005      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13006      esac
13007 else
13008     lt_prog_compiler_pic_F77=
13009      lt_prog_compiler_can_build_shared_F77=no
13010 fi
13011
13012 fi
13013 case "$host_os" in
13014   # For platforms which do not support PIC, -DPIC is meaningless:
13015   *djgpp*)
13016     lt_prog_compiler_pic_F77=
13017     ;;
13018   *)
13019     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13020     ;;
13021 esac
13022
13023 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13024 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13025 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13026   echo $ECHO_N "(cached) $ECHO_C" >&6
13027 else
13028   lt_cv_prog_compiler_c_o_F77=no
13029    $rm -r conftest 2>/dev/null
13030    mkdir conftest
13031    cd conftest
13032    mkdir out
13033    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13034
13035    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13036    # that will create temporary files in the current directory regardless of
13037    # the output directory.  Thus, making CWD read-only will cause this test
13038    # to fail, enabling locking or at least warning the user not to do parallel
13039    # builds.
13040    chmod -w .
13041
13042    lt_compiler_flag="-o out/conftest2.$ac_objext"
13043    # Insert the option either (1) after the last *FLAGS variable, or
13044    # (2) before a word containing "conftest.", or (3) at the end.
13045    # Note that $ac_compile itself does not contain backslashes and begins
13046    # with a dollar sign (not a hyphen), so the echo should work correctly.
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>out/conftest.err)
13053    ac_status=$?
13054    cat out/conftest.err >&5
13055    echo "$as_me:13055: \$? = $ac_status" >&5
13056    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13057    then
13058      # The compiler can only warn and ignore the option if not recognized
13059      # So say no if there are warnings
13060      if test ! -s out/conftest.err; then
13061        lt_cv_prog_compiler_c_o_F77=yes
13062      fi
13063    fi
13064    chmod u+w .
13065    $rm conftest* out/*
13066    rmdir out
13067    cd ..
13068    rmdir conftest
13069    $rm conftest*
13070
13071 fi
13072 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13073 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13074
13075
13076 hard_links="nottested"
13077 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13078   # do not overwrite the value of need_locks provided by the user
13079   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13080 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13081   hard_links=yes
13082   $rm conftest*
13083   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13084   touch conftest.a
13085   ln conftest.a conftest.b 2>&5 || hard_links=no
13086   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13087   echo "$as_me:$LINENO: result: $hard_links" >&5
13088 echo "${ECHO_T}$hard_links" >&6
13089   if test "$hard_links" = no; then
13090     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13091 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13092     need_locks=warn
13093   fi
13094 else
13095   need_locks=no
13096 fi
13097
13098 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13099 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13100
13101   runpath_var=
13102   allow_undefined_flag_F77=
13103   enable_shared_with_static_runtimes_F77=no
13104   archive_cmds_F77=
13105   archive_expsym_cmds_F77=
13106   old_archive_From_new_cmds_F77=
13107   old_archive_from_expsyms_cmds_F77=
13108   export_dynamic_flag_spec_F77=
13109   whole_archive_flag_spec_F77=
13110   thread_safe_flag_spec_F77=
13111   hardcode_libdir_flag_spec_F77=
13112   hardcode_libdir_flag_spec_ld_F77=
13113   hardcode_libdir_separator_F77=
13114   hardcode_direct_F77=no
13115   hardcode_minus_L_F77=no
13116   hardcode_shlibpath_var_F77=unsupported
13117   link_all_deplibs_F77=unknown
13118   hardcode_automatic_F77=no
13119   module_cmds_F77=
13120   module_expsym_cmds_F77=
13121   always_export_symbols_F77=no
13122   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13123   # include_expsyms should be a list of space-separated symbols to be *always*
13124   # included in the symbol list
13125   include_expsyms_F77=
13126   # exclude_expsyms can be an extended regexp of symbols to exclude
13127   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13128   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13129   # as well as any symbol that contains `d'.
13130   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13131   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13132   # platforms (ab)use it in PIC code, but their linkers get confused if
13133   # the symbol is explicitly referenced.  Since portable code cannot
13134   # rely on this symbol name, it's probably fine to never include it in
13135   # preloaded symbol tables.
13136   extract_expsyms_cmds=
13137
13138   case $host_os in
13139   cygwin* | mingw* | pw32*)
13140     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13141     # When not using gcc, we currently assume that we are using
13142     # Microsoft Visual C++.
13143     if test "$GCC" != yes; then
13144       with_gnu_ld=no
13145     fi
13146     ;;
13147   openbsd*)
13148     with_gnu_ld=no
13149     ;;
13150   esac
13151
13152   ld_shlibs_F77=yes
13153   if test "$with_gnu_ld" = yes; then
13154     # If archive_cmds runs LD, not CC, wlarc should be empty
13155     wlarc='${wl}'
13156
13157     # See if GNU ld supports shared libraries.
13158     case $host_os in
13159     aix3* | aix4* | aix5*)
13160       # On AIX/PPC, the GNU linker is very broken
13161       if test "$host_cpu" != ia64; then
13162         ld_shlibs_F77=no
13163         cat <<EOF 1>&2
13164
13165 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13166 *** to be unable to reliably create shared libraries on AIX.
13167 *** Therefore, libtool is disabling shared libraries support.  If you
13168 *** really care for shared libraries, you may want to modify your PATH
13169 *** so that a non-GNU linker is found, and then restart.
13170
13171 EOF
13172       fi
13173       ;;
13174
13175     amigaos*)
13176       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)'
13177       hardcode_libdir_flag_spec_F77='-L$libdir'
13178       hardcode_minus_L_F77=yes
13179
13180       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13181       # that the semantics of dynamic libraries on AmigaOS, at least up
13182       # to version 4, is to share data among multiple programs linked
13183       # with the same dynamic library.  Since this doesn't match the
13184       # behavior of shared libraries on other platforms, we can't use
13185       # them.
13186       ld_shlibs_F77=no
13187       ;;
13188
13189     beos*)
13190       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13191         allow_undefined_flag_F77=unsupported
13192         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13193         # support --undefined.  This deserves some investigation.  FIXME
13194         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13195       else
13196         ld_shlibs_F77=no
13197       fi
13198       ;;
13199
13200     cygwin* | mingw* | pw32*)
13201       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13202       # as there is no search path for DLLs.
13203       hardcode_libdir_flag_spec_F77='-L$libdir'
13204       allow_undefined_flag_F77=unsupported
13205       always_export_symbols_F77=no
13206       enable_shared_with_static_runtimes_F77=yes
13207       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13208
13209       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13210         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13211         # If the export-symbols file already is a .def file (1st line
13212         # is EXPORTS), use it as is; otherwise, prepend...
13213         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13214           cp $export_symbols $output_objdir/$soname.def;
13215         else
13216           echo EXPORTS > $output_objdir/$soname.def;
13217           cat $export_symbols >> $output_objdir/$soname.def;
13218         fi~
13219         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13220       else
13221         ld_shlibs=no
13222       fi
13223       ;;
13224
13225     netbsd*)
13226       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13227         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13228         wlarc=
13229       else
13230         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13231         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13232       fi
13233       ;;
13234
13235     solaris* | sysv5*)
13236       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13237         ld_shlibs_F77=no
13238         cat <<EOF 1>&2
13239
13240 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13241 *** create shared libraries on Solaris systems.  Therefore, libtool
13242 *** is disabling shared libraries support.  We urge you to upgrade GNU
13243 *** binutils to release 2.9.1 or newer.  Another option is to modify
13244 *** your PATH or compiler configuration so that the native linker is
13245 *** used, and then restart.
13246
13247 EOF
13248       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13249         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13250         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13251       else
13252         ld_shlibs_F77=no
13253       fi
13254       ;;
13255
13256     sunos4*)
13257       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13258       wlarc=
13259       hardcode_direct_F77=yes
13260       hardcode_shlibpath_var_F77=no
13261       ;;
13262
13263     *)
13264       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13265         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13266         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13267       else
13268         ld_shlibs_F77=no
13269       fi
13270       ;;
13271     esac
13272
13273     if test "$ld_shlibs_F77" = yes; then
13274       runpath_var=LD_RUN_PATH
13275       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13276       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13277       # ancient GNU ld didn't support --whole-archive et. al.
13278       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13279         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13280       else
13281         whole_archive_flag_spec_F77=
13282       fi
13283     fi
13284   else
13285     # PORTME fill in a description of your system's linker (not GNU ld)
13286     case $host_os in
13287     aix3*)
13288       allow_undefined_flag_F77=unsupported
13289       always_export_symbols_F77=yes
13290       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'
13291       # Note: this linker hardcodes the directories in LIBPATH if there
13292       # are no directories specified by -L.
13293       hardcode_minus_L_F77=yes
13294       if test "$GCC" = yes && test -z "$link_static_flag"; then
13295         # Neither direct hardcoding nor static linking is supported with a
13296         # broken collect2.
13297         hardcode_direct_F77=unsupported
13298       fi
13299       ;;
13300
13301     aix4* | aix5*)
13302       if test "$host_cpu" = ia64; then
13303         # On IA64, the linker does run time linking by default, so we don't
13304         # have to do anything special.
13305         aix_use_runtimelinking=no
13306         exp_sym_flag='-Bexport'
13307         no_entry_flag=""
13308       else
13309         # If we're using GNU nm, then we don't want the "-C" option.
13310         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13311         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13312           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'
13313         else
13314           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'
13315         fi
13316         aix_use_runtimelinking=no
13317
13318         # Test if we are trying to use run time linking or normal
13319         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13320         # need to do runtime linking.
13321         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13322           for ld_flag in $LDFLAGS; do
13323           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13324             aix_use_runtimelinking=yes
13325             break
13326           fi
13327           done
13328         esac
13329
13330         exp_sym_flag='-bexport'
13331         no_entry_flag='-bnoentry'
13332       fi
13333
13334       # When large executables or shared objects are built, AIX ld can
13335       # have problems creating the table of contents.  If linking a library
13336       # or program results in "error TOC overflow" add -mminimal-toc to
13337       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13338       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13339
13340       archive_cmds_F77=''
13341       hardcode_direct_F77=yes
13342       hardcode_libdir_separator_F77=':'
13343       link_all_deplibs_F77=yes
13344
13345       if test "$GCC" = yes; then
13346         case $host_os in aix4.012|aix4.012.*)
13347         # We only want to do this on AIX 4.2 and lower, the check
13348         # below for broken collect2 doesn't work under 4.3+
13349           collect2name=`${CC} -print-prog-name=collect2`
13350           if test -f "$collect2name" && \
13351            strings "$collect2name" | grep resolve_lib_name >/dev/null
13352           then
13353           # We have reworked collect2
13354           hardcode_direct_F77=yes
13355           else
13356           # We have old collect2
13357           hardcode_direct_F77=unsupported
13358           # It fails to find uninstalled libraries when the uninstalled
13359           # path is not listed in the libpath.  Setting hardcode_minus_L
13360           # to unsupported forces relinking
13361           hardcode_minus_L_F77=yes
13362           hardcode_libdir_flag_spec_F77='-L$libdir'
13363           hardcode_libdir_separator_F77=
13364           fi
13365         esac
13366         shared_flag='-shared'
13367       else
13368         # not using gcc
13369         if test "$host_cpu" = ia64; then
13370         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13371         # chokes on -Wl,-G. The following line is correct:
13372           shared_flag='-G'
13373         else
13374         if test "$aix_use_runtimelinking" = yes; then
13375             shared_flag='${wl}-G'
13376           else
13377             shared_flag='${wl}-bM:SRE'
13378         fi
13379         fi
13380       fi
13381
13382       # It seems that -bexpall does not export symbols beginning with
13383       # underscore (_), so it is better to generate a list of symbols to export.
13384       always_export_symbols_F77=yes
13385       if test "$aix_use_runtimelinking" = yes; then
13386         # Warning - without using the other runtime loading flags (-brtl),
13387         # -berok will link without error, but may produce a broken library.
13388         allow_undefined_flag_F77='-berok'
13389        # Determine the default libpath from the value encoded in an empty executable.
13390        cat >conftest.$ac_ext <<_ACEOF
13391       program main
13392
13393       end
13394 _ACEOF
13395 rm -f conftest.$ac_objext conftest$ac_exeext
13396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13397   (eval $ac_link) 2>&5
13398   ac_status=$?
13399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400   (exit $ac_status); } &&
13401          { ac_try='test -s conftest$ac_exeext'
13402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13403   (eval $ac_try) 2>&5
13404   ac_status=$?
13405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406   (exit $ac_status); }; }; then
13407
13408 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13409 }'`
13410 # Check for a 64-bit object if we didn't find anything.
13411 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; }
13412 }'`; fi
13413 else
13414   echo "$as_me: failed program was:" >&5
13415 sed 's/^/| /' conftest.$ac_ext >&5
13416
13417 fi
13418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13419 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13420
13421        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13422         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"
13423        else
13424         if test "$host_cpu" = ia64; then
13425           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13426           allow_undefined_flag_F77="-z nodefs"
13427           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"
13428         else
13429          # Determine the default libpath from the value encoded in an empty executable.
13430          cat >conftest.$ac_ext <<_ACEOF
13431       program main
13432
13433       end
13434 _ACEOF
13435 rm -f conftest.$ac_objext conftest$ac_exeext
13436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13437   (eval $ac_link) 2>&5
13438   ac_status=$?
13439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440   (exit $ac_status); } &&
13441          { ac_try='test -s conftest$ac_exeext'
13442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443   (eval $ac_try) 2>&5
13444   ac_status=$?
13445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446   (exit $ac_status); }; }; then
13447
13448 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13449 }'`
13450 # Check for a 64-bit object if we didn't find anything.
13451 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; }
13452 }'`; fi
13453 else
13454   echo "$as_me: failed program was:" >&5
13455 sed 's/^/| /' conftest.$ac_ext >&5
13456
13457 fi
13458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13459 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13460
13461          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13462           # Warning - without using the other run time loading flags,
13463           # -berok will link without error, but may produce a broken library.
13464           no_undefined_flag_F77=' ${wl}-bernotok'
13465           allow_undefined_flag_F77=' ${wl}-berok'
13466           # -bexpall does not export symbols beginning with underscore (_)
13467           always_export_symbols_F77=yes
13468           # Exported symbols can be pulled into shared objects from archives
13469           whole_archive_flag_spec_F77=' '
13470           archive_cmds_need_lc_F77=yes
13471           # This is similar to how AIX traditionally builds it's shared libraries.
13472           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'
13473         fi
13474       fi
13475       ;;
13476
13477     amigaos*)
13478       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)'
13479       hardcode_libdir_flag_spec_F77='-L$libdir'
13480       hardcode_minus_L_F77=yes
13481       # see comment about different semantics on the GNU ld section
13482       ld_shlibs_F77=no
13483       ;;
13484
13485     bsdi4*)
13486       export_dynamic_flag_spec_F77=-rdynamic
13487       ;;
13488
13489     cygwin* | mingw* | pw32*)
13490       # When not using gcc, we currently assume that we are using
13491       # Microsoft Visual C++.
13492       # hardcode_libdir_flag_spec is actually meaningless, as there is
13493       # no search path for DLLs.
13494       hardcode_libdir_flag_spec_F77=' '
13495       allow_undefined_flag_F77=unsupported
13496       # Tell ltmain to make .lib files, not .a files.
13497       libext=lib
13498       # Tell ltmain to make .dll files, not .so files.
13499       shrext=".dll"
13500       # FIXME: Setting linknames here is a bad hack.
13501       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13502       # The linker will automatically build a .lib file if we build a DLL.
13503       old_archive_From_new_cmds_F77='true'
13504       # FIXME: Should let the user specify the lib program.
13505       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13506       fix_srcfile_path='`cygpath -w "$srcfile"`'
13507       enable_shared_with_static_runtimes_F77=yes
13508       ;;
13509
13510     darwin* | rhapsody*)
13511     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13512       archive_cmds_need_lc_F77=no
13513       case "$host_os" in
13514       rhapsody* | darwin1.[012])
13515         allow_undefined_flag_F77='-undefined suppress'
13516         ;;
13517       *) # Darwin 1.3 on
13518         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13519         ;;
13520       esac
13521       # FIXME: Relying on posixy $() will cause problems for
13522       #        cross-compilation, but unfortunately the echo tests do not
13523       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13524       #        `"' quotes if we put them in here... so don't!
13525         lt_int_apple_cc_single_mod=no
13526         output_verbose_link_cmd='echo'
13527         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13528           lt_int_apple_cc_single_mod=yes
13529         fi
13530         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13531           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13532         else
13533         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'
13534       fi
13535       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13536       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13537         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13538           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}'
13539         else
13540           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}'
13541         fi
13542           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}'
13543       hardcode_direct_F77=no
13544       hardcode_automatic_F77=yes
13545       hardcode_shlibpath_var_F77=unsupported
13546       whole_archive_flag_spec_F77='-all_load $convenience'
13547       link_all_deplibs_F77=yes
13548     fi
13549       ;;
13550
13551     dgux*)
13552       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13553       hardcode_libdir_flag_spec_F77='-L$libdir'
13554       hardcode_shlibpath_var_F77=no
13555       ;;
13556
13557     freebsd1*)
13558       ld_shlibs_F77=no
13559       ;;
13560
13561     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13562     # support.  Future versions do this automatically, but an explicit c++rt0.o
13563     # does not break anything, and helps significantly (at the cost of a little
13564     # extra space).
13565     freebsd2.2*)
13566       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13567       hardcode_libdir_flag_spec_F77='-R$libdir'
13568       hardcode_direct_F77=yes
13569       hardcode_shlibpath_var_F77=no
13570       ;;
13571
13572     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13573     freebsd2*)
13574       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13575       hardcode_direct_F77=yes
13576       hardcode_minus_L_F77=yes
13577       hardcode_shlibpath_var_F77=no
13578       ;;
13579
13580     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13581     freebsd*)
13582       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13583       hardcode_libdir_flag_spec_F77='-R$libdir'
13584       hardcode_direct_F77=yes
13585       hardcode_shlibpath_var_F77=no
13586       ;;
13587
13588     hpux9*)
13589       if test "$GCC" = yes; then
13590         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'
13591       else
13592         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'
13593       fi
13594       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13595       hardcode_libdir_separator_F77=:
13596       hardcode_direct_F77=yes
13597
13598       # hardcode_minus_L: Not really in the search PATH,
13599       # but as the default location of the library.
13600       hardcode_minus_L_F77=yes
13601       export_dynamic_flag_spec_F77='${wl}-E'
13602       ;;
13603
13604     hpux10* | hpux11*)
13605       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13606         case "$host_cpu" in
13607         hppa*64*|ia64*)
13608           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13609           ;;
13610         *)
13611           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13612           ;;
13613         esac
13614       else
13615         case "$host_cpu" in
13616         hppa*64*|ia64*)
13617           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13618           ;;
13619         *)
13620           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13621           ;;
13622         esac
13623       fi
13624       if test "$with_gnu_ld" = no; then
13625         case "$host_cpu" in
13626         hppa*64*)
13627           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13628           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13629           hardcode_libdir_separator_F77=:
13630           hardcode_direct_F77=no
13631           hardcode_shlibpath_var_F77=no
13632           ;;
13633         ia64*)
13634           hardcode_libdir_flag_spec_F77='-L$libdir'
13635           hardcode_direct_F77=no
13636           hardcode_shlibpath_var_F77=no
13637
13638           # hardcode_minus_L: Not really in the search PATH,
13639           # but as the default location of the library.
13640           hardcode_minus_L_F77=yes
13641           ;;
13642         *)
13643           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13644           hardcode_libdir_separator_F77=:
13645           hardcode_direct_F77=yes
13646           export_dynamic_flag_spec_F77='${wl}-E'
13647
13648           # hardcode_minus_L: Not really in the search PATH,
13649           # but as the default location of the library.
13650           hardcode_minus_L_F77=yes
13651           ;;
13652         esac
13653       fi
13654       ;;
13655
13656     irix5* | irix6* | nonstopux*)
13657       if test "$GCC" = yes; then
13658         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'
13659       else
13660         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'
13661         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13662       fi
13663       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13664       hardcode_libdir_separator_F77=:
13665       link_all_deplibs_F77=yes
13666       ;;
13667
13668     netbsd*)
13669       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13670         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13671       else
13672         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13673       fi
13674       hardcode_libdir_flag_spec_F77='-R$libdir'
13675       hardcode_direct_F77=yes
13676       hardcode_shlibpath_var_F77=no
13677       ;;
13678
13679     newsos6)
13680       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13681       hardcode_direct_F77=yes
13682       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13683       hardcode_libdir_separator_F77=:
13684       hardcode_shlibpath_var_F77=no
13685       ;;
13686
13687     openbsd*)
13688       hardcode_direct_F77=yes
13689       hardcode_shlibpath_var_F77=no
13690       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13691         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13692         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13693         export_dynamic_flag_spec_F77='${wl}-E'
13694       else
13695        case $host_os in
13696          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13697            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13698            hardcode_libdir_flag_spec_F77='-R$libdir'
13699            ;;
13700          *)
13701            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13702            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13703            ;;
13704        esac
13705       fi
13706       ;;
13707
13708     os2*)
13709       hardcode_libdir_flag_spec_F77='-L$libdir'
13710       hardcode_minus_L_F77=yes
13711       allow_undefined_flag_F77=unsupported
13712       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'
13713       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13714       ;;
13715
13716     osf3*)
13717       if test "$GCC" = yes; then
13718         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13719         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'
13720       else
13721         allow_undefined_flag_F77=' -expect_unresolved \*'
13722         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'
13723       fi
13724       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13725       hardcode_libdir_separator_F77=:
13726       ;;
13727
13728     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13729       if test "$GCC" = yes; then
13730         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13731         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'
13732         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13733       else
13734         allow_undefined_flag_F77=' -expect_unresolved \*'
13735         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'
13736         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~
13737         $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'
13738
13739         # Both c and cxx compiler support -rpath directly
13740         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13741       fi
13742       hardcode_libdir_separator_F77=:
13743       ;;
13744
13745     sco3.2v5*)
13746       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13747       hardcode_shlibpath_var_F77=no
13748       export_dynamic_flag_spec_F77='${wl}-Bexport'
13749       runpath_var=LD_RUN_PATH
13750       hardcode_runpath_var=yes
13751       ;;
13752
13753     solaris*)
13754       no_undefined_flag_F77=' -z text'
13755       if test "$GCC" = yes; then
13756         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13757         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13758           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13759       else
13760         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13761         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13762         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13763       fi
13764       hardcode_libdir_flag_spec_F77='-R$libdir'
13765       hardcode_shlibpath_var_F77=no
13766       case $host_os in
13767       solaris2.[0-5] | solaris2.[0-5].*) ;;
13768       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13769         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13770       esac
13771       link_all_deplibs_F77=yes
13772       ;;
13773
13774     sunos4*)
13775       if test "x$host_vendor" = xsequent; then
13776         # Use $CC to link under sequent, because it throws in some extra .o
13777         # files that make .init and .fini sections work.
13778         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13779       else
13780         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13781       fi
13782       hardcode_libdir_flag_spec_F77='-L$libdir'
13783       hardcode_direct_F77=yes
13784       hardcode_minus_L_F77=yes
13785       hardcode_shlibpath_var_F77=no
13786       ;;
13787
13788     sysv4)
13789       case $host_vendor in
13790         sni)
13791           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13792           hardcode_direct_F77=yes # is this really true???
13793         ;;
13794         siemens)
13795           ## LD is ld it makes a PLAMLIB
13796           ## CC just makes a GrossModule.
13797           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13798           reload_cmds_F77='$CC -r -o $output$reload_objs'
13799           hardcode_direct_F77=no
13800         ;;
13801         motorola)
13802           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13803           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13804         ;;
13805       esac
13806       runpath_var='LD_RUN_PATH'
13807       hardcode_shlibpath_var_F77=no
13808       ;;
13809
13810     sysv4.3*)
13811       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13812       hardcode_shlibpath_var_F77=no
13813       export_dynamic_flag_spec_F77='-Bexport'
13814       ;;
13815
13816     sysv4*MP*)
13817       if test -d /usr/nec; then
13818         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13819         hardcode_shlibpath_var_F77=no
13820         runpath_var=LD_RUN_PATH
13821         hardcode_runpath_var=yes
13822         ld_shlibs_F77=yes
13823       fi
13824       ;;
13825
13826     sysv4.2uw2*)
13827       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13828       hardcode_direct_F77=yes
13829       hardcode_minus_L_F77=no
13830       hardcode_shlibpath_var_F77=no
13831       hardcode_runpath_var=yes
13832       runpath_var=LD_RUN_PATH
13833       ;;
13834
13835    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13836       no_undefined_flag_F77='${wl}-z ${wl}text'
13837       if test "$GCC" = yes; then
13838         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13839       else
13840         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13841       fi
13842       runpath_var='LD_RUN_PATH'
13843       hardcode_shlibpath_var_F77=no
13844       ;;
13845
13846     sysv5*)
13847       no_undefined_flag_F77=' -z text'
13848       # $CC -shared without GNU ld will not create a library from C++
13849       # object files and a static libstdc++, better avoid it by now
13850       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13851       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13852                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13853       hardcode_libdir_flag_spec_F77=
13854       hardcode_shlibpath_var_F77=no
13855       runpath_var='LD_RUN_PATH'
13856       ;;
13857
13858     uts4*)
13859       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13860       hardcode_libdir_flag_spec_F77='-L$libdir'
13861       hardcode_shlibpath_var_F77=no
13862       ;;
13863
13864     *)
13865       ld_shlibs_F77=no
13866       ;;
13867     esac
13868   fi
13869
13870 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13871 echo "${ECHO_T}$ld_shlibs_F77" >&6
13872 test "$ld_shlibs_F77" = no && can_build_shared=no
13873
13874 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13875 if test "$GCC" = yes; then
13876   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13877 fi
13878
13879 #
13880 # Do we need to explicitly link libc?
13881 #
13882 case "x$archive_cmds_need_lc_F77" in
13883 x|xyes)
13884   # Assume -lc should be added
13885   archive_cmds_need_lc_F77=yes
13886
13887   if test "$enable_shared" = yes && test "$GCC" = yes; then
13888     case $archive_cmds_F77 in
13889     *'~'*)
13890       # FIXME: we may have to deal with multi-command sequences.
13891       ;;
13892     '$CC '*)
13893       # Test whether the compiler implicitly links with -lc since on some
13894       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13895       # to ld, don't add -lc before -lgcc.
13896       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13897 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13898       $rm conftest*
13899       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13900
13901       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13902   (eval $ac_compile) 2>&5
13903   ac_status=$?
13904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905   (exit $ac_status); } 2>conftest.err; then
13906         soname=conftest
13907         lib=conftest
13908         libobjs=conftest.$ac_objext
13909         deplibs=
13910         wl=$lt_prog_compiler_wl_F77
13911         compiler_flags=-v
13912         linker_flags=-v
13913         verstring=
13914         output_objdir=.
13915         libname=conftest
13916         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13917         allow_undefined_flag_F77=
13918         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13919   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13920   ac_status=$?
13921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922   (exit $ac_status); }
13923         then
13924           archive_cmds_need_lc_F77=no
13925         else
13926           archive_cmds_need_lc_F77=yes
13927         fi
13928         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13929       else
13930         cat conftest.err 1>&5
13931       fi
13932       $rm conftest*
13933       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13934 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13935       ;;
13936     esac
13937   fi
13938   ;;
13939 esac
13940
13941 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13942 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13943 hardcode_action_F77=
13944 if test -n "$hardcode_libdir_flag_spec_F77" || \
13945    test -n "$runpath_var F77" || \
13946    test "X$hardcode_automatic_F77"="Xyes" ; then
13947
13948   # We can hardcode non-existant directories.
13949   if test "$hardcode_direct_F77" != no &&
13950      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13951      # have to relink, otherwise we might link with an installed library
13952      # when we should be linking with a yet-to-be-installed one
13953      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13954      test "$hardcode_minus_L_F77" != no; then
13955     # Linking always hardcodes the temporary library directory.
13956     hardcode_action_F77=relink
13957   else
13958     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13959     hardcode_action_F77=immediate
13960   fi
13961 else
13962   # We cannot hardcode anything, or else we can only hardcode existing
13963   # directories.
13964   hardcode_action_F77=unsupported
13965 fi
13966 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13967 echo "${ECHO_T}$hardcode_action_F77" >&6
13968
13969 if test "$hardcode_action_F77" = relink; then
13970   # Fast installation is not supported
13971   enable_fast_install=no
13972 elif test "$shlibpath_overrides_runpath" = yes ||
13973      test "$enable_shared" = no; then
13974   # Fast installation is not necessary
13975   enable_fast_install=needless
13976 fi
13977
13978 striplib=
13979 old_striplib=
13980 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13981 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13982 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13983   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13984   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13985   echo "$as_me:$LINENO: result: yes" >&5
13986 echo "${ECHO_T}yes" >&6
13987 else
13988 # FIXME - insert some real tests, host_os isn't really good enough
13989   case $host_os in
13990    darwin*)
13991        if test -n "$STRIP" ; then
13992          striplib="$STRIP -x"
13993          echo "$as_me:$LINENO: result: yes" >&5
13994 echo "${ECHO_T}yes" >&6
13995        else
13996   echo "$as_me:$LINENO: result: no" >&5
13997 echo "${ECHO_T}no" >&6
13998 fi
13999        ;;
14000    *)
14001   echo "$as_me:$LINENO: result: no" >&5
14002 echo "${ECHO_T}no" >&6
14003     ;;
14004   esac
14005 fi
14006
14007 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14008 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14009 library_names_spec=
14010 libname_spec='lib$name'
14011 soname_spec=
14012 shrext=".so"
14013 postinstall_cmds=
14014 postuninstall_cmds=
14015 finish_cmds=
14016 finish_eval=
14017 shlibpath_var=
14018 shlibpath_overrides_runpath=unknown
14019 version_type=none
14020 dynamic_linker="$host_os ld.so"
14021 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14022 if test "$GCC" = yes; then
14023   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14024   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14025     # if the path contains ";" then we assume it to be the separator
14026     # otherwise default to the standard path separator (i.e. ":") - it is
14027     # assumed that no part of a normal pathname contains ";" but that should
14028     # okay in the real world where ";" in dirpaths is itself problematic.
14029     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14030   else
14031     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14032   fi
14033 else
14034   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14035 fi
14036 need_lib_prefix=unknown
14037 hardcode_into_libs=no
14038
14039 # when you set need_version to no, make sure it does not cause -set_version
14040 # flags to be left without arguments
14041 need_version=unknown
14042
14043 case $host_os in
14044 aix3*)
14045   version_type=linux
14046   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14047   shlibpath_var=LIBPATH
14048
14049   # AIX 3 has no versioning support, so we append a major version to the name.
14050   soname_spec='${libname}${release}${shared_ext}$major'
14051   ;;
14052
14053 aix4* | aix5*)
14054   version_type=linux
14055   need_lib_prefix=no
14056   need_version=no
14057   hardcode_into_libs=yes
14058   if test "$host_cpu" = ia64; then
14059     # AIX 5 supports IA64
14060     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14061     shlibpath_var=LD_LIBRARY_PATH
14062   else
14063     # With GCC up to 2.95.x, collect2 would create an import file
14064     # for dependence libraries.  The import file would start with
14065     # the line `#! .'.  This would cause the generated library to
14066     # depend on `.', always an invalid library.  This was fixed in
14067     # development snapshots of GCC prior to 3.0.
14068     case $host_os in
14069       aix4 | aix4.[01] | aix4.[01].*)
14070       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14071            echo ' yes '
14072            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14073         :
14074       else
14075         can_build_shared=no
14076       fi
14077       ;;
14078     esac
14079     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14080     # soname into executable. Probably we can add versioning support to
14081     # collect2, so additional links can be useful in future.
14082     if test "$aix_use_runtimelinking" = yes; then
14083       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14084       # instead of lib<name>.a to let people know that these are not
14085       # typical AIX shared libraries.
14086       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14087     else
14088       # We preserve .a as extension for shared libraries through AIX4.2
14089       # and later when we are not doing run time linking.
14090       library_names_spec='${libname}${release}.a $libname.a'
14091       soname_spec='${libname}${release}${shared_ext}$major'
14092     fi
14093     shlibpath_var=LIBPATH
14094   fi
14095   ;;
14096
14097 amigaos*)
14098   library_names_spec='$libname.ixlibrary $libname.a'
14099   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14100   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'
14101   ;;
14102
14103 beos*)
14104   library_names_spec='${libname}${shared_ext}'
14105   dynamic_linker="$host_os ld.so"
14106   shlibpath_var=LIBRARY_PATH
14107   ;;
14108
14109 bsdi4*)
14110   version_type=linux
14111   need_version=no
14112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14113   soname_spec='${libname}${release}${shared_ext}$major'
14114   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14115   shlibpath_var=LD_LIBRARY_PATH
14116   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14117   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14118   # the default ld.so.conf also contains /usr/contrib/lib and
14119   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14120   # libtool to hard-code these into programs
14121   ;;
14122
14123 cygwin* | mingw* | pw32*)
14124   version_type=windows
14125   shrext=".dll"
14126   need_version=no
14127   need_lib_prefix=no
14128
14129   case $GCC,$host_os in
14130   yes,cygwin* | yes,mingw* | yes,pw32*)
14131     library_names_spec='$libname.dll.a'
14132     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14133     postinstall_cmds='base_file=`basename \${file}`~
14134       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14135       dldir=$destdir/`dirname \$dlpath`~
14136       test -d \$dldir || mkdir -p \$dldir~
14137       $install_prog $dir/$dlname \$dldir/$dlname'
14138     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14139       dlpath=$dir/\$dldll~
14140        $rm \$dlpath'
14141     shlibpath_overrides_runpath=yes
14142
14143     case $host_os in
14144     cygwin*)
14145       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14146       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14147       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14148       ;;
14149     mingw*)
14150       # MinGW DLLs use traditional 'lib' prefix
14151       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14152       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14153       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14154         # It is most probably a Windows format PATH printed by
14155         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14156         # path with ; separators, and with drive letters. We can handle the
14157         # drive letters (cygwin fileutils understands them), so leave them,
14158         # especially as we might pass files found there to a mingw objdump,
14159         # which wouldn't understand a cygwinified path. Ahh.
14160         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14161       else
14162         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14163       fi
14164       ;;
14165     pw32*)
14166       # pw32 DLLs use 'pw' prefix rather than 'lib'
14167       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14168       ;;
14169     esac
14170     ;;
14171
14172   *)
14173     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14174     ;;
14175   esac
14176   dynamic_linker='Win32 ld.exe'
14177   # FIXME: first we should search . and the directory the executable is in
14178   shlibpath_var=PATH
14179   ;;
14180
14181 darwin* | rhapsody*)
14182   dynamic_linker="$host_os dyld"
14183   version_type=darwin
14184   need_lib_prefix=no
14185   need_version=no
14186   # FIXME: Relying on posixy $() will cause problems for
14187   #        cross-compilation, but unfortunately the echo tests do not
14188   #        yet detect zsh echo's removal of \ escapes.
14189   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14190   soname_spec='${libname}${release}${major}$shared_ext'
14191   shlibpath_overrides_runpath=yes
14192   shlibpath_var=DYLD_LIBRARY_PATH
14193   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14194   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14195   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14196   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"`
14197   fi
14198   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14199   ;;
14200
14201 dgux*)
14202   version_type=linux
14203   need_lib_prefix=no
14204   need_version=no
14205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14206   soname_spec='${libname}${release}${shared_ext}$major'
14207   shlibpath_var=LD_LIBRARY_PATH
14208   ;;
14209
14210 freebsd1*)
14211   dynamic_linker=no
14212   ;;
14213
14214 freebsd*)
14215   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14216   version_type=freebsd-$objformat
14217   case $version_type in
14218     freebsd-elf*)
14219       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14220       need_version=no
14221       need_lib_prefix=no
14222       ;;
14223     freebsd-*)
14224       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14225       need_version=yes
14226       ;;
14227   esac
14228   shlibpath_var=LD_LIBRARY_PATH
14229   case $host_os in
14230   freebsd2*)
14231     shlibpath_overrides_runpath=yes
14232     ;;
14233   freebsd3.01* | freebsdelf3.01*)
14234     shlibpath_overrides_runpath=yes
14235     hardcode_into_libs=yes
14236     ;;
14237   *) # from 3.2 on
14238     shlibpath_overrides_runpath=no
14239     hardcode_into_libs=yes
14240     ;;
14241   esac
14242   ;;
14243
14244 gnu*)
14245   version_type=linux
14246   need_lib_prefix=no
14247   need_version=no
14248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14249   soname_spec='${libname}${release}${shared_ext}$major'
14250   shlibpath_var=LD_LIBRARY_PATH
14251   hardcode_into_libs=yes
14252   ;;
14253
14254 hpux9* | hpux10* | hpux11*)
14255   # Give a soname corresponding to the major version so that dld.sl refuses to
14256   # link against other versions.
14257   version_type=sunos
14258   need_lib_prefix=no
14259   need_version=no
14260   case "$host_cpu" in
14261   ia64*)
14262     shrext='.so'
14263     hardcode_into_libs=yes
14264     dynamic_linker="$host_os dld.so"
14265     shlibpath_var=LD_LIBRARY_PATH
14266     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14267     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14268     soname_spec='${libname}${release}${shared_ext}$major'
14269     if test "X$HPUX_IA64_MODE" = X32; then
14270       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14271     else
14272       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14273     fi
14274     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14275     ;;
14276    hppa*64*)
14277      shrext='.sl'
14278      hardcode_into_libs=yes
14279      dynamic_linker="$host_os dld.sl"
14280      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14281      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14282      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14283      soname_spec='${libname}${release}${shared_ext}$major'
14284      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14285      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14286      ;;
14287    *)
14288     shrext='.sl'
14289     dynamic_linker="$host_os dld.sl"
14290     shlibpath_var=SHLIB_PATH
14291     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14292     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14293     soname_spec='${libname}${release}${shared_ext}$major'
14294     ;;
14295   esac
14296   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14297   postinstall_cmds='chmod 555 $lib'
14298   ;;
14299
14300 irix5* | irix6* | nonstopux*)
14301   case $host_os in
14302     nonstopux*) version_type=nonstopux ;;
14303     *)
14304         if test "$lt_cv_prog_gnu_ld" = yes; then
14305                 version_type=linux
14306         else
14307                 version_type=irix
14308         fi ;;
14309   esac
14310   need_lib_prefix=no
14311   need_version=no
14312   soname_spec='${libname}${release}${shared_ext}$major'
14313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14314   case $host_os in
14315   irix5* | nonstopux*)
14316     libsuff= shlibsuff=
14317     ;;
14318   *)
14319     case $LD in # libtool.m4 will add one of these switches to LD
14320     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14321       libsuff= shlibsuff= libmagic=32-bit;;
14322     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14323       libsuff=32 shlibsuff=N32 libmagic=N32;;
14324     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14325       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14326     *) libsuff= shlibsuff= libmagic=never-match;;
14327     esac
14328     ;;
14329   esac
14330   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14331   shlibpath_overrides_runpath=no
14332   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14333   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14334   hardcode_into_libs=yes
14335   ;;
14336
14337 # No shared lib support for Linux oldld, aout, or coff.
14338 linux*oldld* | linux*aout* | linux*coff*)
14339   dynamic_linker=no
14340   ;;
14341
14342 # This must be Linux ELF.
14343 linux*)
14344   version_type=linux
14345   need_lib_prefix=no
14346   need_version=no
14347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14348   soname_spec='${libname}${release}${shared_ext}$major'
14349   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14350   shlibpath_var=LD_LIBRARY_PATH
14351   shlibpath_overrides_runpath=no
14352   # This implies no fast_install, which is unacceptable.
14353   # Some rework will be needed to allow for fast_install
14354   # before this can be enabled.
14355   hardcode_into_libs=yes
14356
14357   # We used to test for /lib/ld.so.1 and disable shared libraries on
14358   # powerpc, because MkLinux only supported shared libraries with the
14359   # GNU dynamic linker.  Since this was broken with cross compilers,
14360   # most powerpc-linux boxes support dynamic linking these days and
14361   # people can always --disable-shared, the test was removed, and we
14362   # assume the GNU/Linux dynamic linker is in use.
14363   dynamic_linker='GNU/Linux ld.so'
14364   ;;
14365
14366 netbsd*)
14367   version_type=sunos
14368   need_lib_prefix=no
14369   need_version=no
14370   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14371     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14372     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14373     dynamic_linker='NetBSD (a.out) ld.so'
14374   else
14375     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14376     soname_spec='${libname}${release}${shared_ext}$major'
14377     dynamic_linker='NetBSD ld.elf_so'
14378   fi
14379   shlibpath_var=LD_LIBRARY_PATH
14380   shlibpath_overrides_runpath=yes
14381   hardcode_into_libs=yes
14382   ;;
14383
14384 newsos6)
14385   version_type=linux
14386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14387   shlibpath_var=LD_LIBRARY_PATH
14388   shlibpath_overrides_runpath=yes
14389   ;;
14390
14391 nto-qnx)
14392   version_type=linux
14393   need_lib_prefix=no
14394   need_version=no
14395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14396   soname_spec='${libname}${release}${shared_ext}$major'
14397   shlibpath_var=LD_LIBRARY_PATH
14398   shlibpath_overrides_runpath=yes
14399   ;;
14400
14401 openbsd*)
14402   version_type=sunos
14403   need_lib_prefix=no
14404   need_version=no
14405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14406   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14407   shlibpath_var=LD_LIBRARY_PATH
14408   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14409     case $host_os in
14410       openbsd2.[89] | openbsd2.[89].*)
14411         shlibpath_overrides_runpath=no
14412         ;;
14413       *)
14414         shlibpath_overrides_runpath=yes
14415         ;;
14416       esac
14417   else
14418     shlibpath_overrides_runpath=yes
14419   fi
14420   ;;
14421
14422 os2*)
14423   libname_spec='$name'
14424   shrext=".dll"
14425   need_lib_prefix=no
14426   library_names_spec='$libname${shared_ext} $libname.a'
14427   dynamic_linker='OS/2 ld.exe'
14428   shlibpath_var=LIBPATH
14429   ;;
14430
14431 osf3* | osf4* | osf5*)
14432   version_type=osf
14433   need_lib_prefix=no
14434   need_version=no
14435   soname_spec='${libname}${release}${shared_ext}$major'
14436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14437   shlibpath_var=LD_LIBRARY_PATH
14438   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14439   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14440   ;;
14441
14442 sco3.2v5*)
14443   version_type=osf
14444   soname_spec='${libname}${release}${shared_ext}$major'
14445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14446   shlibpath_var=LD_LIBRARY_PATH
14447   ;;
14448
14449 solaris*)
14450   version_type=linux
14451   need_lib_prefix=no
14452   need_version=no
14453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14454   soname_spec='${libname}${release}${shared_ext}$major'
14455   shlibpath_var=LD_LIBRARY_PATH
14456   shlibpath_overrides_runpath=yes
14457   hardcode_into_libs=yes
14458   # ldd complains unless libraries are executable
14459   postinstall_cmds='chmod +x $lib'
14460   ;;
14461
14462 sunos4*)
14463   version_type=sunos
14464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14465   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14466   shlibpath_var=LD_LIBRARY_PATH
14467   shlibpath_overrides_runpath=yes
14468   if test "$with_gnu_ld" = yes; then
14469     need_lib_prefix=no
14470   fi
14471   need_version=yes
14472   ;;
14473
14474 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14475   version_type=linux
14476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14477   soname_spec='${libname}${release}${shared_ext}$major'
14478   shlibpath_var=LD_LIBRARY_PATH
14479   case $host_vendor in
14480     sni)
14481       shlibpath_overrides_runpath=no
14482       need_lib_prefix=no
14483       export_dynamic_flag_spec='${wl}-Blargedynsym'
14484       runpath_var=LD_RUN_PATH
14485       ;;
14486     siemens)
14487       need_lib_prefix=no
14488       ;;
14489     motorola)
14490       need_lib_prefix=no
14491       need_version=no
14492       shlibpath_overrides_runpath=no
14493       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14494       ;;
14495   esac
14496   ;;
14497
14498 sysv4*MP*)
14499   if test -d /usr/nec ;then
14500     version_type=linux
14501     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14502     soname_spec='$libname${shared_ext}.$major'
14503     shlibpath_var=LD_LIBRARY_PATH
14504   fi
14505   ;;
14506
14507 uts4*)
14508   version_type=linux
14509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14510   soname_spec='${libname}${release}${shared_ext}$major'
14511   shlibpath_var=LD_LIBRARY_PATH
14512   ;;
14513
14514 *)
14515   dynamic_linker=no
14516   ;;
14517 esac
14518 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14519 echo "${ECHO_T}$dynamic_linker" >&6
14520 test "$dynamic_linker" = no && can_build_shared=no
14521
14522
14523 # The else clause should only fire when bootstrapping the
14524 # libtool distribution, otherwise you forgot to ship ltmain.sh
14525 # with your package, and you will get complaints that there are
14526 # no rules to generate ltmain.sh.
14527 if test -f "$ltmain"; then
14528   # See if we are running on zsh, and set the options which allow our commands through
14529   # without removal of \ escapes.
14530   if test -n "${ZSH_VERSION+set}" ; then
14531     setopt NO_GLOB_SUBST
14532   fi
14533   # Now quote all the things that may contain metacharacters while being
14534   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14535   # variables and quote the copies for generation of the libtool script.
14536   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14537     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14538     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14539     deplibs_check_method reload_flag reload_cmds need_locks \
14540     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14541     lt_cv_sys_global_symbol_to_c_name_address \
14542     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14543     old_postinstall_cmds old_postuninstall_cmds \
14544     compiler_F77 \
14545     CC_F77 \
14546     LD_F77 \
14547     lt_prog_compiler_wl_F77 \
14548     lt_prog_compiler_pic_F77 \
14549     lt_prog_compiler_static_F77 \
14550     lt_prog_compiler_no_builtin_flag_F77 \
14551     export_dynamic_flag_spec_F77 \
14552     thread_safe_flag_spec_F77 \
14553     whole_archive_flag_spec_F77 \
14554     enable_shared_with_static_runtimes_F77 \
14555     old_archive_cmds_F77 \
14556     old_archive_from_new_cmds_F77 \
14557     predep_objects_F77 \
14558     postdep_objects_F77 \
14559     predeps_F77 \
14560     postdeps_F77 \
14561     compiler_lib_search_path_F77 \
14562     archive_cmds_F77 \
14563     archive_expsym_cmds_F77 \
14564     postinstall_cmds_F77 \
14565     postuninstall_cmds_F77 \
14566     old_archive_from_expsyms_cmds_F77 \
14567     allow_undefined_flag_F77 \
14568     no_undefined_flag_F77 \
14569     export_symbols_cmds_F77 \
14570     hardcode_libdir_flag_spec_F77 \
14571     hardcode_libdir_flag_spec_ld_F77 \
14572     hardcode_libdir_separator_F77 \
14573     hardcode_automatic_F77 \
14574     module_cmds_F77 \
14575     module_expsym_cmds_F77 \
14576     lt_cv_prog_compiler_c_o_F77 \
14577     exclude_expsyms_F77 \
14578     include_expsyms_F77; do
14579
14580     case $var in
14581     old_archive_cmds_F77 | \
14582     old_archive_from_new_cmds_F77 | \
14583     archive_cmds_F77 | \
14584     archive_expsym_cmds_F77 | \
14585     module_cmds_F77 | \
14586     module_expsym_cmds_F77 | \
14587     old_archive_from_expsyms_cmds_F77 | \
14588     export_symbols_cmds_F77 | \
14589     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14590     postinstall_cmds | postuninstall_cmds | \
14591     old_postinstall_cmds | old_postuninstall_cmds | \
14592     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14593       # Double-quote double-evaled strings.
14594       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14595       ;;
14596     *)
14597       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14598       ;;
14599     esac
14600   done
14601
14602   case $lt_echo in
14603   *'\$0 --fallback-echo"')
14604     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14605     ;;
14606   esac
14607
14608 cfgfile="$ofile"
14609
14610   cat <<__EOF__ >> "$cfgfile"
14611 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14612
14613 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14614
14615 # Shell to use when invoking shell scripts.
14616 SHELL=$lt_SHELL
14617
14618 # Whether or not to build shared libraries.
14619 build_libtool_libs=$enable_shared
14620
14621 # Whether or not to build static libraries.
14622 build_old_libs=$enable_static
14623
14624 # Whether or not to add -lc for building shared libraries.
14625 build_libtool_need_lc=$archive_cmds_need_lc_F77
14626
14627 # Whether or not to disallow shared libs when runtime libs are static
14628 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14629
14630 # Whether or not to optimize for fast installation.
14631 fast_install=$enable_fast_install
14632
14633 # The host system.
14634 host_alias=$host_alias
14635 host=$host
14636
14637 # An echo program that does not interpret backslashes.
14638 echo=$lt_echo
14639
14640 # The archiver.
14641 AR=$lt_AR
14642 AR_FLAGS=$lt_AR_FLAGS
14643
14644 # A C compiler.
14645 LTCC=$lt_LTCC
14646
14647 # A language-specific compiler.
14648 CC=$lt_compiler_F77
14649
14650 # Is the compiler the GNU C compiler?
14651 with_gcc=$GCC_F77
14652
14653 # An ERE matcher.
14654 EGREP=$lt_EGREP
14655
14656 # The linker used to build libraries.
14657 LD=$lt_LD_F77
14658
14659 # Whether we need hard or soft links.
14660 LN_S=$lt_LN_S
14661
14662 # A BSD-compatible nm program.
14663 NM=$lt_NM
14664
14665 # A symbol stripping program
14666 STRIP=$STRIP
14667
14668 # Used to examine libraries when file_magic_cmd begins "file"
14669 MAGIC_CMD=$MAGIC_CMD
14670
14671 # Used on cygwin: DLL creation program.
14672 DLLTOOL="$DLLTOOL"
14673
14674 # Used on cygwin: object dumper.
14675 OBJDUMP="$OBJDUMP"
14676
14677 # Used on cygwin: assembler.
14678 AS="$AS"
14679
14680 # The name of the directory that contains temporary libtool files.
14681 objdir=$objdir
14682
14683 # How to create reloadable object files.
14684 reload_flag=$lt_reload_flag
14685 reload_cmds=$lt_reload_cmds
14686
14687 # How to pass a linker flag through the compiler.
14688 wl=$lt_lt_prog_compiler_wl_F77
14689
14690 # Object file suffix (normally "o").
14691 objext="$ac_objext"
14692
14693 # Old archive suffix (normally "a").
14694 libext="$libext"
14695
14696 # Shared library suffix (normally ".so").
14697 shrext='$shrext'
14698
14699 # Executable file suffix (normally "").
14700 exeext="$exeext"
14701
14702 # Additional compiler flags for building library objects.
14703 pic_flag=$lt_lt_prog_compiler_pic_F77
14704 pic_mode=$pic_mode
14705
14706 # What is the maximum length of a command?
14707 max_cmd_len=$lt_cv_sys_max_cmd_len
14708
14709 # Does compiler simultaneously support -c and -o options?
14710 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14711
14712 # Must we lock files when doing compilation ?
14713 need_locks=$lt_need_locks
14714
14715 # Do we need the lib prefix for modules?
14716 need_lib_prefix=$need_lib_prefix
14717
14718 # Do we need a version for libraries?
14719 need_version=$need_version
14720
14721 # Whether dlopen is supported.
14722 dlopen_support=$enable_dlopen
14723
14724 # Whether dlopen of programs is supported.
14725 dlopen_self=$enable_dlopen_self
14726
14727 # Whether dlopen of statically linked programs is supported.
14728 dlopen_self_static=$enable_dlopen_self_static
14729
14730 # Compiler flag to prevent dynamic linking.
14731 link_static_flag=$lt_lt_prog_compiler_static_F77
14732
14733 # Compiler flag to turn off builtin functions.
14734 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14735
14736 # Compiler flag to allow reflexive dlopens.
14737 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14738
14739 # Compiler flag to generate shared objects directly from archives.
14740 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14741
14742 # Compiler flag to generate thread-safe objects.
14743 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14744
14745 # Library versioning type.
14746 version_type=$version_type
14747
14748 # Format of library name prefix.
14749 libname_spec=$lt_libname_spec
14750
14751 # List of archive names.  First name is the real one, the rest are links.
14752 # The last name is the one that the linker finds with -lNAME.
14753 library_names_spec=$lt_library_names_spec
14754
14755 # The coded name of the library, if different from the real name.
14756 soname_spec=$lt_soname_spec
14757
14758 # Commands used to build and install an old-style archive.
14759 RANLIB=$lt_RANLIB
14760 old_archive_cmds=$lt_old_archive_cmds_F77
14761 old_postinstall_cmds=$lt_old_postinstall_cmds
14762 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14763
14764 # Create an old-style archive from a shared archive.
14765 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14766
14767 # Create a temporary old-style archive to link instead of a shared archive.
14768 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14769
14770 # Commands used to build and install a shared archive.
14771 archive_cmds=$lt_archive_cmds_F77
14772 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14773 postinstall_cmds=$lt_postinstall_cmds
14774 postuninstall_cmds=$lt_postuninstall_cmds
14775
14776 # Commands used to build a loadable module (assumed same as above if empty)
14777 module_cmds=$lt_module_cmds_F77
14778 module_expsym_cmds=$lt_module_expsym_cmds_F77
14779
14780 # Commands to strip libraries.
14781 old_striplib=$lt_old_striplib
14782 striplib=$lt_striplib
14783
14784 # Dependencies to place before the objects being linked to create a
14785 # shared library.
14786 predep_objects=$lt_predep_objects_F77
14787
14788 # Dependencies to place after the objects being linked to create a
14789 # shared library.
14790 postdep_objects=$lt_postdep_objects_F77
14791
14792 # Dependencies to place before the objects being linked to create a
14793 # shared library.
14794 predeps=$lt_predeps_F77
14795
14796 # Dependencies to place after the objects being linked to create a
14797 # shared library.
14798 postdeps=$lt_postdeps_F77
14799
14800 # The library search path used internally by the compiler when linking
14801 # a shared library.
14802 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14803
14804 # Method to check whether dependent libraries are shared objects.
14805 deplibs_check_method=$lt_deplibs_check_method
14806
14807 # Command to use when deplibs_check_method == file_magic.
14808 file_magic_cmd=$lt_file_magic_cmd
14809
14810 # Flag that allows shared libraries with undefined symbols to be built.
14811 allow_undefined_flag=$lt_allow_undefined_flag_F77
14812
14813 # Flag that forces no undefined symbols.
14814 no_undefined_flag=$lt_no_undefined_flag_F77
14815
14816 # Commands used to finish a libtool library installation in a directory.
14817 finish_cmds=$lt_finish_cmds
14818
14819 # Same as above, but a single script fragment to be evaled but not shown.
14820 finish_eval=$lt_finish_eval
14821
14822 # Take the output of nm and produce a listing of raw symbols and C names.
14823 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14824
14825 # Transform the output of nm in a proper C declaration
14826 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14827
14828 # Transform the output of nm in a C name address pair
14829 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14830
14831 # This is the shared library runtime path variable.
14832 runpath_var=$runpath_var
14833
14834 # This is the shared library path variable.
14835 shlibpath_var=$shlibpath_var
14836
14837 # Is shlibpath searched before the hard-coded library search path?
14838 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14839
14840 # How to hardcode a shared library path into an executable.
14841 hardcode_action=$hardcode_action_F77
14842
14843 # Whether we should hardcode library paths into libraries.
14844 hardcode_into_libs=$hardcode_into_libs
14845
14846 # Flag to hardcode \$libdir into a binary during linking.
14847 # This must work even if \$libdir does not exist.
14848 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14849
14850 # If ld is used when linking, flag to hardcode \$libdir into
14851 # a binary during linking. This must work even if \$libdir does
14852 # not exist.
14853 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14854
14855 # Whether we need a single -rpath flag with a separated argument.
14856 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14857
14858 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14859 # resulting binary.
14860 hardcode_direct=$hardcode_direct_F77
14861
14862 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14863 # resulting binary.
14864 hardcode_minus_L=$hardcode_minus_L_F77
14865
14866 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14867 # the resulting binary.
14868 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14869
14870 # Set to yes if building a shared library automatically hardcodes DIR into the library
14871 # and all subsequent libraries and executables linked against it.
14872 hardcode_automatic=$hardcode_automatic_F77
14873
14874 # Variables whose values should be saved in libtool wrapper scripts and
14875 # restored at relink time.
14876 variables_saved_for_relink="$variables_saved_for_relink"
14877
14878 # Whether libtool must link a program against all its dependency libraries.
14879 link_all_deplibs=$link_all_deplibs_F77
14880
14881 # Compile-time system search path for libraries
14882 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14883
14884 # Run-time system search path for libraries
14885 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14886
14887 # Fix the shell variable \$srcfile for the compiler.
14888 fix_srcfile_path="$fix_srcfile_path_F77"
14889
14890 # Set to yes if exported symbols are required.
14891 always_export_symbols=$always_export_symbols_F77
14892
14893 # The commands to list exported symbols.
14894 export_symbols_cmds=$lt_export_symbols_cmds_F77
14895
14896 # The commands to extract the exported symbol list from a shared archive.
14897 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14898
14899 # Symbols that should not be listed in the preloaded symbols.
14900 exclude_expsyms=$lt_exclude_expsyms_F77
14901
14902 # Symbols that must always be exported.
14903 include_expsyms=$lt_include_expsyms_F77
14904
14905 # ### END LIBTOOL TAG CONFIG: $tagname
14906
14907 __EOF__
14908
14909
14910 else
14911   # If there is no Makefile yet, we rely on a make rule to execute
14912   # `config.status --recheck' to rerun these tests and create the
14913   # libtool script then.
14914   test -f Makefile && make "$ltmain"
14915 fi
14916
14917
14918 ac_ext=c
14919 ac_cpp='$CPP $CPPFLAGS'
14920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14923
14924 CC="$lt_save_CC"
14925
14926         else
14927           tagname=""
14928         fi
14929         ;;
14930
14931       GCJ)
14932         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14933
14934
14935
14936 # Source file extension for Java test sources.
14937 ac_ext=java
14938
14939 # Object file extension for compiled Java test sources.
14940 objext=o
14941 objext_GCJ=$objext
14942
14943 # Code to be used in simple compile tests
14944 lt_simple_compile_test_code="class foo {}\n"
14945
14946 # Code to be used in simple link tests
14947 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14948
14949 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14950
14951 # If no C compiler was specified, use CC.
14952 LTCC=${LTCC-"$CC"}
14953
14954 # Allow CC to be a program name with arguments.
14955 compiler=$CC
14956
14957
14958 # Allow CC to be a program name with arguments.
14959 lt_save_CC="$CC"
14960 CC=${GCJ-"gcj"}
14961 compiler=$CC
14962 compiler_GCJ=$CC
14963
14964 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14965 archive_cmds_need_lc_GCJ=no
14966
14967 ## CAVEAT EMPTOR:
14968 ## There is no encapsulation within the following macros, do not change
14969 ## the running order or otherwise move them around unless you know exactly
14970 ## what you are doing...
14971
14972 lt_prog_compiler_no_builtin_flag_GCJ=
14973
14974 if test "$GCC" = yes; then
14975   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14976
14977   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14978 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14979 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14980   echo $ECHO_N "(cached) $ECHO_C" >&6
14981 else
14982   lt_cv_prog_compiler_rtti_exceptions=no
14983   ac_outfile=conftest.$ac_objext
14984    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14985    lt_compiler_flag="-fno-rtti -fno-exceptions"
14986    # Insert the option either (1) after the last *FLAGS variable, or
14987    # (2) before a word containing "conftest.", or (3) at the end.
14988    # Note that $ac_compile itself does not contain backslashes and begins
14989    # with a dollar sign (not a hyphen), so the echo should work correctly.
14990    # The option is referenced via a variable to avoid confusing sed.
14991    lt_compile=`echo "$ac_compile" | $SED \
14992    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14993    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14994    -e 's:$: $lt_compiler_flag:'`
14995    (eval echo "\"\$as_me:14995: $lt_compile\"" >&5)
14996    (eval "$lt_compile" 2>conftest.err)
14997    ac_status=$?
14998    cat conftest.err >&5
14999    echo "$as_me:14999: \$? = $ac_status" >&5
15000    if (exit $ac_status) && test -s "$ac_outfile"; then
15001      # The compiler can only warn and ignore the option if not recognized
15002      # So say no if there are warnings
15003      if test ! -s conftest.err; then
15004        lt_cv_prog_compiler_rtti_exceptions=yes
15005      fi
15006    fi
15007    $rm conftest*
15008
15009 fi
15010 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15011 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15012
15013 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15014     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15015 else
15016     :
15017 fi
15018
15019 fi
15020
15021 lt_prog_compiler_wl_GCJ=
15022 lt_prog_compiler_pic_GCJ=
15023 lt_prog_compiler_static_GCJ=
15024
15025 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15026 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15027
15028   if test "$GCC" = yes; then
15029     lt_prog_compiler_wl_GCJ='-Wl,'
15030     lt_prog_compiler_static_GCJ='-static'
15031
15032     case $host_os in
15033       aix*)
15034       # All AIX code is PIC.
15035       if test "$host_cpu" = ia64; then
15036         # AIX 5 now supports IA64 processor
15037         lt_prog_compiler_static_GCJ='-Bstatic'
15038       fi
15039       ;;
15040
15041     amigaos*)
15042       # FIXME: we need at least 68020 code to build shared libraries, but
15043       # adding the `-m68020' flag to GCC prevents building anything better,
15044       # like `-m68040'.
15045       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15046       ;;
15047
15048     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15049       # PIC is the default for these OSes.
15050       ;;
15051
15052     mingw* | pw32* | os2*)
15053       # This hack is so that the source file can tell whether it is being
15054       # built for inclusion in a dll (and should export symbols for example).
15055       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15056       ;;
15057
15058     darwin* | rhapsody*)
15059       # PIC is the default on this platform
15060       # Common symbols not allowed in MH_DYLIB files
15061       lt_prog_compiler_pic_GCJ='-fno-common'
15062       ;;
15063
15064     msdosdjgpp*)
15065       # Just because we use GCC doesn't mean we suddenly get shared libraries
15066       # on systems that don't support them.
15067       lt_prog_compiler_can_build_shared_GCJ=no
15068       enable_shared=no
15069       ;;
15070
15071     sysv4*MP*)
15072       if test -d /usr/nec; then
15073         lt_prog_compiler_pic_GCJ=-Kconform_pic
15074       fi
15075       ;;
15076
15077     hpux*)
15078       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15079       # not for PA HP-UX.
15080       case "$host_cpu" in
15081       hppa*64*|ia64*)
15082         # +Z the default
15083         ;;
15084       *)
15085         lt_prog_compiler_pic_GCJ='-fPIC'
15086         ;;
15087       esac
15088       ;;
15089
15090     *)
15091       lt_prog_compiler_pic_GCJ='-fPIC'
15092       ;;
15093     esac
15094   else
15095     # PORTME Check for flag to pass linker flags through the system compiler.
15096     case $host_os in
15097     aix*)
15098       lt_prog_compiler_wl_GCJ='-Wl,'
15099       if test "$host_cpu" = ia64; then
15100         # AIX 5 now supports IA64 processor
15101         lt_prog_compiler_static_GCJ='-Bstatic'
15102       else
15103         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15104       fi
15105       ;;
15106
15107     mingw* | pw32* | os2*)
15108       # This hack is so that the source file can tell whether it is being
15109       # built for inclusion in a dll (and should export symbols for example).
15110       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15111       ;;
15112
15113     hpux9* | hpux10* | hpux11*)
15114       lt_prog_compiler_wl_GCJ='-Wl,'
15115       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15116       # not for PA HP-UX.
15117       case "$host_cpu" in
15118       hppa*64*|ia64*)
15119         # +Z the default
15120         ;;
15121       *)
15122         lt_prog_compiler_pic_GCJ='+Z'
15123         ;;
15124       esac
15125       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15126       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15127       ;;
15128
15129     irix5* | irix6* | nonstopux*)
15130       lt_prog_compiler_wl_GCJ='-Wl,'
15131       # PIC (with -KPIC) is the default.
15132       lt_prog_compiler_static_GCJ='-non_shared'
15133       ;;
15134
15135     newsos6)
15136       lt_prog_compiler_pic_GCJ='-KPIC'
15137       lt_prog_compiler_static_GCJ='-Bstatic'
15138       ;;
15139
15140     linux*)
15141       case $CC in
15142       icc|ecc)
15143         lt_prog_compiler_wl_GCJ='-Wl,'
15144         lt_prog_compiler_pic_GCJ='-KPIC'
15145         lt_prog_compiler_static_GCJ='-static'
15146         ;;
15147       ccc)
15148         lt_prog_compiler_wl_GCJ='-Wl,'
15149         # All Alpha code is PIC.
15150         lt_prog_compiler_static_GCJ='-non_shared'
15151         ;;
15152       esac
15153       ;;
15154
15155     osf3* | osf4* | osf5*)
15156       lt_prog_compiler_wl_GCJ='-Wl,'
15157       # All OSF/1 code is PIC.
15158       lt_prog_compiler_static_GCJ='-non_shared'
15159       ;;
15160
15161     sco3.2v5*)
15162       lt_prog_compiler_pic_GCJ='-Kpic'
15163       lt_prog_compiler_static_GCJ='-dn'
15164       ;;
15165
15166     solaris*)
15167       lt_prog_compiler_wl_GCJ='-Wl,'
15168       lt_prog_compiler_pic_GCJ='-KPIC'
15169       lt_prog_compiler_static_GCJ='-Bstatic'
15170       ;;
15171
15172     sunos4*)
15173       lt_prog_compiler_wl_GCJ='-Qoption ld '
15174       lt_prog_compiler_pic_GCJ='-PIC'
15175       lt_prog_compiler_static_GCJ='-Bstatic'
15176       ;;
15177
15178     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15179       lt_prog_compiler_wl_GCJ='-Wl,'
15180       lt_prog_compiler_pic_GCJ='-KPIC'
15181       lt_prog_compiler_static_GCJ='-Bstatic'
15182       ;;
15183
15184     sysv4*MP*)
15185       if test -d /usr/nec ;then
15186         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15187         lt_prog_compiler_static_GCJ='-Bstatic'
15188       fi
15189       ;;
15190
15191     uts4*)
15192       lt_prog_compiler_pic_GCJ='-pic'
15193       lt_prog_compiler_static_GCJ='-Bstatic'
15194       ;;
15195
15196     *)
15197       lt_prog_compiler_can_build_shared_GCJ=no
15198       ;;
15199     esac
15200   fi
15201
15202 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15203 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15204
15205 #
15206 # Check to make sure the PIC flag actually works.
15207 #
15208 if test -n "$lt_prog_compiler_pic_GCJ"; then
15209   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15210 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15211 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15212   echo $ECHO_N "(cached) $ECHO_C" >&6
15213 else
15214   lt_prog_compiler_pic_works_GCJ=no
15215   ac_outfile=conftest.$ac_objext
15216    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15217    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15218    # Insert the option either (1) after the last *FLAGS variable, or
15219    # (2) before a word containing "conftest.", or (3) at the end.
15220    # Note that $ac_compile itself does not contain backslashes and begins
15221    # with a dollar sign (not a hyphen), so the echo should work correctly.
15222    # The option is referenced via a variable to avoid confusing sed.
15223    lt_compile=`echo "$ac_compile" | $SED \
15224    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15225    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15226    -e 's:$: $lt_compiler_flag:'`
15227    (eval echo "\"\$as_me:15227: $lt_compile\"" >&5)
15228    (eval "$lt_compile" 2>conftest.err)
15229    ac_status=$?
15230    cat conftest.err >&5
15231    echo "$as_me:15231: \$? = $ac_status" >&5
15232    if (exit $ac_status) && test -s "$ac_outfile"; then
15233      # The compiler can only warn and ignore the option if not recognized
15234      # So say no if there are warnings
15235      if test ! -s conftest.err; then
15236        lt_prog_compiler_pic_works_GCJ=yes
15237      fi
15238    fi
15239    $rm conftest*
15240
15241 fi
15242 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15243 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15244
15245 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15246     case $lt_prog_compiler_pic_GCJ in
15247      "" | " "*) ;;
15248      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15249      esac
15250 else
15251     lt_prog_compiler_pic_GCJ=
15252      lt_prog_compiler_can_build_shared_GCJ=no
15253 fi
15254
15255 fi
15256 case "$host_os" in
15257   # For platforms which do not support PIC, -DPIC is meaningless:
15258   *djgpp*)
15259     lt_prog_compiler_pic_GCJ=
15260     ;;
15261   *)
15262     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15263     ;;
15264 esac
15265
15266 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15267 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15268 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15269   echo $ECHO_N "(cached) $ECHO_C" >&6
15270 else
15271   lt_cv_prog_compiler_c_o_GCJ=no
15272    $rm -r conftest 2>/dev/null
15273    mkdir conftest
15274    cd conftest
15275    mkdir out
15276    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15277
15278    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15279    # that will create temporary files in the current directory regardless of
15280    # the output directory.  Thus, making CWD read-only will cause this test
15281    # to fail, enabling locking or at least warning the user not to do parallel
15282    # builds.
15283    chmod -w .
15284
15285    lt_compiler_flag="-o out/conftest2.$ac_objext"
15286    # Insert the option either (1) after the last *FLAGS variable, or
15287    # (2) before a word containing "conftest.", or (3) at the end.
15288    # Note that $ac_compile itself does not contain backslashes and begins
15289    # with a dollar sign (not a hyphen), so the echo should work correctly.
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>out/conftest.err)
15296    ac_status=$?
15297    cat out/conftest.err >&5
15298    echo "$as_me:15298: \$? = $ac_status" >&5
15299    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15300    then
15301      # The compiler can only warn and ignore the option if not recognized
15302      # So say no if there are warnings
15303      if test ! -s out/conftest.err; then
15304        lt_cv_prog_compiler_c_o_GCJ=yes
15305      fi
15306    fi
15307    chmod u+w .
15308    $rm conftest* out/*
15309    rmdir out
15310    cd ..
15311    rmdir conftest
15312    $rm conftest*
15313
15314 fi
15315 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15316 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15317
15318
15319 hard_links="nottested"
15320 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15321   # do not overwrite the value of need_locks provided by the user
15322   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15323 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15324   hard_links=yes
15325   $rm conftest*
15326   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15327   touch conftest.a
15328   ln conftest.a conftest.b 2>&5 || hard_links=no
15329   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15330   echo "$as_me:$LINENO: result: $hard_links" >&5
15331 echo "${ECHO_T}$hard_links" >&6
15332   if test "$hard_links" = no; then
15333     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15334 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15335     need_locks=warn
15336   fi
15337 else
15338   need_locks=no
15339 fi
15340
15341 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15342 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15343
15344   runpath_var=
15345   allow_undefined_flag_GCJ=
15346   enable_shared_with_static_runtimes_GCJ=no
15347   archive_cmds_GCJ=
15348   archive_expsym_cmds_GCJ=
15349   old_archive_From_new_cmds_GCJ=
15350   old_archive_from_expsyms_cmds_GCJ=
15351   export_dynamic_flag_spec_GCJ=
15352   whole_archive_flag_spec_GCJ=
15353   thread_safe_flag_spec_GCJ=
15354   hardcode_libdir_flag_spec_GCJ=
15355   hardcode_libdir_flag_spec_ld_GCJ=
15356   hardcode_libdir_separator_GCJ=
15357   hardcode_direct_GCJ=no
15358   hardcode_minus_L_GCJ=no
15359   hardcode_shlibpath_var_GCJ=unsupported
15360   link_all_deplibs_GCJ=unknown
15361   hardcode_automatic_GCJ=no
15362   module_cmds_GCJ=
15363   module_expsym_cmds_GCJ=
15364   always_export_symbols_GCJ=no
15365   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15366   # include_expsyms should be a list of space-separated symbols to be *always*
15367   # included in the symbol list
15368   include_expsyms_GCJ=
15369   # exclude_expsyms can be an extended regexp of symbols to exclude
15370   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15371   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15372   # as well as any symbol that contains `d'.
15373   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15374   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15375   # platforms (ab)use it in PIC code, but their linkers get confused if
15376   # the symbol is explicitly referenced.  Since portable code cannot
15377   # rely on this symbol name, it's probably fine to never include it in
15378   # preloaded symbol tables.
15379   extract_expsyms_cmds=
15380
15381   case $host_os in
15382   cygwin* | mingw* | pw32*)
15383     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15384     # When not using gcc, we currently assume that we are using
15385     # Microsoft Visual C++.
15386     if test "$GCC" != yes; then
15387       with_gnu_ld=no
15388     fi
15389     ;;
15390   openbsd*)
15391     with_gnu_ld=no
15392     ;;
15393   esac
15394
15395   ld_shlibs_GCJ=yes
15396   if test "$with_gnu_ld" = yes; then
15397     # If archive_cmds runs LD, not CC, wlarc should be empty
15398     wlarc='${wl}'
15399
15400     # See if GNU ld supports shared libraries.
15401     case $host_os in
15402     aix3* | aix4* | aix5*)
15403       # On AIX/PPC, the GNU linker is very broken
15404       if test "$host_cpu" != ia64; then
15405         ld_shlibs_GCJ=no
15406         cat <<EOF 1>&2
15407
15408 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15409 *** to be unable to reliably create shared libraries on AIX.
15410 *** Therefore, libtool is disabling shared libraries support.  If you
15411 *** really care for shared libraries, you may want to modify your PATH
15412 *** so that a non-GNU linker is found, and then restart.
15413
15414 EOF
15415       fi
15416       ;;
15417
15418     amigaos*)
15419       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)'
15420       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15421       hardcode_minus_L_GCJ=yes
15422
15423       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15424       # that the semantics of dynamic libraries on AmigaOS, at least up
15425       # to version 4, is to share data among multiple programs linked
15426       # with the same dynamic library.  Since this doesn't match the
15427       # behavior of shared libraries on other platforms, we can't use
15428       # them.
15429       ld_shlibs_GCJ=no
15430       ;;
15431
15432     beos*)
15433       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15434         allow_undefined_flag_GCJ=unsupported
15435         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15436         # support --undefined.  This deserves some investigation.  FIXME
15437         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15438       else
15439         ld_shlibs_GCJ=no
15440       fi
15441       ;;
15442
15443     cygwin* | mingw* | pw32*)
15444       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15445       # as there is no search path for DLLs.
15446       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15447       allow_undefined_flag_GCJ=unsupported
15448       always_export_symbols_GCJ=no
15449       enable_shared_with_static_runtimes_GCJ=yes
15450       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15451
15452       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15453         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15454         # If the export-symbols file already is a .def file (1st line
15455         # is EXPORTS), use it as is; otherwise, prepend...
15456         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15457           cp $export_symbols $output_objdir/$soname.def;
15458         else
15459           echo EXPORTS > $output_objdir/$soname.def;
15460           cat $export_symbols >> $output_objdir/$soname.def;
15461         fi~
15462         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15463       else
15464         ld_shlibs=no
15465       fi
15466       ;;
15467
15468     netbsd*)
15469       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15470         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15471         wlarc=
15472       else
15473         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15474         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15475       fi
15476       ;;
15477
15478     solaris* | sysv5*)
15479       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15480         ld_shlibs_GCJ=no
15481         cat <<EOF 1>&2
15482
15483 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15484 *** create shared libraries on Solaris systems.  Therefore, libtool
15485 *** is disabling shared libraries support.  We urge you to upgrade GNU
15486 *** binutils to release 2.9.1 or newer.  Another option is to modify
15487 *** your PATH or compiler configuration so that the native linker is
15488 *** used, and then restart.
15489
15490 EOF
15491       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15492         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15493         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15494       else
15495         ld_shlibs_GCJ=no
15496       fi
15497       ;;
15498
15499     sunos4*)
15500       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15501       wlarc=
15502       hardcode_direct_GCJ=yes
15503       hardcode_shlibpath_var_GCJ=no
15504       ;;
15505
15506     *)
15507       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15508         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15509         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15510       else
15511         ld_shlibs_GCJ=no
15512       fi
15513       ;;
15514     esac
15515
15516     if test "$ld_shlibs_GCJ" = yes; then
15517       runpath_var=LD_RUN_PATH
15518       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15519       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15520       # ancient GNU ld didn't support --whole-archive et. al.
15521       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15522         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15523       else
15524         whole_archive_flag_spec_GCJ=
15525       fi
15526     fi
15527   else
15528     # PORTME fill in a description of your system's linker (not GNU ld)
15529     case $host_os in
15530     aix3*)
15531       allow_undefined_flag_GCJ=unsupported
15532       always_export_symbols_GCJ=yes
15533       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'
15534       # Note: this linker hardcodes the directories in LIBPATH if there
15535       # are no directories specified by -L.
15536       hardcode_minus_L_GCJ=yes
15537       if test "$GCC" = yes && test -z "$link_static_flag"; then
15538         # Neither direct hardcoding nor static linking is supported with a
15539         # broken collect2.
15540         hardcode_direct_GCJ=unsupported
15541       fi
15542       ;;
15543
15544     aix4* | aix5*)
15545       if test "$host_cpu" = ia64; then
15546         # On IA64, the linker does run time linking by default, so we don't
15547         # have to do anything special.
15548         aix_use_runtimelinking=no
15549         exp_sym_flag='-Bexport'
15550         no_entry_flag=""
15551       else
15552         # If we're using GNU nm, then we don't want the "-C" option.
15553         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15554         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15555           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'
15556         else
15557           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'
15558         fi
15559         aix_use_runtimelinking=no
15560
15561         # Test if we are trying to use run time linking or normal
15562         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15563         # need to do runtime linking.
15564         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15565           for ld_flag in $LDFLAGS; do
15566           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15567             aix_use_runtimelinking=yes
15568             break
15569           fi
15570           done
15571         esac
15572
15573         exp_sym_flag='-bexport'
15574         no_entry_flag='-bnoentry'
15575       fi
15576
15577       # When large executables or shared objects are built, AIX ld can
15578       # have problems creating the table of contents.  If linking a library
15579       # or program results in "error TOC overflow" add -mminimal-toc to
15580       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15581       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15582
15583       archive_cmds_GCJ=''
15584       hardcode_direct_GCJ=yes
15585       hardcode_libdir_separator_GCJ=':'
15586       link_all_deplibs_GCJ=yes
15587
15588       if test "$GCC" = yes; then
15589         case $host_os in aix4.012|aix4.012.*)
15590         # We only want to do this on AIX 4.2 and lower, the check
15591         # below for broken collect2 doesn't work under 4.3+
15592           collect2name=`${CC} -print-prog-name=collect2`
15593           if test -f "$collect2name" && \
15594            strings "$collect2name" | grep resolve_lib_name >/dev/null
15595           then
15596           # We have reworked collect2
15597           hardcode_direct_GCJ=yes
15598           else
15599           # We have old collect2
15600           hardcode_direct_GCJ=unsupported
15601           # It fails to find uninstalled libraries when the uninstalled
15602           # path is not listed in the libpath.  Setting hardcode_minus_L
15603           # to unsupported forces relinking
15604           hardcode_minus_L_GCJ=yes
15605           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15606           hardcode_libdir_separator_GCJ=
15607           fi
15608         esac
15609         shared_flag='-shared'
15610       else
15611         # not using gcc
15612         if test "$host_cpu" = ia64; then
15613         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15614         # chokes on -Wl,-G. The following line is correct:
15615           shared_flag='-G'
15616         else
15617         if test "$aix_use_runtimelinking" = yes; then
15618             shared_flag='${wl}-G'
15619           else
15620             shared_flag='${wl}-bM:SRE'
15621         fi
15622         fi
15623       fi
15624
15625       # It seems that -bexpall does not export symbols beginning with
15626       # underscore (_), so it is better to generate a list of symbols to export.
15627       always_export_symbols_GCJ=yes
15628       if test "$aix_use_runtimelinking" = yes; then
15629         # Warning - without using the other runtime loading flags (-brtl),
15630         # -berok will link without error, but may produce a broken library.
15631         allow_undefined_flag_GCJ='-berok'
15632        # Determine the default libpath from the value encoded in an empty executable.
15633        cat >conftest.$ac_ext <<_ACEOF
15634 #line $LINENO "configure"
15635 /* confdefs.h.  */
15636 _ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h.  */
15640
15641 int
15642 main ()
15643 {
15644
15645   ;
15646   return 0;
15647 }
15648 _ACEOF
15649 rm -f conftest.$ac_objext conftest$ac_exeext
15650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15651   (eval $ac_link) 2>&5
15652   ac_status=$?
15653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654   (exit $ac_status); } &&
15655          { ac_try='test -s conftest$ac_exeext'
15656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15657   (eval $ac_try) 2>&5
15658   ac_status=$?
15659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660   (exit $ac_status); }; }; then
15661
15662 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15663 }'`
15664 # Check for a 64-bit object if we didn't find anything.
15665 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; }
15666 }'`; fi
15667 else
15668   echo "$as_me: failed program was:" >&5
15669 sed 's/^/| /' conftest.$ac_ext >&5
15670
15671 fi
15672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15673 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15674
15675        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15676         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"
15677        else
15678         if test "$host_cpu" = ia64; then
15679           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15680           allow_undefined_flag_GCJ="-z nodefs"
15681           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"
15682         else
15683          # Determine the default libpath from the value encoded in an empty executable.
15684          cat >conftest.$ac_ext <<_ACEOF
15685 #line $LINENO "configure"
15686 /* confdefs.h.  */
15687 _ACEOF
15688 cat confdefs.h >>conftest.$ac_ext
15689 cat >>conftest.$ac_ext <<_ACEOF
15690 /* end confdefs.h.  */
15691
15692 int
15693 main ()
15694 {
15695
15696   ;
15697   return 0;
15698 }
15699 _ACEOF
15700 rm -f conftest.$ac_objext conftest$ac_exeext
15701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15702   (eval $ac_link) 2>&5
15703   ac_status=$?
15704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705   (exit $ac_status); } &&
15706          { ac_try='test -s conftest$ac_exeext'
15707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15708   (eval $ac_try) 2>&5
15709   ac_status=$?
15710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711   (exit $ac_status); }; }; then
15712
15713 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15714 }'`
15715 # Check for a 64-bit object if we didn't find anything.
15716 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; }
15717 }'`; fi
15718 else
15719   echo "$as_me: failed program was:" >&5
15720 sed 's/^/| /' conftest.$ac_ext >&5
15721
15722 fi
15723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15724 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15725
15726          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15727           # Warning - without using the other run time loading flags,
15728           # -berok will link without error, but may produce a broken library.
15729           no_undefined_flag_GCJ=' ${wl}-bernotok'
15730           allow_undefined_flag_GCJ=' ${wl}-berok'
15731           # -bexpall does not export symbols beginning with underscore (_)
15732           always_export_symbols_GCJ=yes
15733           # Exported symbols can be pulled into shared objects from archives
15734           whole_archive_flag_spec_GCJ=' '
15735           archive_cmds_need_lc_GCJ=yes
15736           # This is similar to how AIX traditionally builds it's shared libraries.
15737           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'
15738         fi
15739       fi
15740       ;;
15741
15742     amigaos*)
15743       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)'
15744       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15745       hardcode_minus_L_GCJ=yes
15746       # see comment about different semantics on the GNU ld section
15747       ld_shlibs_GCJ=no
15748       ;;
15749
15750     bsdi4*)
15751       export_dynamic_flag_spec_GCJ=-rdynamic
15752       ;;
15753
15754     cygwin* | mingw* | pw32*)
15755       # When not using gcc, we currently assume that we are using
15756       # Microsoft Visual C++.
15757       # hardcode_libdir_flag_spec is actually meaningless, as there is
15758       # no search path for DLLs.
15759       hardcode_libdir_flag_spec_GCJ=' '
15760       allow_undefined_flag_GCJ=unsupported
15761       # Tell ltmain to make .lib files, not .a files.
15762       libext=lib
15763       # Tell ltmain to make .dll files, not .so files.
15764       shrext=".dll"
15765       # FIXME: Setting linknames here is a bad hack.
15766       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15767       # The linker will automatically build a .lib file if we build a DLL.
15768       old_archive_From_new_cmds_GCJ='true'
15769       # FIXME: Should let the user specify the lib program.
15770       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15771       fix_srcfile_path='`cygpath -w "$srcfile"`'
15772       enable_shared_with_static_runtimes_GCJ=yes
15773       ;;
15774
15775     darwin* | rhapsody*)
15776     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15777       archive_cmds_need_lc_GCJ=no
15778       case "$host_os" in
15779       rhapsody* | darwin1.[012])
15780         allow_undefined_flag_GCJ='-undefined suppress'
15781         ;;
15782       *) # Darwin 1.3 on
15783         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15784         ;;
15785       esac
15786       # FIXME: Relying on posixy $() will cause problems for
15787       #        cross-compilation, but unfortunately the echo tests do not
15788       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15789       #        `"' quotes if we put them in here... so don't!
15790         lt_int_apple_cc_single_mod=no
15791         output_verbose_link_cmd='echo'
15792         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15793           lt_int_apple_cc_single_mod=yes
15794         fi
15795         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15796           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15797         else
15798         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'
15799       fi
15800       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15801       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15802         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15803           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}'
15804         else
15805           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}'
15806         fi
15807           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}'
15808       hardcode_direct_GCJ=no
15809       hardcode_automatic_GCJ=yes
15810       hardcode_shlibpath_var_GCJ=unsupported
15811       whole_archive_flag_spec_GCJ='-all_load $convenience'
15812       link_all_deplibs_GCJ=yes
15813     fi
15814       ;;
15815
15816     dgux*)
15817       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15818       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15819       hardcode_shlibpath_var_GCJ=no
15820       ;;
15821
15822     freebsd1*)
15823       ld_shlibs_GCJ=no
15824       ;;
15825
15826     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15827     # support.  Future versions do this automatically, but an explicit c++rt0.o
15828     # does not break anything, and helps significantly (at the cost of a little
15829     # extra space).
15830     freebsd2.2*)
15831       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15832       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15833       hardcode_direct_GCJ=yes
15834       hardcode_shlibpath_var_GCJ=no
15835       ;;
15836
15837     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15838     freebsd2*)
15839       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15840       hardcode_direct_GCJ=yes
15841       hardcode_minus_L_GCJ=yes
15842       hardcode_shlibpath_var_GCJ=no
15843       ;;
15844
15845     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15846     freebsd*)
15847       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15848       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15849       hardcode_direct_GCJ=yes
15850       hardcode_shlibpath_var_GCJ=no
15851       ;;
15852
15853     hpux9*)
15854       if test "$GCC" = yes; then
15855         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'
15856       else
15857         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'
15858       fi
15859       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15860       hardcode_libdir_separator_GCJ=:
15861       hardcode_direct_GCJ=yes
15862
15863       # hardcode_minus_L: Not really in the search PATH,
15864       # but as the default location of the library.
15865       hardcode_minus_L_GCJ=yes
15866       export_dynamic_flag_spec_GCJ='${wl}-E'
15867       ;;
15868
15869     hpux10* | hpux11*)
15870       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15871         case "$host_cpu" in
15872         hppa*64*|ia64*)
15873           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15874           ;;
15875         *)
15876           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15877           ;;
15878         esac
15879       else
15880         case "$host_cpu" in
15881         hppa*64*|ia64*)
15882           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15883           ;;
15884         *)
15885           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15886           ;;
15887         esac
15888       fi
15889       if test "$with_gnu_ld" = no; then
15890         case "$host_cpu" in
15891         hppa*64*)
15892           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15893           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15894           hardcode_libdir_separator_GCJ=:
15895           hardcode_direct_GCJ=no
15896           hardcode_shlibpath_var_GCJ=no
15897           ;;
15898         ia64*)
15899           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15900           hardcode_direct_GCJ=no
15901           hardcode_shlibpath_var_GCJ=no
15902
15903           # hardcode_minus_L: Not really in the search PATH,
15904           # but as the default location of the library.
15905           hardcode_minus_L_GCJ=yes
15906           ;;
15907         *)
15908           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15909           hardcode_libdir_separator_GCJ=:
15910           hardcode_direct_GCJ=yes
15911           export_dynamic_flag_spec_GCJ='${wl}-E'
15912
15913           # hardcode_minus_L: Not really in the search PATH,
15914           # but as the default location of the library.
15915           hardcode_minus_L_GCJ=yes
15916           ;;
15917         esac
15918       fi
15919       ;;
15920
15921     irix5* | irix6* | nonstopux*)
15922       if test "$GCC" = yes; then
15923         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'
15924       else
15925         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'
15926         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15927       fi
15928       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15929       hardcode_libdir_separator_GCJ=:
15930       link_all_deplibs_GCJ=yes
15931       ;;
15932
15933     netbsd*)
15934       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15935         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15936       else
15937         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15938       fi
15939       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15940       hardcode_direct_GCJ=yes
15941       hardcode_shlibpath_var_GCJ=no
15942       ;;
15943
15944     newsos6)
15945       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15946       hardcode_direct_GCJ=yes
15947       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15948       hardcode_libdir_separator_GCJ=:
15949       hardcode_shlibpath_var_GCJ=no
15950       ;;
15951
15952     openbsd*)
15953       hardcode_direct_GCJ=yes
15954       hardcode_shlibpath_var_GCJ=no
15955       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15956         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15957         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15958         export_dynamic_flag_spec_GCJ='${wl}-E'
15959       else
15960        case $host_os in
15961          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15962            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15963            hardcode_libdir_flag_spec_GCJ='-R$libdir'
15964            ;;
15965          *)
15966            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15967            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15968            ;;
15969        esac
15970       fi
15971       ;;
15972
15973     os2*)
15974       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15975       hardcode_minus_L_GCJ=yes
15976       allow_undefined_flag_GCJ=unsupported
15977       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'
15978       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15979       ;;
15980
15981     osf3*)
15982       if test "$GCC" = yes; then
15983         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15984         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'
15985       else
15986         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15987         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'
15988       fi
15989       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15990       hardcode_libdir_separator_GCJ=:
15991       ;;
15992
15993     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15994       if test "$GCC" = yes; then
15995         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15996         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'
15997         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15998       else
15999         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16000         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'
16001         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~
16002         $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'
16003
16004         # Both c and cxx compiler support -rpath directly
16005         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16006       fi
16007       hardcode_libdir_separator_GCJ=:
16008       ;;
16009
16010     sco3.2v5*)
16011       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16012       hardcode_shlibpath_var_GCJ=no
16013       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16014       runpath_var=LD_RUN_PATH
16015       hardcode_runpath_var=yes
16016       ;;
16017
16018     solaris*)
16019       no_undefined_flag_GCJ=' -z text'
16020       if test "$GCC" = yes; then
16021         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16022         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16023           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16024       else
16025         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16026         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16027         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16028       fi
16029       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16030       hardcode_shlibpath_var_GCJ=no
16031       case $host_os in
16032       solaris2.[0-5] | solaris2.[0-5].*) ;;
16033       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16034         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16035       esac
16036       link_all_deplibs_GCJ=yes
16037       ;;
16038
16039     sunos4*)
16040       if test "x$host_vendor" = xsequent; then
16041         # Use $CC to link under sequent, because it throws in some extra .o
16042         # files that make .init and .fini sections work.
16043         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16044       else
16045         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16046       fi
16047       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16048       hardcode_direct_GCJ=yes
16049       hardcode_minus_L_GCJ=yes
16050       hardcode_shlibpath_var_GCJ=no
16051       ;;
16052
16053     sysv4)
16054       case $host_vendor in
16055         sni)
16056           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16057           hardcode_direct_GCJ=yes # is this really true???
16058         ;;
16059         siemens)
16060           ## LD is ld it makes a PLAMLIB
16061           ## CC just makes a GrossModule.
16062           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16063           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16064           hardcode_direct_GCJ=no
16065         ;;
16066         motorola)
16067           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16068           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16069         ;;
16070       esac
16071       runpath_var='LD_RUN_PATH'
16072       hardcode_shlibpath_var_GCJ=no
16073       ;;
16074
16075     sysv4.3*)
16076       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16077       hardcode_shlibpath_var_GCJ=no
16078       export_dynamic_flag_spec_GCJ='-Bexport'
16079       ;;
16080
16081     sysv4*MP*)
16082       if test -d /usr/nec; then
16083         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16084         hardcode_shlibpath_var_GCJ=no
16085         runpath_var=LD_RUN_PATH
16086         hardcode_runpath_var=yes
16087         ld_shlibs_GCJ=yes
16088       fi
16089       ;;
16090
16091     sysv4.2uw2*)
16092       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16093       hardcode_direct_GCJ=yes
16094       hardcode_minus_L_GCJ=no
16095       hardcode_shlibpath_var_GCJ=no
16096       hardcode_runpath_var=yes
16097       runpath_var=LD_RUN_PATH
16098       ;;
16099
16100    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16101       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16102       if test "$GCC" = yes; then
16103         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16104       else
16105         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16106       fi
16107       runpath_var='LD_RUN_PATH'
16108       hardcode_shlibpath_var_GCJ=no
16109       ;;
16110
16111     sysv5*)
16112       no_undefined_flag_GCJ=' -z text'
16113       # $CC -shared without GNU ld will not create a library from C++
16114       # object files and a static libstdc++, better avoid it by now
16115       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16116       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16117                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16118       hardcode_libdir_flag_spec_GCJ=
16119       hardcode_shlibpath_var_GCJ=no
16120       runpath_var='LD_RUN_PATH'
16121       ;;
16122
16123     uts4*)
16124       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16125       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16126       hardcode_shlibpath_var_GCJ=no
16127       ;;
16128
16129     *)
16130       ld_shlibs_GCJ=no
16131       ;;
16132     esac
16133   fi
16134
16135 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16136 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16137 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16138
16139 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16140 if test "$GCC" = yes; then
16141   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16142 fi
16143
16144 #
16145 # Do we need to explicitly link libc?
16146 #
16147 case "x$archive_cmds_need_lc_GCJ" in
16148 x|xyes)
16149   # Assume -lc should be added
16150   archive_cmds_need_lc_GCJ=yes
16151
16152   if test "$enable_shared" = yes && test "$GCC" = yes; then
16153     case $archive_cmds_GCJ in
16154     *'~'*)
16155       # FIXME: we may have to deal with multi-command sequences.
16156       ;;
16157     '$CC '*)
16158       # Test whether the compiler implicitly links with -lc since on some
16159       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16160       # to ld, don't add -lc before -lgcc.
16161       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16162 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16163       $rm conftest*
16164       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16165
16166       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16167   (eval $ac_compile) 2>&5
16168   ac_status=$?
16169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170   (exit $ac_status); } 2>conftest.err; then
16171         soname=conftest
16172         lib=conftest
16173         libobjs=conftest.$ac_objext
16174         deplibs=
16175         wl=$lt_prog_compiler_wl_GCJ
16176         compiler_flags=-v
16177         linker_flags=-v
16178         verstring=
16179         output_objdir=.
16180         libname=conftest
16181         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16182         allow_undefined_flag_GCJ=
16183         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16184   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16185   ac_status=$?
16186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187   (exit $ac_status); }
16188         then
16189           archive_cmds_need_lc_GCJ=no
16190         else
16191           archive_cmds_need_lc_GCJ=yes
16192         fi
16193         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16194       else
16195         cat conftest.err 1>&5
16196       fi
16197       $rm conftest*
16198       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16199 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16200       ;;
16201     esac
16202   fi
16203   ;;
16204 esac
16205
16206 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16207 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16208 hardcode_action_GCJ=
16209 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16210    test -n "$runpath_var GCJ" || \
16211    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16212
16213   # We can hardcode non-existant directories.
16214   if test "$hardcode_direct_GCJ" != no &&
16215      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16216      # have to relink, otherwise we might link with an installed library
16217      # when we should be linking with a yet-to-be-installed one
16218      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16219      test "$hardcode_minus_L_GCJ" != no; then
16220     # Linking always hardcodes the temporary library directory.
16221     hardcode_action_GCJ=relink
16222   else
16223     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16224     hardcode_action_GCJ=immediate
16225   fi
16226 else
16227   # We cannot hardcode anything, or else we can only hardcode existing
16228   # directories.
16229   hardcode_action_GCJ=unsupported
16230 fi
16231 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16232 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16233
16234 if test "$hardcode_action_GCJ" = relink; then
16235   # Fast installation is not supported
16236   enable_fast_install=no
16237 elif test "$shlibpath_overrides_runpath" = yes ||
16238      test "$enable_shared" = no; then
16239   # Fast installation is not necessary
16240   enable_fast_install=needless
16241 fi
16242
16243 striplib=
16244 old_striplib=
16245 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16246 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16247 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16248   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16249   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16250   echo "$as_me:$LINENO: result: yes" >&5
16251 echo "${ECHO_T}yes" >&6
16252 else
16253 # FIXME - insert some real tests, host_os isn't really good enough
16254   case $host_os in
16255    darwin*)
16256        if test -n "$STRIP" ; then
16257          striplib="$STRIP -x"
16258          echo "$as_me:$LINENO: result: yes" >&5
16259 echo "${ECHO_T}yes" >&6
16260        else
16261   echo "$as_me:$LINENO: result: no" >&5
16262 echo "${ECHO_T}no" >&6
16263 fi
16264        ;;
16265    *)
16266   echo "$as_me:$LINENO: result: no" >&5
16267 echo "${ECHO_T}no" >&6
16268     ;;
16269   esac
16270 fi
16271
16272 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16273 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16274 library_names_spec=
16275 libname_spec='lib$name'
16276 soname_spec=
16277 shrext=".so"
16278 postinstall_cmds=
16279 postuninstall_cmds=
16280 finish_cmds=
16281 finish_eval=
16282 shlibpath_var=
16283 shlibpath_overrides_runpath=unknown
16284 version_type=none
16285 dynamic_linker="$host_os ld.so"
16286 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16287 if test "$GCC" = yes; then
16288   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16289   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16290     # if the path contains ";" then we assume it to be the separator
16291     # otherwise default to the standard path separator (i.e. ":") - it is
16292     # assumed that no part of a normal pathname contains ";" but that should
16293     # okay in the real world where ";" in dirpaths is itself problematic.
16294     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16295   else
16296     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16297   fi
16298 else
16299   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16300 fi
16301 need_lib_prefix=unknown
16302 hardcode_into_libs=no
16303
16304 # when you set need_version to no, make sure it does not cause -set_version
16305 # flags to be left without arguments
16306 need_version=unknown
16307
16308 case $host_os in
16309 aix3*)
16310   version_type=linux
16311   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16312   shlibpath_var=LIBPATH
16313
16314   # AIX 3 has no versioning support, so we append a major version to the name.
16315   soname_spec='${libname}${release}${shared_ext}$major'
16316   ;;
16317
16318 aix4* | aix5*)
16319   version_type=linux
16320   need_lib_prefix=no
16321   need_version=no
16322   hardcode_into_libs=yes
16323   if test "$host_cpu" = ia64; then
16324     # AIX 5 supports IA64
16325     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16326     shlibpath_var=LD_LIBRARY_PATH
16327   else
16328     # With GCC up to 2.95.x, collect2 would create an import file
16329     # for dependence libraries.  The import file would start with
16330     # the line `#! .'.  This would cause the generated library to
16331     # depend on `.', always an invalid library.  This was fixed in
16332     # development snapshots of GCC prior to 3.0.
16333     case $host_os in
16334       aix4 | aix4.[01] | aix4.[01].*)
16335       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16336            echo ' yes '
16337            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16338         :
16339       else
16340         can_build_shared=no
16341       fi
16342       ;;
16343     esac
16344     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16345     # soname into executable. Probably we can add versioning support to
16346     # collect2, so additional links can be useful in future.
16347     if test "$aix_use_runtimelinking" = yes; then
16348       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16349       # instead of lib<name>.a to let people know that these are not
16350       # typical AIX shared libraries.
16351       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16352     else
16353       # We preserve .a as extension for shared libraries through AIX4.2
16354       # and later when we are not doing run time linking.
16355       library_names_spec='${libname}${release}.a $libname.a'
16356       soname_spec='${libname}${release}${shared_ext}$major'
16357     fi
16358     shlibpath_var=LIBPATH
16359   fi
16360   ;;
16361
16362 amigaos*)
16363   library_names_spec='$libname.ixlibrary $libname.a'
16364   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16365   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'
16366   ;;
16367
16368 beos*)
16369   library_names_spec='${libname}${shared_ext}'
16370   dynamic_linker="$host_os ld.so"
16371   shlibpath_var=LIBRARY_PATH
16372   ;;
16373
16374 bsdi4*)
16375   version_type=linux
16376   need_version=no
16377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16378   soname_spec='${libname}${release}${shared_ext}$major'
16379   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16380   shlibpath_var=LD_LIBRARY_PATH
16381   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16382   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16383   # the default ld.so.conf also contains /usr/contrib/lib and
16384   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16385   # libtool to hard-code these into programs
16386   ;;
16387
16388 cygwin* | mingw* | pw32*)
16389   version_type=windows
16390   shrext=".dll"
16391   need_version=no
16392   need_lib_prefix=no
16393
16394   case $GCC,$host_os in
16395   yes,cygwin* | yes,mingw* | yes,pw32*)
16396     library_names_spec='$libname.dll.a'
16397     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16398     postinstall_cmds='base_file=`basename \${file}`~
16399       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16400       dldir=$destdir/`dirname \$dlpath`~
16401       test -d \$dldir || mkdir -p \$dldir~
16402       $install_prog $dir/$dlname \$dldir/$dlname'
16403     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16404       dlpath=$dir/\$dldll~
16405        $rm \$dlpath'
16406     shlibpath_overrides_runpath=yes
16407
16408     case $host_os in
16409     cygwin*)
16410       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16411       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16412       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16413       ;;
16414     mingw*)
16415       # MinGW DLLs use traditional 'lib' prefix
16416       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16417       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16418       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16419         # It is most probably a Windows format PATH printed by
16420         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16421         # path with ; separators, and with drive letters. We can handle the
16422         # drive letters (cygwin fileutils understands them), so leave them,
16423         # especially as we might pass files found there to a mingw objdump,
16424         # which wouldn't understand a cygwinified path. Ahh.
16425         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16426       else
16427         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16428       fi
16429       ;;
16430     pw32*)
16431       # pw32 DLLs use 'pw' prefix rather than 'lib'
16432       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16433       ;;
16434     esac
16435     ;;
16436
16437   *)
16438     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16439     ;;
16440   esac
16441   dynamic_linker='Win32 ld.exe'
16442   # FIXME: first we should search . and the directory the executable is in
16443   shlibpath_var=PATH
16444   ;;
16445
16446 darwin* | rhapsody*)
16447   dynamic_linker="$host_os dyld"
16448   version_type=darwin
16449   need_lib_prefix=no
16450   need_version=no
16451   # FIXME: Relying on posixy $() will cause problems for
16452   #        cross-compilation, but unfortunately the echo tests do not
16453   #        yet detect zsh echo's removal of \ escapes.
16454   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16455   soname_spec='${libname}${release}${major}$shared_ext'
16456   shlibpath_overrides_runpath=yes
16457   shlibpath_var=DYLD_LIBRARY_PATH
16458   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16459   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16460   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16461   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"`
16462   fi
16463   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16464   ;;
16465
16466 dgux*)
16467   version_type=linux
16468   need_lib_prefix=no
16469   need_version=no
16470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16471   soname_spec='${libname}${release}${shared_ext}$major'
16472   shlibpath_var=LD_LIBRARY_PATH
16473   ;;
16474
16475 freebsd1*)
16476   dynamic_linker=no
16477   ;;
16478
16479 freebsd*)
16480   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16481   version_type=freebsd-$objformat
16482   case $version_type in
16483     freebsd-elf*)
16484       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16485       need_version=no
16486       need_lib_prefix=no
16487       ;;
16488     freebsd-*)
16489       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16490       need_version=yes
16491       ;;
16492   esac
16493   shlibpath_var=LD_LIBRARY_PATH
16494   case $host_os in
16495   freebsd2*)
16496     shlibpath_overrides_runpath=yes
16497     ;;
16498   freebsd3.01* | freebsdelf3.01*)
16499     shlibpath_overrides_runpath=yes
16500     hardcode_into_libs=yes
16501     ;;
16502   *) # from 3.2 on
16503     shlibpath_overrides_runpath=no
16504     hardcode_into_libs=yes
16505     ;;
16506   esac
16507   ;;
16508
16509 gnu*)
16510   version_type=linux
16511   need_lib_prefix=no
16512   need_version=no
16513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16514   soname_spec='${libname}${release}${shared_ext}$major'
16515   shlibpath_var=LD_LIBRARY_PATH
16516   hardcode_into_libs=yes
16517   ;;
16518
16519 hpux9* | hpux10* | hpux11*)
16520   # Give a soname corresponding to the major version so that dld.sl refuses to
16521   # link against other versions.
16522   version_type=sunos
16523   need_lib_prefix=no
16524   need_version=no
16525   case "$host_cpu" in
16526   ia64*)
16527     shrext='.so'
16528     hardcode_into_libs=yes
16529     dynamic_linker="$host_os dld.so"
16530     shlibpath_var=LD_LIBRARY_PATH
16531     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16532     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16533     soname_spec='${libname}${release}${shared_ext}$major'
16534     if test "X$HPUX_IA64_MODE" = X32; then
16535       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16536     else
16537       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16538     fi
16539     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16540     ;;
16541    hppa*64*)
16542      shrext='.sl'
16543      hardcode_into_libs=yes
16544      dynamic_linker="$host_os dld.sl"
16545      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16546      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16547      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16548      soname_spec='${libname}${release}${shared_ext}$major'
16549      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16550      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16551      ;;
16552    *)
16553     shrext='.sl'
16554     dynamic_linker="$host_os dld.sl"
16555     shlibpath_var=SHLIB_PATH
16556     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16557     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16558     soname_spec='${libname}${release}${shared_ext}$major'
16559     ;;
16560   esac
16561   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16562   postinstall_cmds='chmod 555 $lib'
16563   ;;
16564
16565 irix5* | irix6* | nonstopux*)
16566   case $host_os in
16567     nonstopux*) version_type=nonstopux ;;
16568     *)
16569         if test "$lt_cv_prog_gnu_ld" = yes; then
16570                 version_type=linux
16571         else
16572                 version_type=irix
16573         fi ;;
16574   esac
16575   need_lib_prefix=no
16576   need_version=no
16577   soname_spec='${libname}${release}${shared_ext}$major'
16578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16579   case $host_os in
16580   irix5* | nonstopux*)
16581     libsuff= shlibsuff=
16582     ;;
16583   *)
16584     case $LD in # libtool.m4 will add one of these switches to LD
16585     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16586       libsuff= shlibsuff= libmagic=32-bit;;
16587     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16588       libsuff=32 shlibsuff=N32 libmagic=N32;;
16589     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16590       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16591     *) libsuff= shlibsuff= libmagic=never-match;;
16592     esac
16593     ;;
16594   esac
16595   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16596   shlibpath_overrides_runpath=no
16597   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16598   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16599   hardcode_into_libs=yes
16600   ;;
16601
16602 # No shared lib support for Linux oldld, aout, or coff.
16603 linux*oldld* | linux*aout* | linux*coff*)
16604   dynamic_linker=no
16605   ;;
16606
16607 # This must be Linux ELF.
16608 linux*)
16609   version_type=linux
16610   need_lib_prefix=no
16611   need_version=no
16612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16613   soname_spec='${libname}${release}${shared_ext}$major'
16614   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16615   shlibpath_var=LD_LIBRARY_PATH
16616   shlibpath_overrides_runpath=no
16617   # This implies no fast_install, which is unacceptable.
16618   # Some rework will be needed to allow for fast_install
16619   # before this can be enabled.
16620   hardcode_into_libs=yes
16621
16622   # We used to test for /lib/ld.so.1 and disable shared libraries on
16623   # powerpc, because MkLinux only supported shared libraries with the
16624   # GNU dynamic linker.  Since this was broken with cross compilers,
16625   # most powerpc-linux boxes support dynamic linking these days and
16626   # people can always --disable-shared, the test was removed, and we
16627   # assume the GNU/Linux dynamic linker is in use.
16628   dynamic_linker='GNU/Linux ld.so'
16629   ;;
16630
16631 netbsd*)
16632   version_type=sunos
16633   need_lib_prefix=no
16634   need_version=no
16635   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16636     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16637     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16638     dynamic_linker='NetBSD (a.out) ld.so'
16639   else
16640     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16641     soname_spec='${libname}${release}${shared_ext}$major'
16642     dynamic_linker='NetBSD ld.elf_so'
16643   fi
16644   shlibpath_var=LD_LIBRARY_PATH
16645   shlibpath_overrides_runpath=yes
16646   hardcode_into_libs=yes
16647   ;;
16648
16649 newsos6)
16650   version_type=linux
16651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16652   shlibpath_var=LD_LIBRARY_PATH
16653   shlibpath_overrides_runpath=yes
16654   ;;
16655
16656 nto-qnx)
16657   version_type=linux
16658   need_lib_prefix=no
16659   need_version=no
16660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16661   soname_spec='${libname}${release}${shared_ext}$major'
16662   shlibpath_var=LD_LIBRARY_PATH
16663   shlibpath_overrides_runpath=yes
16664   ;;
16665
16666 openbsd*)
16667   version_type=sunos
16668   need_lib_prefix=no
16669   need_version=no
16670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16671   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16672   shlibpath_var=LD_LIBRARY_PATH
16673   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16674     case $host_os in
16675       openbsd2.[89] | openbsd2.[89].*)
16676         shlibpath_overrides_runpath=no
16677         ;;
16678       *)
16679         shlibpath_overrides_runpath=yes
16680         ;;
16681       esac
16682   else
16683     shlibpath_overrides_runpath=yes
16684   fi
16685   ;;
16686
16687 os2*)
16688   libname_spec='$name'
16689   shrext=".dll"
16690   need_lib_prefix=no
16691   library_names_spec='$libname${shared_ext} $libname.a'
16692   dynamic_linker='OS/2 ld.exe'
16693   shlibpath_var=LIBPATH
16694   ;;
16695
16696 osf3* | osf4* | osf5*)
16697   version_type=osf
16698   need_lib_prefix=no
16699   need_version=no
16700   soname_spec='${libname}${release}${shared_ext}$major'
16701   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16702   shlibpath_var=LD_LIBRARY_PATH
16703   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16704   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16705   ;;
16706
16707 sco3.2v5*)
16708   version_type=osf
16709   soname_spec='${libname}${release}${shared_ext}$major'
16710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16711   shlibpath_var=LD_LIBRARY_PATH
16712   ;;
16713
16714 solaris*)
16715   version_type=linux
16716   need_lib_prefix=no
16717   need_version=no
16718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16719   soname_spec='${libname}${release}${shared_ext}$major'
16720   shlibpath_var=LD_LIBRARY_PATH
16721   shlibpath_overrides_runpath=yes
16722   hardcode_into_libs=yes
16723   # ldd complains unless libraries are executable
16724   postinstall_cmds='chmod +x $lib'
16725   ;;
16726
16727 sunos4*)
16728   version_type=sunos
16729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16730   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16731   shlibpath_var=LD_LIBRARY_PATH
16732   shlibpath_overrides_runpath=yes
16733   if test "$with_gnu_ld" = yes; then
16734     need_lib_prefix=no
16735   fi
16736   need_version=yes
16737   ;;
16738
16739 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16740   version_type=linux
16741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16742   soname_spec='${libname}${release}${shared_ext}$major'
16743   shlibpath_var=LD_LIBRARY_PATH
16744   case $host_vendor in
16745     sni)
16746       shlibpath_overrides_runpath=no
16747       need_lib_prefix=no
16748       export_dynamic_flag_spec='${wl}-Blargedynsym'
16749       runpath_var=LD_RUN_PATH
16750       ;;
16751     siemens)
16752       need_lib_prefix=no
16753       ;;
16754     motorola)
16755       need_lib_prefix=no
16756       need_version=no
16757       shlibpath_overrides_runpath=no
16758       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16759       ;;
16760   esac
16761   ;;
16762
16763 sysv4*MP*)
16764   if test -d /usr/nec ;then
16765     version_type=linux
16766     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16767     soname_spec='$libname${shared_ext}.$major'
16768     shlibpath_var=LD_LIBRARY_PATH
16769   fi
16770   ;;
16771
16772 uts4*)
16773   version_type=linux
16774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16775   soname_spec='${libname}${release}${shared_ext}$major'
16776   shlibpath_var=LD_LIBRARY_PATH
16777   ;;
16778
16779 *)
16780   dynamic_linker=no
16781   ;;
16782 esac
16783 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16784 echo "${ECHO_T}$dynamic_linker" >&6
16785 test "$dynamic_linker" = no && can_build_shared=no
16786
16787 if test "x$enable_dlopen" != xyes; then
16788   enable_dlopen=unknown
16789   enable_dlopen_self=unknown
16790   enable_dlopen_self_static=unknown
16791 else
16792   lt_cv_dlopen=no
16793   lt_cv_dlopen_libs=
16794
16795   case $host_os in
16796   beos*)
16797     lt_cv_dlopen="load_add_on"
16798     lt_cv_dlopen_libs=
16799     lt_cv_dlopen_self=yes
16800     ;;
16801
16802   mingw* | pw32*)
16803     lt_cv_dlopen="LoadLibrary"
16804     lt_cv_dlopen_libs=
16805    ;;
16806
16807   cygwin*)
16808     lt_cv_dlopen="dlopen"
16809     lt_cv_dlopen_libs=
16810    ;;
16811
16812   darwin*)
16813   # if libdl is installed we need to link against it
16814     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16815 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16816 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16817   echo $ECHO_N "(cached) $ECHO_C" >&6
16818 else
16819   ac_check_lib_save_LIBS=$LIBS
16820 LIBS="-ldl  $LIBS"
16821 cat >conftest.$ac_ext <<_ACEOF
16822 #line $LINENO "configure"
16823 /* confdefs.h.  */
16824 _ACEOF
16825 cat confdefs.h >>conftest.$ac_ext
16826 cat >>conftest.$ac_ext <<_ACEOF
16827 /* end confdefs.h.  */
16828
16829 /* Override any gcc2 internal prototype to avoid an error.  */
16830 #ifdef __cplusplus
16831 extern "C"
16832 #endif
16833 /* We use char because int might match the return type of a gcc2
16834    builtin and then its argument prototype would still apply.  */
16835 char dlopen ();
16836 int
16837 main ()
16838 {
16839 dlopen ();
16840   ;
16841   return 0;
16842 }
16843 _ACEOF
16844 rm -f conftest.$ac_objext conftest$ac_exeext
16845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16846   (eval $ac_link) 2>&5
16847   ac_status=$?
16848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849   (exit $ac_status); } &&
16850          { ac_try='test -s conftest$ac_exeext'
16851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16852   (eval $ac_try) 2>&5
16853   ac_status=$?
16854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855   (exit $ac_status); }; }; then
16856   ac_cv_lib_dl_dlopen=yes
16857 else
16858   echo "$as_me: failed program was:" >&5
16859 sed 's/^/| /' conftest.$ac_ext >&5
16860
16861 ac_cv_lib_dl_dlopen=no
16862 fi
16863 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16864 LIBS=$ac_check_lib_save_LIBS
16865 fi
16866 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16867 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16868 if test $ac_cv_lib_dl_dlopen = yes; then
16869   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16870 else
16871
16872     lt_cv_dlopen="dyld"
16873     lt_cv_dlopen_libs=
16874     lt_cv_dlopen_self=yes
16875
16876 fi
16877
16878    ;;
16879
16880   *)
16881     echo "$as_me:$LINENO: checking for shl_load" >&5
16882 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16883 if test "${ac_cv_func_shl_load+set}" = set; then
16884   echo $ECHO_N "(cached) $ECHO_C" >&6
16885 else
16886   cat >conftest.$ac_ext <<_ACEOF
16887 #line $LINENO "configure"
16888 /* confdefs.h.  */
16889 _ACEOF
16890 cat confdefs.h >>conftest.$ac_ext
16891 cat >>conftest.$ac_ext <<_ACEOF
16892 /* end confdefs.h.  */
16893 /* System header to define __stub macros and hopefully few prototypes,
16894     which can conflict with char shl_load (); below.
16895     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16896     <limits.h> exists even on freestanding compilers.  */
16897 #ifdef __STDC__
16898 # include <limits.h>
16899 #else
16900 # include <assert.h>
16901 #endif
16902 /* Override any gcc2 internal prototype to avoid an error.  */
16903 #ifdef __cplusplus
16904 extern "C"
16905 {
16906 #endif
16907 /* We use char because int might match the return type of a gcc2
16908    builtin and then its argument prototype would still apply.  */
16909 char shl_load ();
16910 /* The GNU C library defines this for functions which it implements
16911     to always fail with ENOSYS.  Some functions are actually named
16912     something starting with __ and the normal name is an alias.  */
16913 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16914 choke me
16915 #else
16916 char (*f) () = shl_load;
16917 #endif
16918 #ifdef __cplusplus
16919 }
16920 #endif
16921
16922 int
16923 main ()
16924 {
16925 return f != shl_load;
16926   ;
16927   return 0;
16928 }
16929 _ACEOF
16930 rm -f conftest.$ac_objext conftest$ac_exeext
16931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16932   (eval $ac_link) 2>&5
16933   ac_status=$?
16934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935   (exit $ac_status); } &&
16936          { ac_try='test -s conftest$ac_exeext'
16937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16938   (eval $ac_try) 2>&5
16939   ac_status=$?
16940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941   (exit $ac_status); }; }; then
16942   ac_cv_func_shl_load=yes
16943 else
16944   echo "$as_me: failed program was:" >&5
16945 sed 's/^/| /' conftest.$ac_ext >&5
16946
16947 ac_cv_func_shl_load=no
16948 fi
16949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16950 fi
16951 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16952 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16953 if test $ac_cv_func_shl_load = yes; then
16954   lt_cv_dlopen="shl_load"
16955 else
16956   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16957 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16958 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16959   echo $ECHO_N "(cached) $ECHO_C" >&6
16960 else
16961   ac_check_lib_save_LIBS=$LIBS
16962 LIBS="-ldld  $LIBS"
16963 cat >conftest.$ac_ext <<_ACEOF
16964 #line $LINENO "configure"
16965 /* confdefs.h.  */
16966 _ACEOF
16967 cat confdefs.h >>conftest.$ac_ext
16968 cat >>conftest.$ac_ext <<_ACEOF
16969 /* end confdefs.h.  */
16970
16971 /* Override any gcc2 internal prototype to avoid an error.  */
16972 #ifdef __cplusplus
16973 extern "C"
16974 #endif
16975 /* We use char because int might match the return type of a gcc2
16976    builtin and then its argument prototype would still apply.  */
16977 char shl_load ();
16978 int
16979 main ()
16980 {
16981 shl_load ();
16982   ;
16983   return 0;
16984 }
16985 _ACEOF
16986 rm -f conftest.$ac_objext conftest$ac_exeext
16987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16988   (eval $ac_link) 2>&5
16989   ac_status=$?
16990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991   (exit $ac_status); } &&
16992          { ac_try='test -s conftest$ac_exeext'
16993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16994   (eval $ac_try) 2>&5
16995   ac_status=$?
16996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997   (exit $ac_status); }; }; then
16998   ac_cv_lib_dld_shl_load=yes
16999 else
17000   echo "$as_me: failed program was:" >&5
17001 sed 's/^/| /' conftest.$ac_ext >&5
17002
17003 ac_cv_lib_dld_shl_load=no
17004 fi
17005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17006 LIBS=$ac_check_lib_save_LIBS
17007 fi
17008 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17009 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17010 if test $ac_cv_lib_dld_shl_load = yes; then
17011   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17012 else
17013   echo "$as_me:$LINENO: checking for dlopen" >&5
17014 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17015 if test "${ac_cv_func_dlopen+set}" = set; then
17016   echo $ECHO_N "(cached) $ECHO_C" >&6
17017 else
17018   cat >conftest.$ac_ext <<_ACEOF
17019 #line $LINENO "configure"
17020 /* confdefs.h.  */
17021 _ACEOF
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h.  */
17025 /* System header to define __stub macros and hopefully few prototypes,
17026     which can conflict with char dlopen (); below.
17027     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17028     <limits.h> exists even on freestanding compilers.  */
17029 #ifdef __STDC__
17030 # include <limits.h>
17031 #else
17032 # include <assert.h>
17033 #endif
17034 /* Override any gcc2 internal prototype to avoid an error.  */
17035 #ifdef __cplusplus
17036 extern "C"
17037 {
17038 #endif
17039 /* We use char because int might match the return type of a gcc2
17040    builtin and then its argument prototype would still apply.  */
17041 char dlopen ();
17042 /* The GNU C library defines this for functions which it implements
17043     to always fail with ENOSYS.  Some functions are actually named
17044     something starting with __ and the normal name is an alias.  */
17045 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17046 choke me
17047 #else
17048 char (*f) () = dlopen;
17049 #endif
17050 #ifdef __cplusplus
17051 }
17052 #endif
17053
17054 int
17055 main ()
17056 {
17057 return f != dlopen;
17058   ;
17059   return 0;
17060 }
17061 _ACEOF
17062 rm -f conftest.$ac_objext conftest$ac_exeext
17063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17064   (eval $ac_link) 2>&5
17065   ac_status=$?
17066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067   (exit $ac_status); } &&
17068          { ac_try='test -s conftest$ac_exeext'
17069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17070   (eval $ac_try) 2>&5
17071   ac_status=$?
17072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073   (exit $ac_status); }; }; then
17074   ac_cv_func_dlopen=yes
17075 else
17076   echo "$as_me: failed program was:" >&5
17077 sed 's/^/| /' conftest.$ac_ext >&5
17078
17079 ac_cv_func_dlopen=no
17080 fi
17081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17082 fi
17083 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17084 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17085 if test $ac_cv_func_dlopen = yes; then
17086   lt_cv_dlopen="dlopen"
17087 else
17088   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17089 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17090 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17091   echo $ECHO_N "(cached) $ECHO_C" >&6
17092 else
17093   ac_check_lib_save_LIBS=$LIBS
17094 LIBS="-ldl  $LIBS"
17095 cat >conftest.$ac_ext <<_ACEOF
17096 #line $LINENO "configure"
17097 /* confdefs.h.  */
17098 _ACEOF
17099 cat confdefs.h >>conftest.$ac_ext
17100 cat >>conftest.$ac_ext <<_ACEOF
17101 /* end confdefs.h.  */
17102
17103 /* Override any gcc2 internal prototype to avoid an error.  */
17104 #ifdef __cplusplus
17105 extern "C"
17106 #endif
17107 /* We use char because int might match the return type of a gcc2
17108    builtin and then its argument prototype would still apply.  */
17109 char dlopen ();
17110 int
17111 main ()
17112 {
17113 dlopen ();
17114   ;
17115   return 0;
17116 }
17117 _ACEOF
17118 rm -f conftest.$ac_objext conftest$ac_exeext
17119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17120   (eval $ac_link) 2>&5
17121   ac_status=$?
17122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123   (exit $ac_status); } &&
17124          { ac_try='test -s conftest$ac_exeext'
17125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17126   (eval $ac_try) 2>&5
17127   ac_status=$?
17128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129   (exit $ac_status); }; }; then
17130   ac_cv_lib_dl_dlopen=yes
17131 else
17132   echo "$as_me: failed program was:" >&5
17133 sed 's/^/| /' conftest.$ac_ext >&5
17134
17135 ac_cv_lib_dl_dlopen=no
17136 fi
17137 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17138 LIBS=$ac_check_lib_save_LIBS
17139 fi
17140 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17141 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17142 if test $ac_cv_lib_dl_dlopen = yes; then
17143   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17144 else
17145   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17146 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17147 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17148   echo $ECHO_N "(cached) $ECHO_C" >&6
17149 else
17150   ac_check_lib_save_LIBS=$LIBS
17151 LIBS="-lsvld  $LIBS"
17152 cat >conftest.$ac_ext <<_ACEOF
17153 #line $LINENO "configure"
17154 /* confdefs.h.  */
17155 _ACEOF
17156 cat confdefs.h >>conftest.$ac_ext
17157 cat >>conftest.$ac_ext <<_ACEOF
17158 /* end confdefs.h.  */
17159
17160 /* Override any gcc2 internal prototype to avoid an error.  */
17161 #ifdef __cplusplus
17162 extern "C"
17163 #endif
17164 /* We use char because int might match the return type of a gcc2
17165    builtin and then its argument prototype would still apply.  */
17166 char dlopen ();
17167 int
17168 main ()
17169 {
17170 dlopen ();
17171   ;
17172   return 0;
17173 }
17174 _ACEOF
17175 rm -f conftest.$ac_objext conftest$ac_exeext
17176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17177   (eval $ac_link) 2>&5
17178   ac_status=$?
17179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180   (exit $ac_status); } &&
17181          { ac_try='test -s conftest$ac_exeext'
17182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17183   (eval $ac_try) 2>&5
17184   ac_status=$?
17185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186   (exit $ac_status); }; }; then
17187   ac_cv_lib_svld_dlopen=yes
17188 else
17189   echo "$as_me: failed program was:" >&5
17190 sed 's/^/| /' conftest.$ac_ext >&5
17191
17192 ac_cv_lib_svld_dlopen=no
17193 fi
17194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17195 LIBS=$ac_check_lib_save_LIBS
17196 fi
17197 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17198 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17199 if test $ac_cv_lib_svld_dlopen = yes; then
17200   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17201 else
17202   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17203 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17204 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17205   echo $ECHO_N "(cached) $ECHO_C" >&6
17206 else
17207   ac_check_lib_save_LIBS=$LIBS
17208 LIBS="-ldld  $LIBS"
17209 cat >conftest.$ac_ext <<_ACEOF
17210 #line $LINENO "configure"
17211 /* confdefs.h.  */
17212 _ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h.  */
17216
17217 /* Override any gcc2 internal prototype to avoid an error.  */
17218 #ifdef __cplusplus
17219 extern "C"
17220 #endif
17221 /* We use char because int might match the return type of a gcc2
17222    builtin and then its argument prototype would still apply.  */
17223 char dld_link ();
17224 int
17225 main ()
17226 {
17227 dld_link ();
17228   ;
17229   return 0;
17230 }
17231 _ACEOF
17232 rm -f conftest.$ac_objext conftest$ac_exeext
17233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17234   (eval $ac_link) 2>&5
17235   ac_status=$?
17236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237   (exit $ac_status); } &&
17238          { ac_try='test -s conftest$ac_exeext'
17239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17240   (eval $ac_try) 2>&5
17241   ac_status=$?
17242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243   (exit $ac_status); }; }; then
17244   ac_cv_lib_dld_dld_link=yes
17245 else
17246   echo "$as_me: failed program was:" >&5
17247 sed 's/^/| /' conftest.$ac_ext >&5
17248
17249 ac_cv_lib_dld_dld_link=no
17250 fi
17251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17252 LIBS=$ac_check_lib_save_LIBS
17253 fi
17254 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17255 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17256 if test $ac_cv_lib_dld_dld_link = yes; then
17257   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17258 fi
17259
17260
17261 fi
17262
17263
17264 fi
17265
17266
17267 fi
17268
17269
17270 fi
17271
17272
17273 fi
17274
17275     ;;
17276   esac
17277
17278   if test "x$lt_cv_dlopen" != xno; then
17279     enable_dlopen=yes
17280   else
17281     enable_dlopen=no
17282   fi
17283
17284   case $lt_cv_dlopen in
17285   dlopen)
17286     save_CPPFLAGS="$CPPFLAGS"
17287     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17288
17289     save_LDFLAGS="$LDFLAGS"
17290     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17291
17292     save_LIBS="$LIBS"
17293     LIBS="$lt_cv_dlopen_libs $LIBS"
17294
17295     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17296 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17297 if test "${lt_cv_dlopen_self+set}" = set; then
17298   echo $ECHO_N "(cached) $ECHO_C" >&6
17299 else
17300           if test "$cross_compiling" = yes; then :
17301   lt_cv_dlopen_self=cross
17302 else
17303   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17304   lt_status=$lt_dlunknown
17305   cat > conftest.$ac_ext <<EOF
17306 #line 17306 "configure"
17307 #include "confdefs.h"
17308
17309 #if HAVE_DLFCN_H
17310 #include <dlfcn.h>
17311 #endif
17312
17313 #include <stdio.h>
17314
17315 #ifdef RTLD_GLOBAL
17316 #  define LT_DLGLOBAL           RTLD_GLOBAL
17317 #else
17318 #  ifdef DL_GLOBAL
17319 #    define LT_DLGLOBAL         DL_GLOBAL
17320 #  else
17321 #    define LT_DLGLOBAL         0
17322 #  endif
17323 #endif
17324
17325 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17326    find out it does not work in some platform. */
17327 #ifndef LT_DLLAZY_OR_NOW
17328 #  ifdef RTLD_LAZY
17329 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17330 #  else
17331 #    ifdef DL_LAZY
17332 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17333 #    else
17334 #      ifdef RTLD_NOW
17335 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17336 #      else
17337 #        ifdef DL_NOW
17338 #          define LT_DLLAZY_OR_NOW      DL_NOW
17339 #        else
17340 #          define LT_DLLAZY_OR_NOW      0
17341 #        endif
17342 #      endif
17343 #    endif
17344 #  endif
17345 #endif
17346
17347 #ifdef __cplusplus
17348 extern "C" void exit (int);
17349 #endif
17350
17351 void fnord() { int i=42;}
17352 int main ()
17353 {
17354   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17355   int status = $lt_dlunknown;
17356
17357   if (self)
17358     {
17359       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17360       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17361       /* dlclose (self); */
17362     }
17363
17364     exit (status);
17365 }
17366 EOF
17367   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17368   (eval $ac_link) 2>&5
17369   ac_status=$?
17370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17372     (./conftest; exit; ) 2>/dev/null
17373     lt_status=$?
17374     case x$lt_status in
17375       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17376       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17377       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17378     esac
17379   else :
17380     # compilation failed
17381     lt_cv_dlopen_self=no
17382   fi
17383 fi
17384 rm -fr conftest*
17385
17386
17387 fi
17388 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17389 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17390
17391     if test "x$lt_cv_dlopen_self" = xyes; then
17392       LDFLAGS="$LDFLAGS $link_static_flag"
17393       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17394 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17395 if test "${lt_cv_dlopen_self_static+set}" = set; then
17396   echo $ECHO_N "(cached) $ECHO_C" >&6
17397 else
17398           if test "$cross_compiling" = yes; then :
17399   lt_cv_dlopen_self_static=cross
17400 else
17401   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17402   lt_status=$lt_dlunknown
17403   cat > conftest.$ac_ext <<EOF
17404 #line 17404 "configure"
17405 #include "confdefs.h"
17406
17407 #if HAVE_DLFCN_H
17408 #include <dlfcn.h>
17409 #endif
17410
17411 #include <stdio.h>
17412
17413 #ifdef RTLD_GLOBAL
17414 #  define LT_DLGLOBAL           RTLD_GLOBAL
17415 #else
17416 #  ifdef DL_GLOBAL
17417 #    define LT_DLGLOBAL         DL_GLOBAL
17418 #  else
17419 #    define LT_DLGLOBAL         0
17420 #  endif
17421 #endif
17422
17423 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17424    find out it does not work in some platform. */
17425 #ifndef LT_DLLAZY_OR_NOW
17426 #  ifdef RTLD_LAZY
17427 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17428 #  else
17429 #    ifdef DL_LAZY
17430 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17431 #    else
17432 #      ifdef RTLD_NOW
17433 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17434 #      else
17435 #        ifdef DL_NOW
17436 #          define LT_DLLAZY_OR_NOW      DL_NOW
17437 #        else
17438 #          define LT_DLLAZY_OR_NOW      0
17439 #        endif
17440 #      endif
17441 #    endif
17442 #  endif
17443 #endif
17444
17445 #ifdef __cplusplus
17446 extern "C" void exit (int);
17447 #endif
17448
17449 void fnord() { int i=42;}
17450 int main ()
17451 {
17452   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17453   int status = $lt_dlunknown;
17454
17455   if (self)
17456     {
17457       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17458       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17459       /* dlclose (self); */
17460     }
17461
17462     exit (status);
17463 }
17464 EOF
17465   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17466   (eval $ac_link) 2>&5
17467   ac_status=$?
17468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17470     (./conftest; exit; ) 2>/dev/null
17471     lt_status=$?
17472     case x$lt_status in
17473       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17474       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17475       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17476     esac
17477   else :
17478     # compilation failed
17479     lt_cv_dlopen_self_static=no
17480   fi
17481 fi
17482 rm -fr conftest*
17483
17484
17485 fi
17486 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17487 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17488     fi
17489
17490     CPPFLAGS="$save_CPPFLAGS"
17491     LDFLAGS="$save_LDFLAGS"
17492     LIBS="$save_LIBS"
17493     ;;
17494   esac
17495
17496   case $lt_cv_dlopen_self in
17497   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17498   *) enable_dlopen_self=unknown ;;
17499   esac
17500
17501   case $lt_cv_dlopen_self_static in
17502   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17503   *) enable_dlopen_self_static=unknown ;;
17504   esac
17505 fi
17506
17507
17508 # The else clause should only fire when bootstrapping the
17509 # libtool distribution, otherwise you forgot to ship ltmain.sh
17510 # with your package, and you will get complaints that there are
17511 # no rules to generate ltmain.sh.
17512 if test -f "$ltmain"; then
17513   # See if we are running on zsh, and set the options which allow our commands through
17514   # without removal of \ escapes.
17515   if test -n "${ZSH_VERSION+set}" ; then
17516     setopt NO_GLOB_SUBST
17517   fi
17518   # Now quote all the things that may contain metacharacters while being
17519   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17520   # variables and quote the copies for generation of the libtool script.
17521   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17522     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17523     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17524     deplibs_check_method reload_flag reload_cmds need_locks \
17525     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17526     lt_cv_sys_global_symbol_to_c_name_address \
17527     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17528     old_postinstall_cmds old_postuninstall_cmds \
17529     compiler_GCJ \
17530     CC_GCJ \
17531     LD_GCJ \
17532     lt_prog_compiler_wl_GCJ \
17533     lt_prog_compiler_pic_GCJ \
17534     lt_prog_compiler_static_GCJ \
17535     lt_prog_compiler_no_builtin_flag_GCJ \
17536     export_dynamic_flag_spec_GCJ \
17537     thread_safe_flag_spec_GCJ \
17538     whole_archive_flag_spec_GCJ \
17539     enable_shared_with_static_runtimes_GCJ \
17540     old_archive_cmds_GCJ \
17541     old_archive_from_new_cmds_GCJ \
17542     predep_objects_GCJ \
17543     postdep_objects_GCJ \
17544     predeps_GCJ \
17545     postdeps_GCJ \
17546     compiler_lib_search_path_GCJ \
17547     archive_cmds_GCJ \
17548     archive_expsym_cmds_GCJ \
17549     postinstall_cmds_GCJ \
17550     postuninstall_cmds_GCJ \
17551     old_archive_from_expsyms_cmds_GCJ \
17552     allow_undefined_flag_GCJ \
17553     no_undefined_flag_GCJ \
17554     export_symbols_cmds_GCJ \
17555     hardcode_libdir_flag_spec_GCJ \
17556     hardcode_libdir_flag_spec_ld_GCJ \
17557     hardcode_libdir_separator_GCJ \
17558     hardcode_automatic_GCJ \
17559     module_cmds_GCJ \
17560     module_expsym_cmds_GCJ \
17561     lt_cv_prog_compiler_c_o_GCJ \
17562     exclude_expsyms_GCJ \
17563     include_expsyms_GCJ; do
17564
17565     case $var in
17566     old_archive_cmds_GCJ | \
17567     old_archive_from_new_cmds_GCJ | \
17568     archive_cmds_GCJ | \
17569     archive_expsym_cmds_GCJ | \
17570     module_cmds_GCJ | \
17571     module_expsym_cmds_GCJ | \
17572     old_archive_from_expsyms_cmds_GCJ | \
17573     export_symbols_cmds_GCJ | \
17574     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17575     postinstall_cmds | postuninstall_cmds | \
17576     old_postinstall_cmds | old_postuninstall_cmds | \
17577     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17578       # Double-quote double-evaled strings.
17579       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17580       ;;
17581     *)
17582       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17583       ;;
17584     esac
17585   done
17586
17587   case $lt_echo in
17588   *'\$0 --fallback-echo"')
17589     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17590     ;;
17591   esac
17592
17593 cfgfile="$ofile"
17594
17595   cat <<__EOF__ >> "$cfgfile"
17596 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17597
17598 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17599
17600 # Shell to use when invoking shell scripts.
17601 SHELL=$lt_SHELL
17602
17603 # Whether or not to build shared libraries.
17604 build_libtool_libs=$enable_shared
17605
17606 # Whether or not to build static libraries.
17607 build_old_libs=$enable_static
17608
17609 # Whether or not to add -lc for building shared libraries.
17610 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17611
17612 # Whether or not to disallow shared libs when runtime libs are static
17613 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17614
17615 # Whether or not to optimize for fast installation.
17616 fast_install=$enable_fast_install
17617
17618 # The host system.
17619 host_alias=$host_alias
17620 host=$host
17621
17622 # An echo program that does not interpret backslashes.
17623 echo=$lt_echo
17624
17625 # The archiver.
17626 AR=$lt_AR
17627 AR_FLAGS=$lt_AR_FLAGS
17628
17629 # A C compiler.
17630 LTCC=$lt_LTCC
17631
17632 # A language-specific compiler.
17633 CC=$lt_compiler_GCJ
17634
17635 # Is the compiler the GNU C compiler?
17636 with_gcc=$GCC_GCJ
17637
17638 # An ERE matcher.
17639 EGREP=$lt_EGREP
17640
17641 # The linker used to build libraries.
17642 LD=$lt_LD_GCJ
17643
17644 # Whether we need hard or soft links.
17645 LN_S=$lt_LN_S
17646
17647 # A BSD-compatible nm program.
17648 NM=$lt_NM
17649
17650 # A symbol stripping program
17651 STRIP=$STRIP
17652
17653 # Used to examine libraries when file_magic_cmd begins "file"
17654 MAGIC_CMD=$MAGIC_CMD
17655
17656 # Used on cygwin: DLL creation program.
17657 DLLTOOL="$DLLTOOL"
17658
17659 # Used on cygwin: object dumper.
17660 OBJDUMP="$OBJDUMP"
17661
17662 # Used on cygwin: assembler.
17663 AS="$AS"
17664
17665 # The name of the directory that contains temporary libtool files.
17666 objdir=$objdir
17667
17668 # How to create reloadable object files.
17669 reload_flag=$lt_reload_flag
17670 reload_cmds=$lt_reload_cmds
17671
17672 # How to pass a linker flag through the compiler.
17673 wl=$lt_lt_prog_compiler_wl_GCJ
17674
17675 # Object file suffix (normally "o").
17676 objext="$ac_objext"
17677
17678 # Old archive suffix (normally "a").
17679 libext="$libext"
17680
17681 # Shared library suffix (normally ".so").
17682 shrext='$shrext'
17683
17684 # Executable file suffix (normally "").
17685 exeext="$exeext"
17686
17687 # Additional compiler flags for building library objects.
17688 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17689 pic_mode=$pic_mode
17690
17691 # What is the maximum length of a command?
17692 max_cmd_len=$lt_cv_sys_max_cmd_len
17693
17694 # Does compiler simultaneously support -c and -o options?
17695 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17696
17697 # Must we lock files when doing compilation ?
17698 need_locks=$lt_need_locks
17699
17700 # Do we need the lib prefix for modules?
17701 need_lib_prefix=$need_lib_prefix
17702
17703 # Do we need a version for libraries?
17704 need_version=$need_version
17705
17706 # Whether dlopen is supported.
17707 dlopen_support=$enable_dlopen
17708
17709 # Whether dlopen of programs is supported.
17710 dlopen_self=$enable_dlopen_self
17711
17712 # Whether dlopen of statically linked programs is supported.
17713 dlopen_self_static=$enable_dlopen_self_static
17714
17715 # Compiler flag to prevent dynamic linking.
17716 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17717
17718 # Compiler flag to turn off builtin functions.
17719 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17720
17721 # Compiler flag to allow reflexive dlopens.
17722 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17723
17724 # Compiler flag to generate shared objects directly from archives.
17725 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17726
17727 # Compiler flag to generate thread-safe objects.
17728 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17729
17730 # Library versioning type.
17731 version_type=$version_type
17732
17733 # Format of library name prefix.
17734 libname_spec=$lt_libname_spec
17735
17736 # List of archive names.  First name is the real one, the rest are links.
17737 # The last name is the one that the linker finds with -lNAME.
17738 library_names_spec=$lt_library_names_spec
17739
17740 # The coded name of the library, if different from the real name.
17741 soname_spec=$lt_soname_spec
17742
17743 # Commands used to build and install an old-style archive.
17744 RANLIB=$lt_RANLIB
17745 old_archive_cmds=$lt_old_archive_cmds_GCJ
17746 old_postinstall_cmds=$lt_old_postinstall_cmds
17747 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17748
17749 # Create an old-style archive from a shared archive.
17750 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17751
17752 # Create a temporary old-style archive to link instead of a shared archive.
17753 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17754
17755 # Commands used to build and install a shared archive.
17756 archive_cmds=$lt_archive_cmds_GCJ
17757 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17758 postinstall_cmds=$lt_postinstall_cmds
17759 postuninstall_cmds=$lt_postuninstall_cmds
17760
17761 # Commands used to build a loadable module (assumed same as above if empty)
17762 module_cmds=$lt_module_cmds_GCJ
17763 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17764
17765 # Commands to strip libraries.
17766 old_striplib=$lt_old_striplib
17767 striplib=$lt_striplib
17768
17769 # Dependencies to place before the objects being linked to create a
17770 # shared library.
17771 predep_objects=$lt_predep_objects_GCJ
17772
17773 # Dependencies to place after the objects being linked to create a
17774 # shared library.
17775 postdep_objects=$lt_postdep_objects_GCJ
17776
17777 # Dependencies to place before the objects being linked to create a
17778 # shared library.
17779 predeps=$lt_predeps_GCJ
17780
17781 # Dependencies to place after the objects being linked to create a
17782 # shared library.
17783 postdeps=$lt_postdeps_GCJ
17784
17785 # The library search path used internally by the compiler when linking
17786 # a shared library.
17787 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17788
17789 # Method to check whether dependent libraries are shared objects.
17790 deplibs_check_method=$lt_deplibs_check_method
17791
17792 # Command to use when deplibs_check_method == file_magic.
17793 file_magic_cmd=$lt_file_magic_cmd
17794
17795 # Flag that allows shared libraries with undefined symbols to be built.
17796 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17797
17798 # Flag that forces no undefined symbols.
17799 no_undefined_flag=$lt_no_undefined_flag_GCJ
17800
17801 # Commands used to finish a libtool library installation in a directory.
17802 finish_cmds=$lt_finish_cmds
17803
17804 # Same as above, but a single script fragment to be evaled but not shown.
17805 finish_eval=$lt_finish_eval
17806
17807 # Take the output of nm and produce a listing of raw symbols and C names.
17808 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17809
17810 # Transform the output of nm in a proper C declaration
17811 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17812
17813 # Transform the output of nm in a C name address pair
17814 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17815
17816 # This is the shared library runtime path variable.
17817 runpath_var=$runpath_var
17818
17819 # This is the shared library path variable.
17820 shlibpath_var=$shlibpath_var
17821
17822 # Is shlibpath searched before the hard-coded library search path?
17823 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17824
17825 # How to hardcode a shared library path into an executable.
17826 hardcode_action=$hardcode_action_GCJ
17827
17828 # Whether we should hardcode library paths into libraries.
17829 hardcode_into_libs=$hardcode_into_libs
17830
17831 # Flag to hardcode \$libdir into a binary during linking.
17832 # This must work even if \$libdir does not exist.
17833 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17834
17835 # If ld is used when linking, flag to hardcode \$libdir into
17836 # a binary during linking. This must work even if \$libdir does
17837 # not exist.
17838 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17839
17840 # Whether we need a single -rpath flag with a separated argument.
17841 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17842
17843 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17844 # resulting binary.
17845 hardcode_direct=$hardcode_direct_GCJ
17846
17847 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17848 # resulting binary.
17849 hardcode_minus_L=$hardcode_minus_L_GCJ
17850
17851 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17852 # the resulting binary.
17853 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17854
17855 # Set to yes if building a shared library automatically hardcodes DIR into the library
17856 # and all subsequent libraries and executables linked against it.
17857 hardcode_automatic=$hardcode_automatic_GCJ
17858
17859 # Variables whose values should be saved in libtool wrapper scripts and
17860 # restored at relink time.
17861 variables_saved_for_relink="$variables_saved_for_relink"
17862
17863 # Whether libtool must link a program against all its dependency libraries.
17864 link_all_deplibs=$link_all_deplibs_GCJ
17865
17866 # Compile-time system search path for libraries
17867 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17868
17869 # Run-time system search path for libraries
17870 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17871
17872 # Fix the shell variable \$srcfile for the compiler.
17873 fix_srcfile_path="$fix_srcfile_path_GCJ"
17874
17875 # Set to yes if exported symbols are required.
17876 always_export_symbols=$always_export_symbols_GCJ
17877
17878 # The commands to list exported symbols.
17879 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17880
17881 # The commands to extract the exported symbol list from a shared archive.
17882 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17883
17884 # Symbols that should not be listed in the preloaded symbols.
17885 exclude_expsyms=$lt_exclude_expsyms_GCJ
17886
17887 # Symbols that must always be exported.
17888 include_expsyms=$lt_include_expsyms_GCJ
17889
17890 # ### END LIBTOOL TAG CONFIG: $tagname
17891
17892 __EOF__
17893
17894
17895 else
17896   # If there is no Makefile yet, we rely on a make rule to execute
17897   # `config.status --recheck' to rerun these tests and create the
17898   # libtool script then.
17899   test -f Makefile && make "$ltmain"
17900 fi
17901
17902
17903 ac_ext=c
17904 ac_cpp='$CPP $CPPFLAGS'
17905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17908
17909 CC="$lt_save_CC"
17910
17911         else
17912           tagname=""
17913         fi
17914         ;;
17915
17916       RC)
17917
17918
17919
17920 # Source file extension for RC test sources.
17921 ac_ext=rc
17922
17923 # Object file extension for compiled RC test sources.
17924 objext=o
17925 objext_RC=$objext
17926
17927 # Code to be used in simple compile tests
17928 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17929
17930 # Code to be used in simple link tests
17931 lt_simple_link_test_code="$lt_simple_compile_test_code"
17932
17933 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17934
17935 # If no C compiler was specified, use CC.
17936 LTCC=${LTCC-"$CC"}
17937
17938 # Allow CC to be a program name with arguments.
17939 compiler=$CC
17940
17941
17942 # Allow CC to be a program name with arguments.
17943 lt_save_CC="$CC"
17944 CC=${RC-"windres"}
17945 compiler=$CC
17946 compiler_RC=$CC
17947 lt_cv_prog_compiler_c_o_RC=yes
17948
17949 # The else clause should only fire when bootstrapping the
17950 # libtool distribution, otherwise you forgot to ship ltmain.sh
17951 # with your package, and you will get complaints that there are
17952 # no rules to generate ltmain.sh.
17953 if test -f "$ltmain"; then
17954   # See if we are running on zsh, and set the options which allow our commands through
17955   # without removal of \ escapes.
17956   if test -n "${ZSH_VERSION+set}" ; then
17957     setopt NO_GLOB_SUBST
17958   fi
17959   # Now quote all the things that may contain metacharacters while being
17960   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17961   # variables and quote the copies for generation of the libtool script.
17962   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17963     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17964     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17965     deplibs_check_method reload_flag reload_cmds need_locks \
17966     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17967     lt_cv_sys_global_symbol_to_c_name_address \
17968     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17969     old_postinstall_cmds old_postuninstall_cmds \
17970     compiler_RC \
17971     CC_RC \
17972     LD_RC \
17973     lt_prog_compiler_wl_RC \
17974     lt_prog_compiler_pic_RC \
17975     lt_prog_compiler_static_RC \
17976     lt_prog_compiler_no_builtin_flag_RC \
17977     export_dynamic_flag_spec_RC \
17978     thread_safe_flag_spec_RC \
17979     whole_archive_flag_spec_RC \
17980     enable_shared_with_static_runtimes_RC \
17981     old_archive_cmds_RC \
17982     old_archive_from_new_cmds_RC \
17983     predep_objects_RC \
17984     postdep_objects_RC \
17985     predeps_RC \
17986     postdeps_RC \
17987     compiler_lib_search_path_RC \
17988     archive_cmds_RC \
17989     archive_expsym_cmds_RC \
17990     postinstall_cmds_RC \
17991     postuninstall_cmds_RC \
17992     old_archive_from_expsyms_cmds_RC \
17993     allow_undefined_flag_RC \
17994     no_undefined_flag_RC \
17995     export_symbols_cmds_RC \
17996     hardcode_libdir_flag_spec_RC \
17997     hardcode_libdir_flag_spec_ld_RC \
17998     hardcode_libdir_separator_RC \
17999     hardcode_automatic_RC \
18000     module_cmds_RC \
18001     module_expsym_cmds_RC \
18002     lt_cv_prog_compiler_c_o_RC \
18003     exclude_expsyms_RC \
18004     include_expsyms_RC; do
18005
18006     case $var in
18007     old_archive_cmds_RC | \
18008     old_archive_from_new_cmds_RC | \
18009     archive_cmds_RC | \
18010     archive_expsym_cmds_RC | \
18011     module_cmds_RC | \
18012     module_expsym_cmds_RC | \
18013     old_archive_from_expsyms_cmds_RC | \
18014     export_symbols_cmds_RC | \
18015     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18016     postinstall_cmds | postuninstall_cmds | \
18017     old_postinstall_cmds | old_postuninstall_cmds | \
18018     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18019       # Double-quote double-evaled strings.
18020       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18021       ;;
18022     *)
18023       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18024       ;;
18025     esac
18026   done
18027
18028   case $lt_echo in
18029   *'\$0 --fallback-echo"')
18030     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18031     ;;
18032   esac
18033
18034 cfgfile="$ofile"
18035
18036   cat <<__EOF__ >> "$cfgfile"
18037 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18038
18039 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18040
18041 # Shell to use when invoking shell scripts.
18042 SHELL=$lt_SHELL
18043
18044 # Whether or not to build shared libraries.
18045 build_libtool_libs=$enable_shared
18046
18047 # Whether or not to build static libraries.
18048 build_old_libs=$enable_static
18049
18050 # Whether or not to add -lc for building shared libraries.
18051 build_libtool_need_lc=$archive_cmds_need_lc_RC
18052
18053 # Whether or not to disallow shared libs when runtime libs are static
18054 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18055
18056 # Whether or not to optimize for fast installation.
18057 fast_install=$enable_fast_install
18058
18059 # The host system.
18060 host_alias=$host_alias
18061 host=$host
18062
18063 # An echo program that does not interpret backslashes.
18064 echo=$lt_echo
18065
18066 # The archiver.
18067 AR=$lt_AR
18068 AR_FLAGS=$lt_AR_FLAGS
18069
18070 # A C compiler.
18071 LTCC=$lt_LTCC
18072
18073 # A language-specific compiler.
18074 CC=$lt_compiler_RC
18075
18076 # Is the compiler the GNU C compiler?
18077 with_gcc=$GCC_RC
18078
18079 # An ERE matcher.
18080 EGREP=$lt_EGREP
18081
18082 # The linker used to build libraries.
18083 LD=$lt_LD_RC
18084
18085 # Whether we need hard or soft links.
18086 LN_S=$lt_LN_S
18087
18088 # A BSD-compatible nm program.
18089 NM=$lt_NM
18090
18091 # A symbol stripping program
18092 STRIP=$STRIP
18093
18094 # Used to examine libraries when file_magic_cmd begins "file"
18095 MAGIC_CMD=$MAGIC_CMD
18096
18097 # Used on cygwin: DLL creation program.
18098 DLLTOOL="$DLLTOOL"
18099
18100 # Used on cygwin: object dumper.
18101 OBJDUMP="$OBJDUMP"
18102
18103 # Used on cygwin: assembler.
18104 AS="$AS"
18105
18106 # The name of the directory that contains temporary libtool files.
18107 objdir=$objdir
18108
18109 # How to create reloadable object files.
18110 reload_flag=$lt_reload_flag
18111 reload_cmds=$lt_reload_cmds
18112
18113 # How to pass a linker flag through the compiler.
18114 wl=$lt_lt_prog_compiler_wl_RC
18115
18116 # Object file suffix (normally "o").
18117 objext="$ac_objext"
18118
18119 # Old archive suffix (normally "a").
18120 libext="$libext"
18121
18122 # Shared library suffix (normally ".so").
18123 shrext='$shrext'
18124
18125 # Executable file suffix (normally "").
18126 exeext="$exeext"
18127
18128 # Additional compiler flags for building library objects.
18129 pic_flag=$lt_lt_prog_compiler_pic_RC
18130 pic_mode=$pic_mode
18131
18132 # What is the maximum length of a command?
18133 max_cmd_len=$lt_cv_sys_max_cmd_len
18134
18135 # Does compiler simultaneously support -c and -o options?
18136 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18137
18138 # Must we lock files when doing compilation ?
18139 need_locks=$lt_need_locks
18140
18141 # Do we need the lib prefix for modules?
18142 need_lib_prefix=$need_lib_prefix
18143
18144 # Do we need a version for libraries?
18145 need_version=$need_version
18146
18147 # Whether dlopen is supported.
18148 dlopen_support=$enable_dlopen
18149
18150 # Whether dlopen of programs is supported.
18151 dlopen_self=$enable_dlopen_self
18152
18153 # Whether dlopen of statically linked programs is supported.
18154 dlopen_self_static=$enable_dlopen_self_static
18155
18156 # Compiler flag to prevent dynamic linking.
18157 link_static_flag=$lt_lt_prog_compiler_static_RC
18158
18159 # Compiler flag to turn off builtin functions.
18160 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18161
18162 # Compiler flag to allow reflexive dlopens.
18163 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18164
18165 # Compiler flag to generate shared objects directly from archives.
18166 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18167
18168 # Compiler flag to generate thread-safe objects.
18169 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18170
18171 # Library versioning type.
18172 version_type=$version_type
18173
18174 # Format of library name prefix.
18175 libname_spec=$lt_libname_spec
18176
18177 # List of archive names.  First name is the real one, the rest are links.
18178 # The last name is the one that the linker finds with -lNAME.
18179 library_names_spec=$lt_library_names_spec
18180
18181 # The coded name of the library, if different from the real name.
18182 soname_spec=$lt_soname_spec
18183
18184 # Commands used to build and install an old-style archive.
18185 RANLIB=$lt_RANLIB
18186 old_archive_cmds=$lt_old_archive_cmds_RC
18187 old_postinstall_cmds=$lt_old_postinstall_cmds
18188 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18189
18190 # Create an old-style archive from a shared archive.
18191 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18192
18193 # Create a temporary old-style archive to link instead of a shared archive.
18194 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18195
18196 # Commands used to build and install a shared archive.
18197 archive_cmds=$lt_archive_cmds_RC
18198 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18199 postinstall_cmds=$lt_postinstall_cmds
18200 postuninstall_cmds=$lt_postuninstall_cmds
18201
18202 # Commands used to build a loadable module (assumed same as above if empty)
18203 module_cmds=$lt_module_cmds_RC
18204 module_expsym_cmds=$lt_module_expsym_cmds_RC
18205
18206 # Commands to strip libraries.
18207 old_striplib=$lt_old_striplib
18208 striplib=$lt_striplib
18209
18210 # Dependencies to place before the objects being linked to create a
18211 # shared library.
18212 predep_objects=$lt_predep_objects_RC
18213
18214 # Dependencies to place after the objects being linked to create a
18215 # shared library.
18216 postdep_objects=$lt_postdep_objects_RC
18217
18218 # Dependencies to place before the objects being linked to create a
18219 # shared library.
18220 predeps=$lt_predeps_RC
18221
18222 # Dependencies to place after the objects being linked to create a
18223 # shared library.
18224 postdeps=$lt_postdeps_RC
18225
18226 # The library search path used internally by the compiler when linking
18227 # a shared library.
18228 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18229
18230 # Method to check whether dependent libraries are shared objects.
18231 deplibs_check_method=$lt_deplibs_check_method
18232
18233 # Command to use when deplibs_check_method == file_magic.
18234 file_magic_cmd=$lt_file_magic_cmd
18235
18236 # Flag that allows shared libraries with undefined symbols to be built.
18237 allow_undefined_flag=$lt_allow_undefined_flag_RC
18238
18239 # Flag that forces no undefined symbols.
18240 no_undefined_flag=$lt_no_undefined_flag_RC
18241
18242 # Commands used to finish a libtool library installation in a directory.
18243 finish_cmds=$lt_finish_cmds
18244
18245 # Same as above, but a single script fragment to be evaled but not shown.
18246 finish_eval=$lt_finish_eval
18247
18248 # Take the output of nm and produce a listing of raw symbols and C names.
18249 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18250
18251 # Transform the output of nm in a proper C declaration
18252 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18253
18254 # Transform the output of nm in a C name address pair
18255 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18256
18257 # This is the shared library runtime path variable.
18258 runpath_var=$runpath_var
18259
18260 # This is the shared library path variable.
18261 shlibpath_var=$shlibpath_var
18262
18263 # Is shlibpath searched before the hard-coded library search path?
18264 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18265
18266 # How to hardcode a shared library path into an executable.
18267 hardcode_action=$hardcode_action_RC
18268
18269 # Whether we should hardcode library paths into libraries.
18270 hardcode_into_libs=$hardcode_into_libs
18271
18272 # Flag to hardcode \$libdir into a binary during linking.
18273 # This must work even if \$libdir does not exist.
18274 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18275
18276 # If ld is used when linking, flag to hardcode \$libdir into
18277 # a binary during linking. This must work even if \$libdir does
18278 # not exist.
18279 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18280
18281 # Whether we need a single -rpath flag with a separated argument.
18282 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18283
18284 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18285 # resulting binary.
18286 hardcode_direct=$hardcode_direct_RC
18287
18288 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18289 # resulting binary.
18290 hardcode_minus_L=$hardcode_minus_L_RC
18291
18292 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18293 # the resulting binary.
18294 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18295
18296 # Set to yes if building a shared library automatically hardcodes DIR into the library
18297 # and all subsequent libraries and executables linked against it.
18298 hardcode_automatic=$hardcode_automatic_RC
18299
18300 # Variables whose values should be saved in libtool wrapper scripts and
18301 # restored at relink time.
18302 variables_saved_for_relink="$variables_saved_for_relink"
18303
18304 # Whether libtool must link a program against all its dependency libraries.
18305 link_all_deplibs=$link_all_deplibs_RC
18306
18307 # Compile-time system search path for libraries
18308 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18309
18310 # Run-time system search path for libraries
18311 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18312
18313 # Fix the shell variable \$srcfile for the compiler.
18314 fix_srcfile_path="$fix_srcfile_path_RC"
18315
18316 # Set to yes if exported symbols are required.
18317 always_export_symbols=$always_export_symbols_RC
18318
18319 # The commands to list exported symbols.
18320 export_symbols_cmds=$lt_export_symbols_cmds_RC
18321
18322 # The commands to extract the exported symbol list from a shared archive.
18323 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18324
18325 # Symbols that should not be listed in the preloaded symbols.
18326 exclude_expsyms=$lt_exclude_expsyms_RC
18327
18328 # Symbols that must always be exported.
18329 include_expsyms=$lt_include_expsyms_RC
18330
18331 # ### END LIBTOOL TAG CONFIG: $tagname
18332
18333 __EOF__
18334
18335
18336 else
18337   # If there is no Makefile yet, we rely on a make rule to execute
18338   # `config.status --recheck' to rerun these tests and create the
18339   # libtool script then.
18340   test -f Makefile && make "$ltmain"
18341 fi
18342
18343
18344 ac_ext=c
18345 ac_cpp='$CPP $CPPFLAGS'
18346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18349
18350 CC="$lt_save_CC"
18351
18352         ;;
18353
18354       *)
18355         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18356 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18357    { (exit 1); exit 1; }; }
18358         ;;
18359       esac
18360
18361       # Append the new tag name to the list of available tags.
18362       if test -n "$tagname" ; then
18363       available_tags="$available_tags $tagname"
18364     fi
18365     fi
18366   done
18367   IFS="$lt_save_ifs"
18368
18369   # Now substitute the updated list of available tags.
18370   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18371     mv "${ofile}T" "$ofile"
18372     chmod +x "$ofile"
18373   else
18374     rm -f "${ofile}T"
18375     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18376 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18377    { (exit 1); exit 1; }; }
18378   fi
18379 fi
18380
18381
18382
18383 # This can be used to rebuild libtool when needed
18384 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18385
18386 # Always use our own libtool.
18387 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18388
18389 # Prevent multiple expansion
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411 # Extract the first word of "pwd", so it can be a program name with args.
18412 set dummy pwd; ac_word=$2
18413 echo "$as_me:$LINENO: checking for $ac_word" >&5
18414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18415 if test "${ac_cv_path_RPWD+set}" = set; then
18416   echo $ECHO_N "(cached) $ECHO_C" >&6
18417 else
18418   case $RPWD in
18419   [\\/]* | ?:[\\/]*)
18420   ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18421   ;;
18422   *)
18423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18424 for as_dir in $PATH
18425 do
18426   IFS=$as_save_IFS
18427   test -z "$as_dir" && as_dir=.
18428   for ac_exec_ext in '' $ac_executable_extensions; do
18429   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18430     ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18432     break 2
18433   fi
18434 done
18435 done
18436
18437   ;;
18438 esac
18439 fi
18440 RPWD=$ac_cv_path_RPWD
18441
18442 if test -n "$RPWD"; then
18443   echo "$as_me:$LINENO: result: $RPWD" >&5
18444 echo "${ECHO_T}$RPWD" >&6
18445 else
18446   echo "$as_me:$LINENO: result: no" >&5
18447 echo "${ECHO_T}no" >&6
18448 fi
18449
18450 # Extract the first word of "ar", so it can be a program name with args.
18451 set dummy ar; ac_word=$2
18452 echo "$as_me:$LINENO: checking for $ac_word" >&5
18453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18454 if test "${ac_cv_path_AR+set}" = set; then
18455   echo $ECHO_N "(cached) $ECHO_C" >&6
18456 else
18457   case $AR in
18458   [\\/]* | ?:[\\/]*)
18459   ac_cv_path_AR="$AR" # Let the user override the test with a path.
18460   ;;
18461   *)
18462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18463 for as_dir in $PATH
18464 do
18465   IFS=$as_save_IFS
18466   test -z "$as_dir" && as_dir=.
18467   for ac_exec_ext in '' $ac_executable_extensions; do
18468   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18469     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18471     break 2
18472   fi
18473 done
18474 done
18475
18476   ;;
18477 esac
18478 fi
18479 AR=$ac_cv_path_AR
18480
18481 if test -n "$AR"; then
18482   echo "$as_me:$LINENO: result: $AR" >&5
18483 echo "${ECHO_T}$AR" >&6
18484 else
18485   echo "$as_me:$LINENO: result: no" >&5
18486 echo "${ECHO_T}no" >&6
18487 fi
18488
18489 # Extract the first word of "sed", so it can be a program name with args.
18490 set dummy sed; ac_word=$2
18491 echo "$as_me:$LINENO: checking for $ac_word" >&5
18492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18493 if test "${ac_cv_path_SED+set}" = set; then
18494   echo $ECHO_N "(cached) $ECHO_C" >&6
18495 else
18496   case $SED in
18497   [\\/]* | ?:[\\/]*)
18498   ac_cv_path_SED="$SED" # Let the user override the test with a path.
18499   ;;
18500   *)
18501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18502 for as_dir in $PATH
18503 do
18504   IFS=$as_save_IFS
18505   test -z "$as_dir" && as_dir=.
18506   for ac_exec_ext in '' $ac_executable_extensions; do
18507   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18508     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18510     break 2
18511   fi
18512 done
18513 done
18514
18515   ;;
18516 esac
18517 fi
18518 SED=$ac_cv_path_SED
18519
18520 if test -n "$SED"; then
18521   echo "$as_me:$LINENO: result: $SED" >&5
18522 echo "${ECHO_T}$SED" >&6
18523 else
18524   echo "$as_me:$LINENO: result: no" >&5
18525 echo "${ECHO_T}no" >&6
18526 fi
18527
18528 # Extract the first word of "rm", so it can be a program name with args.
18529 set dummy rm; ac_word=$2
18530 echo "$as_me:$LINENO: checking for $ac_word" >&5
18531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18532 if test "${ac_cv_path_RM+set}" = set; then
18533   echo $ECHO_N "(cached) $ECHO_C" >&6
18534 else
18535   case $RM in
18536   [\\/]* | ?:[\\/]*)
18537   ac_cv_path_RM="$RM" # Let the user override the test with a path.
18538   ;;
18539   *)
18540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18541 for as_dir in $PATH
18542 do
18543   IFS=$as_save_IFS
18544   test -z "$as_dir" && as_dir=.
18545   for ac_exec_ext in '' $ac_executable_extensions; do
18546   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18547     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18549     break 2
18550   fi
18551 done
18552 done
18553
18554   ;;
18555 esac
18556 fi
18557 RM=$ac_cv_path_RM
18558
18559 if test -n "$RM"; then
18560   echo "$as_me:$LINENO: result: $RM" >&5
18561 echo "${ECHO_T}$RM" >&6
18562 else
18563   echo "$as_me:$LINENO: result: no" >&5
18564 echo "${ECHO_T}no" >&6
18565 fi
18566
18567 # Extract the first word of "echo", so it can be a program name with args.
18568 set dummy echo; ac_word=$2
18569 echo "$as_me:$LINENO: checking for $ac_word" >&5
18570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18571 if test "${ac_cv_path_ECHO+set}" = set; then
18572   echo $ECHO_N "(cached) $ECHO_C" >&6
18573 else
18574   case $ECHO in
18575   [\\/]* | ?:[\\/]*)
18576   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18577   ;;
18578   *)
18579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18580 for as_dir in $PATH
18581 do
18582   IFS=$as_save_IFS
18583   test -z "$as_dir" && as_dir=.
18584   for ac_exec_ext in '' $ac_executable_extensions; do
18585   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18586     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18588     break 2
18589   fi
18590 done
18591 done
18592
18593   ;;
18594 esac
18595 fi
18596 ECHO=$ac_cv_path_ECHO
18597
18598 if test -n "$ECHO"; then
18599   echo "$as_me:$LINENO: result: $ECHO" >&5
18600 echo "${ECHO_T}$ECHO" >&6
18601 else
18602   echo "$as_me:$LINENO: result: no" >&5
18603 echo "${ECHO_T}no" >&6
18604 fi
18605
18606 # Extract the first word of "mkdir", so it can be a program name with args.
18607 set dummy mkdir; ac_word=$2
18608 echo "$as_me:$LINENO: checking for $ac_word" >&5
18609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18610 if test "${ac_cv_path_MKDIR+set}" = set; then
18611   echo $ECHO_N "(cached) $ECHO_C" >&6
18612 else
18613   case $MKDIR in
18614   [\\/]* | ?:[\\/]*)
18615   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18616   ;;
18617   *)
18618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18619 for as_dir in $PATH
18620 do
18621   IFS=$as_save_IFS
18622   test -z "$as_dir" && as_dir=.
18623   for ac_exec_ext in '' $ac_executable_extensions; do
18624   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18625     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18627     break 2
18628   fi
18629 done
18630 done
18631
18632   ;;
18633 esac
18634 fi
18635 MKDIR=$ac_cv_path_MKDIR
18636
18637 if test -n "$MKDIR"; then
18638   echo "$as_me:$LINENO: result: $MKDIR" >&5
18639 echo "${ECHO_T}$MKDIR" >&6
18640 else
18641   echo "$as_me:$LINENO: result: no" >&5
18642 echo "${ECHO_T}no" >&6
18643 fi
18644
18645 # Extract the first word of "date", so it can be a program name with args.
18646 set dummy date; ac_word=$2
18647 echo "$as_me:$LINENO: checking for $ac_word" >&5
18648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18649 if test "${ac_cv_path_DATE+set}" = set; then
18650   echo $ECHO_N "(cached) $ECHO_C" >&6
18651 else
18652   case $DATE in
18653   [\\/]* | ?:[\\/]*)
18654   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18655   ;;
18656   *)
18657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18658 for as_dir in $PATH
18659 do
18660   IFS=$as_save_IFS
18661   test -z "$as_dir" && as_dir=.
18662   for ac_exec_ext in '' $ac_executable_extensions; do
18663   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18664     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18666     break 2
18667   fi
18668 done
18669 done
18670
18671   ;;
18672 esac
18673 fi
18674 DATE=$ac_cv_path_DATE
18675
18676 if test -n "$DATE"; then
18677   echo "$as_me:$LINENO: result: $DATE" >&5
18678 echo "${ECHO_T}$DATE" >&6
18679 else
18680   echo "$as_me:$LINENO: result: no" >&5
18681 echo "${ECHO_T}no" >&6
18682 fi
18683
18684 # Extract the first word of "mv", so it can be a program name with args.
18685 set dummy mv; ac_word=$2
18686 echo "$as_me:$LINENO: checking for $ac_word" >&5
18687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18688 if test "${ac_cv_path_MV+set}" = set; then
18689   echo $ECHO_N "(cached) $ECHO_C" >&6
18690 else
18691   case $MV in
18692   [\\/]* | ?:[\\/]*)
18693   ac_cv_path_MV="$MV" # Let the user override the test with a path.
18694   ;;
18695   *)
18696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18697 for as_dir in $PATH
18698 do
18699   IFS=$as_save_IFS
18700   test -z "$as_dir" && as_dir=.
18701   for ac_exec_ext in '' $ac_executable_extensions; do
18702   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18703     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18705     break 2
18706   fi
18707 done
18708 done
18709
18710   ;;
18711 esac
18712 fi
18713 MV=$ac_cv_path_MV
18714
18715 if test -n "$MV"; then
18716   echo "$as_me:$LINENO: result: $MV" >&5
18717 echo "${ECHO_T}$MV" >&6
18718 else
18719   echo "$as_me:$LINENO: result: no" >&5
18720 echo "${ECHO_T}no" >&6
18721 fi
18722
18723 # Extract the first word of "dot", so it can be a program name with args.
18724 set dummy dot; ac_word=$2
18725 echo "$as_me:$LINENO: checking for $ac_word" >&5
18726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18727 if test "${ac_cv_path_DOT+set}" = set; then
18728   echo $ECHO_N "(cached) $ECHO_C" >&6
18729 else
18730   case $DOT in
18731   [\\/]* | ?:[\\/]*)
18732   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18733   ;;
18734   *)
18735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18736 for as_dir in $PATH
18737 do
18738   IFS=$as_save_IFS
18739   test -z "$as_dir" && as_dir=.
18740   for ac_exec_ext in '' $ac_executable_extensions; do
18741   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18742     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18744     break 2
18745   fi
18746 done
18747 done
18748
18749   ;;
18750 esac
18751 fi
18752 DOT=$ac_cv_path_DOT
18753
18754 if test -n "$DOT"; then
18755   echo "$as_me:$LINENO: result: $DOT" >&5
18756 echo "${ECHO_T}$DOT" >&6
18757 else
18758   echo "$as_me:$LINENO: result: no" >&5
18759 echo "${ECHO_T}no" >&6
18760 fi
18761
18762 # Extract the first word of "etags", so it can be a program name with args.
18763 set dummy etags; ac_word=$2
18764 echo "$as_me:$LINENO: checking for $ac_word" >&5
18765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18766 if test "${ac_cv_path_ETAGS+set}" = set; then
18767   echo $ECHO_N "(cached) $ECHO_C" >&6
18768 else
18769   case $ETAGS in
18770   [\\/]* | ?:[\\/]*)
18771   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18772   ;;
18773   *)
18774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18775 for as_dir in $PATH
18776 do
18777   IFS=$as_save_IFS
18778   test -z "$as_dir" && as_dir=.
18779   for ac_exec_ext in '' $ac_executable_extensions; do
18780   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18781     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18783     break 2
18784   fi
18785 done
18786 done
18787
18788   ;;
18789 esac
18790 fi
18791 ETAGS=$ac_cv_path_ETAGS
18792
18793 if test -n "$ETAGS"; then
18794   echo "$as_me:$LINENO: result: $ETAGS" >&5
18795 echo "${ECHO_T}$ETAGS" >&6
18796 else
18797   echo "$as_me:$LINENO: result: no" >&5
18798 echo "${ECHO_T}no" >&6
18799 fi
18800
18801 # Extract the first word of "purify", so it can be a program name with args.
18802 set dummy purify; ac_word=$2
18803 echo "$as_me:$LINENO: checking for $ac_word" >&5
18804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18805 if test "${ac_cv_path_PURIFY+set}" = set; then
18806   echo $ECHO_N "(cached) $ECHO_C" >&6
18807 else
18808   case $PURIFY in
18809   [\\/]* | ?:[\\/]*)
18810   ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18811   ;;
18812   *)
18813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18814 for as_dir in $PATH
18815 do
18816   IFS=$as_save_IFS
18817   test -z "$as_dir" && as_dir=.
18818   for ac_exec_ext in '' $ac_executable_extensions; do
18819   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18820     ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18822     break 2
18823   fi
18824 done
18825 done
18826
18827   ;;
18828 esac
18829 fi
18830 PURIFY=$ac_cv_path_PURIFY
18831
18832 if test -n "$PURIFY"; then
18833   echo "$as_me:$LINENO: result: $PURIFY" >&5
18834 echo "${ECHO_T}$PURIFY" >&6
18835 else
18836   echo "$as_me:$LINENO: result: no" >&5
18837 echo "${ECHO_T}no" >&6
18838 fi
18839
18840 # Extract the first word of "python", so it can be a program name with args.
18841 set dummy python; ac_word=$2
18842 echo "$as_me:$LINENO: checking for $ac_word" >&5
18843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18844 if test "${ac_cv_path_PYTHON+set}" = set; then
18845   echo $ECHO_N "(cached) $ECHO_C" >&6
18846 else
18847   case $PYTHON in
18848   [\\/]* | ?:[\\/]*)
18849   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18850   ;;
18851   *)
18852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18853 for as_dir in $PATH
18854 do
18855   IFS=$as_save_IFS
18856   test -z "$as_dir" && as_dir=.
18857   for ac_exec_ext in '' $ac_executable_extensions; do
18858   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18859     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18861     break 2
18862   fi
18863 done
18864 done
18865
18866   ;;
18867 esac
18868 fi
18869 PYTHON=$ac_cv_path_PYTHON
18870
18871 if test -n "$PYTHON"; then
18872   echo "$as_me:$LINENO: result: $PYTHON" >&5
18873 echo "${ECHO_T}$PYTHON" >&6
18874 else
18875   echo "$as_me:$LINENO: result: no" >&5
18876 echo "${ECHO_T}no" >&6
18877 fi
18878
18879 # Extract the first word of "qmtest", so it can be a program name with args.
18880 set dummy qmtest; ac_word=$2
18881 echo "$as_me:$LINENO: checking for $ac_word" >&5
18882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18883 if test "${ac_cv_path_QMTEST+set}" = set; then
18884   echo $ECHO_N "(cached) $ECHO_C" >&6
18885 else
18886   case $QMTEST in
18887   [\\/]* | ?:[\\/]*)
18888   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18889   ;;
18890   *)
18891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18892 for as_dir in $PATH
18893 do
18894   IFS=$as_save_IFS
18895   test -z "$as_dir" && as_dir=.
18896   for ac_exec_ext in '' $ac_executable_extensions; do
18897   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18898     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18900     break 2
18901   fi
18902 done
18903 done
18904
18905   ;;
18906 esac
18907 fi
18908 QMTEST=$ac_cv_path_QMTEST
18909
18910 if test -n "$QMTEST"; then
18911   echo "$as_me:$LINENO: result: $QMTEST" >&5
18912 echo "${ECHO_T}$QMTEST" >&6
18913 else
18914   echo "$as_me:$LINENO: result: no" >&5
18915 echo "${ECHO_T}no" >&6
18916 fi
18917
18918
18919 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18920 pymajor=`echo $pyversion | cut -d. -f1`
18921 pyminor=`echo $pyversion | cut -d. -f2`
18922
18923 if test "$pymajor" -ge "2"
18924 then
18925         if test "$pymajor" -eq "2"
18926         then
18927                 if test "$pyminor" -lt "2"
18928                 then
18929                         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18930 echo "$as_me: error: Python 2.2 or greater required" >&2;}
18931    { (exit 1); exit 1; }; }
18932                 fi
18933         fi
18934 else
18935         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18936 echo "$as_me: error: Python 2.2 or greater required" >&2;}
18937    { (exit 1); exit 1; }; }
18938 fi
18939
18940
18941
18942
18943
18944 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18945 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18946 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18947   echo $ECHO_N "(cached) $ECHO_C" >&6
18948 else
18949   ac_check_lib_save_LIBS=$LIBS
18950 LIBS="-lelf  $LIBS"
18951 cat >conftest.$ac_ext <<_ACEOF
18952 #line $LINENO "configure"
18953 /* confdefs.h.  */
18954 _ACEOF
18955 cat confdefs.h >>conftest.$ac_ext
18956 cat >>conftest.$ac_ext <<_ACEOF
18957 /* end confdefs.h.  */
18958
18959 /* Override any gcc2 internal prototype to avoid an error.  */
18960 #ifdef __cplusplus
18961 extern "C"
18962 #endif
18963 /* We use char because int might match the return type of a gcc2
18964    builtin and then its argument prototype would still apply.  */
18965 char elf_begin ();
18966 int
18967 main ()
18968 {
18969 elf_begin ();
18970   ;
18971   return 0;
18972 }
18973 _ACEOF
18974 rm -f conftest.$ac_objext conftest$ac_exeext
18975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18976   (eval $ac_link) 2>&5
18977   ac_status=$?
18978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979   (exit $ac_status); } &&
18980          { ac_try='test -s conftest$ac_exeext'
18981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18982   (eval $ac_try) 2>&5
18983   ac_status=$?
18984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985   (exit $ac_status); }; }; then
18986   ac_cv_lib_elf_elf_begin=yes
18987 else
18988   echo "$as_me: failed program was:" >&5
18989 sed 's/^/| /' conftest.$ac_ext >&5
18990
18991 ac_cv_lib_elf_elf_begin=no
18992 fi
18993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18994 LIBS=$ac_check_lib_save_LIBS
18995 fi
18996 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18997 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18998 if test $ac_cv_lib_elf_elf_begin = yes; then
18999   cat >>confdefs.h <<_ACEOF
19000 #define HAVE_LIBELF 1
19001 _ACEOF
19002
19003   LIBS="-lelf $LIBS"
19004
19005 fi
19006
19007
19008 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19009 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19010 if test "${ac_cv_search_dlopen+set}" = set; then
19011   echo $ECHO_N "(cached) $ECHO_C" >&6
19012 else
19013   ac_func_search_save_LIBS=$LIBS
19014 ac_cv_search_dlopen=no
19015 cat >conftest.$ac_ext <<_ACEOF
19016 #line $LINENO "configure"
19017 /* confdefs.h.  */
19018 _ACEOF
19019 cat confdefs.h >>conftest.$ac_ext
19020 cat >>conftest.$ac_ext <<_ACEOF
19021 /* end confdefs.h.  */
19022
19023 /* Override any gcc2 internal prototype to avoid an error.  */
19024 #ifdef __cplusplus
19025 extern "C"
19026 #endif
19027 /* We use char because int might match the return type of a gcc2
19028    builtin and then its argument prototype would still apply.  */
19029 char dlopen ();
19030 int
19031 main ()
19032 {
19033 dlopen ();
19034   ;
19035   return 0;
19036 }
19037 _ACEOF
19038 rm -f conftest.$ac_objext conftest$ac_exeext
19039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19040   (eval $ac_link) 2>&5
19041   ac_status=$?
19042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043   (exit $ac_status); } &&
19044          { ac_try='test -s conftest$ac_exeext'
19045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19046   (eval $ac_try) 2>&5
19047   ac_status=$?
19048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049   (exit $ac_status); }; }; then
19050   ac_cv_search_dlopen="none required"
19051 else
19052   echo "$as_me: failed program was:" >&5
19053 sed 's/^/| /' conftest.$ac_ext >&5
19054
19055 fi
19056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19057 if test "$ac_cv_search_dlopen" = no; then
19058   for ac_lib in dl; do
19059     LIBS="-l$ac_lib  $ac_func_search_save_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 dlopen ();
19075 int
19076 main ()
19077 {
19078 dlopen ();
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_search_dlopen="-l$ac_lib"
19096 break
19097 else
19098   echo "$as_me: failed program was:" >&5
19099 sed 's/^/| /' conftest.$ac_ext >&5
19100
19101 fi
19102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19103   done
19104 fi
19105 LIBS=$ac_func_search_save_LIBS
19106 fi
19107 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19108 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19109 if test "$ac_cv_search_dlopen" != no; then
19110   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19111
19112 else
19113   { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19114 echo "$as_me: error: dlopen() required but not found" >&2;}
19115    { (exit 1); exit 1; }; }
19116 fi
19117
19118
19119 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19120 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19121 if test "${ac_cv_search_mallinfo+set}" = set; then
19122   echo $ECHO_N "(cached) $ECHO_C" >&6
19123 else
19124   ac_func_search_save_LIBS=$LIBS
19125 ac_cv_search_mallinfo=no
19126 cat >conftest.$ac_ext <<_ACEOF
19127 #line $LINENO "configure"
19128 /* confdefs.h.  */
19129 _ACEOF
19130 cat confdefs.h >>conftest.$ac_ext
19131 cat >>conftest.$ac_ext <<_ACEOF
19132 /* end confdefs.h.  */
19133
19134 /* Override any gcc2 internal prototype to avoid an error.  */
19135 #ifdef __cplusplus
19136 extern "C"
19137 #endif
19138 /* We use char because int might match the return type of a gcc2
19139    builtin and then its argument prototype would still apply.  */
19140 char mallinfo ();
19141 int
19142 main ()
19143 {
19144 mallinfo ();
19145   ;
19146   return 0;
19147 }
19148 _ACEOF
19149 rm -f conftest.$ac_objext conftest$ac_exeext
19150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19151   (eval $ac_link) 2>&5
19152   ac_status=$?
19153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154   (exit $ac_status); } &&
19155          { ac_try='test -s conftest$ac_exeext'
19156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157   (eval $ac_try) 2>&5
19158   ac_status=$?
19159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160   (exit $ac_status); }; }; then
19161   ac_cv_search_mallinfo="none required"
19162 else
19163   echo "$as_me: failed program was:" >&5
19164 sed 's/^/| /' conftest.$ac_ext >&5
19165
19166 fi
19167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19168 if test "$ac_cv_search_mallinfo" = no; then
19169   for ac_lib in malloc; do
19170     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19171     cat >conftest.$ac_ext <<_ACEOF
19172 #line $LINENO "configure"
19173 /* confdefs.h.  */
19174 _ACEOF
19175 cat confdefs.h >>conftest.$ac_ext
19176 cat >>conftest.$ac_ext <<_ACEOF
19177 /* end confdefs.h.  */
19178
19179 /* Override any gcc2 internal prototype to avoid an error.  */
19180 #ifdef __cplusplus
19181 extern "C"
19182 #endif
19183 /* We use char because int might match the return type of a gcc2
19184    builtin and then its argument prototype would still apply.  */
19185 char mallinfo ();
19186 int
19187 main ()
19188 {
19189 mallinfo ();
19190   ;
19191   return 0;
19192 }
19193 _ACEOF
19194 rm -f conftest.$ac_objext conftest$ac_exeext
19195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19196   (eval $ac_link) 2>&5
19197   ac_status=$?
19198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199   (exit $ac_status); } &&
19200          { ac_try='test -s conftest$ac_exeext'
19201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202   (eval $ac_try) 2>&5
19203   ac_status=$?
19204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205   (exit $ac_status); }; }; then
19206   ac_cv_search_mallinfo="-l$ac_lib"
19207 break
19208 else
19209   echo "$as_me: failed program was:" >&5
19210 sed 's/^/| /' conftest.$ac_ext >&5
19211
19212 fi
19213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19214   done
19215 fi
19216 LIBS=$ac_func_search_save_LIBS
19217 fi
19218 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19219 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19220 if test "$ac_cv_search_mallinfo" != no; then
19221   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19222   cat >>confdefs.h <<\_ACEOF
19223 #define HAVE_MALLINFO 1
19224 _ACEOF
19225
19226 fi
19227
19228
19229
19230 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19231 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19232 if test "${ac_cv_header_stdc+set}" = set; then
19233   echo $ECHO_N "(cached) $ECHO_C" >&6
19234 else
19235   cat >conftest.$ac_ext <<_ACEOF
19236 #line $LINENO "configure"
19237 /* confdefs.h.  */
19238 _ACEOF
19239 cat confdefs.h >>conftest.$ac_ext
19240 cat >>conftest.$ac_ext <<_ACEOF
19241 /* end confdefs.h.  */
19242 #include <stdlib.h>
19243 #include <stdarg.h>
19244 #include <string.h>
19245 #include <float.h>
19246
19247 int
19248 main ()
19249 {
19250
19251   ;
19252   return 0;
19253 }
19254 _ACEOF
19255 rm -f conftest.$ac_objext
19256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19257   (eval $ac_compile) 2>&5
19258   ac_status=$?
19259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260   (exit $ac_status); } &&
19261          { ac_try='test -s conftest.$ac_objext'
19262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19263   (eval $ac_try) 2>&5
19264   ac_status=$?
19265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266   (exit $ac_status); }; }; then
19267   ac_cv_header_stdc=yes
19268 else
19269   echo "$as_me: failed program was:" >&5
19270 sed 's/^/| /' conftest.$ac_ext >&5
19271
19272 ac_cv_header_stdc=no
19273 fi
19274 rm -f conftest.$ac_objext conftest.$ac_ext
19275
19276 if test $ac_cv_header_stdc = yes; then
19277   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19278   cat >conftest.$ac_ext <<_ACEOF
19279 #line $LINENO "configure"
19280 /* confdefs.h.  */
19281 _ACEOF
19282 cat confdefs.h >>conftest.$ac_ext
19283 cat >>conftest.$ac_ext <<_ACEOF
19284 /* end confdefs.h.  */
19285 #include <string.h>
19286
19287 _ACEOF
19288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19289   $EGREP "memchr" >/dev/null 2>&1; then
19290   :
19291 else
19292   ac_cv_header_stdc=no
19293 fi
19294 rm -f conftest*
19295
19296 fi
19297
19298 if test $ac_cv_header_stdc = yes; then
19299   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19300   cat >conftest.$ac_ext <<_ACEOF
19301 #line $LINENO "configure"
19302 /* confdefs.h.  */
19303 _ACEOF
19304 cat confdefs.h >>conftest.$ac_ext
19305 cat >>conftest.$ac_ext <<_ACEOF
19306 /* end confdefs.h.  */
19307 #include <stdlib.h>
19308
19309 _ACEOF
19310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19311   $EGREP "free" >/dev/null 2>&1; then
19312   :
19313 else
19314   ac_cv_header_stdc=no
19315 fi
19316 rm -f conftest*
19317
19318 fi
19319
19320 if test $ac_cv_header_stdc = yes; then
19321   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19322   if test "$cross_compiling" = yes; then
19323   :
19324 else
19325   cat >conftest.$ac_ext <<_ACEOF
19326 #line $LINENO "configure"
19327 /* confdefs.h.  */
19328 _ACEOF
19329 cat confdefs.h >>conftest.$ac_ext
19330 cat >>conftest.$ac_ext <<_ACEOF
19331 /* end confdefs.h.  */
19332 #include <ctype.h>
19333 #if ((' ' & 0x0FF) == 0x020)
19334 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19335 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19336 #else
19337 # define ISLOWER(c) \
19338                    (('a' <= (c) && (c) <= 'i') \
19339                      || ('j' <= (c) && (c) <= 'r') \
19340                      || ('s' <= (c) && (c) <= 'z'))
19341 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19342 #endif
19343
19344 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19345 int
19346 main ()
19347 {
19348   int i;
19349   for (i = 0; i < 256; i++)
19350     if (XOR (islower (i), ISLOWER (i))
19351         || toupper (i) != TOUPPER (i))
19352       exit(2);
19353   exit (0);
19354 }
19355 _ACEOF
19356 rm -f conftest$ac_exeext
19357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19358   (eval $ac_link) 2>&5
19359   ac_status=$?
19360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19363   (eval $ac_try) 2>&5
19364   ac_status=$?
19365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366   (exit $ac_status); }; }; then
19367   :
19368 else
19369   echo "$as_me: program exited with status $ac_status" >&5
19370 echo "$as_me: failed program was:" >&5
19371 sed 's/^/| /' conftest.$ac_ext >&5
19372
19373 ( exit $ac_status )
19374 ac_cv_header_stdc=no
19375 fi
19376 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19377 fi
19378 fi
19379 fi
19380 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19381 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19382 if test $ac_cv_header_stdc = yes; then
19383
19384 cat >>confdefs.h <<\_ACEOF
19385 #define STDC_HEADERS 1
19386 _ACEOF
19387
19388 fi
19389
19390 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19391 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19392 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19393   echo $ECHO_N "(cached) $ECHO_C" >&6
19394 else
19395   cat >conftest.$ac_ext <<_ACEOF
19396 #line $LINENO "configure"
19397 /* confdefs.h.  */
19398 _ACEOF
19399 cat confdefs.h >>conftest.$ac_ext
19400 cat >>conftest.$ac_ext <<_ACEOF
19401 /* end confdefs.h.  */
19402 #include <sys/types.h>
19403 #include <sys/wait.h>
19404 #ifndef WEXITSTATUS
19405 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19406 #endif
19407 #ifndef WIFEXITED
19408 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19409 #endif
19410
19411 int
19412 main ()
19413 {
19414   int s;
19415   wait (&s);
19416   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19417   ;
19418   return 0;
19419 }
19420 _ACEOF
19421 rm -f conftest.$ac_objext
19422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19423   (eval $ac_compile) 2>&5
19424   ac_status=$?
19425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426   (exit $ac_status); } &&
19427          { ac_try='test -s conftest.$ac_objext'
19428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19429   (eval $ac_try) 2>&5
19430   ac_status=$?
19431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432   (exit $ac_status); }; }; then
19433   ac_cv_header_sys_wait_h=yes
19434 else
19435   echo "$as_me: failed program was:" >&5
19436 sed 's/^/| /' conftest.$ac_ext >&5
19437
19438 ac_cv_header_sys_wait_h=no
19439 fi
19440 rm -f conftest.$ac_objext conftest.$ac_ext
19441 fi
19442 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19443 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19444 if test $ac_cv_header_sys_wait_h = yes; then
19445
19446 cat >>confdefs.h <<\_ACEOF
19447 #define HAVE_SYS_WAIT_H 1
19448 _ACEOF
19449
19450 fi
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19462 do
19463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19465   echo "$as_me:$LINENO: checking for $ac_header" >&5
19466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19468   echo $ECHO_N "(cached) $ECHO_C" >&6
19469 fi
19470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19472 else
19473   # Is the header compilable?
19474 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19475 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19476 cat >conftest.$ac_ext <<_ACEOF
19477 #line $LINENO "configure"
19478 /* confdefs.h.  */
19479 _ACEOF
19480 cat confdefs.h >>conftest.$ac_ext
19481 cat >>conftest.$ac_ext <<_ACEOF
19482 /* end confdefs.h.  */
19483 $ac_includes_default
19484 #include <$ac_header>
19485 _ACEOF
19486 rm -f conftest.$ac_objext
19487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19488   (eval $ac_compile) 2>&5
19489   ac_status=$?
19490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491   (exit $ac_status); } &&
19492          { ac_try='test -s conftest.$ac_objext'
19493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19494   (eval $ac_try) 2>&5
19495   ac_status=$?
19496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497   (exit $ac_status); }; }; then
19498   ac_header_compiler=yes
19499 else
19500   echo "$as_me: failed program was:" >&5
19501 sed 's/^/| /' conftest.$ac_ext >&5
19502
19503 ac_header_compiler=no
19504 fi
19505 rm -f conftest.$ac_objext conftest.$ac_ext
19506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19507 echo "${ECHO_T}$ac_header_compiler" >&6
19508
19509 # Is the header present?
19510 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19512 cat >conftest.$ac_ext <<_ACEOF
19513 #line $LINENO "configure"
19514 /* confdefs.h.  */
19515 _ACEOF
19516 cat confdefs.h >>conftest.$ac_ext
19517 cat >>conftest.$ac_ext <<_ACEOF
19518 /* end confdefs.h.  */
19519 #include <$ac_header>
19520 _ACEOF
19521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19522   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19523   ac_status=$?
19524   grep -v '^ *+' conftest.er1 >conftest.err
19525   rm -f conftest.er1
19526   cat conftest.err >&5
19527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528   (exit $ac_status); } >/dev/null; then
19529   if test -s conftest.err; then
19530     ac_cpp_err=$ac_c_preproc_warn_flag
19531   else
19532     ac_cpp_err=
19533   fi
19534 else
19535   ac_cpp_err=yes
19536 fi
19537 if test -z "$ac_cpp_err"; then
19538   ac_header_preproc=yes
19539 else
19540   echo "$as_me: failed program was:" >&5
19541 sed 's/^/| /' conftest.$ac_ext >&5
19542
19543   ac_header_preproc=no
19544 fi
19545 rm -f conftest.err conftest.$ac_ext
19546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19547 echo "${ECHO_T}$ac_header_preproc" >&6
19548
19549 # So?  What about this header?
19550 case $ac_header_compiler:$ac_header_preproc in
19551   yes:no )
19552     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19554     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19556     (
19557       cat <<\_ASBOX
19558 ## ------------------------------------ ##
19559 ## Report this to bug-autoconf@gnu.org. ##
19560 ## ------------------------------------ ##
19561 _ASBOX
19562     ) |
19563       sed "s/^/$as_me: WARNING:     /" >&2
19564     ;;
19565   no:yes )
19566     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19568     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19569 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19570     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19572     (
19573       cat <<\_ASBOX
19574 ## ------------------------------------ ##
19575 ## Report this to bug-autoconf@gnu.org. ##
19576 ## ------------------------------------ ##
19577 _ASBOX
19578     ) |
19579       sed "s/^/$as_me: WARNING:     /" >&2
19580     ;;
19581 esac
19582 echo "$as_me:$LINENO: checking for $ac_header" >&5
19583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19585   echo $ECHO_N "(cached) $ECHO_C" >&6
19586 else
19587   eval "$as_ac_Header=$ac_header_preproc"
19588 fi
19589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19591
19592 fi
19593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19594   cat >>confdefs.h <<_ACEOF
19595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19596 _ACEOF
19597
19598 fi
19599
19600 done
19601
19602
19603
19604
19605
19606
19607 for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19608 do
19609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19611   echo "$as_me:$LINENO: checking for $ac_header" >&5
19612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19614   echo $ECHO_N "(cached) $ECHO_C" >&6
19615 fi
19616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19618 else
19619   # Is the header compilable?
19620 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19621 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19622 cat >conftest.$ac_ext <<_ACEOF
19623 #line $LINENO "configure"
19624 /* confdefs.h.  */
19625 _ACEOF
19626 cat confdefs.h >>conftest.$ac_ext
19627 cat >>conftest.$ac_ext <<_ACEOF
19628 /* end confdefs.h.  */
19629 $ac_includes_default
19630 #include <$ac_header>
19631 _ACEOF
19632 rm -f conftest.$ac_objext
19633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19634   (eval $ac_compile) 2>&5
19635   ac_status=$?
19636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637   (exit $ac_status); } &&
19638          { ac_try='test -s conftest.$ac_objext'
19639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640   (eval $ac_try) 2>&5
19641   ac_status=$?
19642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643   (exit $ac_status); }; }; then
19644   ac_header_compiler=yes
19645 else
19646   echo "$as_me: failed program was:" >&5
19647 sed 's/^/| /' conftest.$ac_ext >&5
19648
19649 ac_header_compiler=no
19650 fi
19651 rm -f conftest.$ac_objext conftest.$ac_ext
19652 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19653 echo "${ECHO_T}$ac_header_compiler" >&6
19654
19655 # Is the header present?
19656 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19657 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19658 cat >conftest.$ac_ext <<_ACEOF
19659 #line $LINENO "configure"
19660 /* confdefs.h.  */
19661 _ACEOF
19662 cat confdefs.h >>conftest.$ac_ext
19663 cat >>conftest.$ac_ext <<_ACEOF
19664 /* end confdefs.h.  */
19665 #include <$ac_header>
19666 _ACEOF
19667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19668   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19669   ac_status=$?
19670   grep -v '^ *+' conftest.er1 >conftest.err
19671   rm -f conftest.er1
19672   cat conftest.err >&5
19673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674   (exit $ac_status); } >/dev/null; then
19675   if test -s conftest.err; then
19676     ac_cpp_err=$ac_c_preproc_warn_flag
19677   else
19678     ac_cpp_err=
19679   fi
19680 else
19681   ac_cpp_err=yes
19682 fi
19683 if test -z "$ac_cpp_err"; then
19684   ac_header_preproc=yes
19685 else
19686   echo "$as_me: failed program was:" >&5
19687 sed 's/^/| /' conftest.$ac_ext >&5
19688
19689   ac_header_preproc=no
19690 fi
19691 rm -f conftest.err conftest.$ac_ext
19692 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19693 echo "${ECHO_T}$ac_header_preproc" >&6
19694
19695 # So?  What about this header?
19696 case $ac_header_compiler:$ac_header_preproc in
19697   yes:no )
19698     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19700     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19702     (
19703       cat <<\_ASBOX
19704 ## ------------------------------------ ##
19705 ## Report this to bug-autoconf@gnu.org. ##
19706 ## ------------------------------------ ##
19707 _ASBOX
19708     ) |
19709       sed "s/^/$as_me: WARNING:     /" >&2
19710     ;;
19711   no:yes )
19712     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19713 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19714     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19715 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19716     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19718     (
19719       cat <<\_ASBOX
19720 ## ------------------------------------ ##
19721 ## Report this to bug-autoconf@gnu.org. ##
19722 ## ------------------------------------ ##
19723 _ASBOX
19724     ) |
19725       sed "s/^/$as_me: WARNING:     /" >&2
19726     ;;
19727 esac
19728 echo "$as_me:$LINENO: checking for $ac_header" >&5
19729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19731   echo $ECHO_N "(cached) $ECHO_C" >&6
19732 else
19733   eval "$as_ac_Header=$ac_header_preproc"
19734 fi
19735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19737
19738 fi
19739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19740   cat >>confdefs.h <<_ACEOF
19741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19742 _ACEOF
19743
19744 fi
19745
19746 done
19747
19748
19749
19750
19751 for ac_header in dlfcn.h link.h
19752 do
19753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19755   echo "$as_me:$LINENO: checking for $ac_header" >&5
19756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19758   echo $ECHO_N "(cached) $ECHO_C" >&6
19759 fi
19760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19762 else
19763   # Is the header compilable?
19764 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19766 cat >conftest.$ac_ext <<_ACEOF
19767 #line $LINENO "configure"
19768 /* confdefs.h.  */
19769 _ACEOF
19770 cat confdefs.h >>conftest.$ac_ext
19771 cat >>conftest.$ac_ext <<_ACEOF
19772 /* end confdefs.h.  */
19773 $ac_includes_default
19774 #include <$ac_header>
19775 _ACEOF
19776 rm -f conftest.$ac_objext
19777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19778   (eval $ac_compile) 2>&5
19779   ac_status=$?
19780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781   (exit $ac_status); } &&
19782          { ac_try='test -s conftest.$ac_objext'
19783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19784   (eval $ac_try) 2>&5
19785   ac_status=$?
19786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787   (exit $ac_status); }; }; then
19788   ac_header_compiler=yes
19789 else
19790   echo "$as_me: failed program was:" >&5
19791 sed 's/^/| /' conftest.$ac_ext >&5
19792
19793 ac_header_compiler=no
19794 fi
19795 rm -f conftest.$ac_objext conftest.$ac_ext
19796 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19797 echo "${ECHO_T}$ac_header_compiler" >&6
19798
19799 # Is the header present?
19800 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19801 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19802 cat >conftest.$ac_ext <<_ACEOF
19803 #line $LINENO "configure"
19804 /* confdefs.h.  */
19805 _ACEOF
19806 cat confdefs.h >>conftest.$ac_ext
19807 cat >>conftest.$ac_ext <<_ACEOF
19808 /* end confdefs.h.  */
19809 #include <$ac_header>
19810 _ACEOF
19811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19812   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19813   ac_status=$?
19814   grep -v '^ *+' conftest.er1 >conftest.err
19815   rm -f conftest.er1
19816   cat conftest.err >&5
19817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818   (exit $ac_status); } >/dev/null; then
19819   if test -s conftest.err; then
19820     ac_cpp_err=$ac_c_preproc_warn_flag
19821   else
19822     ac_cpp_err=
19823   fi
19824 else
19825   ac_cpp_err=yes
19826 fi
19827 if test -z "$ac_cpp_err"; then
19828   ac_header_preproc=yes
19829 else
19830   echo "$as_me: failed program was:" >&5
19831 sed 's/^/| /' conftest.$ac_ext >&5
19832
19833   ac_header_preproc=no
19834 fi
19835 rm -f conftest.err conftest.$ac_ext
19836 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19837 echo "${ECHO_T}$ac_header_preproc" >&6
19838
19839 # So?  What about this header?
19840 case $ac_header_compiler:$ac_header_preproc in
19841   yes:no )
19842     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19843 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19844     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19846     (
19847       cat <<\_ASBOX
19848 ## ------------------------------------ ##
19849 ## Report this to bug-autoconf@gnu.org. ##
19850 ## ------------------------------------ ##
19851 _ASBOX
19852     ) |
19853       sed "s/^/$as_me: WARNING:     /" >&2
19854     ;;
19855   no:yes )
19856     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19857 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19858     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19859 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19860     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19862     (
19863       cat <<\_ASBOX
19864 ## ------------------------------------ ##
19865 ## Report this to bug-autoconf@gnu.org. ##
19866 ## ------------------------------------ ##
19867 _ASBOX
19868     ) |
19869       sed "s/^/$as_me: WARNING:     /" >&2
19870     ;;
19871 esac
19872 echo "$as_me:$LINENO: checking for $ac_header" >&5
19873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19875   echo $ECHO_N "(cached) $ECHO_C" >&6
19876 else
19877   eval "$as_ac_Header=$ac_header_preproc"
19878 fi
19879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19881
19882 fi
19883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19884   cat >>confdefs.h <<_ACEOF
19885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19886 _ACEOF
19887
19888 fi
19889
19890 done
19891
19892
19893
19894 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19895 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19896 if test "${ac_cv_c_const+set}" = set; then
19897   echo $ECHO_N "(cached) $ECHO_C" >&6
19898 else
19899   cat >conftest.$ac_ext <<_ACEOF
19900 #line $LINENO "configure"
19901 /* confdefs.h.  */
19902 _ACEOF
19903 cat confdefs.h >>conftest.$ac_ext
19904 cat >>conftest.$ac_ext <<_ACEOF
19905 /* end confdefs.h.  */
19906
19907 int
19908 main ()
19909 {
19910 /* FIXME: Include the comments suggested by Paul. */
19911 #ifndef __cplusplus
19912   /* Ultrix mips cc rejects this.  */
19913   typedef int charset[2];
19914   const charset x;
19915   /* SunOS 4.1.1 cc rejects this.  */
19916   char const *const *ccp;
19917   char **p;
19918   /* NEC SVR4.0.2 mips cc rejects this.  */
19919   struct point {int x, y;};
19920   static struct point const zero = {0,0};
19921   /* AIX XL C 1.02.0.0 rejects this.
19922      It does not let you subtract one const X* pointer from another in
19923      an arm of an if-expression whose if-part is not a constant
19924      expression */
19925   const char *g = "string";
19926   ccp = &g + (g ? g-g : 0);
19927   /* HPUX 7.0 cc rejects these. */
19928   ++ccp;
19929   p = (char**) ccp;
19930   ccp = (char const *const *) p;
19931   { /* SCO 3.2v4 cc rejects this.  */
19932     char *t;
19933     char const *s = 0 ? (char *) 0 : (char const *) 0;
19934
19935     *t++ = 0;
19936   }
19937   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19938     int x[] = {25, 17};
19939     const int *foo = &x[0];
19940     ++foo;
19941   }
19942   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19943     typedef const int *iptr;
19944     iptr p = 0;
19945     ++p;
19946   }
19947   { /* AIX XL C 1.02.0.0 rejects this saying
19948        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19949     struct s { int j; const int *ap[3]; };
19950     struct s *b; b->j = 5;
19951   }
19952   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19953     const int foo = 10;
19954   }
19955 #endif
19956
19957   ;
19958   return 0;
19959 }
19960 _ACEOF
19961 rm -f conftest.$ac_objext
19962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19963   (eval $ac_compile) 2>&5
19964   ac_status=$?
19965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966   (exit $ac_status); } &&
19967          { ac_try='test -s conftest.$ac_objext'
19968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19969   (eval $ac_try) 2>&5
19970   ac_status=$?
19971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972   (exit $ac_status); }; }; then
19973   ac_cv_c_const=yes
19974 else
19975   echo "$as_me: failed program was:" >&5
19976 sed 's/^/| /' conftest.$ac_ext >&5
19977
19978 ac_cv_c_const=no
19979 fi
19980 rm -f conftest.$ac_objext conftest.$ac_ext
19981 fi
19982 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19983 echo "${ECHO_T}$ac_cv_c_const" >&6
19984 if test $ac_cv_c_const = no; then
19985
19986 cat >>confdefs.h <<\_ACEOF
19987 #define const
19988 _ACEOF
19989
19990 fi
19991
19992 echo "$as_me:$LINENO: checking for inline" >&5
19993 echo $ECHO_N "checking for inline... $ECHO_C" >&6
19994 if test "${ac_cv_c_inline+set}" = set; then
19995   echo $ECHO_N "(cached) $ECHO_C" >&6
19996 else
19997   ac_cv_c_inline=no
19998 for ac_kw in inline __inline__ __inline; do
19999   cat >conftest.$ac_ext <<_ACEOF
20000 #line $LINENO "configure"
20001 /* confdefs.h.  */
20002 _ACEOF
20003 cat confdefs.h >>conftest.$ac_ext
20004 cat >>conftest.$ac_ext <<_ACEOF
20005 /* end confdefs.h.  */
20006 #ifndef __cplusplus
20007 typedef int foo_t;
20008 static $ac_kw foo_t static_foo () {return 0; }
20009 $ac_kw foo_t foo () {return 0; }
20010 #endif
20011
20012 _ACEOF
20013 rm -f conftest.$ac_objext
20014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20015   (eval $ac_compile) 2>&5
20016   ac_status=$?
20017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018   (exit $ac_status); } &&
20019          { ac_try='test -s conftest.$ac_objext'
20020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20021   (eval $ac_try) 2>&5
20022   ac_status=$?
20023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024   (exit $ac_status); }; }; then
20025   ac_cv_c_inline=$ac_kw; break
20026 else
20027   echo "$as_me: failed program was:" >&5
20028 sed 's/^/| /' conftest.$ac_ext >&5
20029
20030 fi
20031 rm -f conftest.$ac_objext conftest.$ac_ext
20032 done
20033
20034 fi
20035 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20036 echo "${ECHO_T}$ac_cv_c_inline" >&6
20037 case $ac_cv_c_inline in
20038   inline | yes) ;;
20039   no)
20040 cat >>confdefs.h <<\_ACEOF
20041 #define inline
20042 _ACEOF
20043  ;;
20044   *)  cat >>confdefs.h <<_ACEOF
20045 #define inline $ac_cv_c_inline
20046 _ACEOF
20047  ;;
20048 esac
20049
20050
20051 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20052 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20053 if test "${ac_cv_c_bigendian+set}" = set; then
20054   echo $ECHO_N "(cached) $ECHO_C" >&6
20055 else
20056   # See if sys/param.h defines the BYTE_ORDER macro.
20057 cat >conftest.$ac_ext <<_ACEOF
20058 #line $LINENO "configure"
20059 /* confdefs.h.  */
20060 _ACEOF
20061 cat confdefs.h >>conftest.$ac_ext
20062 cat >>conftest.$ac_ext <<_ACEOF
20063 /* end confdefs.h.  */
20064 #include <sys/types.h>
20065 #include <sys/param.h>
20066
20067 int
20068 main ()
20069 {
20070 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20071  bogus endian macros
20072 #endif
20073
20074   ;
20075   return 0;
20076 }
20077 _ACEOF
20078 rm -f conftest.$ac_objext
20079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20080   (eval $ac_compile) 2>&5
20081   ac_status=$?
20082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083   (exit $ac_status); } &&
20084          { ac_try='test -s conftest.$ac_objext'
20085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20086   (eval $ac_try) 2>&5
20087   ac_status=$?
20088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089   (exit $ac_status); }; }; then
20090   # It does; now see whether it defined to BIG_ENDIAN or not.
20091 cat >conftest.$ac_ext <<_ACEOF
20092 #line $LINENO "configure"
20093 /* confdefs.h.  */
20094 _ACEOF
20095 cat confdefs.h >>conftest.$ac_ext
20096 cat >>conftest.$ac_ext <<_ACEOF
20097 /* end confdefs.h.  */
20098 #include <sys/types.h>
20099 #include <sys/param.h>
20100
20101 int
20102 main ()
20103 {
20104 #if BYTE_ORDER != BIG_ENDIAN
20105  not big endian
20106 #endif
20107
20108   ;
20109   return 0;
20110 }
20111 _ACEOF
20112 rm -f conftest.$ac_objext
20113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20114   (eval $ac_compile) 2>&5
20115   ac_status=$?
20116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117   (exit $ac_status); } &&
20118          { ac_try='test -s conftest.$ac_objext'
20119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20120   (eval $ac_try) 2>&5
20121   ac_status=$?
20122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123   (exit $ac_status); }; }; then
20124   ac_cv_c_bigendian=yes
20125 else
20126   echo "$as_me: failed program was:" >&5
20127 sed 's/^/| /' conftest.$ac_ext >&5
20128
20129 ac_cv_c_bigendian=no
20130 fi
20131 rm -f conftest.$ac_objext conftest.$ac_ext
20132 else
20133   echo "$as_me: failed program was:" >&5
20134 sed 's/^/| /' conftest.$ac_ext >&5
20135
20136 # It does not; compile a test program.
20137 if test "$cross_compiling" = yes; then
20138   # try to guess the endianness by grepping values into an object file
20139   ac_cv_c_bigendian=unknown
20140   cat >conftest.$ac_ext <<_ACEOF
20141 #line $LINENO "configure"
20142 /* confdefs.h.  */
20143 _ACEOF
20144 cat confdefs.h >>conftest.$ac_ext
20145 cat >>conftest.$ac_ext <<_ACEOF
20146 /* end confdefs.h.  */
20147 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20148 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20149 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20150 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20151 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20152 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20153 int
20154 main ()
20155 {
20156  _ascii (); _ebcdic ();
20157   ;
20158   return 0;
20159 }
20160 _ACEOF
20161 rm -f conftest.$ac_objext
20162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20163   (eval $ac_compile) 2>&5
20164   ac_status=$?
20165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166   (exit $ac_status); } &&
20167          { ac_try='test -s conftest.$ac_objext'
20168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20169   (eval $ac_try) 2>&5
20170   ac_status=$?
20171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172   (exit $ac_status); }; }; then
20173   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20174   ac_cv_c_bigendian=yes
20175 fi
20176 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20177   if test "$ac_cv_c_bigendian" = unknown; then
20178     ac_cv_c_bigendian=no
20179   else
20180     # finding both strings is unlikely to happen, but who knows?
20181     ac_cv_c_bigendian=unknown
20182   fi
20183 fi
20184 else
20185   echo "$as_me: failed program was:" >&5
20186 sed 's/^/| /' conftest.$ac_ext >&5
20187
20188 fi
20189 rm -f conftest.$ac_objext conftest.$ac_ext
20190 else
20191   cat >conftest.$ac_ext <<_ACEOF
20192 #line $LINENO "configure"
20193 /* confdefs.h.  */
20194 _ACEOF
20195 cat confdefs.h >>conftest.$ac_ext
20196 cat >>conftest.$ac_ext <<_ACEOF
20197 /* end confdefs.h.  */
20198 int
20199 main ()
20200 {
20201   /* Are we little or big endian?  From Harbison&Steele.  */
20202   union
20203   {
20204     long l;
20205     char c[sizeof (long)];
20206   } u;
20207   u.l = 1;
20208   exit (u.c[sizeof (long) - 1] == 1);
20209 }
20210 _ACEOF
20211 rm -f conftest$ac_exeext
20212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20213   (eval $ac_link) 2>&5
20214   ac_status=$?
20215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20218   (eval $ac_try) 2>&5
20219   ac_status=$?
20220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221   (exit $ac_status); }; }; then
20222   ac_cv_c_bigendian=no
20223 else
20224   echo "$as_me: program exited with status $ac_status" >&5
20225 echo "$as_me: failed program was:" >&5
20226 sed 's/^/| /' conftest.$ac_ext >&5
20227
20228 ( exit $ac_status )
20229 ac_cv_c_bigendian=yes
20230 fi
20231 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20232 fi
20233 fi
20234 rm -f conftest.$ac_objext conftest.$ac_ext
20235 fi
20236 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20237 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20238 case $ac_cv_c_bigendian in
20239   yes)
20240     cat >>confdefs.h <<\_ACEOF
20241 #define ENDIAN_BIG 1
20242 _ACEOF
20243  ;;
20244   no)
20245     cat >>confdefs.h <<\_ACEOF
20246 #define ENDIAN_LITTLE 1
20247 _ACEOF
20248  ;;
20249   *)
20250     { { echo "$as_me:$LINENO: error: unknown endianness
20251 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20252 echo "$as_me: error: unknown endianness
20253 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20254    { (exit 1); exit 1; }; } ;;
20255 esac
20256
20257
20258 echo "$as_me:$LINENO: checking for pid_t" >&5
20259 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20260 if test "${ac_cv_type_pid_t+set}" = set; then
20261   echo $ECHO_N "(cached) $ECHO_C" >&6
20262 else
20263   cat >conftest.$ac_ext <<_ACEOF
20264 #line $LINENO "configure"
20265 /* confdefs.h.  */
20266 _ACEOF
20267 cat confdefs.h >>conftest.$ac_ext
20268 cat >>conftest.$ac_ext <<_ACEOF
20269 /* end confdefs.h.  */
20270 $ac_includes_default
20271 int
20272 main ()
20273 {
20274 if ((pid_t *) 0)
20275   return 0;
20276 if (sizeof (pid_t))
20277   return 0;
20278   ;
20279   return 0;
20280 }
20281 _ACEOF
20282 rm -f conftest.$ac_objext
20283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20284   (eval $ac_compile) 2>&5
20285   ac_status=$?
20286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287   (exit $ac_status); } &&
20288          { ac_try='test -s conftest.$ac_objext'
20289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20290   (eval $ac_try) 2>&5
20291   ac_status=$?
20292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293   (exit $ac_status); }; }; then
20294   ac_cv_type_pid_t=yes
20295 else
20296   echo "$as_me: failed program was:" >&5
20297 sed 's/^/| /' conftest.$ac_ext >&5
20298
20299 ac_cv_type_pid_t=no
20300 fi
20301 rm -f conftest.$ac_objext conftest.$ac_ext
20302 fi
20303 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20304 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20305 if test $ac_cv_type_pid_t = yes; then
20306   :
20307 else
20308
20309 cat >>confdefs.h <<_ACEOF
20310 #define pid_t int
20311 _ACEOF
20312
20313 fi
20314
20315 echo "$as_me:$LINENO: checking for size_t" >&5
20316 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20317 if test "${ac_cv_type_size_t+set}" = set; then
20318   echo $ECHO_N "(cached) $ECHO_C" >&6
20319 else
20320   cat >conftest.$ac_ext <<_ACEOF
20321 #line $LINENO "configure"
20322 /* confdefs.h.  */
20323 _ACEOF
20324 cat confdefs.h >>conftest.$ac_ext
20325 cat >>conftest.$ac_ext <<_ACEOF
20326 /* end confdefs.h.  */
20327 $ac_includes_default
20328 int
20329 main ()
20330 {
20331 if ((size_t *) 0)
20332   return 0;
20333 if (sizeof (size_t))
20334   return 0;
20335   ;
20336   return 0;
20337 }
20338 _ACEOF
20339 rm -f conftest.$ac_objext
20340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20341   (eval $ac_compile) 2>&5
20342   ac_status=$?
20343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344   (exit $ac_status); } &&
20345          { ac_try='test -s conftest.$ac_objext'
20346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20347   (eval $ac_try) 2>&5
20348   ac_status=$?
20349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350   (exit $ac_status); }; }; then
20351   ac_cv_type_size_t=yes
20352 else
20353   echo "$as_me: failed program was:" >&5
20354 sed 's/^/| /' conftest.$ac_ext >&5
20355
20356 ac_cv_type_size_t=no
20357 fi
20358 rm -f conftest.$ac_objext conftest.$ac_ext
20359 fi
20360 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20361 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20362 if test $ac_cv_type_size_t = yes; then
20363   :
20364 else
20365
20366 cat >>confdefs.h <<_ACEOF
20367 #define size_t unsigned
20368 _ACEOF
20369
20370 fi
20371
20372 echo "$as_me:$LINENO: checking for int64_t" >&5
20373 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20374 if test "${ac_cv_type_int64_t+set}" = set; then
20375   echo $ECHO_N "(cached) $ECHO_C" >&6
20376 else
20377   cat >conftest.$ac_ext <<_ACEOF
20378 #line $LINENO "configure"
20379 /* confdefs.h.  */
20380 _ACEOF
20381 cat confdefs.h >>conftest.$ac_ext
20382 cat >>conftest.$ac_ext <<_ACEOF
20383 /* end confdefs.h.  */
20384 $ac_includes_default
20385 int
20386 main ()
20387 {
20388 if ((int64_t *) 0)
20389   return 0;
20390 if (sizeof (int64_t))
20391   return 0;
20392   ;
20393   return 0;
20394 }
20395 _ACEOF
20396 rm -f conftest.$ac_objext
20397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20398   (eval $ac_compile) 2>&5
20399   ac_status=$?
20400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401   (exit $ac_status); } &&
20402          { ac_try='test -s conftest.$ac_objext'
20403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20404   (eval $ac_try) 2>&5
20405   ac_status=$?
20406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407   (exit $ac_status); }; }; then
20408   ac_cv_type_int64_t=yes
20409 else
20410   echo "$as_me: failed program was:" >&5
20411 sed 's/^/| /' conftest.$ac_ext >&5
20412
20413 ac_cv_type_int64_t=no
20414 fi
20415 rm -f conftest.$ac_objext conftest.$ac_ext
20416 fi
20417 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20418 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20419 if test $ac_cv_type_int64_t = yes; then
20420
20421 cat >>confdefs.h <<_ACEOF
20422 #define HAVE_INT64_T 1
20423 _ACEOF
20424
20425
20426 else
20427   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20428 echo "$as_me: error: Type int64_t required but not found" >&2;}
20429    { (exit 1); exit 1; }; }
20430 fi
20431
20432 echo "$as_me:$LINENO: checking for uint64_t" >&5
20433 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20434 if test "${ac_cv_type_uint64_t+set}" = set; then
20435   echo $ECHO_N "(cached) $ECHO_C" >&6
20436 else
20437   cat >conftest.$ac_ext <<_ACEOF
20438 #line $LINENO "configure"
20439 /* confdefs.h.  */
20440 _ACEOF
20441 cat confdefs.h >>conftest.$ac_ext
20442 cat >>conftest.$ac_ext <<_ACEOF
20443 /* end confdefs.h.  */
20444 $ac_includes_default
20445 int
20446 main ()
20447 {
20448 if ((uint64_t *) 0)
20449   return 0;
20450 if (sizeof (uint64_t))
20451   return 0;
20452   ;
20453   return 0;
20454 }
20455 _ACEOF
20456 rm -f conftest.$ac_objext
20457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20458   (eval $ac_compile) 2>&5
20459   ac_status=$?
20460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461   (exit $ac_status); } &&
20462          { ac_try='test -s conftest.$ac_objext'
20463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20464   (eval $ac_try) 2>&5
20465   ac_status=$?
20466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467   (exit $ac_status); }; }; then
20468   ac_cv_type_uint64_t=yes
20469 else
20470   echo "$as_me: failed program was:" >&5
20471 sed 's/^/| /' conftest.$ac_ext >&5
20472
20473 ac_cv_type_uint64_t=no
20474 fi
20475 rm -f conftest.$ac_objext conftest.$ac_ext
20476 fi
20477 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20478 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20479 if test $ac_cv_type_uint64_t = yes; then
20480
20481 cat >>confdefs.h <<_ACEOF
20482 #define HAVE_UINT64_T 1
20483 _ACEOF
20484
20485
20486 else
20487   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20488 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20489    { (exit 1); exit 1; }; }
20490 fi
20491
20492 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20493 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20494 if test "${ac_cv_header_time+set}" = set; then
20495   echo $ECHO_N "(cached) $ECHO_C" >&6
20496 else
20497   cat >conftest.$ac_ext <<_ACEOF
20498 #line $LINENO "configure"
20499 /* confdefs.h.  */
20500 _ACEOF
20501 cat confdefs.h >>conftest.$ac_ext
20502 cat >>conftest.$ac_ext <<_ACEOF
20503 /* end confdefs.h.  */
20504 #include <sys/types.h>
20505 #include <sys/time.h>
20506 #include <time.h>
20507
20508 int
20509 main ()
20510 {
20511 if ((struct tm *) 0)
20512 return 0;
20513   ;
20514   return 0;
20515 }
20516 _ACEOF
20517 rm -f conftest.$ac_objext
20518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20519   (eval $ac_compile) 2>&5
20520   ac_status=$?
20521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522   (exit $ac_status); } &&
20523          { ac_try='test -s conftest.$ac_objext'
20524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20525   (eval $ac_try) 2>&5
20526   ac_status=$?
20527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528   (exit $ac_status); }; }; then
20529   ac_cv_header_time=yes
20530 else
20531   echo "$as_me: failed program was:" >&5
20532 sed 's/^/| /' conftest.$ac_ext >&5
20533
20534 ac_cv_header_time=no
20535 fi
20536 rm -f conftest.$ac_objext conftest.$ac_ext
20537 fi
20538 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20539 echo "${ECHO_T}$ac_cv_header_time" >&6
20540 if test $ac_cv_header_time = yes; then
20541
20542 cat >>confdefs.h <<\_ACEOF
20543 #define TIME_WITH_SYS_TIME 1
20544 _ACEOF
20545
20546 fi
20547
20548 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20549 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20550 if test "${ac_cv_struct_tm+set}" = set; then
20551   echo $ECHO_N "(cached) $ECHO_C" >&6
20552 else
20553   cat >conftest.$ac_ext <<_ACEOF
20554 #line $LINENO "configure"
20555 /* confdefs.h.  */
20556 _ACEOF
20557 cat confdefs.h >>conftest.$ac_ext
20558 cat >>conftest.$ac_ext <<_ACEOF
20559 /* end confdefs.h.  */
20560 #include <sys/types.h>
20561 #include <time.h>
20562
20563 int
20564 main ()
20565 {
20566 struct tm *tp; tp->tm_sec;
20567   ;
20568   return 0;
20569 }
20570 _ACEOF
20571 rm -f conftest.$ac_objext
20572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20573   (eval $ac_compile) 2>&5
20574   ac_status=$?
20575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576   (exit $ac_status); } &&
20577          { ac_try='test -s conftest.$ac_objext'
20578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20579   (eval $ac_try) 2>&5
20580   ac_status=$?
20581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582   (exit $ac_status); }; }; then
20583   ac_cv_struct_tm=time.h
20584 else
20585   echo "$as_me: failed program was:" >&5
20586 sed 's/^/| /' conftest.$ac_ext >&5
20587
20588 ac_cv_struct_tm=sys/time.h
20589 fi
20590 rm -f conftest.$ac_objext conftest.$ac_ext
20591 fi
20592 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20593 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20594 if test $ac_cv_struct_tm = sys/time.h; then
20595
20596 cat >>confdefs.h <<\_ACEOF
20597 #define TM_IN_SYS_TIME 1
20598 _ACEOF
20599
20600 fi
20601
20602
20603 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20604 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20605 if test "${ac_cv_cxx_namespaces+set}" = set; then
20606   echo $ECHO_N "(cached) $ECHO_C" >&6
20607 else
20608
20609
20610  ac_ext=cc
20611 ac_cpp='$CXXCPP $CPPFLAGS'
20612 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20613 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20614 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20615
20616  cat >conftest.$ac_ext <<_ACEOF
20617 #line $LINENO "configure"
20618 /* confdefs.h.  */
20619 _ACEOF
20620 cat confdefs.h >>conftest.$ac_ext
20621 cat >>conftest.$ac_ext <<_ACEOF
20622 /* end confdefs.h.  */
20623 namespace Outer { namespace Inner { int i = 0; }}
20624 int
20625 main ()
20626 {
20627 using namespace Outer::Inner; return i;
20628   ;
20629   return 0;
20630 }
20631 _ACEOF
20632 rm -f conftest.$ac_objext
20633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20634   (eval $ac_compile) 2>&5
20635   ac_status=$?
20636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637   (exit $ac_status); } &&
20638          { ac_try='test -s conftest.$ac_objext'
20639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20640   (eval $ac_try) 2>&5
20641   ac_status=$?
20642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643   (exit $ac_status); }; }; then
20644   ac_cv_cxx_namespaces=yes
20645 else
20646   echo "$as_me: failed program was:" >&5
20647 sed 's/^/| /' conftest.$ac_ext >&5
20648
20649 ac_cv_cxx_namespaces=no
20650 fi
20651 rm -f conftest.$ac_objext conftest.$ac_ext
20652  ac_ext=c
20653 ac_cpp='$CPP $CPPFLAGS'
20654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20657
20658
20659 fi
20660 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20661 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20662 if test "$ac_cv_cxx_namespaces" = yes; then
20663
20664 cat >>confdefs.h <<\_ACEOF
20665 #define HAVE_NAMESPACES
20666 _ACEOF
20667
20668 fi
20669
20670 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20671 echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20672 if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20673   echo $ECHO_N "(cached) $ECHO_C" >&6
20674 else
20675
20676
20677
20678   ac_ext=cc
20679 ac_cpp='$CXXCPP $CPPFLAGS'
20680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20683
20684   cat >conftest.$ac_ext <<_ACEOF
20685 #line $LINENO "configure"
20686 /* confdefs.h.  */
20687 _ACEOF
20688 cat confdefs.h >>conftest.$ac_ext
20689 cat >>conftest.$ac_ext <<_ACEOF
20690 /* end confdefs.h.  */
20691 #include <ext/hash_map>
20692 #ifdef HAVE_NAMESPACES
20693 using namespace std;
20694 #endif
20695 int
20696 main ()
20697 {
20698 hash_map<int, int> t; return 0;
20699   ;
20700   return 0;
20701 }
20702 _ACEOF
20703 rm -f conftest.$ac_objext
20704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20705   (eval $ac_compile) 2>&5
20706   ac_status=$?
20707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708   (exit $ac_status); } &&
20709          { ac_try='test -s conftest.$ac_objext'
20710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20711   (eval $ac_try) 2>&5
20712   ac_status=$?
20713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714   (exit $ac_status); }; }; then
20715   ac_cv_cxx_have_ext_hash_map=std
20716 else
20717   echo "$as_me: failed program was:" >&5
20718 sed 's/^/| /' conftest.$ac_ext >&5
20719
20720 ac_cv_cxx_have_ext_hash_map=no
20721 fi
20722 rm -f conftest.$ac_objext conftest.$ac_ext
20723   cat >conftest.$ac_ext <<_ACEOF
20724 #line $LINENO "configure"
20725 /* confdefs.h.  */
20726 _ACEOF
20727 cat confdefs.h >>conftest.$ac_ext
20728 cat >>conftest.$ac_ext <<_ACEOF
20729 /* end confdefs.h.  */
20730 #include <ext/hash_map>
20731 #ifdef HAVE_NAMESPACES
20732 using namespace __gnu_cxx;
20733 #endif
20734 int
20735 main ()
20736 {
20737 hash_map<int, int> t; return 0;
20738   ;
20739   return 0;
20740 }
20741 _ACEOF
20742 rm -f conftest.$ac_objext
20743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20744   (eval $ac_compile) 2>&5
20745   ac_status=$?
20746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747   (exit $ac_status); } &&
20748          { ac_try='test -s conftest.$ac_objext'
20749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750   (eval $ac_try) 2>&5
20751   ac_status=$?
20752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753   (exit $ac_status); }; }; then
20754   ac_cv_cxx_have_ext_hash_map=gnu
20755 else
20756   echo "$as_me: failed program was:" >&5
20757 sed 's/^/| /' conftest.$ac_ext >&5
20758
20759 ac_cv_cxx_have_ext_hash_map=no
20760 fi
20761 rm -f conftest.$ac_objext conftest.$ac_ext
20762   ac_ext=c
20763 ac_cpp='$CPP $CPPFLAGS'
20764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20767
20768
20769 fi
20770 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20771 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20772 if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20773
20774 cat >>confdefs.h <<\_ACEOF
20775 #define HAVE_STD_EXT_HASH_MAP
20776 _ACEOF
20777
20778 fi
20779 if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20780
20781 cat >>confdefs.h <<\_ACEOF
20782 #define HAVE_GNU_EXT_HASH_MAP
20783 _ACEOF
20784
20785 fi
20786
20787 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20788 echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20789 if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20790   echo $ECHO_N "(cached) $ECHO_C" >&6
20791 else
20792
20793
20794
20795   ac_ext=cc
20796 ac_cpp='$CXXCPP $CPPFLAGS'
20797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20800
20801   cat >conftest.$ac_ext <<_ACEOF
20802 #line $LINENO "configure"
20803 /* confdefs.h.  */
20804 _ACEOF
20805 cat confdefs.h >>conftest.$ac_ext
20806 cat >>conftest.$ac_ext <<_ACEOF
20807 /* end confdefs.h.  */
20808 #include <ext/hash_set>
20809 #ifdef HAVE_NAMESPACES
20810 using namespace std;
20811 #endif
20812 int
20813 main ()
20814 {
20815 hash_set<int> t; return 0;
20816   ;
20817   return 0;
20818 }
20819 _ACEOF
20820 rm -f conftest.$ac_objext
20821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20822   (eval $ac_compile) 2>&5
20823   ac_status=$?
20824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825   (exit $ac_status); } &&
20826          { ac_try='test -s conftest.$ac_objext'
20827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20828   (eval $ac_try) 2>&5
20829   ac_status=$?
20830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831   (exit $ac_status); }; }; then
20832   ac_cv_cxx_have_ext_hash_set=std
20833 else
20834   echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20836
20837 ac_cv_cxx_have_ext_hash_set=no
20838 fi
20839 rm -f conftest.$ac_objext conftest.$ac_ext
20840   cat >conftest.$ac_ext <<_ACEOF
20841 #line $LINENO "configure"
20842 /* confdefs.h.  */
20843 _ACEOF
20844 cat confdefs.h >>conftest.$ac_ext
20845 cat >>conftest.$ac_ext <<_ACEOF
20846 /* end confdefs.h.  */
20847 #include <ext/hash_set>
20848 #ifdef HAVE_NAMESPACES
20849 using namespace __gnu_cxx;
20850 #endif
20851 int
20852 main ()
20853 {
20854 hash_set<int> t; return 0;
20855   ;
20856   return 0;
20857 }
20858 _ACEOF
20859 rm -f conftest.$ac_objext
20860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20861   (eval $ac_compile) 2>&5
20862   ac_status=$?
20863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864   (exit $ac_status); } &&
20865          { ac_try='test -s conftest.$ac_objext'
20866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20867   (eval $ac_try) 2>&5
20868   ac_status=$?
20869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870   (exit $ac_status); }; }; then
20871   ac_cv_cxx_have_ext_hash_set=gnu
20872 else
20873   echo "$as_me: failed program was:" >&5
20874 sed 's/^/| /' conftest.$ac_ext >&5
20875
20876 ac_cv_cxx_have_ext_hash_set=no
20877 fi
20878 rm -f conftest.$ac_objext conftest.$ac_ext
20879   ac_ext=c
20880 ac_cpp='$CPP $CPPFLAGS'
20881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20884
20885
20886 fi
20887 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20888 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20889 if test "$ac_cv_cxx_have_ext_hash_set" = std; then
20890
20891 cat >>confdefs.h <<\_ACEOF
20892 #define HAVE_STD_EXT_HASH_SET
20893 _ACEOF
20894
20895 fi
20896 if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
20897
20898 cat >>confdefs.h <<\_ACEOF
20899 #define HAVE_GNU_EXT_HASH_SET
20900 _ACEOF
20901
20902 fi
20903
20904 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20905 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20906 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20907   echo $ECHO_N "(cached) $ECHO_C" >&6
20908 else
20909
20910
20911
20912   ac_ext=cc
20913 ac_cpp='$CXXCPP $CPPFLAGS'
20914 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20915 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20916 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20917
20918   cat >conftest.$ac_ext <<_ACEOF
20919 #line $LINENO "configure"
20920 /* confdefs.h.  */
20921 _ACEOF
20922 cat confdefs.h >>conftest.$ac_ext
20923 cat >>conftest.$ac_ext <<_ACEOF
20924 /* end confdefs.h.  */
20925 #include <ext/slist>
20926 #ifdef HAVE_NAMESPACES
20927 using namespace std;
20928 #endif
20929 int
20930 main ()
20931 {
20932 slist<int> s; return 0;
20933   ;
20934   return 0;
20935 }
20936 _ACEOF
20937 rm -f conftest.$ac_objext
20938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20939   (eval $ac_compile) 2>&5
20940   ac_status=$?
20941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942   (exit $ac_status); } &&
20943          { ac_try='test -s conftest.$ac_objext'
20944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20945   (eval $ac_try) 2>&5
20946   ac_status=$?
20947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948   (exit $ac_status); }; }; then
20949   ac_cv_cxx_have_ext_slist=std
20950 else
20951   echo "$as_me: failed program was:" >&5
20952 sed 's/^/| /' conftest.$ac_ext >&5
20953
20954 ac_cv_cxx_have_ext_slist=no
20955 fi
20956 rm -f conftest.$ac_objext conftest.$ac_ext
20957   cat >conftest.$ac_ext <<_ACEOF
20958 #line $LINENO "configure"
20959 /* confdefs.h.  */
20960 _ACEOF
20961 cat confdefs.h >>conftest.$ac_ext
20962 cat >>conftest.$ac_ext <<_ACEOF
20963 /* end confdefs.h.  */
20964 #include <ext/slist>
20965 #ifdef HAVE_NAMESPACES
20966 using namespace __gnu_cxx;
20967 #endif
20968 int
20969 main ()
20970 {
20971 slist<int> s; return 0;
20972   ;
20973   return 0;
20974 }
20975 _ACEOF
20976 rm -f conftest.$ac_objext
20977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20978   (eval $ac_compile) 2>&5
20979   ac_status=$?
20980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981   (exit $ac_status); } &&
20982          { ac_try='test -s conftest.$ac_objext'
20983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20984   (eval $ac_try) 2>&5
20985   ac_status=$?
20986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987   (exit $ac_status); }; }; then
20988   ac_cv_cxx_have_ext_slist=gnu
20989 else
20990   echo "$as_me: failed program was:" >&5
20991 sed 's/^/| /' conftest.$ac_ext >&5
20992
20993 ac_cv_cxx_have_ext_slist=no
20994 fi
20995 rm -f conftest.$ac_objext conftest.$ac_ext
20996
20997   ac_ext=c
20998 ac_cpp='$CPP $CPPFLAGS'
20999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21002
21003
21004 fi
21005 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21006 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21007 if test "$ac_cv_cxx_have_ext_slist" = std; then
21008
21009 cat >>confdefs.h <<\_ACEOF
21010 #define HAVE_EXT_SLIST std
21011 _ACEOF
21012
21013 fi
21014 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21015
21016 cat >>confdefs.h <<\_ACEOF
21017 #define HAVE_EXT_SLIST gnu
21018 _ACEOF
21019
21020 fi
21021
21022 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21023 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21024 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21025   echo $ECHO_N "(cached) $ECHO_C" >&6
21026 else
21027
21028
21029
21030   ac_ext=cc
21031 ac_cpp='$CXXCPP $CPPFLAGS'
21032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21035
21036   cat >conftest.$ac_ext <<_ACEOF
21037 #line $LINENO "configure"
21038 /* confdefs.h.  */
21039 _ACEOF
21040 cat confdefs.h >>conftest.$ac_ext
21041 cat >>conftest.$ac_ext <<_ACEOF
21042 /* end confdefs.h.  */
21043 #include <iterator>
21044 #ifdef HAVE_NAMESPACES
21045 using namespace std;
21046 #endif
21047 int
21048 main ()
21049 {
21050 iterator<int,int,int> t; return 0;
21051   ;
21052   return 0;
21053 }
21054 _ACEOF
21055 rm -f conftest.$ac_objext
21056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21057   (eval $ac_compile) 2>&5
21058   ac_status=$?
21059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060   (exit $ac_status); } &&
21061          { ac_try='test -s conftest.$ac_objext'
21062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21063   (eval $ac_try) 2>&5
21064   ac_status=$?
21065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066   (exit $ac_status); }; }; then
21067   ac_cv_cxx_have_std_iterator=yes
21068 else
21069   echo "$as_me: failed program was:" >&5
21070 sed 's/^/| /' conftest.$ac_ext >&5
21071
21072 ac_cv_cxx_have_std_iterator=no
21073 fi
21074 rm -f conftest.$ac_objext conftest.$ac_ext
21075   ac_ext=c
21076 ac_cpp='$CPP $CPPFLAGS'
21077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21080
21081
21082 fi
21083 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21084 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21085 if test "$ac_cv_cxx_have_std_iterator" = yes; then
21086
21087 cat >>confdefs.h <<\_ACEOF
21088 #define HAVE_STD_ITERATOR
21089 _ACEOF
21090
21091 fi
21092
21093 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21094 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21095 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21096   echo $ECHO_N "(cached) $ECHO_C" >&6
21097 else
21098
21099
21100
21101   ac_ext=cc
21102 ac_cpp='$CXXCPP $CPPFLAGS'
21103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21106
21107   cat >conftest.$ac_ext <<_ACEOF
21108 #line $LINENO "configure"
21109 /* confdefs.h.  */
21110 _ACEOF
21111 cat confdefs.h >>conftest.$ac_ext
21112 cat >>conftest.$ac_ext <<_ACEOF
21113 /* end confdefs.h.  */
21114 #include <iterator>
21115 #ifdef HAVE_NAMESPACES
21116 using namespace std;
21117 #endif
21118 int
21119 main ()
21120 {
21121 bidirectional_iterator<int,int> t; return 0;
21122   ;
21123   return 0;
21124 }
21125 _ACEOF
21126 rm -f conftest.$ac_objext
21127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21128   (eval $ac_compile) 2>&5
21129   ac_status=$?
21130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131   (exit $ac_status); } &&
21132          { ac_try='test -s conftest.$ac_objext'
21133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21134   (eval $ac_try) 2>&5
21135   ac_status=$?
21136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137   (exit $ac_status); }; }; then
21138   ac_cv_cxx_have_bi_iterator=yes
21139 else
21140   echo "$as_me: failed program was:" >&5
21141 sed 's/^/| /' conftest.$ac_ext >&5
21142
21143 ac_cv_cxx_have_bi_iterator=no
21144 fi
21145 rm -f conftest.$ac_objext conftest.$ac_ext
21146   ac_ext=c
21147 ac_cpp='$CPP $CPPFLAGS'
21148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21151
21152
21153 fi
21154 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21155 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21156 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21157
21158 cat >>confdefs.h <<\_ACEOF
21159 #define HAVE_BI_ITERATOR
21160 _ACEOF
21161
21162 fi
21163
21164 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21165 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21166 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21167   echo $ECHO_N "(cached) $ECHO_C" >&6
21168 else
21169
21170
21171
21172   ac_ext=cc
21173 ac_cpp='$CXXCPP $CPPFLAGS'
21174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21177
21178   cat >conftest.$ac_ext <<_ACEOF
21179 #line $LINENO "configure"
21180 /* confdefs.h.  */
21181 _ACEOF
21182 cat confdefs.h >>conftest.$ac_ext
21183 cat >>conftest.$ac_ext <<_ACEOF
21184 /* end confdefs.h.  */
21185 #include <iterator>
21186 #ifdef HAVE_NAMESPACES
21187 using namespace std;
21188 #endif
21189 int
21190 main ()
21191 {
21192 forward_iterator<int,int> t; return 0;
21193   ;
21194   return 0;
21195 }
21196 _ACEOF
21197 rm -f conftest.$ac_objext
21198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21199   (eval $ac_compile) 2>&5
21200   ac_status=$?
21201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202   (exit $ac_status); } &&
21203          { ac_try='test -s conftest.$ac_objext'
21204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21205   (eval $ac_try) 2>&5
21206   ac_status=$?
21207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208   (exit $ac_status); }; }; then
21209   ac_cv_cxx_have_fwd_iterator=yes
21210 else
21211   echo "$as_me: failed program was:" >&5
21212 sed 's/^/| /' conftest.$ac_ext >&5
21213
21214 ac_cv_cxx_have_fwd_iterator=no
21215 fi
21216 rm -f conftest.$ac_objext conftest.$ac_ext
21217   ac_ext=c
21218 ac_cpp='$CPP $CPPFLAGS'
21219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21222
21223
21224 fi
21225 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21226 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21227 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21228
21229 cat >>confdefs.h <<\_ACEOF
21230 #define HAVE_FWD_ITERATOR
21231 _ACEOF
21232
21233 fi
21234
21235
21236 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21237 # for constant arguments.  Useless!
21238 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21239 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21240 if test "${ac_cv_working_alloca_h+set}" = set; then
21241   echo $ECHO_N "(cached) $ECHO_C" >&6
21242 else
21243   cat >conftest.$ac_ext <<_ACEOF
21244 #line $LINENO "configure"
21245 /* confdefs.h.  */
21246 _ACEOF
21247 cat confdefs.h >>conftest.$ac_ext
21248 cat >>conftest.$ac_ext <<_ACEOF
21249 /* end confdefs.h.  */
21250 #include <alloca.h>
21251 int
21252 main ()
21253 {
21254 char *p = (char *) alloca (2 * sizeof (int));
21255   ;
21256   return 0;
21257 }
21258 _ACEOF
21259 rm -f conftest.$ac_objext conftest$ac_exeext
21260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21261   (eval $ac_link) 2>&5
21262   ac_status=$?
21263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264   (exit $ac_status); } &&
21265          { ac_try='test -s conftest$ac_exeext'
21266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267   (eval $ac_try) 2>&5
21268   ac_status=$?
21269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270   (exit $ac_status); }; }; then
21271   ac_cv_working_alloca_h=yes
21272 else
21273   echo "$as_me: failed program was:" >&5
21274 sed 's/^/| /' conftest.$ac_ext >&5
21275
21276 ac_cv_working_alloca_h=no
21277 fi
21278 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21279 fi
21280 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21281 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21282 if test $ac_cv_working_alloca_h = yes; then
21283
21284 cat >>confdefs.h <<\_ACEOF
21285 #define HAVE_ALLOCA_H 1
21286 _ACEOF
21287
21288 fi
21289
21290 echo "$as_me:$LINENO: checking for alloca" >&5
21291 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21292 if test "${ac_cv_func_alloca_works+set}" = set; then
21293   echo $ECHO_N "(cached) $ECHO_C" >&6
21294 else
21295   cat >conftest.$ac_ext <<_ACEOF
21296 #line $LINENO "configure"
21297 /* confdefs.h.  */
21298 _ACEOF
21299 cat confdefs.h >>conftest.$ac_ext
21300 cat >>conftest.$ac_ext <<_ACEOF
21301 /* end confdefs.h.  */
21302 #ifdef __GNUC__
21303 # define alloca __builtin_alloca
21304 #else
21305 # ifdef _MSC_VER
21306 #  include <malloc.h>
21307 #  define alloca _alloca
21308 # else
21309 #  if HAVE_ALLOCA_H
21310 #   include <alloca.h>
21311 #  else
21312 #   ifdef _AIX
21313  #pragma alloca
21314 #   else
21315 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21316 char *alloca ();
21317 #    endif
21318 #   endif
21319 #  endif
21320 # endif
21321 #endif
21322
21323 int
21324 main ()
21325 {
21326 char *p = (char *) alloca (1);
21327   ;
21328   return 0;
21329 }
21330 _ACEOF
21331 rm -f conftest.$ac_objext conftest$ac_exeext
21332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21333   (eval $ac_link) 2>&5
21334   ac_status=$?
21335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336   (exit $ac_status); } &&
21337          { ac_try='test -s conftest$ac_exeext'
21338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21339   (eval $ac_try) 2>&5
21340   ac_status=$?
21341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342   (exit $ac_status); }; }; then
21343   ac_cv_func_alloca_works=yes
21344 else
21345   echo "$as_me: failed program was:" >&5
21346 sed 's/^/| /' conftest.$ac_ext >&5
21347
21348 ac_cv_func_alloca_works=no
21349 fi
21350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21351 fi
21352 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21353 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21354
21355 if test $ac_cv_func_alloca_works = yes; then
21356
21357 cat >>confdefs.h <<\_ACEOF
21358 #define HAVE_ALLOCA 1
21359 _ACEOF
21360
21361 else
21362   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21363 # that cause trouble.  Some versions do not even contain alloca or
21364 # contain a buggy version.  If you still want to use their alloca,
21365 # use ar to extract alloca.o from them instead of compiling alloca.c.
21366
21367 ALLOCA=alloca.$ac_objext
21368
21369 cat >>confdefs.h <<\_ACEOF
21370 #define C_ALLOCA 1
21371 _ACEOF
21372
21373
21374 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21375 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21376 if test "${ac_cv_os_cray+set}" = set; then
21377   echo $ECHO_N "(cached) $ECHO_C" >&6
21378 else
21379   cat >conftest.$ac_ext <<_ACEOF
21380 #line $LINENO "configure"
21381 /* confdefs.h.  */
21382 _ACEOF
21383 cat confdefs.h >>conftest.$ac_ext
21384 cat >>conftest.$ac_ext <<_ACEOF
21385 /* end confdefs.h.  */
21386 #if defined(CRAY) && ! defined(CRAY2)
21387 webecray
21388 #else
21389 wenotbecray
21390 #endif
21391
21392 _ACEOF
21393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21394   $EGREP "webecray" >/dev/null 2>&1; then
21395   ac_cv_os_cray=yes
21396 else
21397   ac_cv_os_cray=no
21398 fi
21399 rm -f conftest*
21400
21401 fi
21402 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21403 echo "${ECHO_T}$ac_cv_os_cray" >&6
21404 if test $ac_cv_os_cray = yes; then
21405   for ac_func in _getb67 GETB67 getb67; do
21406     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21407 echo "$as_me:$LINENO: checking for $ac_func" >&5
21408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21409 if eval "test \"\${$as_ac_var+set}\" = set"; then
21410   echo $ECHO_N "(cached) $ECHO_C" >&6
21411 else
21412   cat >conftest.$ac_ext <<_ACEOF
21413 #line $LINENO "configure"
21414 /* confdefs.h.  */
21415 _ACEOF
21416 cat confdefs.h >>conftest.$ac_ext
21417 cat >>conftest.$ac_ext <<_ACEOF
21418 /* end confdefs.h.  */
21419 /* System header to define __stub macros and hopefully few prototypes,
21420     which can conflict with char $ac_func (); below.
21421     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21422     <limits.h> exists even on freestanding compilers.  */
21423 #ifdef __STDC__
21424 # include <limits.h>
21425 #else
21426 # include <assert.h>
21427 #endif
21428 /* Override any gcc2 internal prototype to avoid an error.  */
21429 #ifdef __cplusplus
21430 extern "C"
21431 {
21432 #endif
21433 /* We use char because int might match the return type of a gcc2
21434    builtin and then its argument prototype would still apply.  */
21435 char $ac_func ();
21436 /* The GNU C library defines this for functions which it implements
21437     to always fail with ENOSYS.  Some functions are actually named
21438     something starting with __ and the normal name is an alias.  */
21439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21440 choke me
21441 #else
21442 char (*f) () = $ac_func;
21443 #endif
21444 #ifdef __cplusplus
21445 }
21446 #endif
21447
21448 int
21449 main ()
21450 {
21451 return f != $ac_func;
21452   ;
21453   return 0;
21454 }
21455 _ACEOF
21456 rm -f conftest.$ac_objext conftest$ac_exeext
21457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21458   (eval $ac_link) 2>&5
21459   ac_status=$?
21460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461   (exit $ac_status); } &&
21462          { ac_try='test -s conftest$ac_exeext'
21463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21464   (eval $ac_try) 2>&5
21465   ac_status=$?
21466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467   (exit $ac_status); }; }; then
21468   eval "$as_ac_var=yes"
21469 else
21470   echo "$as_me: failed program was:" >&5
21471 sed 's/^/| /' conftest.$ac_ext >&5
21472
21473 eval "$as_ac_var=no"
21474 fi
21475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21476 fi
21477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21478 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21479 if test `eval echo '${'$as_ac_var'}'` = yes; then
21480
21481 cat >>confdefs.h <<_ACEOF
21482 #define CRAY_STACKSEG_END $ac_func
21483 _ACEOF
21484
21485     break
21486 fi
21487
21488   done
21489 fi
21490
21491 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21492 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21493 if test "${ac_cv_c_stack_direction+set}" = set; then
21494   echo $ECHO_N "(cached) $ECHO_C" >&6
21495 else
21496   if test "$cross_compiling" = yes; then
21497   ac_cv_c_stack_direction=0
21498 else
21499   cat >conftest.$ac_ext <<_ACEOF
21500 #line $LINENO "configure"
21501 /* confdefs.h.  */
21502 _ACEOF
21503 cat confdefs.h >>conftest.$ac_ext
21504 cat >>conftest.$ac_ext <<_ACEOF
21505 /* end confdefs.h.  */
21506 int
21507 find_stack_direction ()
21508 {
21509   static char *addr = 0;
21510   auto char dummy;
21511   if (addr == 0)
21512     {
21513       addr = &dummy;
21514       return find_stack_direction ();
21515     }
21516   else
21517     return (&dummy > addr) ? 1 : -1;
21518 }
21519
21520 int
21521 main ()
21522 {
21523   exit (find_stack_direction () < 0);
21524 }
21525 _ACEOF
21526 rm -f conftest$ac_exeext
21527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21528   (eval $ac_link) 2>&5
21529   ac_status=$?
21530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21533   (eval $ac_try) 2>&5
21534   ac_status=$?
21535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536   (exit $ac_status); }; }; then
21537   ac_cv_c_stack_direction=1
21538 else
21539   echo "$as_me: program exited with status $ac_status" >&5
21540 echo "$as_me: failed program was:" >&5
21541 sed 's/^/| /' conftest.$ac_ext >&5
21542
21543 ( exit $ac_status )
21544 ac_cv_c_stack_direction=-1
21545 fi
21546 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21547 fi
21548 fi
21549 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21550 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21551
21552 cat >>confdefs.h <<_ACEOF
21553 #define STACK_DIRECTION $ac_cv_c_stack_direction
21554 _ACEOF
21555
21556
21557 fi
21558
21559 if test $ac_cv_c_compiler_gnu = yes; then
21560     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21561 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21562 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21563   echo $ECHO_N "(cached) $ECHO_C" >&6
21564 else
21565     ac_pattern="Autoconf.*'x'"
21566   cat >conftest.$ac_ext <<_ACEOF
21567 #line $LINENO "configure"
21568 /* confdefs.h.  */
21569 _ACEOF
21570 cat confdefs.h >>conftest.$ac_ext
21571 cat >>conftest.$ac_ext <<_ACEOF
21572 /* end confdefs.h.  */
21573 #include <sgtty.h>
21574 Autoconf TIOCGETP
21575 _ACEOF
21576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21577   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21578   ac_cv_prog_gcc_traditional=yes
21579 else
21580   ac_cv_prog_gcc_traditional=no
21581 fi
21582 rm -f conftest*
21583
21584
21585   if test $ac_cv_prog_gcc_traditional = no; then
21586     cat >conftest.$ac_ext <<_ACEOF
21587 #line $LINENO "configure"
21588 /* confdefs.h.  */
21589 _ACEOF
21590 cat confdefs.h >>conftest.$ac_ext
21591 cat >>conftest.$ac_ext <<_ACEOF
21592 /* end confdefs.h.  */
21593 #include <termio.h>
21594 Autoconf TCGETA
21595 _ACEOF
21596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21597   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21598   ac_cv_prog_gcc_traditional=yes
21599 fi
21600 rm -f conftest*
21601
21602   fi
21603 fi
21604 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21605 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21606   if test $ac_cv_prog_gcc_traditional = yes; then
21607     CC="$CC -traditional"
21608   fi
21609 fi
21610
21611 echo "$as_me:$LINENO: checking for working memcmp" >&5
21612 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21613 if test "${ac_cv_func_memcmp_working+set}" = set; then
21614   echo $ECHO_N "(cached) $ECHO_C" >&6
21615 else
21616   if test "$cross_compiling" = yes; then
21617   ac_cv_func_memcmp_working=no
21618 else
21619   cat >conftest.$ac_ext <<_ACEOF
21620 #line $LINENO "configure"
21621 /* confdefs.h.  */
21622 _ACEOF
21623 cat confdefs.h >>conftest.$ac_ext
21624 cat >>conftest.$ac_ext <<_ACEOF
21625 /* end confdefs.h.  */
21626
21627 int
21628 main ()
21629 {
21630
21631   /* Some versions of memcmp are not 8-bit clean.  */
21632   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21633   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21634     exit (1);
21635
21636   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21637      or more and with at least one buffer not starting on a 4-byte boundary.
21638      William Lewis provided this test program.   */
21639   {
21640     char foo[21];
21641     char bar[21];
21642     int i;
21643     for (i = 0; i < 4; i++)
21644       {
21645         char *a = foo + i;
21646         char *b = bar + i;
21647         strcpy (a, "--------01111111");
21648         strcpy (b, "--------10000000");
21649         if (memcmp (a, b, 16) >= 0)
21650           exit (1);
21651       }
21652     exit (0);
21653   }
21654
21655   ;
21656   return 0;
21657 }
21658 _ACEOF
21659 rm -f conftest$ac_exeext
21660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21661   (eval $ac_link) 2>&5
21662   ac_status=$?
21663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21666   (eval $ac_try) 2>&5
21667   ac_status=$?
21668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669   (exit $ac_status); }; }; then
21670   ac_cv_func_memcmp_working=yes
21671 else
21672   echo "$as_me: program exited with status $ac_status" >&5
21673 echo "$as_me: failed program was:" >&5
21674 sed 's/^/| /' conftest.$ac_ext >&5
21675
21676 ( exit $ac_status )
21677 ac_cv_func_memcmp_working=no
21678 fi
21679 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21680 fi
21681 fi
21682 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21683 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21684 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21685
21686
21687
21688 for ac_header in stdlib.h unistd.h
21689 do
21690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21692   echo "$as_me:$LINENO: checking for $ac_header" >&5
21693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21695   echo $ECHO_N "(cached) $ECHO_C" >&6
21696 fi
21697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21699 else
21700   # Is the header compilable?
21701 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21702 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21703 cat >conftest.$ac_ext <<_ACEOF
21704 #line $LINENO "configure"
21705 /* confdefs.h.  */
21706 _ACEOF
21707 cat confdefs.h >>conftest.$ac_ext
21708 cat >>conftest.$ac_ext <<_ACEOF
21709 /* end confdefs.h.  */
21710 $ac_includes_default
21711 #include <$ac_header>
21712 _ACEOF
21713 rm -f conftest.$ac_objext
21714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21715   (eval $ac_compile) 2>&5
21716   ac_status=$?
21717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718   (exit $ac_status); } &&
21719          { ac_try='test -s conftest.$ac_objext'
21720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21721   (eval $ac_try) 2>&5
21722   ac_status=$?
21723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724   (exit $ac_status); }; }; then
21725   ac_header_compiler=yes
21726 else
21727   echo "$as_me: failed program was:" >&5
21728 sed 's/^/| /' conftest.$ac_ext >&5
21729
21730 ac_header_compiler=no
21731 fi
21732 rm -f conftest.$ac_objext conftest.$ac_ext
21733 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21734 echo "${ECHO_T}$ac_header_compiler" >&6
21735
21736 # Is the header present?
21737 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21739 cat >conftest.$ac_ext <<_ACEOF
21740 #line $LINENO "configure"
21741 /* confdefs.h.  */
21742 _ACEOF
21743 cat confdefs.h >>conftest.$ac_ext
21744 cat >>conftest.$ac_ext <<_ACEOF
21745 /* end confdefs.h.  */
21746 #include <$ac_header>
21747 _ACEOF
21748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21749   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21750   ac_status=$?
21751   grep -v '^ *+' conftest.er1 >conftest.err
21752   rm -f conftest.er1
21753   cat conftest.err >&5
21754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755   (exit $ac_status); } >/dev/null; then
21756   if test -s conftest.err; then
21757     ac_cpp_err=$ac_c_preproc_warn_flag
21758   else
21759     ac_cpp_err=
21760   fi
21761 else
21762   ac_cpp_err=yes
21763 fi
21764 if test -z "$ac_cpp_err"; then
21765   ac_header_preproc=yes
21766 else
21767   echo "$as_me: failed program was:" >&5
21768 sed 's/^/| /' conftest.$ac_ext >&5
21769
21770   ac_header_preproc=no
21771 fi
21772 rm -f conftest.err conftest.$ac_ext
21773 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21774 echo "${ECHO_T}$ac_header_preproc" >&6
21775
21776 # So?  What about this header?
21777 case $ac_header_compiler:$ac_header_preproc in
21778   yes:no )
21779     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21781     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21783     (
21784       cat <<\_ASBOX
21785 ## ------------------------------------ ##
21786 ## Report this to bug-autoconf@gnu.org. ##
21787 ## ------------------------------------ ##
21788 _ASBOX
21789     ) |
21790       sed "s/^/$as_me: WARNING:     /" >&2
21791     ;;
21792   no:yes )
21793     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21795     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21797     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21799     (
21800       cat <<\_ASBOX
21801 ## ------------------------------------ ##
21802 ## Report this to bug-autoconf@gnu.org. ##
21803 ## ------------------------------------ ##
21804 _ASBOX
21805     ) |
21806       sed "s/^/$as_me: WARNING:     /" >&2
21807     ;;
21808 esac
21809 echo "$as_me:$LINENO: checking for $ac_header" >&5
21810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21812   echo $ECHO_N "(cached) $ECHO_C" >&6
21813 else
21814   eval "$as_ac_Header=$ac_header_preproc"
21815 fi
21816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21818
21819 fi
21820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21821   cat >>confdefs.h <<_ACEOF
21822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21823 _ACEOF
21824
21825 fi
21826
21827 done
21828
21829
21830 for ac_func in getpagesize
21831 do
21832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21833 echo "$as_me:$LINENO: checking for $ac_func" >&5
21834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21835 if eval "test \"\${$as_ac_var+set}\" = set"; then
21836   echo $ECHO_N "(cached) $ECHO_C" >&6
21837 else
21838   cat >conftest.$ac_ext <<_ACEOF
21839 #line $LINENO "configure"
21840 /* confdefs.h.  */
21841 _ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h.  */
21845 /* System header to define __stub macros and hopefully few prototypes,
21846     which can conflict with char $ac_func (); below.
21847     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21848     <limits.h> exists even on freestanding compilers.  */
21849 #ifdef __STDC__
21850 # include <limits.h>
21851 #else
21852 # include <assert.h>
21853 #endif
21854 /* Override any gcc2 internal prototype to avoid an error.  */
21855 #ifdef __cplusplus
21856 extern "C"
21857 {
21858 #endif
21859 /* We use char because int might match the return type of a gcc2
21860    builtin and then its argument prototype would still apply.  */
21861 char $ac_func ();
21862 /* The GNU C library defines this for functions which it implements
21863     to always fail with ENOSYS.  Some functions are actually named
21864     something starting with __ and the normal name is an alias.  */
21865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21866 choke me
21867 #else
21868 char (*f) () = $ac_func;
21869 #endif
21870 #ifdef __cplusplus
21871 }
21872 #endif
21873
21874 int
21875 main ()
21876 {
21877 return f != $ac_func;
21878   ;
21879   return 0;
21880 }
21881 _ACEOF
21882 rm -f conftest.$ac_objext conftest$ac_exeext
21883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21884   (eval $ac_link) 2>&5
21885   ac_status=$?
21886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887   (exit $ac_status); } &&
21888          { ac_try='test -s conftest$ac_exeext'
21889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21890   (eval $ac_try) 2>&5
21891   ac_status=$?
21892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893   (exit $ac_status); }; }; then
21894   eval "$as_ac_var=yes"
21895 else
21896   echo "$as_me: failed program was:" >&5
21897 sed 's/^/| /' conftest.$ac_ext >&5
21898
21899 eval "$as_ac_var=no"
21900 fi
21901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21902 fi
21903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21904 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21905 if test `eval echo '${'$as_ac_var'}'` = yes; then
21906   cat >>confdefs.h <<_ACEOF
21907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21908 _ACEOF
21909
21910 fi
21911 done
21912
21913 echo "$as_me:$LINENO: checking for working mmap" >&5
21914 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21915 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21916   echo $ECHO_N "(cached) $ECHO_C" >&6
21917 else
21918   if test "$cross_compiling" = yes; then
21919   ac_cv_func_mmap_fixed_mapped=no
21920 else
21921   cat >conftest.$ac_ext <<_ACEOF
21922 #line $LINENO "configure"
21923 /* confdefs.h.  */
21924 _ACEOF
21925 cat confdefs.h >>conftest.$ac_ext
21926 cat >>conftest.$ac_ext <<_ACEOF
21927 /* end confdefs.h.  */
21928 $ac_includes_default
21929 /* malloc might have been renamed as rpl_malloc. */
21930 #undef malloc
21931
21932 /* Thanks to Mike Haertel and Jim Avera for this test.
21933    Here is a matrix of mmap possibilities:
21934         mmap private not fixed
21935         mmap private fixed at somewhere currently unmapped
21936         mmap private fixed at somewhere already mapped
21937         mmap shared not fixed
21938         mmap shared fixed at somewhere currently unmapped
21939         mmap shared fixed at somewhere already mapped
21940    For private mappings, we should verify that changes cannot be read()
21941    back from the file, nor mmap's back from the file at a different
21942    address.  (There have been systems where private was not correctly
21943    implemented like the infamous i386 svr4.0, and systems where the
21944    VM page cache was not coherent with the file system buffer cache
21945    like early versions of FreeBSD and possibly contemporary NetBSD.)
21946    For shared mappings, we should conversely verify that changes get
21947    propagated back to all the places they're supposed to be.
21948
21949    Grep wants private fixed already mapped.
21950    The main things grep needs to know about mmap are:
21951    * does it exist and is it safe to write into the mmap'd area
21952    * how to use it (BSD variants)  */
21953
21954 #include <fcntl.h>
21955 #include <sys/mman.h>
21956
21957 #if !STDC_HEADERS && !HAVE_STDLIB_H
21958 char *malloc ();
21959 #endif
21960
21961 /* This mess was copied from the GNU getpagesize.h.  */
21962 #if !HAVE_GETPAGESIZE
21963 /* Assume that all systems that can run configure have sys/param.h.  */
21964 # if !HAVE_SYS_PARAM_H
21965 #  define HAVE_SYS_PARAM_H 1
21966 # endif
21967
21968 # ifdef _SC_PAGESIZE
21969 #  define getpagesize() sysconf(_SC_PAGESIZE)
21970 # else /* no _SC_PAGESIZE */
21971 #  if HAVE_SYS_PARAM_H
21972 #   include <sys/param.h>
21973 #   ifdef EXEC_PAGESIZE
21974 #    define getpagesize() EXEC_PAGESIZE
21975 #   else /* no EXEC_PAGESIZE */
21976 #    ifdef NBPG
21977 #     define getpagesize() NBPG * CLSIZE
21978 #     ifndef CLSIZE
21979 #      define CLSIZE 1
21980 #     endif /* no CLSIZE */
21981 #    else /* no NBPG */
21982 #     ifdef NBPC
21983 #      define getpagesize() NBPC
21984 #     else /* no NBPC */
21985 #      ifdef PAGESIZE
21986 #       define getpagesize() PAGESIZE
21987 #      endif /* PAGESIZE */
21988 #     endif /* no NBPC */
21989 #    endif /* no NBPG */
21990 #   endif /* no EXEC_PAGESIZE */
21991 #  else /* no HAVE_SYS_PARAM_H */
21992 #   define getpagesize() 8192   /* punt totally */
21993 #  endif /* no HAVE_SYS_PARAM_H */
21994 # endif /* no _SC_PAGESIZE */
21995
21996 #endif /* no HAVE_GETPAGESIZE */
21997
21998 int
21999 main ()
22000 {
22001   char *data, *data2, *data3;
22002   int i, pagesize;
22003   int fd;
22004
22005   pagesize = getpagesize ();
22006
22007   /* First, make a file with some known garbage in it. */
22008   data = (char *) malloc (pagesize);
22009   if (!data)
22010     exit (1);
22011   for (i = 0; i < pagesize; ++i)
22012     *(data + i) = rand ();
22013   umask (0);
22014   fd = creat ("conftest.mmap", 0600);
22015   if (fd < 0)
22016     exit (1);
22017   if (write (fd, data, pagesize) != pagesize)
22018     exit (1);
22019   close (fd);
22020
22021   /* Next, try to mmap the file at a fixed address which already has
22022      something else allocated at it.  If we can, also make sure that
22023      we see the same garbage.  */
22024   fd = open ("conftest.mmap", O_RDWR);
22025   if (fd < 0)
22026     exit (1);
22027   data2 = (char *) malloc (2 * pagesize);
22028   if (!data2)
22029     exit (1);
22030   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22031   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22032                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22033     exit (1);
22034   for (i = 0; i < pagesize; ++i)
22035     if (*(data + i) != *(data2 + i))
22036       exit (1);
22037
22038   /* Finally, make sure that changes to the mapped area do not
22039      percolate back to the file as seen by read().  (This is a bug on
22040      some variants of i386 svr4.0.)  */
22041   for (i = 0; i < pagesize; ++i)
22042     *(data2 + i) = *(data2 + i) + 1;
22043   data3 = (char *) malloc (pagesize);
22044   if (!data3)
22045     exit (1);
22046   if (read (fd, data3, pagesize) != pagesize)
22047     exit (1);
22048   for (i = 0; i < pagesize; ++i)
22049     if (*(data + i) != *(data3 + i))
22050       exit (1);
22051   close (fd);
22052   exit (0);
22053 }
22054 _ACEOF
22055 rm -f conftest$ac_exeext
22056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22057   (eval $ac_link) 2>&5
22058   ac_status=$?
22059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22062   (eval $ac_try) 2>&5
22063   ac_status=$?
22064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065   (exit $ac_status); }; }; then
22066   ac_cv_func_mmap_fixed_mapped=yes
22067 else
22068   echo "$as_me: program exited with status $ac_status" >&5
22069 echo "$as_me: failed program was:" >&5
22070 sed 's/^/| /' conftest.$ac_ext >&5
22071
22072 ( exit $ac_status )
22073 ac_cv_func_mmap_fixed_mapped=no
22074 fi
22075 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22076 fi
22077 fi
22078 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22079 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22080 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22081
22082 cat >>confdefs.h <<\_ACEOF
22083 #define HAVE_MMAP 1
22084 _ACEOF
22085
22086 fi
22087 rm -f conftest.mmap
22088
22089 echo "$as_me:$LINENO: checking for mmap of files" >&5
22090 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22091 if test "${ac_cv_func_mmap_file+set}" = set; then
22092   echo $ECHO_N "(cached) $ECHO_C" >&6
22093 else
22094
22095
22096   ac_ext=c
22097 ac_cpp='$CPP $CPPFLAGS'
22098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22101
22102   if test "$cross_compiling" = yes; then
22103   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22104 See \`config.log' for more details." >&5
22105 echo "$as_me: error: cannot run test program while cross compiling
22106 See \`config.log' for more details." >&2;}
22107    { (exit 1); exit 1; }; }
22108 else
22109   cat >conftest.$ac_ext <<_ACEOF
22110 #line $LINENO "configure"
22111 /* confdefs.h.  */
22112 _ACEOF
22113 cat confdefs.h >>conftest.$ac_ext
22114 cat >>conftest.$ac_ext <<_ACEOF
22115 /* end confdefs.h.  */
22116
22117 #ifdef HAVE_SYS_MMAN_H
22118 #include <sys/mman.h>
22119 #endif
22120
22121 #ifdef HAVE_SYS_TYPES_H
22122 #include <sys/types.h>
22123 #endif
22124
22125 #ifdef HAVE_FCNTL_H
22126 #include <fcntl.h>
22127 #endif
22128
22129   int fd;
22130   int main () {
22131   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22132 _ACEOF
22133 rm -f conftest$ac_exeext
22134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22135   (eval $ac_link) 2>&5
22136   ac_status=$?
22137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22140   (eval $ac_try) 2>&5
22141   ac_status=$?
22142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143   (exit $ac_status); }; }; then
22144   ac_cv_func_mmap_file=yes
22145 else
22146   echo "$as_me: program exited with status $ac_status" >&5
22147 echo "$as_me: failed program was:" >&5
22148 sed 's/^/| /' conftest.$ac_ext >&5
22149
22150 ( exit $ac_status )
22151 ac_cv_func_mmap_file=no
22152 fi
22153 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22154 fi
22155   ac_ext=c
22156 ac_cpp='$CPP $CPPFLAGS'
22157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22160
22161
22162 fi
22163 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22164 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22165 if test "$ac_cv_func_mmap_file" = yes; then
22166    cat >>confdefs.h <<\_ACEOF
22167 #define HAVE_MMAP_FILE 1
22168 _ACEOF
22169
22170    MMAP_FILE=yes
22171
22172 fi
22173
22174 if test ${ac_cv_func_mmap_file} = "no"
22175 then
22176         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22177 echo "$as_me: error: mmap() of files required but not found" >&2;}
22178    { (exit 1); exit 1; }; }
22179 fi
22180 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22181 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22182 if test "${ac_cv_header_mmap_anon+set}" = set; then
22183   echo $ECHO_N "(cached) $ECHO_C" >&6
22184 else
22185
22186
22187   ac_ext=c
22188 ac_cpp='$CPP $CPPFLAGS'
22189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22192
22193   cat >conftest.$ac_ext <<_ACEOF
22194 #line $LINENO "configure"
22195 /* confdefs.h.  */
22196 _ACEOF
22197 cat confdefs.h >>conftest.$ac_ext
22198 cat >>conftest.$ac_ext <<_ACEOF
22199 /* end confdefs.h.  */
22200 #include <sys/mman.h>
22201   #include <unistd.h>
22202   #include <fcntl.h>
22203 int
22204 main ()
22205 {
22206 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22207   ;
22208   return 0;
22209 }
22210 _ACEOF
22211 rm -f conftest.$ac_objext
22212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22213   (eval $ac_compile) 2>&5
22214   ac_status=$?
22215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216   (exit $ac_status); } &&
22217          { ac_try='test -s conftest.$ac_objext'
22218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22219   (eval $ac_try) 2>&5
22220   ac_status=$?
22221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222   (exit $ac_status); }; }; then
22223   ac_cv_header_mmap_anon=yes
22224 else
22225   echo "$as_me: failed program was:" >&5
22226 sed 's/^/| /' conftest.$ac_ext >&5
22227
22228 ac_cv_header_mmap_anon=no
22229 fi
22230 rm -f conftest.$ac_objext conftest.$ac_ext
22231   ac_ext=c
22232 ac_cpp='$CPP $CPPFLAGS'
22233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22236
22237
22238 fi
22239 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22240 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22241 if test "$ac_cv_header_mmap_anon" = yes; then
22242    cat >>confdefs.h <<\_ACEOF
22243 #define HAVE_MMAP_ANONYMOUS 1
22244 _ACEOF
22245
22246 fi
22247
22248 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22249 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22250 if test "${ac_cv_type_signal+set}" = set; then
22251   echo $ECHO_N "(cached) $ECHO_C" >&6
22252 else
22253   cat >conftest.$ac_ext <<_ACEOF
22254 #line $LINENO "configure"
22255 /* confdefs.h.  */
22256 _ACEOF
22257 cat confdefs.h >>conftest.$ac_ext
22258 cat >>conftest.$ac_ext <<_ACEOF
22259 /* end confdefs.h.  */
22260 #include <sys/types.h>
22261 #include <signal.h>
22262 #ifdef signal
22263 # undef signal
22264 #endif
22265 #ifdef __cplusplus
22266 extern "C" void (*signal (int, void (*)(int)))(int);
22267 #else
22268 void (*signal ()) ();
22269 #endif
22270
22271 int
22272 main ()
22273 {
22274 int i;
22275   ;
22276   return 0;
22277 }
22278 _ACEOF
22279 rm -f conftest.$ac_objext
22280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22281   (eval $ac_compile) 2>&5
22282   ac_status=$?
22283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284   (exit $ac_status); } &&
22285          { ac_try='test -s conftest.$ac_objext'
22286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22287   (eval $ac_try) 2>&5
22288   ac_status=$?
22289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290   (exit $ac_status); }; }; then
22291   ac_cv_type_signal=void
22292 else
22293   echo "$as_me: failed program was:" >&5
22294 sed 's/^/| /' conftest.$ac_ext >&5
22295
22296 ac_cv_type_signal=int
22297 fi
22298 rm -f conftest.$ac_objext conftest.$ac_ext
22299 fi
22300 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22301 echo "${ECHO_T}$ac_cv_type_signal" >&6
22302
22303 cat >>confdefs.h <<_ACEOF
22304 #define RETSIGTYPE $ac_cv_type_signal
22305 _ACEOF
22306
22307
22308
22309
22310
22311
22312
22313
22314
22315
22316
22317 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22318 do
22319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22320 echo "$as_me:$LINENO: checking for $ac_func" >&5
22321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22322 if eval "test \"\${$as_ac_var+set}\" = set"; then
22323   echo $ECHO_N "(cached) $ECHO_C" >&6
22324 else
22325   cat >conftest.$ac_ext <<_ACEOF
22326 #line $LINENO "configure"
22327 /* confdefs.h.  */
22328 _ACEOF
22329 cat confdefs.h >>conftest.$ac_ext
22330 cat >>conftest.$ac_ext <<_ACEOF
22331 /* end confdefs.h.  */
22332 /* System header to define __stub macros and hopefully few prototypes,
22333     which can conflict with char $ac_func (); below.
22334     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22335     <limits.h> exists even on freestanding compilers.  */
22336 #ifdef __STDC__
22337 # include <limits.h>
22338 #else
22339 # include <assert.h>
22340 #endif
22341 /* Override any gcc2 internal prototype to avoid an error.  */
22342 #ifdef __cplusplus
22343 extern "C"
22344 {
22345 #endif
22346 /* We use char because int might match the return type of a gcc2
22347    builtin and then its argument prototype would still apply.  */
22348 char $ac_func ();
22349 /* The GNU C library defines this for functions which it implements
22350     to always fail with ENOSYS.  Some functions are actually named
22351     something starting with __ and the normal name is an alias.  */
22352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22353 choke me
22354 #else
22355 char (*f) () = $ac_func;
22356 #endif
22357 #ifdef __cplusplus
22358 }
22359 #endif
22360
22361 int
22362 main ()
22363 {
22364 return f != $ac_func;
22365   ;
22366   return 0;
22367 }
22368 _ACEOF
22369 rm -f conftest.$ac_objext conftest$ac_exeext
22370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22371   (eval $ac_link) 2>&5
22372   ac_status=$?
22373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374   (exit $ac_status); } &&
22375          { ac_try='test -s conftest$ac_exeext'
22376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22377   (eval $ac_try) 2>&5
22378   ac_status=$?
22379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380   (exit $ac_status); }; }; then
22381   eval "$as_ac_var=yes"
22382 else
22383   echo "$as_me: failed program was:" >&5
22384 sed 's/^/| /' conftest.$ac_ext >&5
22385
22386 eval "$as_ac_var=no"
22387 fi
22388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22389 fi
22390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22391 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22392 if test `eval echo '${'$as_ac_var'}'` = yes; then
22393   cat >>confdefs.h <<_ACEOF
22394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22395 _ACEOF
22396
22397 fi
22398 done
22399
22400
22401
22402 echo "$as_me:$LINENO: checking for mmap" >&5
22403 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22404 if test "${ac_cv_func_mmap+set}" = set; then
22405   echo $ECHO_N "(cached) $ECHO_C" >&6
22406 else
22407   cat >conftest.$ac_ext <<_ACEOF
22408 #line $LINENO "configure"
22409 /* confdefs.h.  */
22410 _ACEOF
22411 cat confdefs.h >>conftest.$ac_ext
22412 cat >>conftest.$ac_ext <<_ACEOF
22413 /* end confdefs.h.  */
22414 /* System header to define __stub macros and hopefully few prototypes,
22415     which can conflict with char mmap (); below.
22416     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22417     <limits.h> exists even on freestanding compilers.  */
22418 #ifdef __STDC__
22419 # include <limits.h>
22420 #else
22421 # include <assert.h>
22422 #endif
22423 /* Override any gcc2 internal prototype to avoid an error.  */
22424 #ifdef __cplusplus
22425 extern "C"
22426 {
22427 #endif
22428 /* We use char because int might match the return type of a gcc2
22429    builtin and then its argument prototype would still apply.  */
22430 char mmap ();
22431 /* The GNU C library defines this for functions which it implements
22432     to always fail with ENOSYS.  Some functions are actually named
22433     something starting with __ and the normal name is an alias.  */
22434 #if defined (__stub_mmap) || defined (__stub___mmap)
22435 choke me
22436 #else
22437 char (*f) () = mmap;
22438 #endif
22439 #ifdef __cplusplus
22440 }
22441 #endif
22442
22443 int
22444 main ()
22445 {
22446 return f != mmap;
22447   ;
22448   return 0;
22449 }
22450 _ACEOF
22451 rm -f conftest.$ac_objext conftest$ac_exeext
22452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22453   (eval $ac_link) 2>&5
22454   ac_status=$?
22455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456   (exit $ac_status); } &&
22457          { ac_try='test -s conftest$ac_exeext'
22458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22459   (eval $ac_try) 2>&5
22460   ac_status=$?
22461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462   (exit $ac_status); }; }; then
22463   ac_cv_func_mmap=yes
22464 else
22465   echo "$as_me: failed program was:" >&5
22466 sed 's/^/| /' conftest.$ac_ext >&5
22467
22468 ac_cv_func_mmap=no
22469 fi
22470 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22471 fi
22472 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22473 echo "${ECHO_T}$ac_cv_func_mmap" >&6
22474 if test $ac_cv_func_mmap = yes; then
22475   :
22476 else
22477   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22478 echo "$as_me: error: Function mmap() required but not found" >&2;}
22479    { (exit 1); exit 1; }; }
22480 fi
22481
22482 echo "$as_me:$LINENO: checking for mprotect" >&5
22483 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22484 if test "${ac_cv_func_mprotect+set}" = set; then
22485   echo $ECHO_N "(cached) $ECHO_C" >&6
22486 else
22487   cat >conftest.$ac_ext <<_ACEOF
22488 #line $LINENO "configure"
22489 /* confdefs.h.  */
22490 _ACEOF
22491 cat confdefs.h >>conftest.$ac_ext
22492 cat >>conftest.$ac_ext <<_ACEOF
22493 /* end confdefs.h.  */
22494 /* System header to define __stub macros and hopefully few prototypes,
22495     which can conflict with char mprotect (); below.
22496     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22497     <limits.h> exists even on freestanding compilers.  */
22498 #ifdef __STDC__
22499 # include <limits.h>
22500 #else
22501 # include <assert.h>
22502 #endif
22503 /* Override any gcc2 internal prototype to avoid an error.  */
22504 #ifdef __cplusplus
22505 extern "C"
22506 {
22507 #endif
22508 /* We use char because int might match the return type of a gcc2
22509    builtin and then its argument prototype would still apply.  */
22510 char mprotect ();
22511 /* The GNU C library defines this for functions which it implements
22512     to always fail with ENOSYS.  Some functions are actually named
22513     something starting with __ and the normal name is an alias.  */
22514 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22515 choke me
22516 #else
22517 char (*f) () = mprotect;
22518 #endif
22519 #ifdef __cplusplus
22520 }
22521 #endif
22522
22523 int
22524 main ()
22525 {
22526 return f != mprotect;
22527   ;
22528   return 0;
22529 }
22530 _ACEOF
22531 rm -f conftest.$ac_objext conftest$ac_exeext
22532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22533   (eval $ac_link) 2>&5
22534   ac_status=$?
22535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536   (exit $ac_status); } &&
22537          { ac_try='test -s conftest$ac_exeext'
22538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22539   (eval $ac_try) 2>&5
22540   ac_status=$?
22541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542   (exit $ac_status); }; }; then
22543   ac_cv_func_mprotect=yes
22544 else
22545   echo "$as_me: failed program was:" >&5
22546 sed 's/^/| /' conftest.$ac_ext >&5
22547
22548 ac_cv_func_mprotect=no
22549 fi
22550 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22551 fi
22552 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22553 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22554 if test $ac_cv_func_mprotect = yes; then
22555   :
22556 else
22557   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22558 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22559    { (exit 1); exit 1; }; }
22560 fi
22561
22562
22563
22564 # Check whether --enable-purify or --disable-purify was given.
22565 if test "${enable_purify+set}" = set; then
22566   enableval="$enable_purify"
22567
22568 else
22569   enableval="no"
22570 fi;
22571 if test ${enableval} = "no"
22572 then
22573         ENABLE_PURIFY=
22574
22575 else
22576         ENABLE_PURIFY=ENABLE_PURIFY=1
22577
22578 fi
22579
22580 # Check whether --enable-optimized or --disable-optimized was given.
22581 if test "${enable_optimized+set}" = set; then
22582   enableval="$enable_optimized"
22583
22584 else
22585   enableval=no
22586 fi;
22587 if test ${enableval} = "no"
22588 then
22589         ENABLE_OPTIMIZED=
22590
22591 else
22592         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22593
22594 fi
22595
22596 # Check whether --enable-spec or --disable-spec was given.
22597 if test "${enable_spec+set}" = set; then
22598   enableval="$enable_spec"
22599
22600 else
22601   enableval=no
22602 fi;
22603 if test ${enableval} = "no"
22604 then
22605         USE_SPEC=
22606
22607 else
22608         USE_SPEC=USE_SPEC=1
22609
22610 fi
22611
22612 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22613 if test "${enable_precompiled_bytecode+set}" = set; then
22614   enableval="$enable_precompiled_bytecode"
22615
22616 else
22617   enableval=no
22618 fi;
22619 if test ${enableval} = "no"
22620 then
22621         UPB=
22622
22623 else
22624         UPB=USE_PRECOMPILED_BYTECODE=1
22625
22626 fi
22627
22628
22629 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22630 if test "${enable_llc_diffs+set}" = set; then
22631   enableval="$enable_llc_diffs"
22632
22633 else
22634   enableval=yes
22635 fi;
22636 if test ${enableval} = "no"
22637 then
22638         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22639
22640 else
22641         DISABLE_LLC_DIFFS=
22642
22643 fi
22644
22645 # Check whether --enable-jit or --disable-jit was given.
22646 if test "${enable_jit+set}" = set; then
22647   enableval="$enable_jit"
22648
22649 else
22650   enableval=default
22651 fi;
22652
22653 if test ${enableval} = "no"
22654 then
22655         JIT=
22656
22657 else
22658         case $target in
22659                 *i*86*)
22660                         JIT=TARGET_HAS_JIT=1
22661
22662                         ;;
22663                 *sparc*)
22664                         JIT=TARGET_HAS_JIT=1
22665
22666                         ;;
22667                 *)
22668                         JIT=
22669
22670                         ;;
22671         esac
22672 fi
22673
22674
22675
22676 # Check whether --with-spec or --without-spec was given.
22677 if test "${with_spec+set}" = set; then
22678   withval="$with_spec"
22679   SPEC_ROOT=$withval
22680
22681 else
22682   SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22683
22684 fi;
22685
22686
22687 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22688 if test "${with_llvmgccdir+set}" = set; then
22689   withval="$with_llvmgccdir"
22690   LLVMGCCDIR=$withval
22691
22692 fi;
22693
22694
22695 # Check whether --with-bcrepos or --without-bcrepos was given.
22696 if test "${with_bcrepos+set}" = set; then
22697   withval="$with_bcrepos"
22698   BCR=$withval
22699
22700 else
22701   BCR=/home/vadve/lattner/LLVMPrograms
22702
22703 fi;
22704
22705
22706 # Check whether --with-papi or --without-papi was given.
22707 if test "${with_papi+set}" = set; then
22708   withval="$with_papi"
22709   PAPIDIR=$withval
22710
22711 else
22712   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22713
22714 fi;
22715
22716
22717 # Check whether --with-purify or --without-purify was given.
22718 if test "${with_purify+set}" = set; then
22719   withval="$with_purify"
22720   PURIFY=$withval
22721
22722 fi;
22723
22724
22725           ac_config_files="$ac_config_files Makefile.config"
22726 cat >confcache <<\_ACEOF
22727 # This file is a shell script that caches the results of configure
22728 # tests run on this system so they can be shared between configure
22729 # scripts and configure runs, see configure's option --config-cache.
22730 # It is not useful on other systems.  If it contains results you don't
22731 # want to keep, you may remove or edit it.
22732 #
22733 # config.status only pays attention to the cache file if you give it
22734 # the --recheck option to rerun configure.
22735 #
22736 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22737 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22738 # following values.
22739
22740 _ACEOF
22741
22742 # The following way of writing the cache mishandles newlines in values,
22743 # but we know of no workaround that is simple, portable, and efficient.
22744 # So, don't put newlines in cache variables' values.
22745 # Ultrix sh set writes to stderr and can't be redirected directly,
22746 # and sets the high bit in the cache file unless we assign to the vars.
22747 {
22748   (set) 2>&1 |
22749     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22750     *ac_space=\ *)
22751       # `set' does not quote correctly, so add quotes (double-quote
22752       # substitution turns \\\\ into \\, and sed turns \\ into \).
22753       sed -n \
22754         "s/'/'\\\\''/g;
22755           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22756       ;;
22757     *)
22758       # `set' quotes correctly as required by POSIX, so do not add quotes.
22759       sed -n \
22760         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22761       ;;
22762     esac;
22763 } |
22764   sed '
22765      t clear
22766      : clear
22767      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22768      t end
22769      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22770      : end' >>confcache
22771 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22772   if test -w $cache_file; then
22773     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22774     cat confcache >$cache_file
22775   else
22776     echo "not updating unwritable cache $cache_file"
22777   fi
22778 fi
22779 rm -f confcache
22780
22781 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22782 # Let make expand exec_prefix.
22783 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22784
22785 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22786 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22787 # trailing colons and then remove the whole line if VPATH becomes empty
22788 # (actually we leave an empty line to preserve line numbers).
22789 if test "x$srcdir" = x.; then
22790   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22791 s/:*\$(srcdir):*/:/;
22792 s/:*\${srcdir}:*/:/;
22793 s/:*@srcdir@:*/:/;
22794 s/^\([^=]*=[    ]*\):*/\1/;
22795 s/:*$//;
22796 s/^[^=]*=[      ]*$//;
22797 }'
22798 fi
22799
22800 DEFS=-DHAVE_CONFIG_H
22801
22802 ac_libobjs=
22803 ac_ltlibobjs=
22804 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22805   # 1. Remove the extension, and $U if already installed.
22806   ac_i=`echo "$ac_i" |
22807          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22808   # 2. Add them.
22809   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22810   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22811 done
22812 LIBOBJS=$ac_libobjs
22813
22814 LTLIBOBJS=$ac_ltlibobjs
22815
22816
22817
22818 : ${CONFIG_STATUS=./config.status}
22819 ac_clean_files_save=$ac_clean_files
22820 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22821 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22822 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22823 cat >$CONFIG_STATUS <<_ACEOF
22824 #! $SHELL
22825 # Generated by $as_me.
22826 # Run this file to recreate the current configuration.
22827 # Compiler output produced by configure, useful for debugging
22828 # configure, is in config.log if it exists.
22829
22830 debug=false
22831 ac_cs_recheck=false
22832 ac_cs_silent=false
22833 SHELL=\${CONFIG_SHELL-$SHELL}
22834 _ACEOF
22835
22836 cat >>$CONFIG_STATUS <<\_ACEOF
22837 ## --------------------- ##
22838 ## M4sh Initialization.  ##
22839 ## --------------------- ##
22840
22841 # Be Bourne compatible
22842 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22843   emulate sh
22844   NULLCMD=:
22845   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22846   # is contrary to our usage.  Disable this feature.
22847   alias -g '${1+"$@"}'='"$@"'
22848 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22849   set -o posix
22850 fi
22851
22852 # Support unset when possible.
22853 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22854   as_unset=unset
22855 else
22856   as_unset=false
22857 fi
22858
22859
22860 # Work around bugs in pre-3.0 UWIN ksh.
22861 $as_unset ENV MAIL MAILPATH
22862 PS1='$ '
22863 PS2='> '
22864 PS4='+ '
22865
22866 # NLS nuisances.
22867 for as_var in \
22868   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22869   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22870   LC_TELEPHONE LC_TIME
22871 do
22872   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22873     eval $as_var=C; export $as_var
22874   else
22875     $as_unset $as_var
22876   fi
22877 done
22878
22879 # Required to use basename.
22880 if expr a : '\(a\)' >/dev/null 2>&1; then
22881   as_expr=expr
22882 else
22883   as_expr=false
22884 fi
22885
22886 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22887   as_basename=basename
22888 else
22889   as_basename=false
22890 fi
22891
22892
22893 # Name of the executable.
22894 as_me=`$as_basename "$0" ||
22895 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22896          X"$0" : 'X\(//\)$' \| \
22897          X"$0" : 'X\(/\)$' \| \
22898          .     : '\(.\)' 2>/dev/null ||
22899 echo X/"$0" |
22900     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22901           /^X\/\(\/\/\)$/{ s//\1/; q; }
22902           /^X\/\(\/\).*/{ s//\1/; q; }
22903           s/.*/./; q'`
22904
22905
22906 # PATH needs CR, and LINENO needs CR and PATH.
22907 # Avoid depending upon Character Ranges.
22908 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22909 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22910 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22911 as_cr_digits='0123456789'
22912 as_cr_alnum=$as_cr_Letters$as_cr_digits
22913
22914 # The user is always right.
22915 if test "${PATH_SEPARATOR+set}" != set; then
22916   echo "#! /bin/sh" >conf$$.sh
22917   echo  "exit 0"   >>conf$$.sh
22918   chmod +x conf$$.sh
22919   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22920     PATH_SEPARATOR=';'
22921   else
22922     PATH_SEPARATOR=:
22923   fi
22924   rm -f conf$$.sh
22925 fi
22926
22927
22928   as_lineno_1=$LINENO
22929   as_lineno_2=$LINENO
22930   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22931   test "x$as_lineno_1" != "x$as_lineno_2" &&
22932   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22933   # Find who we are.  Look in the path if we contain no path at all
22934   # relative or not.
22935   case $0 in
22936     *[\\/]* ) as_myself=$0 ;;
22937     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22938 for as_dir in $PATH
22939 do
22940   IFS=$as_save_IFS
22941   test -z "$as_dir" && as_dir=.
22942   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22943 done
22944
22945        ;;
22946   esac
22947   # We did not find ourselves, most probably we were run as `sh COMMAND'
22948   # in which case we are not to be found in the path.
22949   if test "x$as_myself" = x; then
22950     as_myself=$0
22951   fi
22952   if test ! -f "$as_myself"; then
22953     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22954 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22955    { (exit 1); exit 1; }; }
22956   fi
22957   case $CONFIG_SHELL in
22958   '')
22959     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22960 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22961 do
22962   IFS=$as_save_IFS
22963   test -z "$as_dir" && as_dir=.
22964   for as_base in sh bash ksh sh5; do
22965          case $as_dir in
22966          /*)
22967            if ("$as_dir/$as_base" -c '
22968   as_lineno_1=$LINENO
22969   as_lineno_2=$LINENO
22970   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22971   test "x$as_lineno_1" != "x$as_lineno_2" &&
22972   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22973              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22974              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22975              CONFIG_SHELL=$as_dir/$as_base
22976              export CONFIG_SHELL
22977              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22978            fi;;
22979          esac
22980        done
22981 done
22982 ;;
22983   esac
22984
22985   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22986   # uniformly replaced by the line number.  The first 'sed' inserts a
22987   # line-number line before each line; the second 'sed' does the real
22988   # work.  The second script uses 'N' to pair each line-number line
22989   # with the numbered line, and appends trailing '-' during
22990   # substitution so that $LINENO is not a special case at line end.
22991   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22992   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22993   sed '=' <$as_myself |
22994     sed '
22995       N
22996       s,$,-,
22997       : loop
22998       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22999       t loop
23000       s,-$,,
23001       s,^['$as_cr_digits']*\n,,
23002     ' >$as_me.lineno &&
23003   chmod +x $as_me.lineno ||
23004     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23005 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23006    { (exit 1); exit 1; }; }
23007
23008   # Don't try to exec as it changes $[0], causing all sort of problems
23009   # (the dirname of $[0] is not the place where we might find the
23010   # original and so on.  Autoconf is especially sensible to this).
23011   . ./$as_me.lineno
23012   # Exit status is that of the last command.
23013   exit
23014 }
23015
23016
23017 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23018   *c*,-n*) ECHO_N= ECHO_C='
23019 ' ECHO_T='      ' ;;
23020   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23021   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23022 esac
23023
23024 if expr a : '\(a\)' >/dev/null 2>&1; then
23025   as_expr=expr
23026 else
23027   as_expr=false
23028 fi
23029
23030 rm -f conf$$ conf$$.exe conf$$.file
23031 echo >conf$$.file
23032 if ln -s conf$$.file conf$$ 2>/dev/null; then
23033   # We could just check for DJGPP; but this test a) works b) is more generic
23034   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23035   if test -f conf$$.exe; then
23036     # Don't use ln at all; we don't have any links
23037     as_ln_s='cp -p'
23038   else
23039     as_ln_s='ln -s'
23040   fi
23041 elif ln conf$$.file conf$$ 2>/dev/null; then
23042   as_ln_s=ln
23043 else
23044   as_ln_s='cp -p'
23045 fi
23046 rm -f conf$$ conf$$.exe conf$$.file
23047
23048 if mkdir -p . 2>/dev/null; then
23049   as_mkdir_p=:
23050 else
23051   as_mkdir_p=false
23052 fi
23053
23054 as_executable_p="test -f"
23055
23056 # Sed expression to map a string onto a valid CPP name.
23057 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23058
23059 # Sed expression to map a string onto a valid variable name.
23060 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23061
23062
23063 # IFS
23064 # We need space, tab and new line, in precisely that order.
23065 as_nl='
23066 '
23067 IFS="   $as_nl"
23068
23069 # CDPATH.
23070 $as_unset CDPATH
23071
23072 exec 6>&1
23073
23074 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23075 # report actual input values of CONFIG_FILES etc. instead of their
23076 # values after options handling.  Logging --version etc. is OK.
23077 exec 5>>config.log
23078 {
23079   echo
23080   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23081 ## Running $as_me. ##
23082 _ASBOX
23083 } >&5
23084 cat >&5 <<_CSEOF
23085
23086 This file was extended by [LLVM] $as_me [1.0], which was
23087 generated by GNU Autoconf 2.57.  Invocation command line was
23088
23089   CONFIG_FILES    = $CONFIG_FILES
23090   CONFIG_HEADERS  = $CONFIG_HEADERS
23091   CONFIG_LINKS    = $CONFIG_LINKS
23092   CONFIG_COMMANDS = $CONFIG_COMMANDS
23093   $ $0 $@
23094
23095 _CSEOF
23096 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23097 echo >&5
23098 _ACEOF
23099
23100 # Files that config.status was made for.
23101 if test -n "$ac_config_files"; then
23102   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23103 fi
23104
23105 if test -n "$ac_config_headers"; then
23106   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23107 fi
23108
23109 if test -n "$ac_config_links"; then
23110   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23111 fi
23112
23113 if test -n "$ac_config_commands"; then
23114   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23115 fi
23116
23117 cat >>$CONFIG_STATUS <<\_ACEOF
23118
23119 ac_cs_usage="\
23120 \`$as_me' instantiates files from templates according to the
23121 current configuration.
23122
23123 Usage: $0 [OPTIONS] [FILE]...
23124
23125   -h, --help       print this help, then exit
23126   -V, --version    print version number, then exit
23127   -q, --quiet      do not print progress messages
23128   -d, --debug      don't remove temporary files
23129       --recheck    update $as_me by reconfiguring in the same conditions
23130   --file=FILE[:TEMPLATE]
23131                    instantiate the configuration file FILE
23132   --header=FILE[:TEMPLATE]
23133                    instantiate the configuration header FILE
23134
23135 Configuration files:
23136 $config_files
23137
23138 Configuration headers:
23139 $config_headers
23140
23141 Configuration commands:
23142 $config_commands
23143
23144 Report bugs to <bug-autoconf@gnu.org>."
23145 _ACEOF
23146
23147 cat >>$CONFIG_STATUS <<_ACEOF
23148 ac_cs_version="\\
23149 [LLVM] config.status [1.0]
23150 configured by $0, generated by GNU Autoconf 2.57,
23151   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23152
23153 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23154 Free Software Foundation, Inc.
23155 This config.status script is free software; the Free Software Foundation
23156 gives unlimited permission to copy, distribute and modify it."
23157 srcdir=$srcdir
23158 INSTALL="$INSTALL"
23159 _ACEOF
23160
23161 cat >>$CONFIG_STATUS <<\_ACEOF
23162 # If no file are specified by the user, then we need to provide default
23163 # value.  By we need to know if files were specified by the user.
23164 ac_need_defaults=:
23165 while test $# != 0
23166 do
23167   case $1 in
23168   --*=*)
23169     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23170     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23171     ac_shift=:
23172     ;;
23173   -*)
23174     ac_option=$1
23175     ac_optarg=$2
23176     ac_shift=shift
23177     ;;
23178   *) # This is not an option, so the user has probably given explicit
23179      # arguments.
23180      ac_option=$1
23181      ac_need_defaults=false;;
23182   esac
23183
23184   case $ac_option in
23185   # Handling of the options.
23186 _ACEOF
23187 cat >>$CONFIG_STATUS <<\_ACEOF
23188   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23189     ac_cs_recheck=: ;;
23190   --version | --vers* | -V )
23191     echo "$ac_cs_version"; exit 0 ;;
23192   --he | --h)
23193     # Conflict between --help and --header
23194     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23195 Try \`$0 --help' for more information." >&5
23196 echo "$as_me: error: ambiguous option: $1
23197 Try \`$0 --help' for more information." >&2;}
23198    { (exit 1); exit 1; }; };;
23199   --help | --hel | -h )
23200     echo "$ac_cs_usage"; exit 0 ;;
23201   --debug | --d* | -d )
23202     debug=: ;;
23203   --file | --fil | --fi | --f )
23204     $ac_shift
23205     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23206     ac_need_defaults=false;;
23207   --header | --heade | --head | --hea )
23208     $ac_shift
23209     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23210     ac_need_defaults=false;;
23211   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23212   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23213     ac_cs_silent=: ;;
23214
23215   # This is an error.
23216   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23217 Try \`$0 --help' for more information." >&5
23218 echo "$as_me: error: unrecognized option: $1
23219 Try \`$0 --help' for more information." >&2;}
23220    { (exit 1); exit 1; }; } ;;
23221
23222   *) ac_config_targets="$ac_config_targets $1" ;;
23223
23224   esac
23225   shift
23226 done
23227
23228 ac_configure_extra_args=
23229
23230 if $ac_cs_silent; then
23231   exec 6>/dev/null
23232   ac_configure_extra_args="$ac_configure_extra_args --silent"
23233 fi
23234
23235 _ACEOF
23236 cat >>$CONFIG_STATUS <<_ACEOF
23237 if \$ac_cs_recheck; then
23238   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23239   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23240 fi
23241
23242 _ACEOF
23243
23244 cat >>$CONFIG_STATUS <<_ACEOF
23245 #
23246 # INIT-COMMANDS section.
23247 #
23248
23249 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23250 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23251 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23252 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23253 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23254 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23255 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23256 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23257 ${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23258 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23259 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23260 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23261 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23262 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23263 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23264 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23265 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
23266 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23267 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23268 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23269 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23270 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23271 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23272 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23273 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23274 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23275 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23276 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23277 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23278 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23279 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23280 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23281 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23282 ${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23283 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23284 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23285 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23286 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
23287 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23288 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23289 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23290 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
23291 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
23292 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23293 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23294 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23295 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23296 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23297 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23298 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23299 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23300 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23301 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23302 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23303 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23304 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23305 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23306 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23307 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23308 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23309 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23310 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23311 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23312 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23313 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23314 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23315 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23316 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23317 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23318 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23319 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23320 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23321 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23322 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23323 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23324 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23325 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23326 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23327 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23328 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23329 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23330 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23331 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23332 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Burg/Makefile`
23333 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Fhourstones/Makefile`
23334 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/Makefile`
23335 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/01-qbsort/Makefile`
23336 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/03-testtrie/Makefile`
23337 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/04-bisect/Makefile`
23338 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/05-eks/Makefile`
23339 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/08-main/Makefile`
23340 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/09-vor/Makefile`
23341 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/12-IOtest/Makefile`
23342 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/15-trie/Makefile`
23343 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/17-bintr/Makefile`
23344 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/18-imp/Makefile`
23345 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/Makefile`
23346 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/bh/Makefile`
23347 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/bisort/Makefile`
23348 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/em3d/Makefile`
23349 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/health/Makefile`
23350 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/mst/Makefile`
23351 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/perimeter/Makefile`
23352 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/power/Makefile`
23353 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/treeadd/Makefile`
23354 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/tsp/Makefile`
23355 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/voronoi/Makefile`
23356 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/OptimizerEval/Makefile`
23357 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/Makefile`
23358 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/anagram/Makefile`
23359 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/bc/Makefile`
23360 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/ft/Makefile`
23361 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/ks/Makefile`
23362 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/yacr2/Makefile`
23363 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/aha/Makefile`
23364 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/llubenchmark/Makefile`
23365 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/sgefa/Makefile`
23366 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/sim/Makefile`
23367 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23368 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23369 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23370 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23371 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
23372 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23373 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23374 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23375 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23376 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23377 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23378 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23379 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23380 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
23381 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
23382 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
23383 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23384 ${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23385 ${srcdir}/autoconf/mkinstalldirs `dirname tools/as/Makefile`
23386 ${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23387 ${srcdir}/autoconf/mkinstalldirs `dirname tools/dis/Makefile`
23388 ${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23389 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23390 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23391 ${srcdir}/autoconf/mkinstalldirs `dirname tools/link/Makefile`
23392 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23393 ${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23394 ${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23395 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23396 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
23397 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23398 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23399 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23400 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23401 ${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23402 ${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23403 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23404 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23405 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23406 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23407 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23408 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23409 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23410 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23411 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23412 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23413 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23414 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23415
23416 _ACEOF
23417
23418
23419
23420 cat >>$CONFIG_STATUS <<\_ACEOF
23421 for ac_config_target in $ac_config_targets
23422 do
23423   case "$ac_config_target" in
23424   # Handling of arguments.
23425   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23426   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23427   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23428   "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23429   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23430   "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23431   "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23432   "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23433   "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23434   "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23435   "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23436   "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23437   "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23438   "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23439   "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23440   "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23441   "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23442   "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
23443   "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23444   "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23445   "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23446   "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23447   "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23448   "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23449   "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23450   "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23451   "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23452   "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23453   "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23454   "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23455   "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23456   "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23457   "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23458   "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23459   "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23460   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23461   "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23462   "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23463   "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
23464   "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23465   "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23466   "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23467   "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
23468   "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
23469   "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23470   "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23471   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23472   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23473   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23474   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23475   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23476   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23477   "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23478   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23479   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23480   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23481   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23482   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23483   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23484   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23485   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23486   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23487   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23488   "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23489   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23490   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23491   "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23492   "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23493   "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23494   "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23495   "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23496   "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23497   "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23498   "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23499   "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23500   "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23501   "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23502   "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23503   "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23504   "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23505   "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23506   "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23507   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23508   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23509   "test/Programs/MultiSource/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Burg/Makefile" ;;
23510   "test/Programs/MultiSource/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Fhourstones/Makefile" ;;
23511   "test/Programs/MultiSource/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/Makefile" ;;
23512   "test/Programs/MultiSource/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/01-qbsort/Makefile" ;;
23513   "test/Programs/MultiSource/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/03-testtrie/Makefile" ;;
23514   "test/Programs/MultiSource/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/04-bisect/Makefile" ;;
23515   "test/Programs/MultiSource/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/05-eks/Makefile" ;;
23516   "test/Programs/MultiSource/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/08-main/Makefile" ;;
23517   "test/Programs/MultiSource/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/09-vor/Makefile" ;;
23518   "test/Programs/MultiSource/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/12-IOtest/Makefile" ;;
23519   "test/Programs/MultiSource/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/15-trie/Makefile" ;;
23520   "test/Programs/MultiSource/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/17-bintr/Makefile" ;;
23521   "test/Programs/MultiSource/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/18-imp/Makefile" ;;
23522   "test/Programs/MultiSource/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/Makefile" ;;
23523   "test/Programs/MultiSource/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/bh/Makefile" ;;
23524   "test/Programs/MultiSource/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/bisort/Makefile" ;;
23525   "test/Programs/MultiSource/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/em3d/Makefile" ;;
23526   "test/Programs/MultiSource/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/health/Makefile" ;;
23527   "test/Programs/MultiSource/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/mst/Makefile" ;;
23528   "test/Programs/MultiSource/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/perimeter/Makefile" ;;
23529   "test/Programs/MultiSource/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/power/Makefile" ;;
23530   "test/Programs/MultiSource/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/treeadd/Makefile" ;;
23531   "test/Programs/MultiSource/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/tsp/Makefile" ;;
23532   "test/Programs/MultiSource/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/voronoi/Makefile" ;;
23533   "test/Programs/MultiSource/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/OptimizerEval/Makefile" ;;
23534   "test/Programs/MultiSource/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/Makefile" ;;
23535   "test/Programs/MultiSource/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/anagram/Makefile" ;;
23536   "test/Programs/MultiSource/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/bc/Makefile" ;;
23537   "test/Programs/MultiSource/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/ft/Makefile" ;;
23538   "test/Programs/MultiSource/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/ks/Makefile" ;;
23539   "test/Programs/MultiSource/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/yacr2/Makefile" ;;
23540   "test/Programs/MultiSource/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/aha/Makefile" ;;
23541   "test/Programs/MultiSource/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/llubenchmark/Makefile" ;;
23542   "test/Programs/MultiSource/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/sgefa/Makefile" ;;
23543   "test/Programs/MultiSource/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/sim/Makefile" ;;
23544   "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23545   "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23546   "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23547   "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23548   "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
23549   "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23550   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23551   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23552   "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23553   "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23554   "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23555   "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23556   "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23557   "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
23558   "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
23559   "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
23560   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23561   "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23562   "tools/as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/as/Makefile" ;;
23563   "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23564   "tools/dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/dis/Makefile" ;;
23565   "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23566   "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23567   "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23568   "tools/link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/link/Makefile" ;;
23569   "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23570   "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23571   "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23572   "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
23573   "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
23574   "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23575   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23576   "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23577   "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23578   "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
23579   "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23580   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23581   "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23582   "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23583   "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23584   "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23585   "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23586   "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23587   "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23588   "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23589   "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23590   "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23591   "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
23592   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23593   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23594 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23595    { (exit 1); exit 1; }; };;
23596   esac
23597 done
23598
23599 # If the user did not use the arguments to specify the items to instantiate,
23600 # then the envvar interface is used.  Set only those that are not.
23601 # We use the long form for the default assignment because of an extremely
23602 # bizarre bug on SunOS 4.1.3.
23603 if $ac_need_defaults; then
23604   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23605   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23606   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23607 fi
23608
23609 # Have a temporary directory for convenience.  Make it in the build tree
23610 # simply because there is no reason to put it here, and in addition,
23611 # creating and moving files from /tmp can sometimes cause problems.
23612 # Create a temporary directory, and hook for its removal unless debugging.
23613 $debug ||
23614 {
23615   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23616   trap '{ (exit 1); exit 1; }' 1 2 13 15
23617 }
23618
23619 # Create a (secure) tmp directory for tmp files.
23620
23621 {
23622   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23623   test -n "$tmp" && test -d "$tmp"
23624 }  ||
23625 {
23626   tmp=./confstat$$-$RANDOM
23627   (umask 077 && mkdir $tmp)
23628 } ||
23629 {
23630    echo "$me: cannot create a temporary directory in ." >&2
23631    { (exit 1); exit 1; }
23632 }
23633
23634 _ACEOF
23635
23636 cat >>$CONFIG_STATUS <<_ACEOF
23637
23638 #
23639 # CONFIG_FILES section.
23640 #
23641
23642 # No need to generate the scripts if there are no CONFIG_FILES.
23643 # This happens for instance when ./config.status config.h
23644 if test -n "\$CONFIG_FILES"; then
23645   # Protect against being on the right side of a sed subst in config.status.
23646   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23647    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23648 s,@SHELL@,$SHELL,;t t
23649 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23650 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23651 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23652 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23653 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23654 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23655 s,@exec_prefix@,$exec_prefix,;t t
23656 s,@prefix@,$prefix,;t t
23657 s,@program_transform_name@,$program_transform_name,;t t
23658 s,@bindir@,$bindir,;t t
23659 s,@sbindir@,$sbindir,;t t
23660 s,@libexecdir@,$libexecdir,;t t
23661 s,@datadir@,$datadir,;t t
23662 s,@sysconfdir@,$sysconfdir,;t t
23663 s,@sharedstatedir@,$sharedstatedir,;t t
23664 s,@localstatedir@,$localstatedir,;t t
23665 s,@libdir@,$libdir,;t t
23666 s,@includedir@,$includedir,;t t
23667 s,@oldincludedir@,$oldincludedir,;t t
23668 s,@infodir@,$infodir,;t t
23669 s,@mandir@,$mandir,;t t
23670 s,@build_alias@,$build_alias,;t t
23671 s,@host_alias@,$host_alias,;t t
23672 s,@target_alias@,$target_alias,;t t
23673 s,@DEFS@,$DEFS,;t t
23674 s,@ECHO_C@,$ECHO_C,;t t
23675 s,@ECHO_N@,$ECHO_N,;t t
23676 s,@ECHO_T@,$ECHO_T,;t t
23677 s,@LIBS@,$LIBS,;t t
23678 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23679 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23680 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23681 s,@build@,$build,;t t
23682 s,@build_cpu@,$build_cpu,;t t
23683 s,@build_vendor@,$build_vendor,;t t
23684 s,@build_os@,$build_os,;t t
23685 s,@host@,$host,;t t
23686 s,@host_cpu@,$host_cpu,;t t
23687 s,@host_vendor@,$host_vendor,;t t
23688 s,@host_os@,$host_os,;t t
23689 s,@target@,$target,;t t
23690 s,@target_cpu@,$target_cpu,;t t
23691 s,@target_vendor@,$target_vendor,;t t
23692 s,@target_os@,$target_os,;t t
23693 s,@OS@,$OS,;t t
23694 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23695 s,@ARCH@,$ARCH,;t t
23696 s,@CXX@,$CXX,;t t
23697 s,@CXXFLAGS@,$CXXFLAGS,;t t
23698 s,@LDFLAGS@,$LDFLAGS,;t t
23699 s,@CPPFLAGS@,$CPPFLAGS,;t t
23700 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23701 s,@EXEEXT@,$EXEEXT,;t t
23702 s,@OBJEXT@,$OBJEXT,;t t
23703 s,@CC@,$CC,;t t
23704 s,@CFLAGS@,$CFLAGS,;t t
23705 s,@ac_ct_CC@,$ac_ct_CC,;t t
23706 s,@CPP@,$CPP,;t t
23707 s,@ifGNUmake@,$ifGNUmake,;t t
23708 s,@LEX@,$LEX,;t t
23709 s,@LEXLIB@,$LEXLIB,;t t
23710 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23711 s,@YACC@,$YACC,;t t
23712 s,@EGREP@,$EGREP,;t t
23713 s,@LN_S@,$LN_S,;t t
23714 s,@ECHO@,$ECHO,;t t
23715 s,@AR@,$AR,;t t
23716 s,@ac_ct_AR@,$ac_ct_AR,;t t
23717 s,@RANLIB@,$RANLIB,;t t
23718 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23719 s,@STRIP@,$STRIP,;t t
23720 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23721 s,@CXXCPP@,$CXXCPP,;t t
23722 s,@F77@,$F77,;t t
23723 s,@FFLAGS@,$FFLAGS,;t t
23724 s,@ac_ct_F77@,$ac_ct_F77,;t t
23725 s,@LIBTOOL@,$LIBTOOL,;t t
23726 s,@RPWD@,$RPWD,;t t
23727 s,@SED@,$SED,;t t
23728 s,@RM@,$RM,;t t
23729 s,@MKDIR@,$MKDIR,;t t
23730 s,@DATE@,$DATE,;t t
23731 s,@MV@,$MV,;t t
23732 s,@DOT@,$DOT,;t t
23733 s,@ETAGS@,$ETAGS,;t t
23734 s,@PURIFY@,$PURIFY,;t t
23735 s,@PYTHON@,$PYTHON,;t t
23736 s,@QMTEST@,$QMTEST,;t t
23737 s,@ALLOCA@,$ALLOCA,;t t
23738 s,@LIBOBJS@,$LIBOBJS,;t t
23739 s,@MMAP_FILE@,$MMAP_FILE,;t t
23740 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
23741 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23742 s,@USE_SPEC@,$USE_SPEC,;t t
23743 s,@UPB@,$UPB,;t t
23744 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23745 s,@JIT@,$JIT,;t t
23746 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23747 s,@BCR@,$BCR,;t t
23748 s,@PAPIDIR@,$PAPIDIR,;t t
23749 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23750 CEOF
23751
23752 _ACEOF
23753
23754   cat >>$CONFIG_STATUS <<\_ACEOF
23755   # Split the substitutions into bite-sized pieces for seds with
23756   # small command number limits, like on Digital OSF/1 and HP-UX.
23757   ac_max_sed_lines=48
23758   ac_sed_frag=1 # Number of current file.
23759   ac_beg=1 # First line for current file.
23760   ac_end=$ac_max_sed_lines # Line after last line for current file.
23761   ac_more_lines=:
23762   ac_sed_cmds=
23763   while $ac_more_lines; do
23764     if test $ac_beg -gt 1; then
23765       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23766     else
23767       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23768     fi
23769     if test ! -s $tmp/subs.frag; then
23770       ac_more_lines=false
23771     else
23772       # The purpose of the label and of the branching condition is to
23773       # speed up the sed processing (if there are no `@' at all, there
23774       # is no need to browse any of the substitutions).
23775       # These are the two extra sed commands mentioned above.
23776       (echo ':t
23777   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23778       if test -z "$ac_sed_cmds"; then
23779         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23780       else
23781         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23782       fi
23783       ac_sed_frag=`expr $ac_sed_frag + 1`
23784       ac_beg=$ac_end
23785       ac_end=`expr $ac_end + $ac_max_sed_lines`
23786     fi
23787   done
23788   if test -z "$ac_sed_cmds"; then
23789     ac_sed_cmds=cat
23790   fi
23791 fi # test -n "$CONFIG_FILES"
23792
23793 _ACEOF
23794 cat >>$CONFIG_STATUS <<\_ACEOF
23795 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23796   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23797   case $ac_file in
23798   - | *:- | *:-:* ) # input from stdin
23799         cat >$tmp/stdin
23800         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23801         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23802   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23803         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23804   * )   ac_file_in=$ac_file.in ;;
23805   esac
23806
23807   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23808   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23809 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23810          X"$ac_file" : 'X\(//\)[^/]' \| \
23811          X"$ac_file" : 'X\(//\)$' \| \
23812          X"$ac_file" : 'X\(/\)' \| \
23813          .     : '\(.\)' 2>/dev/null ||
23814 echo X"$ac_file" |
23815     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23816           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23817           /^X\(\/\/\)$/{ s//\1/; q; }
23818           /^X\(\/\).*/{ s//\1/; q; }
23819           s/.*/./; q'`
23820   { if $as_mkdir_p; then
23821     mkdir -p "$ac_dir"
23822   else
23823     as_dir="$ac_dir"
23824     as_dirs=
23825     while test ! -d "$as_dir"; do
23826       as_dirs="$as_dir $as_dirs"
23827       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23828 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23829          X"$as_dir" : 'X\(//\)[^/]' \| \
23830          X"$as_dir" : 'X\(//\)$' \| \
23831          X"$as_dir" : 'X\(/\)' \| \
23832          .     : '\(.\)' 2>/dev/null ||
23833 echo X"$as_dir" |
23834     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23835           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23836           /^X\(\/\/\)$/{ s//\1/; q; }
23837           /^X\(\/\).*/{ s//\1/; q; }
23838           s/.*/./; q'`
23839     done
23840     test ! -n "$as_dirs" || mkdir $as_dirs
23841   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23842 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23843    { (exit 1); exit 1; }; }; }
23844
23845   ac_builddir=.
23846
23847 if test "$ac_dir" != .; then
23848   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23849   # A "../" for each directory in $ac_dir_suffix.
23850   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23851 else
23852   ac_dir_suffix= ac_top_builddir=
23853 fi
23854
23855 case $srcdir in
23856   .)  # No --srcdir option.  We are building in place.
23857     ac_srcdir=.
23858     if test -z "$ac_top_builddir"; then
23859        ac_top_srcdir=.
23860     else
23861        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23862     fi ;;
23863   [\\/]* | ?:[\\/]* )  # Absolute path.
23864     ac_srcdir=$srcdir$ac_dir_suffix;
23865     ac_top_srcdir=$srcdir ;;
23866   *) # Relative path.
23867     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23868     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23869 esac
23870 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23871 # absolute.
23872 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23873 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23874 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23875 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23876
23877
23878   case $INSTALL in
23879   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23880   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23881   esac
23882
23883   if test x"$ac_file" != x-; then
23884     { echo "$as_me:$LINENO: creating $ac_file" >&5
23885 echo "$as_me: creating $ac_file" >&6;}
23886     rm -f "$ac_file"
23887   fi
23888   # Let's still pretend it is `configure' which instantiates (i.e., don't
23889   # use $as_me), people would be surprised to read:
23890   #    /* config.h.  Generated by config.status.  */
23891   if test x"$ac_file" = x-; then
23892     configure_input=
23893   else
23894     configure_input="$ac_file.  "
23895   fi
23896   configure_input=$configure_input"Generated from `echo $ac_file_in |
23897                                      sed 's,.*/,,'` by configure."
23898
23899   # First look for the input files in the build tree, otherwise in the
23900   # src tree.
23901   ac_file_inputs=`IFS=:
23902     for f in $ac_file_in; do
23903       case $f in
23904       -) echo $tmp/stdin ;;
23905       [\\/$]*)
23906          # Absolute (can't be DOS-style, as IFS=:)
23907          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23908 echo "$as_me: error: cannot find input file: $f" >&2;}
23909    { (exit 1); exit 1; }; }
23910          echo $f;;
23911       *) # Relative
23912          if test -f "$f"; then
23913            # Build tree
23914            echo $f
23915          elif test -f "$srcdir/$f"; then
23916            # Source tree
23917            echo $srcdir/$f
23918          else
23919            # /dev/null tree
23920            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23921 echo "$as_me: error: cannot find input file: $f" >&2;}
23922    { (exit 1); exit 1; }; }
23923          fi;;
23924       esac
23925     done` || { (exit 1); exit 1; }
23926 _ACEOF
23927 cat >>$CONFIG_STATUS <<_ACEOF
23928   sed "$ac_vpsub
23929 $extrasub
23930 _ACEOF
23931 cat >>$CONFIG_STATUS <<\_ACEOF
23932 :t
23933 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23934 s,@configure_input@,$configure_input,;t t
23935 s,@srcdir@,$ac_srcdir,;t t
23936 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23937 s,@top_srcdir@,$ac_top_srcdir,;t t
23938 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23939 s,@builddir@,$ac_builddir,;t t
23940 s,@abs_builddir@,$ac_abs_builddir,;t t
23941 s,@top_builddir@,$ac_top_builddir,;t t
23942 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23943 s,@INSTALL@,$ac_INSTALL,;t t
23944 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23945   rm -f $tmp/stdin
23946   if test x"$ac_file" != x-; then
23947     mv $tmp/out $ac_file
23948   else
23949     cat $tmp/out
23950     rm -f $tmp/out
23951   fi
23952
23953 done
23954 _ACEOF
23955 cat >>$CONFIG_STATUS <<\_ACEOF
23956
23957 #
23958 # CONFIG_HEADER section.
23959 #
23960
23961 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23962 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23963 #
23964 # ac_d sets the value in "#define NAME VALUE" lines.
23965 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
23966 ac_dB='[        ].*$,\1#\2'
23967 ac_dC=' '
23968 ac_dD=',;t'
23969 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23970 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23971 ac_uB='$,\1#\2define\3'
23972 ac_uC=' '
23973 ac_uD=',;t'
23974
23975 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23976   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23977   case $ac_file in
23978   - | *:- | *:-:* ) # input from stdin
23979         cat >$tmp/stdin
23980         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23981         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23982   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23983         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23984   * )   ac_file_in=$ac_file.in ;;
23985   esac
23986
23987   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23988 echo "$as_me: creating $ac_file" >&6;}
23989
23990   # First look for the input files in the build tree, otherwise in the
23991   # src tree.
23992   ac_file_inputs=`IFS=:
23993     for f in $ac_file_in; do
23994       case $f in
23995       -) echo $tmp/stdin ;;
23996       [\\/$]*)
23997          # Absolute (can't be DOS-style, as IFS=:)
23998          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23999 echo "$as_me: error: cannot find input file: $f" >&2;}
24000    { (exit 1); exit 1; }; }
24001          echo $f;;
24002       *) # Relative
24003          if test -f "$f"; then
24004            # Build tree
24005            echo $f
24006          elif test -f "$srcdir/$f"; then
24007            # Source tree
24008            echo $srcdir/$f
24009          else
24010            # /dev/null tree
24011            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24012 echo "$as_me: error: cannot find input file: $f" >&2;}
24013    { (exit 1); exit 1; }; }
24014          fi;;
24015       esac
24016     done` || { (exit 1); exit 1; }
24017   # Remove the trailing spaces.
24018   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
24019
24020 _ACEOF
24021
24022 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24023 # `conftest.undefs', that substitutes the proper values into
24024 # config.h.in to produce config.h.  The first handles `#define'
24025 # templates, and the second `#undef' templates.
24026 # And first: Protect against being on the right side of a sed subst in
24027 # config.status.  Protect against being in an unquoted here document
24028 # in config.status.
24029 rm -f conftest.defines conftest.undefs
24030 # Using a here document instead of a string reduces the quoting nightmare.
24031 # Putting comments in sed scripts is not portable.
24032 #
24033 # `end' is used to avoid that the second main sed command (meant for
24034 # 0-ary CPP macros) applies to n-ary macro definitions.
24035 # See the Autoconf documentation for `clear'.
24036 cat >confdef2sed.sed <<\_ACEOF
24037 s/[\\&,]/\\&/g
24038 s,[\\$`],\\&,g
24039 t clear
24040 : clear
24041 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24042 t end
24043 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24044 : end
24045 _ACEOF
24046 # If some macros were called several times there might be several times
24047 # the same #defines, which is useless.  Nevertheless, we may not want to
24048 # sort them, since we want the *last* AC-DEFINE to be honored.
24049 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24050 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24051 rm -f confdef2sed.sed
24052
24053 # This sed command replaces #undef with comments.  This is necessary, for
24054 # example, in the case of _POSIX_SOURCE, which is predefined and required
24055 # on some systems where configure will not decide to define it.
24056 cat >>conftest.undefs <<\_ACEOF
24057 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24058 _ACEOF
24059
24060 # Break up conftest.defines because some shells have a limit on the size
24061 # of here documents, and old seds have small limits too (100 cmds).
24062 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24063 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24064 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24065 echo '  :' >>$CONFIG_STATUS
24066 rm -f conftest.tail
24067 while grep . conftest.defines >/dev/null
24068 do
24069   # Write a limited-size here document to $tmp/defines.sed.
24070   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24071   # Speed up: don't consider the non `#define' lines.
24072   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24073   # Work around the forget-to-reset-the-flag bug.
24074   echo 't clr' >>$CONFIG_STATUS
24075   echo ': clr' >>$CONFIG_STATUS
24076   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24077   echo 'CEOF
24078   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24079   rm -f $tmp/in
24080   mv $tmp/out $tmp/in
24081 ' >>$CONFIG_STATUS
24082   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24083   rm -f conftest.defines
24084   mv conftest.tail conftest.defines
24085 done
24086 rm -f conftest.defines
24087 echo '  fi # grep' >>$CONFIG_STATUS
24088 echo >>$CONFIG_STATUS
24089
24090 # Break up conftest.undefs because some shells have a limit on the size
24091 # of here documents, and old seds have small limits too (100 cmds).
24092 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24093 rm -f conftest.tail
24094 while grep . conftest.undefs >/dev/null
24095 do
24096   # Write a limited-size here document to $tmp/undefs.sed.
24097   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24098   # Speed up: don't consider the non `#undef'
24099   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24100   # Work around the forget-to-reset-the-flag bug.
24101   echo 't clr' >>$CONFIG_STATUS
24102   echo ': clr' >>$CONFIG_STATUS
24103   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24104   echo 'CEOF
24105   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24106   rm -f $tmp/in
24107   mv $tmp/out $tmp/in
24108 ' >>$CONFIG_STATUS
24109   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24110   rm -f conftest.undefs
24111   mv conftest.tail conftest.undefs
24112 done
24113 rm -f conftest.undefs
24114
24115 cat >>$CONFIG_STATUS <<\_ACEOF
24116   # Let's still pretend it is `configure' which instantiates (i.e., don't
24117   # use $as_me), people would be surprised to read:
24118   #    /* config.h.  Generated by config.status.  */
24119   if test x"$ac_file" = x-; then
24120     echo "/* Generated by configure.  */" >$tmp/config.h
24121   else
24122     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24123   fi
24124   cat $tmp/in >>$tmp/config.h
24125   rm -f $tmp/in
24126   if test x"$ac_file" != x-; then
24127     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24128       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24129 echo "$as_me: $ac_file is unchanged" >&6;}
24130     else
24131       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24132 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24133          X"$ac_file" : 'X\(//\)[^/]' \| \
24134          X"$ac_file" : 'X\(//\)$' \| \
24135          X"$ac_file" : 'X\(/\)' \| \
24136          .     : '\(.\)' 2>/dev/null ||
24137 echo X"$ac_file" |
24138     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24139           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24140           /^X\(\/\/\)$/{ s//\1/; q; }
24141           /^X\(\/\).*/{ s//\1/; q; }
24142           s/.*/./; q'`
24143       { if $as_mkdir_p; then
24144     mkdir -p "$ac_dir"
24145   else
24146     as_dir="$ac_dir"
24147     as_dirs=
24148     while test ! -d "$as_dir"; do
24149       as_dirs="$as_dir $as_dirs"
24150       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24151 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24152          X"$as_dir" : 'X\(//\)[^/]' \| \
24153          X"$as_dir" : 'X\(//\)$' \| \
24154          X"$as_dir" : 'X\(/\)' \| \
24155          .     : '\(.\)' 2>/dev/null ||
24156 echo X"$as_dir" |
24157     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24158           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24159           /^X\(\/\/\)$/{ s//\1/; q; }
24160           /^X\(\/\).*/{ s//\1/; q; }
24161           s/.*/./; q'`
24162     done
24163     test ! -n "$as_dirs" || mkdir $as_dirs
24164   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24165 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24166    { (exit 1); exit 1; }; }; }
24167
24168       rm -f $ac_file
24169       mv $tmp/config.h $ac_file
24170     fi
24171   else
24172     cat $tmp/config.h
24173     rm -f $tmp/config.h
24174   fi
24175 done
24176 _ACEOF
24177 cat >>$CONFIG_STATUS <<\_ACEOF
24178
24179 #
24180 # CONFIG_COMMANDS section.
24181 #
24182 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24183   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24184   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24185   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24186 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24187          X"$ac_dest" : 'X\(//\)[^/]' \| \
24188          X"$ac_dest" : 'X\(//\)$' \| \
24189          X"$ac_dest" : 'X\(/\)' \| \
24190          .     : '\(.\)' 2>/dev/null ||
24191 echo X"$ac_dest" |
24192     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24193           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24194           /^X\(\/\/\)$/{ s//\1/; q; }
24195           /^X\(\/\).*/{ s//\1/; q; }
24196           s/.*/./; q'`
24197   ac_builddir=.
24198
24199 if test "$ac_dir" != .; then
24200   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24201   # A "../" for each directory in $ac_dir_suffix.
24202   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24203 else
24204   ac_dir_suffix= ac_top_builddir=
24205 fi
24206
24207 case $srcdir in
24208   .)  # No --srcdir option.  We are building in place.
24209     ac_srcdir=.
24210     if test -z "$ac_top_builddir"; then
24211        ac_top_srcdir=.
24212     else
24213        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24214     fi ;;
24215   [\\/]* | ?:[\\/]* )  # Absolute path.
24216     ac_srcdir=$srcdir$ac_dir_suffix;
24217     ac_top_srcdir=$srcdir ;;
24218   *) # Relative path.
24219     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24220     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24221 esac
24222 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24223 # absolute.
24224 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24225 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24226 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24227 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24228
24229
24230   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24231 echo "$as_me: executing $ac_dest commands" >&6;}
24232   case $ac_dest in
24233     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24234     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24235     Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24236     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24237     lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24238     lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24239     lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24240     lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24241     lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24242     lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24243     lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24244     lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24245     lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24246     lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24247     lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24248     lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24249     lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
24250     lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24251     lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24252     lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24253     lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24254     lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24255     lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24256     lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24257     lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24258     lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24259     lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24260     lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24261     lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24262     lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24263     lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24264     lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24265     lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24266     lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24267     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24268     runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24269     runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24270     runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
24271     runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24272     runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24273     runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24274     runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
24275     runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
24276     runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24277     runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24278     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24279     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24280     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24281     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24282     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24283     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24284     test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24285     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24286     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24287     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24288     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24289     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24290     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24291     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24292     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24293     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24294     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24295     test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24296     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24297     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24298     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 ;;
24299     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 ;;
24300     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 ;;
24301     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 ;;
24302     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 ;;
24303     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 ;;
24304     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 ;;
24305     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 ;;
24306     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 ;;
24307     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 ;;
24308     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 ;;
24309     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 ;;
24310     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 ;;
24311     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 ;;
24312     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 ;;
24313     test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24314     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24315     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24316     test/Programs/MultiSource/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Burg/Makefile test/Programs/MultiSource/Burg/Makefile ;;
24317     test/Programs/MultiSource/Fhourstones/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Fhourstones/Makefile test/Programs/MultiSource/Fhourstones/Makefile ;;
24318     test/Programs/MultiSource/McCat/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/Makefile test/Programs/MultiSource/McCat/Makefile ;;
24319     test/Programs/MultiSource/McCat/01-qbsort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/01-qbsort/Makefile test/Programs/MultiSource/McCat/01-qbsort/Makefile ;;
24320     test/Programs/MultiSource/McCat/03-testtrie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/03-testtrie/Makefile test/Programs/MultiSource/McCat/03-testtrie/Makefile ;;
24321     test/Programs/MultiSource/McCat/04-bisect/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/04-bisect/Makefile test/Programs/MultiSource/McCat/04-bisect/Makefile ;;
24322     test/Programs/MultiSource/McCat/05-eks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/05-eks/Makefile test/Programs/MultiSource/McCat/05-eks/Makefile ;;
24323     test/Programs/MultiSource/McCat/08-main/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/08-main/Makefile test/Programs/MultiSource/McCat/08-main/Makefile ;;
24324     test/Programs/MultiSource/McCat/09-vor/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/09-vor/Makefile test/Programs/MultiSource/McCat/09-vor/Makefile ;;
24325     test/Programs/MultiSource/McCat/12-IOtest/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/12-IOtest/Makefile test/Programs/MultiSource/McCat/12-IOtest/Makefile ;;
24326     test/Programs/MultiSource/McCat/15-trie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/15-trie/Makefile test/Programs/MultiSource/McCat/15-trie/Makefile ;;
24327     test/Programs/MultiSource/McCat/17-bintr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/17-bintr/Makefile test/Programs/MultiSource/McCat/17-bintr/Makefile ;;
24328     test/Programs/MultiSource/McCat/18-imp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/18-imp/Makefile test/Programs/MultiSource/McCat/18-imp/Makefile ;;
24329     test/Programs/MultiSource/Olden/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/Makefile test/Programs/MultiSource/Olden/Makefile ;;
24330     test/Programs/MultiSource/Olden/bh/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/bh/Makefile test/Programs/MultiSource/Olden/bh/Makefile ;;
24331     test/Programs/MultiSource/Olden/bisort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/bisort/Makefile test/Programs/MultiSource/Olden/bisort/Makefile ;;
24332     test/Programs/MultiSource/Olden/em3d/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/em3d/Makefile test/Programs/MultiSource/Olden/em3d/Makefile ;;
24333     test/Programs/MultiSource/Olden/health/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/health/Makefile test/Programs/MultiSource/Olden/health/Makefile ;;
24334     test/Programs/MultiSource/Olden/mst/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/mst/Makefile test/Programs/MultiSource/Olden/mst/Makefile ;;
24335     test/Programs/MultiSource/Olden/perimeter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/perimeter/Makefile test/Programs/MultiSource/Olden/perimeter/Makefile ;;
24336     test/Programs/MultiSource/Olden/power/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/power/Makefile test/Programs/MultiSource/Olden/power/Makefile ;;
24337     test/Programs/MultiSource/Olden/treeadd/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/treeadd/Makefile test/Programs/MultiSource/Olden/treeadd/Makefile ;;
24338     test/Programs/MultiSource/Olden/tsp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/tsp/Makefile test/Programs/MultiSource/Olden/tsp/Makefile ;;
24339     test/Programs/MultiSource/Olden/voronoi/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/voronoi/Makefile test/Programs/MultiSource/Olden/voronoi/Makefile ;;
24340     test/Programs/MultiSource/OptimizerEval/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/OptimizerEval/Makefile test/Programs/MultiSource/OptimizerEval/Makefile ;;
24341     test/Programs/MultiSource/Ptrdist/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/Makefile test/Programs/MultiSource/Ptrdist/Makefile ;;
24342     test/Programs/MultiSource/Ptrdist/anagram/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/anagram/Makefile test/Programs/MultiSource/Ptrdist/anagram/Makefile ;;
24343     test/Programs/MultiSource/Ptrdist/bc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/bc/Makefile test/Programs/MultiSource/Ptrdist/bc/Makefile ;;
24344     test/Programs/MultiSource/Ptrdist/ft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/ft/Makefile test/Programs/MultiSource/Ptrdist/ft/Makefile ;;
24345     test/Programs/MultiSource/Ptrdist/ks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/ks/Makefile test/Programs/MultiSource/Ptrdist/ks/Makefile ;;
24346     test/Programs/MultiSource/Ptrdist/yacr2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/yacr2/Makefile test/Programs/MultiSource/Ptrdist/yacr2/Makefile ;;
24347     test/Programs/MultiSource/aha/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/aha/Makefile test/Programs/MultiSource/aha/Makefile ;;
24348     test/Programs/MultiSource/llubenchmark/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/llubenchmark/Makefile test/Programs/MultiSource/llubenchmark/Makefile ;;
24349     test/Programs/MultiSource/sgefa/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/sgefa/Makefile test/Programs/MultiSource/sgefa/Makefile ;;
24350     test/Programs/MultiSource/sim/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/sim/Makefile test/Programs/MultiSource/sim/Makefile ;;
24351     test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24352     test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24353     test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24354     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 ;;
24355     test/Programs/NoSource/Povray31/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Povray31/Makefile test/Programs/NoSource/Povray31/Makefile ;;
24356     test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24357     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24358     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24359     test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24360     test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24361     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 ;;
24362     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 ;;
24363     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 ;;
24364     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 ;;
24365     test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
24366     test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
24367     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24368     tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24369     tools/as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/as/Makefile tools/as/Makefile ;;
24370     tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24371     tools/dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/dis/Makefile tools/dis/Makefile ;;
24372     tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24373     tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24374     tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24375     tools/link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/link/Makefile tools/link/Makefile ;;
24376     tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24377     tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24378     tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24379     tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24380     tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
24381     tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24382     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24383     utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24384     utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24385     utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
24386     www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24387     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24388     projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24389     projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24390     projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24391     projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24392     projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24393     projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24394     projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24395     projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24396     projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24397     projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24398     projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24399   esac
24400 done
24401 _ACEOF
24402
24403 cat >>$CONFIG_STATUS <<\_ACEOF
24404
24405 { (exit 0); exit 0; }
24406 _ACEOF
24407 chmod +x $CONFIG_STATUS
24408 ac_clean_files=$ac_clean_files_save
24409
24410
24411 # configure is writing to config.log, and then calls config.status.
24412 # config.status does its own redirection, appending to config.log.
24413 # Unfortunately, on DOS this fails, as config.log is still kept open
24414 # by configure, so config.status won't be able to write to it; its
24415 # output is simply discarded.  So we exec the FD to /dev/null,
24416 # effectively closing config.log, so it can be properly (re)opened and
24417 # appended to by config.status.  When coming back to configure, we
24418 # need to make the FD available again.
24419 if test "$no_create" != yes; then
24420   ac_cs_success=:
24421   ac_config_status_args=
24422   test "$silent" = yes &&
24423     ac_config_status_args="$ac_config_status_args --quiet"
24424   exec 5>/dev/null
24425   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24426   exec 5>>config.log
24427   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24428   # would make configure fail if this is the last instruction.
24429   $ac_cs_success || { (exit 1); exit 1; }
24430 fi
24431