Removed the utils/Makefile file from being copied to the object root tree.
[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 if test ${srcdir} != "."
1513 then
1514         if test -f ${srcdir}/include/Config/config.h
1515         then
1516                 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1517 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1518    { (exit 1); exit 1; }; }
1519         fi
1520 fi
1521
1522           ac_config_headers="$ac_config_headers include/Config/config.h"
1523
1524           ac_config_commands="$ac_config_commands Makefile"
1525
1526
1527           ac_config_commands="$ac_config_commands Makefile.common"
1528
1529
1530           ac_config_commands="$ac_config_commands Makefile.rules"
1531
1532
1533           ac_config_commands="$ac_config_commands lib/Makefile"
1534
1535
1536           ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
1537
1538
1539           ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
1540
1541
1542           ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
1543
1544
1545           ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
1546
1547
1548           ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
1549
1550
1551           ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
1552
1553
1554           ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
1555
1556
1557           ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
1558
1559
1560           ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
1561
1562
1563           ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
1564
1565
1566           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
1567
1568
1569           ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
1570
1571
1572           ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
1573
1574
1575           ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
1576
1577
1578           ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
1579
1580
1581           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
1582
1583
1584           ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
1585
1586
1587           ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
1588
1589
1590           ac_config_commands="$ac_config_commands lib/Target/Makefile"
1591
1592
1593           ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
1594
1595
1596           ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
1597
1598
1599           ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
1600
1601
1602           ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
1603
1604
1605           ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
1606
1607
1608           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
1609
1610
1611           ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
1612
1613
1614           ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
1615
1616
1617           ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
1618
1619
1620           ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
1621
1622
1623           ac_config_commands="$ac_config_commands runtime/Makefile"
1624
1625
1626           ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
1627
1628
1629           ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
1630
1631
1632           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
1633
1634
1635           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1636
1637
1638           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
1639
1640
1641           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
1642
1643
1644           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
1645
1646
1647           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
1648
1649
1650           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1651
1652
1653           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
1654
1655
1656           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1657
1658
1659           ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1660
1661
1662           ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
1663
1664
1665           ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
1666
1667
1668           ac_config_commands="$ac_config_commands test/Makefile"
1669
1670
1671           ac_config_commands="$ac_config_commands test/Makefile.tests"
1672
1673
1674           ac_config_commands="$ac_config_commands test/QMTestDB/QMTest/llvm.py"
1675
1676
1677           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1678
1679
1680           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1681
1682
1683           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1684
1685
1686           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1687
1688
1689           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1690
1691
1692           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1693
1694
1695           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1696
1697
1698           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1699
1700
1701           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1702
1703
1704           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1705
1706
1707           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1708
1709
1710           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1711
1712
1713           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1714
1715
1716           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1717
1718
1719           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1720
1721
1722           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1723
1724
1725           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1726
1727
1728           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1729
1730
1731           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1732
1733
1734           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
1735
1736
1737           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
1738
1739
1740           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
1741
1742
1743           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
1744
1745
1746           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
1747
1748
1749           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
1750
1751
1752           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
1753
1754
1755           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
1756
1757
1758           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
1759
1760
1761           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
1762
1763
1764           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
1765
1766
1767           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
1768
1769
1770           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
1771
1772
1773           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
1774
1775
1776           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
1777
1778
1779           ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
1780
1781
1782           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1783
1784
1785           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1786
1787
1788           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
1789
1790
1791           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
1792
1793
1794           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1795
1796
1797           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1798
1799
1800           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
1801
1802
1803           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
1804
1805
1806           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
1807
1808
1809           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
1810
1811
1812           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
1813
1814
1815           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
1816
1817
1818           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
1819
1820
1821           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
1822
1823
1824           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
1825
1826
1827           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
1828
1829
1830           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
1831
1832
1833           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
1834
1835
1836           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
1837
1838
1839           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
1840
1841
1842           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
1843
1844
1845           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
1846
1847
1848           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
1849
1850
1851           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
1852
1853
1854           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
1855
1856
1857           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
1858
1859
1860           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
1861
1862
1863           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1864
1865
1866           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1867
1868
1869           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
1870
1871
1872           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
1873
1874
1875           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
1876
1877
1878           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
1879
1880
1881           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
1882
1883
1884           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
1885
1886
1887           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
1888
1889
1890           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
1891
1892
1893           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
1894
1895
1896           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
1897
1898
1899           ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
1900
1901
1902           ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
1903
1904
1905           ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
1906
1907
1908           ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
1909
1910
1911           ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
1912
1913
1914           ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
1915
1916
1917           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1918
1919
1920           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1921
1922
1923           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1924
1925
1926           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1927
1928
1929           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1930
1931
1932           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1933
1934
1935           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1936
1937
1938           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1939
1940
1941           ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
1942
1943
1944           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
1945
1946
1947           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1948
1949
1950           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
1951
1952
1953           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C/Makefile"
1954
1955
1956           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/Makefile"
1957
1958
1959           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/EH/Makefile"
1960
1961
1962           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/CompileFail/Makefile"
1963
1964
1965           ac_config_commands="$ac_config_commands tools/Makefile"
1966
1967
1968           ac_config_commands="$ac_config_commands tools/analyze/Makefile"
1969
1970
1971           ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
1972
1973
1974           ac_config_commands="$ac_config_commands tools/extract/Makefile"
1975
1976
1977           ac_config_commands="$ac_config_commands tools/gccas/Makefile"
1978
1979
1980           ac_config_commands="$ac_config_commands tools/gccld/Makefile"
1981
1982
1983           ac_config_commands="$ac_config_commands tools/llc/Makefile"
1984
1985
1986           ac_config_commands="$ac_config_commands tools/llee/Makefile"
1987
1988
1989           ac_config_commands="$ac_config_commands tools/lli/Makefile"
1990
1991
1992           ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
1993
1994
1995           ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
1996
1997
1998           ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
1999
2000
2001           ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
2002
2003
2004           ac_config_commands="$ac_config_commands tools/opt/Makefile"
2005
2006
2007           ac_config_commands="$ac_config_commands www/docs/Makefile"
2008
2009
2010           ac_config_commands="$ac_config_commands projects/Makefile"
2011
2012
2013           ac_config_commands="$ac_config_commands projects/sample/Makefile"
2014
2015
2016           ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
2017
2018
2019           ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
2020
2021
2022           ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
2023
2024
2025           ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
2026
2027
2028           ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
2029
2030
2031           ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
2032
2033
2034           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
2035
2036
2037           ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
2038
2039
2040           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
2041
2042
2043           ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
2044
2045
2046           ac_config_commands="$ac_config_commands support/Makefile"
2047
2048
2049           ac_config_commands="$ac_config_commands support/lib/Makefile"
2050
2051
2052           ac_config_commands="$ac_config_commands support/lib/Support/Makefile"
2053
2054
2055           ac_config_commands="$ac_config_commands support/tools/Makefile"
2056
2057
2058           ac_config_commands="$ac_config_commands support/tools/Burg/Makefile"
2059
2060
2061           ac_config_commands="$ac_config_commands support/tools/Burg/Doc/Makefile"
2062
2063
2064           ac_config_commands="$ac_config_commands support/tools/TableGen/Makefile"
2065
2066
2067
2068
2069 # Find a good install program.  We prefer a C program (faster),
2070 # so one script is as good as another.  But avoid the broken or
2071 # incompatible versions:
2072 # SysV /etc/install, /usr/sbin/install
2073 # SunOS /usr/etc/install
2074 # IRIX /sbin/install
2075 # AIX /bin/install
2076 # AmigaOS /C/install, which installs bootblocks on floppy discs
2077 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2078 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2079 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2080 # ./install, which can be erroneously created by make from ./install.sh.
2081 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2082 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2083 if test -z "$INSTALL"; then
2084 if test "${ac_cv_path_install+set}" = set; then
2085   echo $ECHO_N "(cached) $ECHO_C" >&6
2086 else
2087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088 for as_dir in $PATH
2089 do
2090   IFS=$as_save_IFS
2091   test -z "$as_dir" && as_dir=.
2092   # Account for people who put trailing slashes in PATH elements.
2093 case $as_dir/ in
2094   ./ | .// | /cC/* | \
2095   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2096   /usr/ucb/* ) ;;
2097   *)
2098     # OSF1 and SCO ODT 3.0 have their own names for install.
2099     # Don't use installbsd from OSF since it installs stuff as root
2100     # by default.
2101     for ac_prog in ginstall scoinst install; do
2102       for ac_exec_ext in '' $ac_executable_extensions; do
2103         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2104           if test $ac_prog = install &&
2105             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2106             # AIX install.  It has an incompatible calling convention.
2107             :
2108           elif test $ac_prog = install &&
2109             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2110             # program-specific install script used by HP pwplus--don't use.
2111             :
2112           else
2113             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2114             break 3
2115           fi
2116         fi
2117       done
2118     done
2119     ;;
2120 esac
2121 done
2122
2123
2124 fi
2125   if test "${ac_cv_path_install+set}" = set; then
2126     INSTALL=$ac_cv_path_install
2127   else
2128     # As a last resort, use the slow shell script.  We don't cache a
2129     # path for INSTALL within a source directory, because that will
2130     # break other packages using the cache if that directory is
2131     # removed, or if the path is relative.
2132     INSTALL=$ac_install_sh
2133   fi
2134 fi
2135 echo "$as_me:$LINENO: result: $INSTALL" >&5
2136 echo "${ECHO_T}$INSTALL" >&6
2137
2138 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2139 # It thinks the first close brace ends the variable substitution.
2140 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2141
2142 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2143
2144 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2145
2146
2147 # Make sure we can run config.sub.
2148 $ac_config_sub sun4 >/dev/null 2>&1 ||
2149   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2150 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2151    { (exit 1); exit 1; }; }
2152
2153 echo "$as_me:$LINENO: checking build system type" >&5
2154 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2155 if test "${ac_cv_build+set}" = set; then
2156   echo $ECHO_N "(cached) $ECHO_C" >&6
2157 else
2158   ac_cv_build_alias=$build_alias
2159 test -z "$ac_cv_build_alias" &&
2160   ac_cv_build_alias=`$ac_config_guess`
2161 test -z "$ac_cv_build_alias" &&
2162   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2163 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2164    { (exit 1); exit 1; }; }
2165 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2166   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2167 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2168    { (exit 1); exit 1; }; }
2169
2170 fi
2171 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2172 echo "${ECHO_T}$ac_cv_build" >&6
2173 build=$ac_cv_build
2174 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2175 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2176 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2177
2178
2179 echo "$as_me:$LINENO: checking host system type" >&5
2180 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2181 if test "${ac_cv_host+set}" = set; then
2182   echo $ECHO_N "(cached) $ECHO_C" >&6
2183 else
2184   ac_cv_host_alias=$host_alias
2185 test -z "$ac_cv_host_alias" &&
2186   ac_cv_host_alias=$ac_cv_build_alias
2187 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2188   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2189 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2190    { (exit 1); exit 1; }; }
2191
2192 fi
2193 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2194 echo "${ECHO_T}$ac_cv_host" >&6
2195 host=$ac_cv_host
2196 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2197 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2198 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2199
2200
2201 echo "$as_me:$LINENO: checking target system type" >&5
2202 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2203 if test "${ac_cv_target+set}" = set; then
2204   echo $ECHO_N "(cached) $ECHO_C" >&6
2205 else
2206   ac_cv_target_alias=$target_alias
2207 test "x$ac_cv_target_alias" = "x" &&
2208   ac_cv_target_alias=$ac_cv_host_alias
2209 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2210   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2211 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2212    { (exit 1); exit 1; }; }
2213
2214 fi
2215 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2216 echo "${ECHO_T}$ac_cv_target" >&6
2217 target=$ac_cv_target
2218 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2219 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2220 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2221
2222
2223 # The aliases save the names the user supplied, while $host etc.
2224 # will get canonicalized.
2225 test -n "$target_alias" &&
2226   test "$program_prefix$program_suffix$program_transform_name" = \
2227     NONENONEs,x,x, &&
2228   program_prefix=${target_alias}-
2229
2230 case $build in
2231         *i*86*)  OS=Linux
2232
2233                  LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2234
2235                  ;;
2236
2237         *sparc*) OS=SunOS
2238
2239                  LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2240
2241                  ;;
2242
2243         *)       OS=Unknown
2244
2245                  ;;
2246 esac
2247
2248 case $target in
2249         *sparc*solaris*)  target=sparcv9-sun-solaris2.8
2250
2251                           ;;
2252 esac
2253
2254 case $target in
2255         *i*86*)           ARCH=x86
2256
2257                           ;;
2258         *sparc*solaris*)  ARCH=Sparc
2259
2260                           ;;
2261 esac
2262
2263
2264 ac_ext=cc
2265 ac_cpp='$CXXCPP $CPPFLAGS'
2266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2269 if test -n "$ac_tool_prefix"; then
2270   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2271   do
2272     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2273 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2274 echo "$as_me:$LINENO: checking for $ac_word" >&5
2275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2276 if test "${ac_cv_prog_CXX+set}" = set; then
2277   echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279   if test -n "$CXX"; then
2280   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2281 else
2282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283 for as_dir in $PATH
2284 do
2285   IFS=$as_save_IFS
2286   test -z "$as_dir" && as_dir=.
2287   for ac_exec_ext in '' $ac_executable_extensions; do
2288   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2289     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291     break 2
2292   fi
2293 done
2294 done
2295
2296 fi
2297 fi
2298 CXX=$ac_cv_prog_CXX
2299 if test -n "$CXX"; then
2300   echo "$as_me:$LINENO: result: $CXX" >&5
2301 echo "${ECHO_T}$CXX" >&6
2302 else
2303   echo "$as_me:$LINENO: result: no" >&5
2304 echo "${ECHO_T}no" >&6
2305 fi
2306
2307     test -n "$CXX" && break
2308   done
2309 fi
2310 if test -z "$CXX"; then
2311   ac_ct_CXX=$CXX
2312   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2313 do
2314   # Extract the first word of "$ac_prog", so it can be a program name with args.
2315 set dummy $ac_prog; ac_word=$2
2316 echo "$as_me:$LINENO: checking for $ac_word" >&5
2317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2318 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2319   echo $ECHO_N "(cached) $ECHO_C" >&6
2320 else
2321   if test -n "$ac_ct_CXX"; then
2322   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2323 else
2324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325 for as_dir in $PATH
2326 do
2327   IFS=$as_save_IFS
2328   test -z "$as_dir" && as_dir=.
2329   for ac_exec_ext in '' $ac_executable_extensions; do
2330   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2331     ac_cv_prog_ac_ct_CXX="$ac_prog"
2332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2333     break 2
2334   fi
2335 done
2336 done
2337
2338 fi
2339 fi
2340 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2341 if test -n "$ac_ct_CXX"; then
2342   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2343 echo "${ECHO_T}$ac_ct_CXX" >&6
2344 else
2345   echo "$as_me:$LINENO: result: no" >&5
2346 echo "${ECHO_T}no" >&6
2347 fi
2348
2349   test -n "$ac_ct_CXX" && break
2350 done
2351 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2352
2353   CXX=$ac_ct_CXX
2354 fi
2355
2356
2357 # Provide some information about the compiler.
2358 echo "$as_me:$LINENO:" \
2359      "checking for C++ compiler version" >&5
2360 ac_compiler=`set X $ac_compile; echo $2`
2361 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2362   (eval $ac_compiler --version </dev/null >&5) 2>&5
2363   ac_status=$?
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); }
2366 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2367   (eval $ac_compiler -v </dev/null >&5) 2>&5
2368   ac_status=$?
2369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370   (exit $ac_status); }
2371 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2372   (eval $ac_compiler -V </dev/null >&5) 2>&5
2373   ac_status=$?
2374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375   (exit $ac_status); }
2376
2377 cat >conftest.$ac_ext <<_ACEOF
2378 #line $LINENO "configure"
2379 /* confdefs.h.  */
2380 _ACEOF
2381 cat confdefs.h >>conftest.$ac_ext
2382 cat >>conftest.$ac_ext <<_ACEOF
2383 /* end confdefs.h.  */
2384
2385 int
2386 main ()
2387 {
2388
2389   ;
2390   return 0;
2391 }
2392 _ACEOF
2393 ac_clean_files_save=$ac_clean_files
2394 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2395 # Try to create an executable without -o first, disregard a.out.
2396 # It will help us diagnose broken compilers, and finding out an intuition
2397 # of exeext.
2398 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2399 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2400 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2401 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2402   (eval $ac_link_default) 2>&5
2403   ac_status=$?
2404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405   (exit $ac_status); }; then
2406   # Find the output, starting from the most likely.  This scheme is
2407 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2408 # resort.
2409
2410 # Be careful to initialize this variable, since it used to be cached.
2411 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2412 ac_cv_exeext=
2413 # b.out is created by i960 compilers.
2414 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2415 do
2416   test -f "$ac_file" || continue
2417   case $ac_file in
2418     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2419         ;;
2420     conftest.$ac_ext )
2421         # This is the source file.
2422         ;;
2423     [ab].out )
2424         # We found the default executable, but exeext='' is most
2425         # certainly right.
2426         break;;
2427     *.* )
2428         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2429         # FIXME: I believe we export ac_cv_exeext for Libtool,
2430         # but it would be cool to find out if it's true.  Does anybody
2431         # maintain Libtool? --akim.
2432         export ac_cv_exeext
2433         break;;
2434     * )
2435         break;;
2436   esac
2437 done
2438 else
2439   echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.$ac_ext >&5
2441
2442 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2443 See \`config.log' for more details." >&5
2444 echo "$as_me: error: C++ compiler cannot create executables
2445 See \`config.log' for more details." >&2;}
2446    { (exit 77); exit 77; }; }
2447 fi
2448
2449 ac_exeext=$ac_cv_exeext
2450 echo "$as_me:$LINENO: result: $ac_file" >&5
2451 echo "${ECHO_T}$ac_file" >&6
2452
2453 # Check the compiler produces executables we can run.  If not, either
2454 # the compiler is broken, or we cross compile.
2455 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2456 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2457 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2458 # If not cross compiling, check that we can run a simple program.
2459 if test "$cross_compiling" != yes; then
2460   if { ac_try='./$ac_file'
2461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462   (eval $ac_try) 2>&5
2463   ac_status=$?
2464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465   (exit $ac_status); }; }; then
2466     cross_compiling=no
2467   else
2468     if test "$cross_compiling" = maybe; then
2469         cross_compiling=yes
2470     else
2471         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2472 If you meant to cross compile, use \`--host'.
2473 See \`config.log' for more details." >&5
2474 echo "$as_me: error: cannot run C++ compiled programs.
2475 If you meant to cross compile, use \`--host'.
2476 See \`config.log' for more details." >&2;}
2477    { (exit 1); exit 1; }; }
2478     fi
2479   fi
2480 fi
2481 echo "$as_me:$LINENO: result: yes" >&5
2482 echo "${ECHO_T}yes" >&6
2483
2484 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2485 ac_clean_files=$ac_clean_files_save
2486 # Check the compiler produces executables we can run.  If not, either
2487 # the compiler is broken, or we cross compile.
2488 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2489 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2490 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2491 echo "${ECHO_T}$cross_compiling" >&6
2492
2493 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2494 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2496   (eval $ac_link) 2>&5
2497   ac_status=$?
2498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499   (exit $ac_status); }; then
2500   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2501 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2502 # work properly (i.e., refer to `conftest.exe'), while it won't with
2503 # `rm'.
2504 for ac_file in conftest.exe conftest conftest.*; do
2505   test -f "$ac_file" || continue
2506   case $ac_file in
2507     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2508     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2509           export ac_cv_exeext
2510           break;;
2511     * ) break;;
2512   esac
2513 done
2514 else
2515   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2516 See \`config.log' for more details." >&5
2517 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2518 See \`config.log' for more details." >&2;}
2519    { (exit 1); exit 1; }; }
2520 fi
2521
2522 rm -f conftest$ac_cv_exeext
2523 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2524 echo "${ECHO_T}$ac_cv_exeext" >&6
2525
2526 rm -f conftest.$ac_ext
2527 EXEEXT=$ac_cv_exeext
2528 ac_exeext=$EXEEXT
2529 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2530 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2531 if test "${ac_cv_objext+set}" = set; then
2532   echo $ECHO_N "(cached) $ECHO_C" >&6
2533 else
2534   cat >conftest.$ac_ext <<_ACEOF
2535 #line $LINENO "configure"
2536 /* confdefs.h.  */
2537 _ACEOF
2538 cat confdefs.h >>conftest.$ac_ext
2539 cat >>conftest.$ac_ext <<_ACEOF
2540 /* end confdefs.h.  */
2541
2542 int
2543 main ()
2544 {
2545
2546   ;
2547   return 0;
2548 }
2549 _ACEOF
2550 rm -f conftest.o conftest.obj
2551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2552   (eval $ac_compile) 2>&5
2553   ac_status=$?
2554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555   (exit $ac_status); }; then
2556   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2557   case $ac_file in
2558     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2559     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2560        break;;
2561   esac
2562 done
2563 else
2564   echo "$as_me: failed program was:" >&5
2565 sed 's/^/| /' conftest.$ac_ext >&5
2566
2567 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2568 See \`config.log' for more details." >&5
2569 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2570 See \`config.log' for more details." >&2;}
2571    { (exit 1); exit 1; }; }
2572 fi
2573
2574 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2575 fi
2576 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2577 echo "${ECHO_T}$ac_cv_objext" >&6
2578 OBJEXT=$ac_cv_objext
2579 ac_objext=$OBJEXT
2580 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2581 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2582 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2583   echo $ECHO_N "(cached) $ECHO_C" >&6
2584 else
2585   cat >conftest.$ac_ext <<_ACEOF
2586 #line $LINENO "configure"
2587 /* confdefs.h.  */
2588 _ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h.  */
2592
2593 int
2594 main ()
2595 {
2596 #ifndef __GNUC__
2597        choke me
2598 #endif
2599
2600   ;
2601   return 0;
2602 }
2603 _ACEOF
2604 rm -f conftest.$ac_objext
2605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2606   (eval $ac_compile) 2>&5
2607   ac_status=$?
2608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609   (exit $ac_status); } &&
2610          { ac_try='test -s conftest.$ac_objext'
2611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612   (eval $ac_try) 2>&5
2613   ac_status=$?
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); }; }; then
2616   ac_compiler_gnu=yes
2617 else
2618   echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2620
2621 ac_compiler_gnu=no
2622 fi
2623 rm -f conftest.$ac_objext conftest.$ac_ext
2624 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2625
2626 fi
2627 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2628 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2629 GXX=`test $ac_compiler_gnu = yes && echo yes`
2630 ac_test_CXXFLAGS=${CXXFLAGS+set}
2631 ac_save_CXXFLAGS=$CXXFLAGS
2632 CXXFLAGS="-g"
2633 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2634 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2635 if test "${ac_cv_prog_cxx_g+set}" = set; then
2636   echo $ECHO_N "(cached) $ECHO_C" >&6
2637 else
2638   cat >conftest.$ac_ext <<_ACEOF
2639 #line $LINENO "configure"
2640 /* confdefs.h.  */
2641 _ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h.  */
2645
2646 int
2647 main ()
2648 {
2649
2650   ;
2651   return 0;
2652 }
2653 _ACEOF
2654 rm -f conftest.$ac_objext
2655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2656   (eval $ac_compile) 2>&5
2657   ac_status=$?
2658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659   (exit $ac_status); } &&
2660          { ac_try='test -s conftest.$ac_objext'
2661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662   (eval $ac_try) 2>&5
2663   ac_status=$?
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); }; }; then
2666   ac_cv_prog_cxx_g=yes
2667 else
2668   echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2670
2671 ac_cv_prog_cxx_g=no
2672 fi
2673 rm -f conftest.$ac_objext conftest.$ac_ext
2674 fi
2675 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2676 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2677 if test "$ac_test_CXXFLAGS" = set; then
2678   CXXFLAGS=$ac_save_CXXFLAGS
2679 elif test $ac_cv_prog_cxx_g = yes; then
2680   if test "$GXX" = yes; then
2681     CXXFLAGS="-g -O2"
2682   else
2683     CXXFLAGS="-g"
2684   fi
2685 else
2686   if test "$GXX" = yes; then
2687     CXXFLAGS="-O2"
2688   else
2689     CXXFLAGS=
2690   fi
2691 fi
2692 for ac_declaration in \
2693    ''\
2694    '#include <stdlib.h>' \
2695    'extern "C" void std::exit (int) throw (); using std::exit;' \
2696    'extern "C" void std::exit (int); using std::exit;' \
2697    'extern "C" void exit (int) throw ();' \
2698    'extern "C" void exit (int);' \
2699    'void exit (int);'
2700 do
2701   cat >conftest.$ac_ext <<_ACEOF
2702 #line $LINENO "configure"
2703 /* confdefs.h.  */
2704 _ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h.  */
2708 #include <stdlib.h>
2709 $ac_declaration
2710 int
2711 main ()
2712 {
2713 exit (42);
2714   ;
2715   return 0;
2716 }
2717 _ACEOF
2718 rm -f conftest.$ac_objext
2719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2720   (eval $ac_compile) 2>&5
2721   ac_status=$?
2722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723   (exit $ac_status); } &&
2724          { ac_try='test -s conftest.$ac_objext'
2725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726   (eval $ac_try) 2>&5
2727   ac_status=$?
2728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729   (exit $ac_status); }; }; then
2730   :
2731 else
2732   echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2734
2735 continue
2736 fi
2737 rm -f conftest.$ac_objext conftest.$ac_ext
2738   cat >conftest.$ac_ext <<_ACEOF
2739 #line $LINENO "configure"
2740 /* confdefs.h.  */
2741 _ACEOF
2742 cat confdefs.h >>conftest.$ac_ext
2743 cat >>conftest.$ac_ext <<_ACEOF
2744 /* end confdefs.h.  */
2745 $ac_declaration
2746 int
2747 main ()
2748 {
2749 exit (42);
2750   ;
2751   return 0;
2752 }
2753 _ACEOF
2754 rm -f conftest.$ac_objext
2755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2756   (eval $ac_compile) 2>&5
2757   ac_status=$?
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); } &&
2760          { ac_try='test -s conftest.$ac_objext'
2761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762   (eval $ac_try) 2>&5
2763   ac_status=$?
2764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765   (exit $ac_status); }; }; then
2766   break
2767 else
2768   echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2770
2771 fi
2772 rm -f conftest.$ac_objext conftest.$ac_ext
2773 done
2774 rm -f conftest*
2775 if test -n "$ac_declaration"; then
2776   echo '#ifdef __cplusplus' >>confdefs.h
2777   echo $ac_declaration      >>confdefs.h
2778   echo '#endif'             >>confdefs.h
2779 fi
2780
2781 ac_ext=c
2782 ac_cpp='$CPP $CPPFLAGS'
2783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2786
2787 ac_ext=c
2788 ac_cpp='$CPP $CPPFLAGS'
2789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2792 if test -n "$ac_tool_prefix"; then
2793   for ac_prog in gcc
2794   do
2795     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2797 echo "$as_me:$LINENO: checking for $ac_word" >&5
2798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2799 if test "${ac_cv_prog_CC+set}" = set; then
2800   echo $ECHO_N "(cached) $ECHO_C" >&6
2801 else
2802   if test -n "$CC"; then
2803   ac_cv_prog_CC="$CC" # Let the user override the test.
2804 else
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2807 do
2808   IFS=$as_save_IFS
2809   test -z "$as_dir" && as_dir=.
2810   for ac_exec_ext in '' $ac_executable_extensions; do
2811   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2812     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814     break 2
2815   fi
2816 done
2817 done
2818
2819 fi
2820 fi
2821 CC=$ac_cv_prog_CC
2822 if test -n "$CC"; then
2823   echo "$as_me:$LINENO: result: $CC" >&5
2824 echo "${ECHO_T}$CC" >&6
2825 else
2826   echo "$as_me:$LINENO: result: no" >&5
2827 echo "${ECHO_T}no" >&6
2828 fi
2829
2830     test -n "$CC" && break
2831   done
2832 fi
2833 if test -z "$CC"; then
2834   ac_ct_CC=$CC
2835   for ac_prog in gcc
2836 do
2837   # Extract the first word of "$ac_prog", so it can be a program name with args.
2838 set dummy $ac_prog; ac_word=$2
2839 echo "$as_me:$LINENO: checking for $ac_word" >&5
2840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2841 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2842   echo $ECHO_N "(cached) $ECHO_C" >&6
2843 else
2844   if test -n "$ac_ct_CC"; then
2845   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2849 do
2850   IFS=$as_save_IFS
2851   test -z "$as_dir" && as_dir=.
2852   for ac_exec_ext in '' $ac_executable_extensions; do
2853   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854     ac_cv_prog_ac_ct_CC="$ac_prog"
2855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856     break 2
2857   fi
2858 done
2859 done
2860
2861 fi
2862 fi
2863 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2864 if test -n "$ac_ct_CC"; then
2865   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2866 echo "${ECHO_T}$ac_ct_CC" >&6
2867 else
2868   echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6
2870 fi
2871
2872   test -n "$ac_ct_CC" && break
2873 done
2874
2875   CC=$ac_ct_CC
2876 fi
2877
2878
2879 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2880 See \`config.log' for more details." >&5
2881 echo "$as_me: error: no acceptable C compiler found in \$PATH
2882 See \`config.log' for more details." >&2;}
2883    { (exit 1); exit 1; }; }
2884
2885 # Provide some information about the compiler.
2886 echo "$as_me:$LINENO:" \
2887      "checking for C compiler version" >&5
2888 ac_compiler=`set X $ac_compile; echo $2`
2889 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2890   (eval $ac_compiler --version </dev/null >&5) 2>&5
2891   ac_status=$?
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); }
2894 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2895   (eval $ac_compiler -v </dev/null >&5) 2>&5
2896   ac_status=$?
2897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898   (exit $ac_status); }
2899 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2900   (eval $ac_compiler -V </dev/null >&5) 2>&5
2901   ac_status=$?
2902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903   (exit $ac_status); }
2904
2905 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2906 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2907 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2908   echo $ECHO_N "(cached) $ECHO_C" >&6
2909 else
2910   cat >conftest.$ac_ext <<_ACEOF
2911 #line $LINENO "configure"
2912 /* confdefs.h.  */
2913 _ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h.  */
2917
2918 int
2919 main ()
2920 {
2921 #ifndef __GNUC__
2922        choke me
2923 #endif
2924
2925   ;
2926   return 0;
2927 }
2928 _ACEOF
2929 rm -f conftest.$ac_objext
2930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2931   (eval $ac_compile) 2>&5
2932   ac_status=$?
2933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934   (exit $ac_status); } &&
2935          { ac_try='test -s conftest.$ac_objext'
2936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937   (eval $ac_try) 2>&5
2938   ac_status=$?
2939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); }; }; then
2941   ac_compiler_gnu=yes
2942 else
2943   echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2945
2946 ac_compiler_gnu=no
2947 fi
2948 rm -f conftest.$ac_objext conftest.$ac_ext
2949 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2950
2951 fi
2952 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2953 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2954 GCC=`test $ac_compiler_gnu = yes && echo yes`
2955 ac_test_CFLAGS=${CFLAGS+set}
2956 ac_save_CFLAGS=$CFLAGS
2957 CFLAGS="-g"
2958 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2959 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2960 if test "${ac_cv_prog_cc_g+set}" = set; then
2961   echo $ECHO_N "(cached) $ECHO_C" >&6
2962 else
2963   cat >conftest.$ac_ext <<_ACEOF
2964 #line $LINENO "configure"
2965 /* confdefs.h.  */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h.  */
2970
2971 int
2972 main ()
2973 {
2974
2975   ;
2976   return 0;
2977 }
2978 _ACEOF
2979 rm -f conftest.$ac_objext
2980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2981   (eval $ac_compile) 2>&5
2982   ac_status=$?
2983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984   (exit $ac_status); } &&
2985          { ac_try='test -s conftest.$ac_objext'
2986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987   (eval $ac_try) 2>&5
2988   ac_status=$?
2989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990   (exit $ac_status); }; }; then
2991   ac_cv_prog_cc_g=yes
2992 else
2993   echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2995
2996 ac_cv_prog_cc_g=no
2997 fi
2998 rm -f conftest.$ac_objext conftest.$ac_ext
2999 fi
3000 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3001 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3002 if test "$ac_test_CFLAGS" = set; then
3003   CFLAGS=$ac_save_CFLAGS
3004 elif test $ac_cv_prog_cc_g = yes; then
3005   if test "$GCC" = yes; then
3006     CFLAGS="-g -O2"
3007   else
3008     CFLAGS="-g"
3009   fi
3010 else
3011   if test "$GCC" = yes; then
3012     CFLAGS="-O2"
3013   else
3014     CFLAGS=
3015   fi
3016 fi
3017 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3018 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3019 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3020   echo $ECHO_N "(cached) $ECHO_C" >&6
3021 else
3022   ac_cv_prog_cc_stdc=no
3023 ac_save_CC=$CC
3024 cat >conftest.$ac_ext <<_ACEOF
3025 #line $LINENO "configure"
3026 /* confdefs.h.  */
3027 _ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h.  */
3031 #include <stdarg.h>
3032 #include <stdio.h>
3033 #include <sys/types.h>
3034 #include <sys/stat.h>
3035 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3036 struct buf { int x; };
3037 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3038 static char *e (p, i)
3039      char **p;
3040      int i;
3041 {
3042   return p[i];
3043 }
3044 static char *f (char * (*g) (char **, int), char **p, ...)
3045 {
3046   char *s;
3047   va_list v;
3048   va_start (v,p);
3049   s = g (p, va_arg (v,int));
3050   va_end (v);
3051   return s;
3052 }
3053 int test (int i, double x);
3054 struct s1 {int (*f) (int a);};
3055 struct s2 {int (*f) (double a);};
3056 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3057 int argc;
3058 char **argv;
3059 int
3060 main ()
3061 {
3062 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3063   ;
3064   return 0;
3065 }
3066 _ACEOF
3067 # Don't try gcc -ansi; that turns off useful extensions and
3068 # breaks some systems' header files.
3069 # AIX                   -qlanglvl=ansi
3070 # Ultrix and OSF/1      -std1
3071 # HP-UX 10.20 and later -Ae
3072 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3073 # SVR4                  -Xc -D__EXTENSIONS__
3074 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3075 do
3076   CC="$ac_save_CC $ac_arg"
3077   rm -f conftest.$ac_objext
3078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3079   (eval $ac_compile) 2>&5
3080   ac_status=$?
3081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); } &&
3083          { ac_try='test -s conftest.$ac_objext'
3084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085   (eval $ac_try) 2>&5
3086   ac_status=$?
3087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); }; }; then
3089   ac_cv_prog_cc_stdc=$ac_arg
3090 break
3091 else
3092   echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3094
3095 fi
3096 rm -f conftest.$ac_objext
3097 done
3098 rm -f conftest.$ac_ext conftest.$ac_objext
3099 CC=$ac_save_CC
3100
3101 fi
3102
3103 case "x$ac_cv_prog_cc_stdc" in
3104   x|xno)
3105     echo "$as_me:$LINENO: result: none needed" >&5
3106 echo "${ECHO_T}none needed" >&6 ;;
3107   *)
3108     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3109 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3110     CC="$CC $ac_cv_prog_cc_stdc" ;;
3111 esac
3112
3113 # Some people use a C++ compiler to compile C.  Since we use `exit',
3114 # in C++ we need to declare it.  In case someone uses the same compiler
3115 # for both compiling C and C++ we need to have the C++ compiler decide
3116 # the declaration of exit, since it's the most demanding environment.
3117 cat >conftest.$ac_ext <<_ACEOF
3118 #ifndef __cplusplus
3119   choke me
3120 #endif
3121 _ACEOF
3122 rm -f conftest.$ac_objext
3123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3124   (eval $ac_compile) 2>&5
3125   ac_status=$?
3126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127   (exit $ac_status); } &&
3128          { ac_try='test -s conftest.$ac_objext'
3129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3130   (eval $ac_try) 2>&5
3131   ac_status=$?
3132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133   (exit $ac_status); }; }; then
3134   for ac_declaration in \
3135    ''\
3136    '#include <stdlib.h>' \
3137    'extern "C" void std::exit (int) throw (); using std::exit;' \
3138    'extern "C" void std::exit (int); using std::exit;' \
3139    'extern "C" void exit (int) throw ();' \
3140    'extern "C" void exit (int);' \
3141    'void exit (int);'
3142 do
3143   cat >conftest.$ac_ext <<_ACEOF
3144 #line $LINENO "configure"
3145 /* confdefs.h.  */
3146 _ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h.  */
3150 #include <stdlib.h>
3151 $ac_declaration
3152 int
3153 main ()
3154 {
3155 exit (42);
3156   ;
3157   return 0;
3158 }
3159 _ACEOF
3160 rm -f conftest.$ac_objext
3161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3162   (eval $ac_compile) 2>&5
3163   ac_status=$?
3164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165   (exit $ac_status); } &&
3166          { ac_try='test -s conftest.$ac_objext'
3167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3168   (eval $ac_try) 2>&5
3169   ac_status=$?
3170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171   (exit $ac_status); }; }; then
3172   :
3173 else
3174   echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3176
3177 continue
3178 fi
3179 rm -f conftest.$ac_objext conftest.$ac_ext
3180   cat >conftest.$ac_ext <<_ACEOF
3181 #line $LINENO "configure"
3182 /* confdefs.h.  */
3183 _ACEOF
3184 cat confdefs.h >>conftest.$ac_ext
3185 cat >>conftest.$ac_ext <<_ACEOF
3186 /* end confdefs.h.  */
3187 $ac_declaration
3188 int
3189 main ()
3190 {
3191 exit (42);
3192   ;
3193   return 0;
3194 }
3195 _ACEOF
3196 rm -f conftest.$ac_objext
3197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3198   (eval $ac_compile) 2>&5
3199   ac_status=$?
3200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201   (exit $ac_status); } &&
3202          { ac_try='test -s conftest.$ac_objext'
3203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3204   (eval $ac_try) 2>&5
3205   ac_status=$?
3206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207   (exit $ac_status); }; }; then
3208   break
3209 else
3210   echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3212
3213 fi
3214 rm -f conftest.$ac_objext conftest.$ac_ext
3215 done
3216 rm -f conftest*
3217 if test -n "$ac_declaration"; then
3218   echo '#ifdef __cplusplus' >>confdefs.h
3219   echo $ac_declaration      >>confdefs.h
3220   echo '#endif'             >>confdefs.h
3221 fi
3222
3223 else
3224   echo "$as_me: failed program was:" >&5
3225 sed 's/^/| /' conftest.$ac_ext >&5
3226
3227 fi
3228 rm -f conftest.$ac_objext conftest.$ac_ext
3229 ac_ext=c
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234
3235 ac_ext=c
3236 ac_cpp='$CPP $CPPFLAGS'
3237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3240 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3241 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3242 # On Suns, sometimes $CPP names a directory.
3243 if test -n "$CPP" && test -d "$CPP"; then
3244   CPP=
3245 fi
3246 if test -z "$CPP"; then
3247   if test "${ac_cv_prog_CPP+set}" = set; then
3248   echo $ECHO_N "(cached) $ECHO_C" >&6
3249 else
3250       # Double quotes because CPP needs to be expanded
3251     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3252     do
3253       ac_preproc_ok=false
3254 for ac_c_preproc_warn_flag in '' yes
3255 do
3256   # Use a header file that comes with gcc, so configuring glibc
3257   # with a fresh cross-compiler works.
3258   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3259   # <limits.h> exists even on freestanding compilers.
3260   # On the NeXT, cc -E runs the code through the compiler's parser,
3261   # not just through cpp. "Syntax error" is here to catch this case.
3262   cat >conftest.$ac_ext <<_ACEOF
3263 #line $LINENO "configure"
3264 /* confdefs.h.  */
3265 _ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h.  */
3269 #ifdef __STDC__
3270 # include <limits.h>
3271 #else
3272 # include <assert.h>
3273 #endif
3274                      Syntax error
3275 _ACEOF
3276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3277   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3278   ac_status=$?
3279   grep -v '^ *+' conftest.er1 >conftest.err
3280   rm -f conftest.er1
3281   cat conftest.err >&5
3282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283   (exit $ac_status); } >/dev/null; then
3284   if test -s conftest.err; then
3285     ac_cpp_err=$ac_c_preproc_warn_flag
3286   else
3287     ac_cpp_err=
3288   fi
3289 else
3290   ac_cpp_err=yes
3291 fi
3292 if test -z "$ac_cpp_err"; then
3293   :
3294 else
3295   echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298   # Broken: fails on valid input.
3299 continue
3300 fi
3301 rm -f conftest.err conftest.$ac_ext
3302
3303   # OK, works on sane cases.  Now check whether non-existent headers
3304   # can be detected and how.
3305   cat >conftest.$ac_ext <<_ACEOF
3306 #line $LINENO "configure"
3307 /* confdefs.h.  */
3308 _ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h.  */
3312 #include <ac_nonexistent.h>
3313 _ACEOF
3314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3315   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3316   ac_status=$?
3317   grep -v '^ *+' conftest.er1 >conftest.err
3318   rm -f conftest.er1
3319   cat conftest.err >&5
3320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321   (exit $ac_status); } >/dev/null; then
3322   if test -s conftest.err; then
3323     ac_cpp_err=$ac_c_preproc_warn_flag
3324   else
3325     ac_cpp_err=
3326   fi
3327 else
3328   ac_cpp_err=yes
3329 fi
3330 if test -z "$ac_cpp_err"; then
3331   # Broken: success on invalid input.
3332 continue
3333 else
3334   echo "$as_me: failed program was:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3336
3337   # Passes both tests.
3338 ac_preproc_ok=:
3339 break
3340 fi
3341 rm -f conftest.err conftest.$ac_ext
3342
3343 done
3344 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3345 rm -f conftest.err conftest.$ac_ext
3346 if $ac_preproc_ok; then
3347   break
3348 fi
3349
3350     done
3351     ac_cv_prog_CPP=$CPP
3352
3353 fi
3354   CPP=$ac_cv_prog_CPP
3355 else
3356   ac_cv_prog_CPP=$CPP
3357 fi
3358 echo "$as_me:$LINENO: result: $CPP" >&5
3359 echo "${ECHO_T}$CPP" >&6
3360 ac_preproc_ok=false
3361 for ac_c_preproc_warn_flag in '' yes
3362 do
3363   # Use a header file that comes with gcc, so configuring glibc
3364   # with a fresh cross-compiler works.
3365   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3366   # <limits.h> exists even on freestanding compilers.
3367   # On the NeXT, cc -E runs the code through the compiler's parser,
3368   # not just through cpp. "Syntax error" is here to catch this case.
3369   cat >conftest.$ac_ext <<_ACEOF
3370 #line $LINENO "configure"
3371 /* confdefs.h.  */
3372 _ACEOF
3373 cat confdefs.h >>conftest.$ac_ext
3374 cat >>conftest.$ac_ext <<_ACEOF
3375 /* end confdefs.h.  */
3376 #ifdef __STDC__
3377 # include <limits.h>
3378 #else
3379 # include <assert.h>
3380 #endif
3381                      Syntax error
3382 _ACEOF
3383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3384   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3385   ac_status=$?
3386   grep -v '^ *+' conftest.er1 >conftest.err
3387   rm -f conftest.er1
3388   cat conftest.err >&5
3389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390   (exit $ac_status); } >/dev/null; then
3391   if test -s conftest.err; then
3392     ac_cpp_err=$ac_c_preproc_warn_flag
3393   else
3394     ac_cpp_err=
3395   fi
3396 else
3397   ac_cpp_err=yes
3398 fi
3399 if test -z "$ac_cpp_err"; then
3400   :
3401 else
3402   echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3404
3405   # Broken: fails on valid input.
3406 continue
3407 fi
3408 rm -f conftest.err conftest.$ac_ext
3409
3410   # OK, works on sane cases.  Now check whether non-existent headers
3411   # can be detected and how.
3412   cat >conftest.$ac_ext <<_ACEOF
3413 #line $LINENO "configure"
3414 /* confdefs.h.  */
3415 _ACEOF
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h.  */
3419 #include <ac_nonexistent.h>
3420 _ACEOF
3421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3422   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3423   ac_status=$?
3424   grep -v '^ *+' conftest.er1 >conftest.err
3425   rm -f conftest.er1
3426   cat conftest.err >&5
3427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428   (exit $ac_status); } >/dev/null; then
3429   if test -s conftest.err; then
3430     ac_cpp_err=$ac_c_preproc_warn_flag
3431   else
3432     ac_cpp_err=
3433   fi
3434 else
3435   ac_cpp_err=yes
3436 fi
3437 if test -z "$ac_cpp_err"; then
3438   # Broken: success on invalid input.
3439 continue
3440 else
3441   echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3443
3444   # Passes both tests.
3445 ac_preproc_ok=:
3446 break
3447 fi
3448 rm -f conftest.err conftest.$ac_ext
3449
3450 done
3451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3452 rm -f conftest.err conftest.$ac_ext
3453 if $ac_preproc_ok; then
3454   :
3455 else
3456   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3457 See \`config.log' for more details." >&5
3458 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3459 See \`config.log' for more details." >&2;}
3460    { (exit 1); exit 1; }; }
3461 fi
3462
3463 ac_ext=c
3464 ac_cpp='$CPP $CPPFLAGS'
3465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3468
3469
3470 if test "$GCC" != "yes"
3471 then
3472         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3473 echo "$as_me: error: gcc required but not found" >&2;}
3474    { (exit 1); exit 1; }; }
3475 fi
3476
3477 if test "$GXX" != "yes"
3478 then
3479         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3480 echo "$as_me: error: g++ required but not found" >&2;}
3481    { (exit 1); exit 1; }; }
3482 fi
3483
3484 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3485 if test "$gccmajor" -lt "3"
3486 then
3487         { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3488 echo "$as_me: error: gcc 3.x required" >&2;}
3489    { (exit 1); exit 1; }; }
3490 fi
3491
3492  echo "$as_me:$LINENO: checking for GNU make" >&5
3493 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3494 if test "${_cv_gnu_make_command+set}" = set; then
3495   echo $ECHO_N "(cached) $ECHO_C" >&6
3496 else
3497   _cv_gnu_make_command='' ;
3498                 for a in "$MAKE" make gmake gnumake ; do
3499                         if test -z "$a" ; then continue ; fi ;
3500                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3501                                 _cv_gnu_make_command=$a ;
3502                                 break;
3503                         fi
3504                 done ;
3505
3506 fi
3507 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3508 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3509         if test  "x$_cv_gnu_make_command" != "x"  ; then
3510                 ifGNUmake='' ;
3511         else
3512                 ifGNUmake='#' ;
3513                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3514 echo "${ECHO_T}\"Not found\"" >&6;
3515         fi
3516
3517
3518 if test -z "$_cv_gnu_make_command"
3519 then
3520         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3521 echo "$as_me: error: GNU Make required but not found" >&2;}
3522    { (exit 1); exit 1; }; }
3523 fi
3524
3525
3526 echo "$as_me:$LINENO: checking " >&5
3527 echo $ECHO_N "checking ... $ECHO_C" >&6
3528 if test "${ac_cv_has_flex+set}" = set; then
3529   echo $ECHO_N "(cached) $ECHO_C" >&6
3530 else
3531   for ac_prog in flex lex
3532 do
3533   # Extract the first word of "$ac_prog", so it can be a program name with args.
3534 set dummy $ac_prog; ac_word=$2
3535 echo "$as_me:$LINENO: checking for $ac_word" >&5
3536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3537 if test "${ac_cv_prog_LEX+set}" = set; then
3538   echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540   if test -n "$LEX"; then
3541   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3542 else
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 for as_dir in $PATH
3545 do
3546   IFS=$as_save_IFS
3547   test -z "$as_dir" && as_dir=.
3548   for ac_exec_ext in '' $ac_executable_extensions; do
3549   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3550     ac_cv_prog_LEX="$ac_prog"
3551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3552     break 2
3553   fi
3554 done
3555 done
3556
3557 fi
3558 fi
3559 LEX=$ac_cv_prog_LEX
3560 if test -n "$LEX"; then
3561   echo "$as_me:$LINENO: result: $LEX" >&5
3562 echo "${ECHO_T}$LEX" >&6
3563 else
3564   echo "$as_me:$LINENO: result: no" >&5
3565 echo "${ECHO_T}no" >&6
3566 fi
3567
3568   test -n "$LEX" && break
3569 done
3570 test -n "$LEX" || LEX=":"
3571
3572 if test -z "$LEXLIB"
3573 then
3574   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3575 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3576 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3577   echo $ECHO_N "(cached) $ECHO_C" >&6
3578 else
3579   ac_check_lib_save_LIBS=$LIBS
3580 LIBS="-lfl  $LIBS"
3581 cat >conftest.$ac_ext <<_ACEOF
3582 #line $LINENO "configure"
3583 /* confdefs.h.  */
3584 _ACEOF
3585 cat confdefs.h >>conftest.$ac_ext
3586 cat >>conftest.$ac_ext <<_ACEOF
3587 /* end confdefs.h.  */
3588
3589 /* Override any gcc2 internal prototype to avoid an error.  */
3590 #ifdef __cplusplus
3591 extern "C"
3592 #endif
3593 /* We use char because int might match the return type of a gcc2
3594    builtin and then its argument prototype would still apply.  */
3595 char yywrap ();
3596 int
3597 main ()
3598 {
3599 yywrap ();
3600   ;
3601   return 0;
3602 }
3603 _ACEOF
3604 rm -f conftest.$ac_objext conftest$ac_exeext
3605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3606   (eval $ac_link) 2>&5
3607   ac_status=$?
3608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609   (exit $ac_status); } &&
3610          { ac_try='test -s conftest$ac_exeext'
3611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612   (eval $ac_try) 2>&5
3613   ac_status=$?
3614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615   (exit $ac_status); }; }; then
3616   ac_cv_lib_fl_yywrap=yes
3617 else
3618   echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3620
3621 ac_cv_lib_fl_yywrap=no
3622 fi
3623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3624 LIBS=$ac_check_lib_save_LIBS
3625 fi
3626 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3627 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3628 if test $ac_cv_lib_fl_yywrap = yes; then
3629   LEXLIB="-lfl"
3630 else
3631   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3632 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3633 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3634   echo $ECHO_N "(cached) $ECHO_C" >&6
3635 else
3636   ac_check_lib_save_LIBS=$LIBS
3637 LIBS="-ll  $LIBS"
3638 cat >conftest.$ac_ext <<_ACEOF
3639 #line $LINENO "configure"
3640 /* confdefs.h.  */
3641 _ACEOF
3642 cat confdefs.h >>conftest.$ac_ext
3643 cat >>conftest.$ac_ext <<_ACEOF
3644 /* end confdefs.h.  */
3645
3646 /* Override any gcc2 internal prototype to avoid an error.  */
3647 #ifdef __cplusplus
3648 extern "C"
3649 #endif
3650 /* We use char because int might match the return type of a gcc2
3651    builtin and then its argument prototype would still apply.  */
3652 char yywrap ();
3653 int
3654 main ()
3655 {
3656 yywrap ();
3657   ;
3658   return 0;
3659 }
3660 _ACEOF
3661 rm -f conftest.$ac_objext conftest$ac_exeext
3662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3663   (eval $ac_link) 2>&5
3664   ac_status=$?
3665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666   (exit $ac_status); } &&
3667          { ac_try='test -s conftest$ac_exeext'
3668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669   (eval $ac_try) 2>&5
3670   ac_status=$?
3671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672   (exit $ac_status); }; }; then
3673   ac_cv_lib_l_yywrap=yes
3674 else
3675   echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3677
3678 ac_cv_lib_l_yywrap=no
3679 fi
3680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3681 LIBS=$ac_check_lib_save_LIBS
3682 fi
3683 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3684 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3685 if test $ac_cv_lib_l_yywrap = yes; then
3686   LEXLIB="-ll"
3687 fi
3688
3689 fi
3690
3691 fi
3692
3693 if test "x$LEX" != "x:"; then
3694   echo "$as_me:$LINENO: checking lex output file root" >&5
3695 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3696 if test "${ac_cv_prog_lex_root+set}" = set; then
3697   echo $ECHO_N "(cached) $ECHO_C" >&6
3698 else
3699   # The minimal lex program is just a single line: %%.  But some broken lexes
3700 # (Solaris, I think it was) want two %% lines, so accommodate them.
3701 cat >conftest.l <<_ACEOF
3702 %%
3703 %%
3704 _ACEOF
3705 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3706   (eval $LEX conftest.l) 2>&5
3707   ac_status=$?
3708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709   (exit $ac_status); }
3710 if test -f lex.yy.c; then
3711   ac_cv_prog_lex_root=lex.yy
3712 elif test -f lexyy.c; then
3713   ac_cv_prog_lex_root=lexyy
3714 else
3715   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3716 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3717    { (exit 1); exit 1; }; }
3718 fi
3719 fi
3720 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3721 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3722 rm -f conftest.l
3723 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3724
3725 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3726 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3727 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3728   echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730   # POSIX says lex can declare yytext either as a pointer or an array; the
3731 # default is implementation-dependent. Figure out which it is, since
3732 # not all implementations provide the %pointer and %array declarations.
3733 ac_cv_prog_lex_yytext_pointer=no
3734 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3735 ac_save_LIBS=$LIBS
3736 LIBS="$LIBS $LEXLIB"
3737 cat >conftest.$ac_ext <<_ACEOF
3738 `cat $LEX_OUTPUT_ROOT.c`
3739 _ACEOF
3740 rm -f conftest.$ac_objext conftest$ac_exeext
3741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3742   (eval $ac_link) 2>&5
3743   ac_status=$?
3744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745   (exit $ac_status); } &&
3746          { ac_try='test -s conftest$ac_exeext'
3747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3748   (eval $ac_try) 2>&5
3749   ac_status=$?
3750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751   (exit $ac_status); }; }; then
3752   ac_cv_prog_lex_yytext_pointer=yes
3753 else
3754   echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3756
3757 fi
3758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3759 LIBS=$ac_save_LIBS
3760 rm -f "${LEX_OUTPUT_ROOT}.c"
3761
3762 fi
3763 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3764 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3765 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3766
3767 cat >>confdefs.h <<\_ACEOF
3768 #define YYTEXT_POINTER 1
3769 _ACEOF
3770
3771 fi
3772
3773 fi
3774
3775 fi
3776 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3777 echo "${ECHO_T}$ac_cv_has_flex" >&6
3778 if test "$LEX" != "flex"; then
3779   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3780 echo "$as_me: error: flex not found but required" >&2;}
3781    { (exit 1); exit 1; }; }
3782 fi
3783
3784 echo "$as_me:$LINENO: checking " >&5
3785 echo $ECHO_N "checking ... $ECHO_C" >&6
3786 if test "${ac_cv_has_bison+set}" = set; then
3787   echo $ECHO_N "(cached) $ECHO_C" >&6
3788 else
3789   for ac_prog in 'bison -y' byacc
3790 do
3791   # Extract the first word of "$ac_prog", so it can be a program name with args.
3792 set dummy $ac_prog; ac_word=$2
3793 echo "$as_me:$LINENO: checking for $ac_word" >&5
3794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3795 if test "${ac_cv_prog_YACC+set}" = set; then
3796   echo $ECHO_N "(cached) $ECHO_C" >&6
3797 else
3798   if test -n "$YACC"; then
3799   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3800 else
3801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802 for as_dir in $PATH
3803 do
3804   IFS=$as_save_IFS
3805   test -z "$as_dir" && as_dir=.
3806   for ac_exec_ext in '' $ac_executable_extensions; do
3807   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3808     ac_cv_prog_YACC="$ac_prog"
3809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3810     break 2
3811   fi
3812 done
3813 done
3814
3815 fi
3816 fi
3817 YACC=$ac_cv_prog_YACC
3818 if test -n "$YACC"; then
3819   echo "$as_me:$LINENO: result: $YACC" >&5
3820 echo "${ECHO_T}$YACC" >&6
3821 else
3822   echo "$as_me:$LINENO: result: no" >&5
3823 echo "${ECHO_T}no" >&6
3824 fi
3825
3826   test -n "$YACC" && break
3827 done
3828 test -n "$YACC" || YACC="yacc"
3829
3830
3831 fi
3832 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3833 echo "${ECHO_T}$ac_cv_has_bison" >&6
3834 if test "$YACC" != "bison -y"; then
3835   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3836 echo "$as_me: error: bison not found but required" >&2;}
3837    { (exit 1); exit 1; }; }
3838 else
3839   YACC=bison
3840
3841 fi
3842
3843
3844 # Check whether --enable-shared or --disable-shared was given.
3845 if test "${enable_shared+set}" = set; then
3846   enableval="$enable_shared"
3847   p=${PACKAGE-default}
3848     case $enableval in
3849     yes) enable_shared=yes ;;
3850     no) enable_shared=no ;;
3851     *)
3852       enable_shared=no
3853       # Look at the argument we got.  We use all the common list separators.
3854       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3855       for pkg in $enableval; do
3856         IFS="$lt_save_ifs"
3857         if test "X$pkg" = "X$p"; then
3858           enable_shared=yes
3859         fi
3860       done
3861       IFS="$lt_save_ifs"
3862       ;;
3863     esac
3864 else
3865   enable_shared=yes
3866 fi;
3867
3868 # Check whether --enable-static or --disable-static was given.
3869 if test "${enable_static+set}" = set; then
3870   enableval="$enable_static"
3871   p=${PACKAGE-default}
3872     case $enableval in
3873     yes) enable_static=yes ;;
3874     no) enable_static=no ;;
3875     *)
3876      enable_static=no
3877       # Look at the argument we got.  We use all the common list separators.
3878       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3879       for pkg in $enableval; do
3880         IFS="$lt_save_ifs"
3881         if test "X$pkg" = "X$p"; then
3882           enable_static=yes
3883         fi
3884       done
3885       IFS="$lt_save_ifs"
3886       ;;
3887     esac
3888 else
3889   enable_static=yes
3890 fi;
3891
3892 # Check whether --enable-fast-install or --disable-fast-install was given.
3893 if test "${enable_fast_install+set}" = set; then
3894   enableval="$enable_fast_install"
3895   p=${PACKAGE-default}
3896     case $enableval in
3897     yes) enable_fast_install=yes ;;
3898     no) enable_fast_install=no ;;
3899     *)
3900       enable_fast_install=no
3901       # Look at the argument we got.  We use all the common list separators.
3902       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3903       for pkg in $enableval; do
3904         IFS="$lt_save_ifs"
3905         if test "X$pkg" = "X$p"; then
3906           enable_fast_install=yes
3907         fi
3908       done
3909       IFS="$lt_save_ifs"
3910       ;;
3911     esac
3912 else
3913   enable_fast_install=yes
3914 fi;
3915
3916 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3917 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3918 if test "${lt_cv_path_SED+set}" = set; then
3919   echo $ECHO_N "(cached) $ECHO_C" >&6
3920 else
3921   # Loop through the user's path and test for sed and gsed.
3922 # Then use that list of sed's as ones to test for truncation.
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 for as_dir in $PATH
3925 do
3926   IFS=$as_save_IFS
3927   test -z "$as_dir" && as_dir=.
3928   for lt_ac_prog in sed gsed; do
3929     for ac_exec_ext in '' $ac_executable_extensions; do
3930       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3931         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3932       fi
3933     done
3934   done
3935 done
3936 lt_ac_max=0
3937 lt_ac_count=0
3938 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3939 # along with /bin/sed that truncates output.
3940 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3941   test ! -f $lt_ac_sed && break
3942   cat /dev/null > conftest.in
3943   lt_ac_count=0
3944   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3945   # Check for GNU sed and select it if it is found.
3946   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3947     lt_cv_path_SED=$lt_ac_sed
3948     break
3949   fi
3950   while true; do
3951     cat conftest.in conftest.in >conftest.tmp
3952     mv conftest.tmp conftest.in
3953     cp conftest.in conftest.nl
3954     echo >>conftest.nl
3955     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3956     cmp -s conftest.out conftest.nl || break
3957     # 10000 chars as input seems more than enough
3958     test $lt_ac_count -gt 10 && break
3959     lt_ac_count=`expr $lt_ac_count + 1`
3960     if test $lt_ac_count -gt $lt_ac_max; then
3961       lt_ac_max=$lt_ac_count
3962       lt_cv_path_SED=$lt_ac_sed
3963     fi
3964   done
3965 done
3966 SED=$lt_cv_path_SED
3967
3968 fi
3969
3970 echo "$as_me:$LINENO: result: $SED" >&5
3971 echo "${ECHO_T}$SED" >&6
3972
3973 echo "$as_me:$LINENO: checking for egrep" >&5
3974 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3975 if test "${ac_cv_prog_egrep+set}" = set; then
3976   echo $ECHO_N "(cached) $ECHO_C" >&6
3977 else
3978   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3979     then ac_cv_prog_egrep='grep -E'
3980     else ac_cv_prog_egrep='egrep'
3981     fi
3982 fi
3983 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3984 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3985  EGREP=$ac_cv_prog_egrep
3986
3987
3988
3989 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3990 if test "${with_gnu_ld+set}" = set; then
3991   withval="$with_gnu_ld"
3992   test "$withval" = no || with_gnu_ld=yes
3993 else
3994   with_gnu_ld=no
3995 fi;
3996 ac_prog=ld
3997 if test "$GCC" = yes; then
3998   # Check if gcc -print-prog-name=ld gives a path.
3999   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4000 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4001   case $host in
4002   *-*-mingw*)
4003     # gcc leaves a trailing carriage return which upsets mingw
4004     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4005   *)
4006     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4007   esac
4008   case $ac_prog in
4009     # Accept absolute paths.
4010     [\\/]* | ?:[\\/]*)
4011       re_direlt='/[^/][^/]*/\.\./'
4012       # Canonicalize the path of ld
4013       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4014       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4015         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4016       done
4017       test -z "$LD" && LD="$ac_prog"
4018       ;;
4019   "")
4020     # If it fails, then pretend we aren't using GCC.
4021     ac_prog=ld
4022     ;;
4023   *)
4024     # If it is relative, then search for the first ld in PATH.
4025     with_gnu_ld=unknown
4026     ;;
4027   esac
4028 elif test "$with_gnu_ld" = yes; then
4029   echo "$as_me:$LINENO: checking for GNU ld" >&5
4030 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4031 else
4032   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4033 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4034 fi
4035 if test "${lt_cv_path_LD+set}" = set; then
4036   echo $ECHO_N "(cached) $ECHO_C" >&6
4037 else
4038   if test -z "$LD"; then
4039   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4040   for ac_dir in $PATH; do
4041     IFS="$lt_save_ifs"
4042     test -z "$ac_dir" && ac_dir=.
4043     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4044       lt_cv_path_LD="$ac_dir/$ac_prog"
4045       # Check to see if the program is GNU ld.  I'd rather use --version,
4046       # but apparently some GNU ld's only accept -v.
4047       # Break only if it was the GNU/non-GNU ld that we prefer.
4048       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4049       *GNU* | *'with BFD'*)
4050         test "$with_gnu_ld" != no && break
4051         ;;
4052       *)
4053         test "$with_gnu_ld" != yes && break
4054         ;;
4055       esac
4056     fi
4057   done
4058   IFS="$lt_save_ifs"
4059 else
4060   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4061 fi
4062 fi
4063
4064 LD="$lt_cv_path_LD"
4065 if test -n "$LD"; then
4066   echo "$as_me:$LINENO: result: $LD" >&5
4067 echo "${ECHO_T}$LD" >&6
4068 else
4069   echo "$as_me:$LINENO: result: no" >&5
4070 echo "${ECHO_T}no" >&6
4071 fi
4072 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4073 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4074    { (exit 1); exit 1; }; }
4075 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4076 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4077 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4078   echo $ECHO_N "(cached) $ECHO_C" >&6
4079 else
4080   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4081 case `"$LD" -v 2>&1 </dev/null` in
4082 *GNU* | *'with BFD'*)
4083   lt_cv_prog_gnu_ld=yes
4084   ;;
4085 *)
4086   lt_cv_prog_gnu_ld=no
4087   ;;
4088 esac
4089 fi
4090 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4091 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4092 with_gnu_ld=$lt_cv_prog_gnu_ld
4093
4094
4095 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4096 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4097 if test "${lt_cv_ld_reload_flag+set}" = set; then
4098   echo $ECHO_N "(cached) $ECHO_C" >&6
4099 else
4100   lt_cv_ld_reload_flag='-r'
4101 fi
4102 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4103 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4104 reload_flag=$lt_cv_ld_reload_flag
4105 case $reload_flag in
4106 "" | " "*) ;;
4107 *) reload_flag=" $reload_flag" ;;
4108 esac
4109 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4110
4111 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4112 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4113 if test "${lt_cv_path_NM+set}" = set; then
4114   echo $ECHO_N "(cached) $ECHO_C" >&6
4115 else
4116   if test -n "$NM"; then
4117   # Let the user override the test.
4118   lt_cv_path_NM="$NM"
4119 else
4120   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4121   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4122     IFS="$lt_save_ifs"
4123     test -z "$ac_dir" && ac_dir=.
4124     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4125     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4126       # Check to see if the nm accepts a BSD-compat flag.
4127       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4128       #   nm: unknown option "B" ignored
4129       # Tru64's nm complains that /dev/null is an invalid object file
4130       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4131       */dev/null* | *'Invalid file or object type'*)
4132         lt_cv_path_NM="$tmp_nm -B"
4133         break
4134         ;;
4135       *)
4136         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4137         */dev/null*)
4138           lt_cv_path_NM="$tmp_nm -p"
4139           break
4140           ;;
4141         *)
4142           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4143           continue # so that we can try to find one that supports BSD flags
4144           ;;
4145         esac
4146       esac
4147     fi
4148   done
4149   IFS="$lt_save_ifs"
4150   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4151 fi
4152 fi
4153 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4154 echo "${ECHO_T}$lt_cv_path_NM" >&6
4155 NM="$lt_cv_path_NM"
4156
4157 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4158 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4159 LN_S=$as_ln_s
4160 if test "$LN_S" = "ln -s"; then
4161   echo "$as_me:$LINENO: result: yes" >&5
4162 echo "${ECHO_T}yes" >&6
4163 else
4164   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4165 echo "${ECHO_T}no, using $LN_S" >&6
4166 fi
4167
4168 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4169 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4170 if test "${lt_cv_deplibs_check_method+set}" = set; then
4171   echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173   lt_cv_file_magic_cmd='$MAGIC_CMD'
4174 lt_cv_file_magic_test_file=
4175 lt_cv_deplibs_check_method='unknown'
4176 # Need to set the preceding variable on all platforms that support
4177 # interlibrary dependencies.
4178 # 'none' -- dependencies not supported.
4179 # `unknown' -- same as none, but documents that we really don't know.
4180 # 'pass_all' -- all dependencies passed with no checks.
4181 # 'test_compile' -- check by making test program.
4182 # 'file_magic [[regex]]' -- check by looking for files in library path
4183 # which responds to the $file_magic_cmd with a given extended regex.
4184 # If you have `file' or equivalent on your system and you're not sure
4185 # whether `pass_all' will *always* work, you probably want this one.
4186
4187 case $host_os in
4188 aix4* | aix5*)
4189   lt_cv_deplibs_check_method=pass_all
4190   ;;
4191
4192 beos*)
4193   lt_cv_deplibs_check_method=pass_all
4194   ;;
4195
4196 bsdi4*)
4197   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4198   lt_cv_file_magic_cmd='/usr/bin/file -L'
4199   lt_cv_file_magic_test_file=/shlib/libc.so
4200   ;;
4201
4202 cygwin* | mingw* | pw32*)
4203   # win32_libid is a shell function defined in ltmain.sh
4204   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4205   lt_cv_file_magic_cmd='win32_libid'
4206   ;;
4207
4208 darwin* | rhapsody*)
4209   # this will be overwritten by pass_all, but leave it in just in case
4210   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4211   lt_cv_file_magic_cmd='/usr/bin/file -L'
4212   case "$host_os" in
4213   rhapsody* | darwin1.[012])
4214     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4215     ;;
4216   *) # Darwin 1.3 on
4217     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4218     ;;
4219   esac
4220   lt_cv_deplibs_check_method=pass_all
4221   ;;
4222
4223 freebsd*)
4224   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4225     case $host_cpu in
4226     i*86 )
4227       # Not sure whether the presence of OpenBSD here was a mistake.
4228       # Let's accept both of them until this is cleared up.
4229       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4230       lt_cv_file_magic_cmd=/usr/bin/file
4231       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4232       ;;
4233     esac
4234   else
4235     lt_cv_deplibs_check_method=pass_all
4236   fi
4237   ;;
4238
4239 gnu*)
4240   lt_cv_deplibs_check_method=pass_all
4241   ;;
4242
4243 hpux10.20* | hpux11*)
4244   lt_cv_file_magic_cmd=/usr/bin/file
4245   case "$host_cpu" in
4246   ia64*)
4247     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4248     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4249     ;;
4250   hppa*64*)
4251     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]'
4252     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4253     ;;
4254   *)
4255     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4256     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4257     ;;
4258   esac
4259   ;;
4260
4261 irix5* | irix6* | nonstopux*)
4262   case $host_os in
4263   irix5* | nonstopux*)
4264     # this will be overridden with pass_all, but let us keep it just in case
4265     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4266     ;;
4267   *)
4268     case $LD in
4269     *-32|*"-32 ") libmagic=32-bit;;
4270     *-n32|*"-n32 ") libmagic=N32;;
4271     *-64|*"-64 ") libmagic=64-bit;;
4272     *) libmagic=never-match;;
4273     esac
4274     # this will be overridden with pass_all, but let us keep it just in case
4275     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4276     ;;
4277   esac
4278   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4279   lt_cv_deplibs_check_method=pass_all
4280   ;;
4281
4282 # This must be Linux ELF.
4283 linux*)
4284   case $host_cpu in
4285   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4286     lt_cv_deplibs_check_method=pass_all ;;
4287   *)
4288     # glibc up to 2.1.1 does not perform some relocations on ARM
4289     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4290   esac
4291   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4292   ;;
4293
4294 netbsd*)
4295   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4296     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4297   else
4298     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4299   fi
4300   ;;
4301
4302 newos6*)
4303   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4304   lt_cv_file_magic_cmd=/usr/bin/file
4305   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4306   ;;
4307
4308 nto-qnx)
4309   lt_cv_deplibs_check_method=unknown
4310   ;;
4311
4312 openbsd*)
4313   lt_cv_file_magic_cmd=/usr/bin/file
4314   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4315   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4316     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4317   else
4318     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4319   fi
4320   ;;
4321
4322 osf3* | osf4* | osf5*)
4323   # this will be overridden with pass_all, but let us keep it just in case
4324   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4325   lt_cv_file_magic_test_file=/shlib/libc.so
4326   lt_cv_deplibs_check_method=pass_all
4327   ;;
4328
4329 sco3.2v5*)
4330   lt_cv_deplibs_check_method=pass_all
4331   ;;
4332
4333 solaris*)
4334   lt_cv_deplibs_check_method=pass_all
4335   lt_cv_file_magic_test_file=/lib/libc.so
4336   ;;
4337
4338 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4339   case $host_vendor in
4340   motorola)
4341     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]'
4342     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4343     ;;
4344   ncr)
4345     lt_cv_deplibs_check_method=pass_all
4346     ;;
4347   sequent)
4348     lt_cv_file_magic_cmd='/bin/file'
4349     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4350     ;;
4351   sni)
4352     lt_cv_file_magic_cmd='/bin/file'
4353     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4354     lt_cv_file_magic_test_file=/lib/libc.so
4355     ;;
4356   siemens)
4357     lt_cv_deplibs_check_method=pass_all
4358     ;;
4359   esac
4360   ;;
4361
4362 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4363   lt_cv_deplibs_check_method=pass_all
4364   ;;
4365 esac
4366
4367 fi
4368 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4369 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4370 file_magic_cmd=$lt_cv_file_magic_cmd
4371 deplibs_check_method=$lt_cv_deplibs_check_method
4372 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4373
4374
4375
4376
4377 # If no C compiler was specified, use CC.
4378 LTCC=${LTCC-"$CC"}
4379
4380 # Allow CC to be a program name with arguments.
4381 compiler=$CC
4382
4383 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4384 if test "${enable_libtool_lock+set}" = set; then
4385   enableval="$enable_libtool_lock"
4386
4387 fi;
4388 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4389
4390 # Some flags need to be propagated to the compiler or linker for good
4391 # libtool support.
4392 case $host in
4393 ia64-*-hpux*)
4394   # Find out which ABI we are using.
4395   echo 'int i;' > conftest.$ac_ext
4396   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4397   (eval $ac_compile) 2>&5
4398   ac_status=$?
4399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400   (exit $ac_status); }; then
4401     case `/usr/bin/file conftest.$ac_objext` in
4402     *ELF-32*)
4403       HPUX_IA64_MODE="32"
4404       ;;
4405     *ELF-64*)
4406       HPUX_IA64_MODE="64"
4407       ;;
4408     esac
4409   fi
4410   rm -rf conftest*
4411   ;;
4412 *-*-irix6*)
4413   # Find out which ABI we are using.
4414   echo '#line 4414 "configure"' > conftest.$ac_ext
4415   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4416   (eval $ac_compile) 2>&5
4417   ac_status=$?
4418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419   (exit $ac_status); }; then
4420    if test "$lt_cv_prog_gnu_ld" = yes; then
4421     case `/usr/bin/file conftest.$ac_objext` in
4422     *32-bit*)
4423       LD="${LD-ld} -melf32bsmip"
4424       ;;
4425     *N32*)
4426       LD="${LD-ld} -melf32bmipn32"
4427       ;;
4428     *64-bit*)
4429       LD="${LD-ld} -melf64bmip"
4430       ;;
4431     esac
4432    else
4433     case `/usr/bin/file conftest.$ac_objext` in
4434     *32-bit*)
4435       LD="${LD-ld} -32"
4436       ;;
4437     *N32*)
4438       LD="${LD-ld} -n32"
4439       ;;
4440     *64-bit*)
4441       LD="${LD-ld} -64"
4442       ;;
4443     esac
4444    fi
4445   fi
4446   rm -rf conftest*
4447   ;;
4448
4449 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4450   # Find out which ABI we are using.
4451   echo 'int i;' > conftest.$ac_ext
4452   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4453   (eval $ac_compile) 2>&5
4454   ac_status=$?
4455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456   (exit $ac_status); }; then
4457     case "`/usr/bin/file conftest.o`" in
4458     *32-bit*)
4459       case $host in
4460         x86_64-*linux*)
4461           LD="${LD-ld} -m elf_i386"
4462           ;;
4463         ppc64-*linux*)
4464           LD="${LD-ld} -m elf32ppclinux"
4465           ;;
4466         s390x-*linux*)
4467           LD="${LD-ld} -m elf_s390"
4468           ;;
4469         sparc64-*linux*)
4470           LD="${LD-ld} -m elf32_sparc"
4471           ;;
4472       esac
4473       ;;
4474     *64-bit*)
4475       case $host in
4476         x86_64-*linux*)
4477           LD="${LD-ld} -m elf_x86_64"
4478           ;;
4479         ppc*-*linux*|powerpc*-*linux*)
4480           LD="${LD-ld} -m elf64ppc"
4481           ;;
4482         s390*-*linux*)
4483           LD="${LD-ld} -m elf64_s390"
4484           ;;
4485         sparc*-*linux*)
4486           LD="${LD-ld} -m elf64_sparc"
4487           ;;
4488       esac
4489       ;;
4490     esac
4491   fi
4492   rm -rf conftest*
4493   ;;
4494
4495 *-*-sco3.2v5*)
4496   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4497   SAVE_CFLAGS="$CFLAGS"
4498   CFLAGS="$CFLAGS -belf"
4499   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4500 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4501 if test "${lt_cv_cc_needs_belf+set}" = set; then
4502   echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504   ac_ext=c
4505 ac_cpp='$CPP $CPPFLAGS'
4506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4509
4510      cat >conftest.$ac_ext <<_ACEOF
4511 #line $LINENO "configure"
4512 /* confdefs.h.  */
4513 _ACEOF
4514 cat confdefs.h >>conftest.$ac_ext
4515 cat >>conftest.$ac_ext <<_ACEOF
4516 /* end confdefs.h.  */
4517
4518 int
4519 main ()
4520 {
4521
4522   ;
4523   return 0;
4524 }
4525 _ACEOF
4526 rm -f conftest.$ac_objext conftest$ac_exeext
4527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4528   (eval $ac_link) 2>&5
4529   ac_status=$?
4530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531   (exit $ac_status); } &&
4532          { ac_try='test -s conftest$ac_exeext'
4533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534   (eval $ac_try) 2>&5
4535   ac_status=$?
4536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537   (exit $ac_status); }; }; then
4538   lt_cv_cc_needs_belf=yes
4539 else
4540   echo "$as_me: failed program was:" >&5
4541 sed 's/^/| /' conftest.$ac_ext >&5
4542
4543 lt_cv_cc_needs_belf=no
4544 fi
4545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4546      ac_ext=c
4547 ac_cpp='$CPP $CPPFLAGS'
4548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4551
4552 fi
4553 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4554 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4555   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4556     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4557     CFLAGS="$SAVE_CFLAGS"
4558   fi
4559   ;;
4560
4561 esac
4562
4563 need_locks="$enable_libtool_lock"
4564
4565
4566
4567 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4568 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4569 if test "${ac_cv_header_stdc+set}" = set; then
4570   echo $ECHO_N "(cached) $ECHO_C" >&6
4571 else
4572   cat >conftest.$ac_ext <<_ACEOF
4573 #line $LINENO "configure"
4574 /* confdefs.h.  */
4575 _ACEOF
4576 cat confdefs.h >>conftest.$ac_ext
4577 cat >>conftest.$ac_ext <<_ACEOF
4578 /* end confdefs.h.  */
4579 #include <stdlib.h>
4580 #include <stdarg.h>
4581 #include <string.h>
4582 #include <float.h>
4583
4584 int
4585 main ()
4586 {
4587
4588   ;
4589   return 0;
4590 }
4591 _ACEOF
4592 rm -f conftest.$ac_objext
4593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4594   (eval $ac_compile) 2>&5
4595   ac_status=$?
4596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597   (exit $ac_status); } &&
4598          { ac_try='test -s conftest.$ac_objext'
4599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600   (eval $ac_try) 2>&5
4601   ac_status=$?
4602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603   (exit $ac_status); }; }; then
4604   ac_cv_header_stdc=yes
4605 else
4606   echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4608
4609 ac_cv_header_stdc=no
4610 fi
4611 rm -f conftest.$ac_objext conftest.$ac_ext
4612
4613 if test $ac_cv_header_stdc = yes; then
4614   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4615   cat >conftest.$ac_ext <<_ACEOF
4616 #line $LINENO "configure"
4617 /* confdefs.h.  */
4618 _ACEOF
4619 cat confdefs.h >>conftest.$ac_ext
4620 cat >>conftest.$ac_ext <<_ACEOF
4621 /* end confdefs.h.  */
4622 #include <string.h>
4623
4624 _ACEOF
4625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4626   $EGREP "memchr" >/dev/null 2>&1; then
4627   :
4628 else
4629   ac_cv_header_stdc=no
4630 fi
4631 rm -f conftest*
4632
4633 fi
4634
4635 if test $ac_cv_header_stdc = yes; then
4636   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4637   cat >conftest.$ac_ext <<_ACEOF
4638 #line $LINENO "configure"
4639 /* confdefs.h.  */
4640 _ACEOF
4641 cat confdefs.h >>conftest.$ac_ext
4642 cat >>conftest.$ac_ext <<_ACEOF
4643 /* end confdefs.h.  */
4644 #include <stdlib.h>
4645
4646 _ACEOF
4647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4648   $EGREP "free" >/dev/null 2>&1; then
4649   :
4650 else
4651   ac_cv_header_stdc=no
4652 fi
4653 rm -f conftest*
4654
4655 fi
4656
4657 if test $ac_cv_header_stdc = yes; then
4658   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4659   if test "$cross_compiling" = yes; then
4660   :
4661 else
4662   cat >conftest.$ac_ext <<_ACEOF
4663 #line $LINENO "configure"
4664 /* confdefs.h.  */
4665 _ACEOF
4666 cat confdefs.h >>conftest.$ac_ext
4667 cat >>conftest.$ac_ext <<_ACEOF
4668 /* end confdefs.h.  */
4669 #include <ctype.h>
4670 #if ((' ' & 0x0FF) == 0x020)
4671 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4672 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4673 #else
4674 # define ISLOWER(c) \
4675                    (('a' <= (c) && (c) <= 'i') \
4676                      || ('j' <= (c) && (c) <= 'r') \
4677                      || ('s' <= (c) && (c) <= 'z'))
4678 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4679 #endif
4680
4681 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4682 int
4683 main ()
4684 {
4685   int i;
4686   for (i = 0; i < 256; i++)
4687     if (XOR (islower (i), ISLOWER (i))
4688         || toupper (i) != TOUPPER (i))
4689       exit(2);
4690   exit (0);
4691 }
4692 _ACEOF
4693 rm -f conftest$ac_exeext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4695   (eval $ac_link) 2>&5
4696   ac_status=$?
4697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4700   (eval $ac_try) 2>&5
4701   ac_status=$?
4702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703   (exit $ac_status); }; }; then
4704   :
4705 else
4706   echo "$as_me: program exited with status $ac_status" >&5
4707 echo "$as_me: failed program was:" >&5
4708 sed 's/^/| /' conftest.$ac_ext >&5
4709
4710 ( exit $ac_status )
4711 ac_cv_header_stdc=no
4712 fi
4713 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4714 fi
4715 fi
4716 fi
4717 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4718 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4719 if test $ac_cv_header_stdc = yes; then
4720
4721 cat >>confdefs.h <<\_ACEOF
4722 #define STDC_HEADERS 1
4723 _ACEOF
4724
4725 fi
4726
4727 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4738                   inttypes.h stdint.h unistd.h
4739 do
4740 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4741 echo "$as_me:$LINENO: checking for $ac_header" >&5
4742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4744   echo $ECHO_N "(cached) $ECHO_C" >&6
4745 else
4746   cat >conftest.$ac_ext <<_ACEOF
4747 #line $LINENO "configure"
4748 /* confdefs.h.  */
4749 _ACEOF
4750 cat confdefs.h >>conftest.$ac_ext
4751 cat >>conftest.$ac_ext <<_ACEOF
4752 /* end confdefs.h.  */
4753 $ac_includes_default
4754
4755 #include <$ac_header>
4756 _ACEOF
4757 rm -f conftest.$ac_objext
4758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4759   (eval $ac_compile) 2>&5
4760   ac_status=$?
4761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762   (exit $ac_status); } &&
4763          { ac_try='test -s conftest.$ac_objext'
4764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765   (eval $ac_try) 2>&5
4766   ac_status=$?
4767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768   (exit $ac_status); }; }; then
4769   eval "$as_ac_Header=yes"
4770 else
4771   echo "$as_me: failed program was:" >&5
4772 sed 's/^/| /' conftest.$ac_ext >&5
4773
4774 eval "$as_ac_Header=no"
4775 fi
4776 rm -f conftest.$ac_objext conftest.$ac_ext
4777 fi
4778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4781   cat >>confdefs.h <<_ACEOF
4782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4783 _ACEOF
4784
4785 fi
4786
4787 done
4788
4789
4790
4791 for ac_header in dlfcn.h
4792 do
4793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4795   echo "$as_me:$LINENO: checking for $ac_header" >&5
4796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4798   echo $ECHO_N "(cached) $ECHO_C" >&6
4799 fi
4800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4802 else
4803   # Is the header compilable?
4804 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4805 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4806 cat >conftest.$ac_ext <<_ACEOF
4807 #line $LINENO "configure"
4808 /* confdefs.h.  */
4809 _ACEOF
4810 cat confdefs.h >>conftest.$ac_ext
4811 cat >>conftest.$ac_ext <<_ACEOF
4812 /* end confdefs.h.  */
4813 $ac_includes_default
4814 #include <$ac_header>
4815 _ACEOF
4816 rm -f conftest.$ac_objext
4817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4818   (eval $ac_compile) 2>&5
4819   ac_status=$?
4820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821   (exit $ac_status); } &&
4822          { ac_try='test -s conftest.$ac_objext'
4823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824   (eval $ac_try) 2>&5
4825   ac_status=$?
4826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827   (exit $ac_status); }; }; then
4828   ac_header_compiler=yes
4829 else
4830   echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4832
4833 ac_header_compiler=no
4834 fi
4835 rm -f conftest.$ac_objext conftest.$ac_ext
4836 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4837 echo "${ECHO_T}$ac_header_compiler" >&6
4838
4839 # Is the header present?
4840 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4842 cat >conftest.$ac_ext <<_ACEOF
4843 #line $LINENO "configure"
4844 /* confdefs.h.  */
4845 _ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h.  */
4849 #include <$ac_header>
4850 _ACEOF
4851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4852   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4853   ac_status=$?
4854   grep -v '^ *+' conftest.er1 >conftest.err
4855   rm -f conftest.er1
4856   cat conftest.err >&5
4857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858   (exit $ac_status); } >/dev/null; then
4859   if test -s conftest.err; then
4860     ac_cpp_err=$ac_c_preproc_warn_flag
4861   else
4862     ac_cpp_err=
4863   fi
4864 else
4865   ac_cpp_err=yes
4866 fi
4867 if test -z "$ac_cpp_err"; then
4868   ac_header_preproc=yes
4869 else
4870   echo "$as_me: failed program was:" >&5
4871 sed 's/^/| /' conftest.$ac_ext >&5
4872
4873   ac_header_preproc=no
4874 fi
4875 rm -f conftest.err conftest.$ac_ext
4876 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4877 echo "${ECHO_T}$ac_header_preproc" >&6
4878
4879 # So?  What about this header?
4880 case $ac_header_compiler:$ac_header_preproc in
4881   yes:no )
4882     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4884     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4886     (
4887       cat <<\_ASBOX
4888 ## ------------------------------------ ##
4889 ## Report this to bug-autoconf@gnu.org. ##
4890 ## ------------------------------------ ##
4891 _ASBOX
4892     ) |
4893       sed "s/^/$as_me: WARNING:     /" >&2
4894     ;;
4895   no:yes )
4896     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4898     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4899 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4900     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4902     (
4903       cat <<\_ASBOX
4904 ## ------------------------------------ ##
4905 ## Report this to bug-autoconf@gnu.org. ##
4906 ## ------------------------------------ ##
4907 _ASBOX
4908     ) |
4909       sed "s/^/$as_me: WARNING:     /" >&2
4910     ;;
4911 esac
4912 echo "$as_me:$LINENO: checking for $ac_header" >&5
4913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4915   echo $ECHO_N "(cached) $ECHO_C" >&6
4916 else
4917   eval "$as_ac_Header=$ac_header_preproc"
4918 fi
4919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4921
4922 fi
4923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4924   cat >>confdefs.h <<_ACEOF
4925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4926 _ACEOF
4927
4928 fi
4929
4930 done
4931
4932 ac_ext=cc
4933 ac_cpp='$CXXCPP $CPPFLAGS'
4934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4937 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4938 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4939 if test -z "$CXXCPP"; then
4940   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4941   echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943       # Double quotes because CXXCPP needs to be expanded
4944     for CXXCPP in "$CXX -E" "/lib/cpp"
4945     do
4946       ac_preproc_ok=false
4947 for ac_cxx_preproc_warn_flag in '' yes
4948 do
4949   # Use a header file that comes with gcc, so configuring glibc
4950   # with a fresh cross-compiler works.
4951   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4952   # <limits.h> exists even on freestanding compilers.
4953   # On the NeXT, cc -E runs the code through the compiler's parser,
4954   # not just through cpp. "Syntax error" is here to catch this case.
4955   cat >conftest.$ac_ext <<_ACEOF
4956 #line $LINENO "configure"
4957 /* confdefs.h.  */
4958 _ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h.  */
4962 #ifdef __STDC__
4963 # include <limits.h>
4964 #else
4965 # include <assert.h>
4966 #endif
4967                      Syntax error
4968 _ACEOF
4969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4970   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4971   ac_status=$?
4972   grep -v '^ *+' conftest.er1 >conftest.err
4973   rm -f conftest.er1
4974   cat conftest.err >&5
4975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976   (exit $ac_status); } >/dev/null; then
4977   if test -s conftest.err; then
4978     ac_cpp_err=$ac_cxx_preproc_warn_flag
4979   else
4980     ac_cpp_err=
4981   fi
4982 else
4983   ac_cpp_err=yes
4984 fi
4985 if test -z "$ac_cpp_err"; then
4986   :
4987 else
4988   echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.$ac_ext >&5
4990
4991   # Broken: fails on valid input.
4992 continue
4993 fi
4994 rm -f conftest.err conftest.$ac_ext
4995
4996   # OK, works on sane cases.  Now check whether non-existent headers
4997   # can be detected and how.
4998   cat >conftest.$ac_ext <<_ACEOF
4999 #line $LINENO "configure"
5000 /* confdefs.h.  */
5001 _ACEOF
5002 cat confdefs.h >>conftest.$ac_ext
5003 cat >>conftest.$ac_ext <<_ACEOF
5004 /* end confdefs.h.  */
5005 #include <ac_nonexistent.h>
5006 _ACEOF
5007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5008   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5009   ac_status=$?
5010   grep -v '^ *+' conftest.er1 >conftest.err
5011   rm -f conftest.er1
5012   cat conftest.err >&5
5013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014   (exit $ac_status); } >/dev/null; then
5015   if test -s conftest.err; then
5016     ac_cpp_err=$ac_cxx_preproc_warn_flag
5017   else
5018     ac_cpp_err=
5019   fi
5020 else
5021   ac_cpp_err=yes
5022 fi
5023 if test -z "$ac_cpp_err"; then
5024   # Broken: success on invalid input.
5025 continue
5026 else
5027   echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5029
5030   # Passes both tests.
5031 ac_preproc_ok=:
5032 break
5033 fi
5034 rm -f conftest.err conftest.$ac_ext
5035
5036 done
5037 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5038 rm -f conftest.err conftest.$ac_ext
5039 if $ac_preproc_ok; then
5040   break
5041 fi
5042
5043     done
5044     ac_cv_prog_CXXCPP=$CXXCPP
5045
5046 fi
5047   CXXCPP=$ac_cv_prog_CXXCPP
5048 else
5049   ac_cv_prog_CXXCPP=$CXXCPP
5050 fi
5051 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5052 echo "${ECHO_T}$CXXCPP" >&6
5053 ac_preproc_ok=false
5054 for ac_cxx_preproc_warn_flag in '' yes
5055 do
5056   # Use a header file that comes with gcc, so configuring glibc
5057   # with a fresh cross-compiler works.
5058   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5059   # <limits.h> exists even on freestanding compilers.
5060   # On the NeXT, cc -E runs the code through the compiler's parser,
5061   # not just through cpp. "Syntax error" is here to catch this case.
5062   cat >conftest.$ac_ext <<_ACEOF
5063 #line $LINENO "configure"
5064 /* confdefs.h.  */
5065 _ACEOF
5066 cat confdefs.h >>conftest.$ac_ext
5067 cat >>conftest.$ac_ext <<_ACEOF
5068 /* end confdefs.h.  */
5069 #ifdef __STDC__
5070 # include <limits.h>
5071 #else
5072 # include <assert.h>
5073 #endif
5074                      Syntax error
5075 _ACEOF
5076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5077   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5078   ac_status=$?
5079   grep -v '^ *+' conftest.er1 >conftest.err
5080   rm -f conftest.er1
5081   cat conftest.err >&5
5082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083   (exit $ac_status); } >/dev/null; then
5084   if test -s conftest.err; then
5085     ac_cpp_err=$ac_cxx_preproc_warn_flag
5086   else
5087     ac_cpp_err=
5088   fi
5089 else
5090   ac_cpp_err=yes
5091 fi
5092 if test -z "$ac_cpp_err"; then
5093   :
5094 else
5095   echo "$as_me: failed program was:" >&5
5096 sed 's/^/| /' conftest.$ac_ext >&5
5097
5098   # Broken: fails on valid input.
5099 continue
5100 fi
5101 rm -f conftest.err conftest.$ac_ext
5102
5103   # OK, works on sane cases.  Now check whether non-existent headers
5104   # can be detected and how.
5105   cat >conftest.$ac_ext <<_ACEOF
5106 #line $LINENO "configure"
5107 /* confdefs.h.  */
5108 _ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h.  */
5112 #include <ac_nonexistent.h>
5113 _ACEOF
5114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5115   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5116   ac_status=$?
5117   grep -v '^ *+' conftest.er1 >conftest.err
5118   rm -f conftest.er1
5119   cat conftest.err >&5
5120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121   (exit $ac_status); } >/dev/null; then
5122   if test -s conftest.err; then
5123     ac_cpp_err=$ac_cxx_preproc_warn_flag
5124   else
5125     ac_cpp_err=
5126   fi
5127 else
5128   ac_cpp_err=yes
5129 fi
5130 if test -z "$ac_cpp_err"; then
5131   # Broken: success on invalid input.
5132 continue
5133 else
5134   echo "$as_me: failed program was:" >&5
5135 sed 's/^/| /' conftest.$ac_ext >&5
5136
5137   # Passes both tests.
5138 ac_preproc_ok=:
5139 break
5140 fi
5141 rm -f conftest.err conftest.$ac_ext
5142
5143 done
5144 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5145 rm -f conftest.err conftest.$ac_ext
5146 if $ac_preproc_ok; then
5147   :
5148 else
5149   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5150 See \`config.log' for more details." >&5
5151 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5152 See \`config.log' for more details." >&2;}
5153    { (exit 1); exit 1; }; }
5154 fi
5155
5156 ac_ext=cc
5157 ac_cpp='$CXXCPP $CPPFLAGS'
5158 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5159 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5160 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5161
5162
5163 ac_ext=f
5164 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5165 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5166 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5167 if test -n "$ac_tool_prefix"; then
5168   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5169   do
5170     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5171 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5172 echo "$as_me:$LINENO: checking for $ac_word" >&5
5173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5174 if test "${ac_cv_prog_F77+set}" = set; then
5175   echo $ECHO_N "(cached) $ECHO_C" >&6
5176 else
5177   if test -n "$F77"; then
5178   ac_cv_prog_F77="$F77" # Let the user override the test.
5179 else
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH
5182 do
5183   IFS=$as_save_IFS
5184   test -z "$as_dir" && as_dir=.
5185   for ac_exec_ext in '' $ac_executable_extensions; do
5186   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5187     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189     break 2
5190   fi
5191 done
5192 done
5193
5194 fi
5195 fi
5196 F77=$ac_cv_prog_F77
5197 if test -n "$F77"; then
5198   echo "$as_me:$LINENO: result: $F77" >&5
5199 echo "${ECHO_T}$F77" >&6
5200 else
5201   echo "$as_me:$LINENO: result: no" >&5
5202 echo "${ECHO_T}no" >&6
5203 fi
5204
5205     test -n "$F77" && break
5206   done
5207 fi
5208 if test -z "$F77"; then
5209   ac_ct_F77=$F77
5210   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5211 do
5212   # Extract the first word of "$ac_prog", so it can be a program name with args.
5213 set dummy $ac_prog; ac_word=$2
5214 echo "$as_me:$LINENO: checking for $ac_word" >&5
5215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5216 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5217   echo $ECHO_N "(cached) $ECHO_C" >&6
5218 else
5219   if test -n "$ac_ct_F77"; then
5220   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5221 else
5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223 for as_dir in $PATH
5224 do
5225   IFS=$as_save_IFS
5226   test -z "$as_dir" && as_dir=.
5227   for ac_exec_ext in '' $ac_executable_extensions; do
5228   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5229     ac_cv_prog_ac_ct_F77="$ac_prog"
5230     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5231     break 2
5232   fi
5233 done
5234 done
5235
5236 fi
5237 fi
5238 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5239 if test -n "$ac_ct_F77"; then
5240   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5241 echo "${ECHO_T}$ac_ct_F77" >&6
5242 else
5243   echo "$as_me:$LINENO: result: no" >&5
5244 echo "${ECHO_T}no" >&6
5245 fi
5246
5247   test -n "$ac_ct_F77" && break
5248 done
5249
5250   F77=$ac_ct_F77
5251 fi
5252
5253
5254 # Provide some information about the compiler.
5255 echo "$as_me:5255:" \
5256      "checking for Fortran 77 compiler version" >&5
5257 ac_compiler=`set X $ac_compile; echo $2`
5258 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5259   (eval $ac_compiler --version </dev/null >&5) 2>&5
5260   ac_status=$?
5261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262   (exit $ac_status); }
5263 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5264   (eval $ac_compiler -v </dev/null >&5) 2>&5
5265   ac_status=$?
5266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267   (exit $ac_status); }
5268 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5269   (eval $ac_compiler -V </dev/null >&5) 2>&5
5270   ac_status=$?
5271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272   (exit $ac_status); }
5273
5274 # If we don't use `.F' as extension, the preprocessor is not run on the
5275 # input file.
5276 ac_save_ext=$ac_ext
5277 ac_ext=F
5278 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5279 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5280 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5281   echo $ECHO_N "(cached) $ECHO_C" >&6
5282 else
5283   cat >conftest.$ac_ext <<_ACEOF
5284       program main
5285 #ifndef __GNUC__
5286        choke me
5287 #endif
5288
5289       end
5290 _ACEOF
5291 rm -f conftest.$ac_objext
5292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5293   (eval $ac_compile) 2>&5
5294   ac_status=$?
5295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296   (exit $ac_status); } &&
5297          { ac_try='test -s conftest.$ac_objext'
5298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299   (eval $ac_try) 2>&5
5300   ac_status=$?
5301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302   (exit $ac_status); }; }; then
5303   ac_compiler_gnu=yes
5304 else
5305   echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.$ac_ext >&5
5307
5308 ac_compiler_gnu=no
5309 fi
5310 rm -f conftest.$ac_objext conftest.$ac_ext
5311 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5312
5313 fi
5314 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5315 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5316 ac_ext=$ac_save_ext
5317 G77=`test $ac_compiler_gnu = yes && echo yes`
5318 ac_test_FFLAGS=${FFLAGS+set}
5319 ac_save_FFLAGS=$FFLAGS
5320 FFLAGS=
5321 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5322 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5323 if test "${ac_cv_prog_f77_g+set}" = set; then
5324   echo $ECHO_N "(cached) $ECHO_C" >&6
5325 else
5326   FFLAGS=-g
5327 cat >conftest.$ac_ext <<_ACEOF
5328       program main
5329
5330       end
5331 _ACEOF
5332 rm -f conftest.$ac_objext
5333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5334   (eval $ac_compile) 2>&5
5335   ac_status=$?
5336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337   (exit $ac_status); } &&
5338          { ac_try='test -s conftest.$ac_objext'
5339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340   (eval $ac_try) 2>&5
5341   ac_status=$?
5342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343   (exit $ac_status); }; }; then
5344   ac_cv_prog_f77_g=yes
5345 else
5346   echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5348
5349 ac_cv_prog_f77_g=no
5350 fi
5351 rm -f conftest.$ac_objext conftest.$ac_ext
5352
5353 fi
5354 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5355 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5356 if test "$ac_test_FFLAGS" = set; then
5357   FFLAGS=$ac_save_FFLAGS
5358 elif test $ac_cv_prog_f77_g = yes; then
5359   if test "$G77" = yes; then
5360     FFLAGS="-g -O2"
5361   else
5362     FFLAGS="-g"
5363   fi
5364 else
5365   if test "$G77" = yes; then
5366     FFLAGS="-O2"
5367   else
5368     FFLAGS=
5369   fi
5370 fi
5371 ac_ext=c
5372 ac_cpp='$CPP $CPPFLAGS'
5373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5376
5377
5378
5379 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5380
5381 # find the maximum length of command line arguments
5382 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5383 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5384 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5385   echo $ECHO_N "(cached) $ECHO_C" >&6
5386 else
5387     i=0
5388   testring="ABCD"
5389
5390   case $build_os in
5391   msdosdjgpp*)
5392     # On DJGPP, this test can blow up pretty badly due to problems in libc
5393     # (any single argument exceeding 2000 bytes causes a buffer overrun
5394     # during glob expansion).  Even if it were fixed, the result of this
5395     # check would be larger than it should be.
5396     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5397     ;;
5398
5399   gnu*)
5400     # Under GNU Hurd, this test is not required because there is
5401     # no limit to the length of command line arguments.
5402     # Libtool will interpret -1 as no limit whatsoever
5403     lt_cv_sys_max_cmd_len=-1;
5404     ;;
5405
5406   cygwin* | mingw*)
5407     # On Win9x/ME, this test blows up -- it succeeds, but takes
5408     # about 5 minutes as the teststring grows exponentially.
5409     # Worse, since 9x/ME are not pre-emptively multitasking,
5410     # you end up with a "frozen" computer, even though with patience
5411     # the test eventually succeeds (with a max line length of 256k).
5412     # Instead, let's just punt: use the minimum linelength reported by
5413     # all of the supported platforms: 8192 (on NT/2K/XP).
5414     lt_cv_sys_max_cmd_len=8192;
5415     ;;
5416
5417  *)
5418     # If test is not a shell built-in, we'll probably end up computing a
5419     # maximum length that is only half of the actual maximum length, but
5420     # we can't tell.
5421     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5422                = "XX$testring") >/dev/null 2>&1 &&
5423             new_result=`expr "X$testring" : ".*" 2>&1` &&
5424             lt_cv_sys_max_cmd_len=$new_result &&
5425             test $i != 17 # 1/2 MB should be enough
5426     do
5427       i=`expr $i + 1`
5428       testring=$testring$testring
5429     done
5430     testring=
5431     # Add a significant safety factor because C++ compilers can tack on massive
5432     # amounts of additional arguments before passing them to the linker.
5433     # It appears as though 1/2 is a usable value.
5434     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5435     ;;
5436   esac
5437
5438 fi
5439
5440 if test -n $lt_cv_sys_max_cmd_len ; then
5441   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5442 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5443 else
5444   echo "$as_me:$LINENO: result: none" >&5
5445 echo "${ECHO_T}none" >&6
5446 fi
5447
5448
5449
5450
5451 # Check for command to grab the raw symbol name followed by C symbol from nm.
5452 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5453 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5454 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5455   echo $ECHO_N "(cached) $ECHO_C" >&6
5456 else
5457
5458 # These are sane defaults that work on at least a few old systems.
5459 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5460
5461 # Character class describing NM global symbol codes.
5462 symcode='[BCDEGRST]'
5463
5464 # Regexp to match symbols that can be accessed directly from C.
5465 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5466
5467 # Transform the above into a raw symbol and a C symbol.
5468 symxfrm='\1 \2\3 \3'
5469
5470 # Transform an extracted symbol line into a proper C declaration
5471 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5472
5473 # Transform an extracted symbol line into symbol name and symbol address
5474 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'"
5475
5476 # Define system-specific variables.
5477 case $host_os in
5478 aix*)
5479   symcode='[BCDT]'
5480   ;;
5481 cygwin* | mingw* | pw32*)
5482   symcode='[ABCDGISTW]'
5483   ;;
5484 hpux*) # Its linker distinguishes data from code symbols
5485   if test "$host_cpu" = ia64; then
5486     symcode='[ABCDEGRST]'
5487   fi
5488   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5489   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'"
5490   ;;
5491 irix* | nonstopux*)
5492   symcode='[BCDEGRST]'
5493   ;;
5494 osf*)
5495   symcode='[BCDEGQRST]'
5496   ;;
5497 solaris* | sysv5*)
5498   symcode='[BDT]'
5499   ;;
5500 sysv4)
5501   symcode='[DFNSTU]'
5502   ;;
5503 esac
5504
5505 # Handle CRLF in mingw tool chain
5506 opt_cr=
5507 case $build_os in
5508 mingw*)
5509   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5510   ;;
5511 esac
5512
5513 # If we're using GNU nm, then use its standard symbol codes.
5514 case `$NM -V 2>&1` in
5515 *GNU* | *'with BFD'*)
5516   symcode='[ABCDGISTW]' ;;
5517 esac
5518
5519 # Try without a prefix undercore, then with it.
5520 for ac_symprfx in "" "_"; do
5521
5522   # Write the raw and C identifiers.
5523   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5524
5525   # Check to see that the pipe works correctly.
5526   pipe_works=no
5527
5528   rm -f conftest*
5529   cat > conftest.$ac_ext <<EOF
5530 #ifdef __cplusplus
5531 extern "C" {
5532 #endif
5533 char nm_test_var;
5534 void nm_test_func(){}
5535 #ifdef __cplusplus
5536 }
5537 #endif
5538 int main(){nm_test_var='a';nm_test_func();return(0);}
5539 EOF
5540
5541   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5542   (eval $ac_compile) 2>&5
5543   ac_status=$?
5544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545   (exit $ac_status); }; then
5546     # Now try to grab the symbols.
5547     nlist=conftest.nm
5548     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5549   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5550   ac_status=$?
5551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552   (exit $ac_status); } && test -s "$nlist"; then
5553       # Try sorting and uniquifying the output.
5554       if sort "$nlist" | uniq > "$nlist"T; then
5555         mv -f "$nlist"T "$nlist"
5556       else
5557         rm -f "$nlist"T
5558       fi
5559
5560       # Make sure that we snagged all the symbols we need.
5561       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5562         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5563           cat <<EOF > conftest.$ac_ext
5564 #ifdef __cplusplus
5565 extern "C" {
5566 #endif
5567
5568 EOF
5569           # Now generate the symbol file.
5570           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5571
5572           cat <<EOF >> conftest.$ac_ext
5573 #if defined (__STDC__) && __STDC__
5574 # define lt_ptr_t void *
5575 #else
5576 # define lt_ptr_t char *
5577 # define const
5578 #endif
5579
5580 /* The mapping between symbol names and symbols. */
5581 const struct {
5582   const char *name;
5583   lt_ptr_t address;
5584 }
5585 lt_preloaded_symbols[] =
5586 {
5587 EOF
5588           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5589           cat <<\EOF >> conftest.$ac_ext
5590   {0, (lt_ptr_t) 0}
5591 };
5592
5593 #ifdef __cplusplus
5594 }
5595 #endif
5596 EOF
5597           # Now try linking the two files.
5598           mv conftest.$ac_objext conftstm.$ac_objext
5599           lt_save_LIBS="$LIBS"
5600           lt_save_CFLAGS="$CFLAGS"
5601           LIBS="conftstm.$ac_objext"
5602           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5603           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5604   (eval $ac_link) 2>&5
5605   ac_status=$?
5606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5608             pipe_works=yes
5609           fi
5610           LIBS="$lt_save_LIBS"
5611           CFLAGS="$lt_save_CFLAGS"
5612         else
5613           echo "cannot find nm_test_func in $nlist" >&5
5614         fi
5615       else
5616         echo "cannot find nm_test_var in $nlist" >&5
5617       fi
5618     else
5619       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5620     fi
5621   else
5622     echo "$progname: failed program was:" >&5
5623     cat conftest.$ac_ext >&5
5624   fi
5625   rm -f conftest* conftst*
5626
5627   # Do not use the global_symbol_pipe unless it works.
5628   if test "$pipe_works" = yes; then
5629     break
5630   else
5631     lt_cv_sys_global_symbol_pipe=
5632   fi
5633 done
5634
5635 fi
5636
5637 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5638   lt_cv_sys_global_symbol_to_cdecl=
5639 fi
5640 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5641   echo "$as_me:$LINENO: result: failed" >&5
5642 echo "${ECHO_T}failed" >&6
5643 else
5644   echo "$as_me:$LINENO: result: ok" >&5
5645 echo "${ECHO_T}ok" >&6
5646 fi
5647
5648 echo "$as_me:$LINENO: checking for objdir" >&5
5649 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5650 if test "${lt_cv_objdir+set}" = set; then
5651   echo $ECHO_N "(cached) $ECHO_C" >&6
5652 else
5653   rm -f .libs 2>/dev/null
5654 mkdir .libs 2>/dev/null
5655 if test -d .libs; then
5656   lt_cv_objdir=.libs
5657 else
5658   # MS-DOS does not allow filenames that begin with a dot.
5659   lt_cv_objdir=_libs
5660 fi
5661 rmdir .libs 2>/dev/null
5662 fi
5663 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5664 echo "${ECHO_T}$lt_cv_objdir" >&6
5665 objdir=$lt_cv_objdir
5666
5667
5668
5669
5670
5671 case $host_os in
5672 aix3*)
5673   # AIX sometimes has problems with the GCC collect2 program.  For some
5674   # reason, if we set the COLLECT_NAMES environment variable, the problems
5675   # vanish in a puff of smoke.
5676   if test "X${COLLECT_NAMES+set}" != Xset; then
5677     COLLECT_NAMES=
5678     export COLLECT_NAMES
5679   fi
5680   ;;
5681 esac
5682
5683 # Sed substitution that helps us do robust quoting.  It backslashifies
5684 # metacharacters that are still active within double-quoted strings.
5685 Xsed='sed -e s/^X//'
5686 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5687
5688 # Same as above, but do not quote variable references.
5689 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5690
5691 # Sed substitution to delay expansion of an escaped shell variable in a
5692 # double_quote_subst'ed string.
5693 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5694
5695 # Sed substitution to avoid accidental globbing in evaled expressions
5696 no_glob_subst='s/\*/\\\*/g'
5697
5698 # Constants:
5699 rm="rm -f"
5700
5701 # Global variables:
5702 default_ofile=mklib
5703 can_build_shared=yes
5704
5705 # All known linkers require a `.a' archive for static linking (except M$VC,
5706 # which needs '.lib').
5707 libext=a
5708 ltmain="$ac_aux_dir/ltmain.sh"
5709 ofile="$default_ofile"
5710 with_gnu_ld="$lt_cv_prog_gnu_ld"
5711
5712 if test -n "$ac_tool_prefix"; then
5713   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5714 set dummy ${ac_tool_prefix}ar; ac_word=$2
5715 echo "$as_me:$LINENO: checking for $ac_word" >&5
5716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5717 if test "${ac_cv_prog_AR+set}" = set; then
5718   echo $ECHO_N "(cached) $ECHO_C" >&6
5719 else
5720   if test -n "$AR"; then
5721   ac_cv_prog_AR="$AR" # Let the user override the test.
5722 else
5723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724 for as_dir in $PATH
5725 do
5726   IFS=$as_save_IFS
5727   test -z "$as_dir" && as_dir=.
5728   for ac_exec_ext in '' $ac_executable_extensions; do
5729   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5730     ac_cv_prog_AR="${ac_tool_prefix}ar"
5731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5732     break 2
5733   fi
5734 done
5735 done
5736
5737 fi
5738 fi
5739 AR=$ac_cv_prog_AR
5740 if test -n "$AR"; then
5741   echo "$as_me:$LINENO: result: $AR" >&5
5742 echo "${ECHO_T}$AR" >&6
5743 else
5744   echo "$as_me:$LINENO: result: no" >&5
5745 echo "${ECHO_T}no" >&6
5746 fi
5747
5748 fi
5749 if test -z "$ac_cv_prog_AR"; then
5750   ac_ct_AR=$AR
5751   # Extract the first word of "ar", so it can be a program name with args.
5752 set dummy ar; ac_word=$2
5753 echo "$as_me:$LINENO: checking for $ac_word" >&5
5754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5755 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5756   echo $ECHO_N "(cached) $ECHO_C" >&6
5757 else
5758   if test -n "$ac_ct_AR"; then
5759   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5760 else
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762 for as_dir in $PATH
5763 do
5764   IFS=$as_save_IFS
5765   test -z "$as_dir" && as_dir=.
5766   for ac_exec_ext in '' $ac_executable_extensions; do
5767   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5768     ac_cv_prog_ac_ct_AR="ar"
5769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5770     break 2
5771   fi
5772 done
5773 done
5774
5775   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5776 fi
5777 fi
5778 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5779 if test -n "$ac_ct_AR"; then
5780   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5781 echo "${ECHO_T}$ac_ct_AR" >&6
5782 else
5783   echo "$as_me:$LINENO: result: no" >&5
5784 echo "${ECHO_T}no" >&6
5785 fi
5786
5787   AR=$ac_ct_AR
5788 else
5789   AR="$ac_cv_prog_AR"
5790 fi
5791
5792 if test -n "$ac_tool_prefix"; then
5793   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5794 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5795 echo "$as_me:$LINENO: checking for $ac_word" >&5
5796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5797 if test "${ac_cv_prog_RANLIB+set}" = set; then
5798   echo $ECHO_N "(cached) $ECHO_C" >&6
5799 else
5800   if test -n "$RANLIB"; then
5801   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5802 else
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5805 do
5806   IFS=$as_save_IFS
5807   test -z "$as_dir" && as_dir=.
5808   for ac_exec_ext in '' $ac_executable_extensions; do
5809   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5810     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5812     break 2
5813   fi
5814 done
5815 done
5816
5817 fi
5818 fi
5819 RANLIB=$ac_cv_prog_RANLIB
5820 if test -n "$RANLIB"; then
5821   echo "$as_me:$LINENO: result: $RANLIB" >&5
5822 echo "${ECHO_T}$RANLIB" >&6
5823 else
5824   echo "$as_me:$LINENO: result: no" >&5
5825 echo "${ECHO_T}no" >&6
5826 fi
5827
5828 fi
5829 if test -z "$ac_cv_prog_RANLIB"; then
5830   ac_ct_RANLIB=$RANLIB
5831   # Extract the first word of "ranlib", so it can be a program name with args.
5832 set dummy ranlib; ac_word=$2
5833 echo "$as_me:$LINENO: checking for $ac_word" >&5
5834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5835 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5836   echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838   if test -n "$ac_ct_RANLIB"; then
5839   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5840 else
5841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842 for as_dir in $PATH
5843 do
5844   IFS=$as_save_IFS
5845   test -z "$as_dir" && as_dir=.
5846   for ac_exec_ext in '' $ac_executable_extensions; do
5847   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5848     ac_cv_prog_ac_ct_RANLIB="ranlib"
5849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5850     break 2
5851   fi
5852 done
5853 done
5854
5855   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5856 fi
5857 fi
5858 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5859 if test -n "$ac_ct_RANLIB"; then
5860   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5861 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5862 else
5863   echo "$as_me:$LINENO: result: no" >&5
5864 echo "${ECHO_T}no" >&6
5865 fi
5866
5867   RANLIB=$ac_ct_RANLIB
5868 else
5869   RANLIB="$ac_cv_prog_RANLIB"
5870 fi
5871
5872 if test -n "$ac_tool_prefix"; then
5873   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5874 set dummy ${ac_tool_prefix}strip; ac_word=$2
5875 echo "$as_me:$LINENO: checking for $ac_word" >&5
5876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5877 if test "${ac_cv_prog_STRIP+set}" = set; then
5878   echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880   if test -n "$STRIP"; then
5881   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5882 else
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 for as_dir in $PATH
5885 do
5886   IFS=$as_save_IFS
5887   test -z "$as_dir" && as_dir=.
5888   for ac_exec_ext in '' $ac_executable_extensions; do
5889   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5890     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5892     break 2
5893   fi
5894 done
5895 done
5896
5897 fi
5898 fi
5899 STRIP=$ac_cv_prog_STRIP
5900 if test -n "$STRIP"; then
5901   echo "$as_me:$LINENO: result: $STRIP" >&5
5902 echo "${ECHO_T}$STRIP" >&6
5903 else
5904   echo "$as_me:$LINENO: result: no" >&5
5905 echo "${ECHO_T}no" >&6
5906 fi
5907
5908 fi
5909 if test -z "$ac_cv_prog_STRIP"; then
5910   ac_ct_STRIP=$STRIP
5911   # Extract the first word of "strip", so it can be a program name with args.
5912 set dummy strip; ac_word=$2
5913 echo "$as_me:$LINENO: checking for $ac_word" >&5
5914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5915 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5916   echo $ECHO_N "(cached) $ECHO_C" >&6
5917 else
5918   if test -n "$ac_ct_STRIP"; then
5919   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5920 else
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 for as_dir in $PATH
5923 do
5924   IFS=$as_save_IFS
5925   test -z "$as_dir" && as_dir=.
5926   for ac_exec_ext in '' $ac_executable_extensions; do
5927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5928     ac_cv_prog_ac_ct_STRIP="strip"
5929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5930     break 2
5931   fi
5932 done
5933 done
5934
5935   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5936 fi
5937 fi
5938 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5939 if test -n "$ac_ct_STRIP"; then
5940   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5941 echo "${ECHO_T}$ac_ct_STRIP" >&6
5942 else
5943   echo "$as_me:$LINENO: result: no" >&5
5944 echo "${ECHO_T}no" >&6
5945 fi
5946
5947   STRIP=$ac_ct_STRIP
5948 else
5949   STRIP="$ac_cv_prog_STRIP"
5950 fi
5951
5952
5953 old_CC="$CC"
5954 old_CFLAGS="$CFLAGS"
5955
5956 # Set sane defaults for various variables
5957 test -z "$AR" && AR=ar
5958 test -z "$AR_FLAGS" && AR_FLAGS=cru
5959 test -z "$AS" && AS=as
5960 test -z "$CC" && CC=cc
5961 test -z "$LTCC" && LTCC=$CC
5962 test -z "$DLLTOOL" && DLLTOOL=dlltool
5963 test -z "$LD" && LD=ld
5964 test -z "$LN_S" && LN_S="ln -s"
5965 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5966 test -z "$NM" && NM=nm
5967 test -z "$SED" && SED=sed
5968 test -z "$OBJDUMP" && OBJDUMP=objdump
5969 test -z "$RANLIB" && RANLIB=:
5970 test -z "$STRIP" && STRIP=:
5971 test -z "$ac_objext" && ac_objext=o
5972
5973 # Determine commands to create old-style static archives.
5974 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5975 old_postinstall_cmds='chmod 644 $oldlib'
5976 old_postuninstall_cmds=
5977
5978 if test -n "$RANLIB"; then
5979   case $host_os in
5980   openbsd*)
5981     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5982     ;;
5983   *)
5984     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5985     ;;
5986   esac
5987   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5988 fi
5989
5990 # Only perform the check for file, if the check method requires it
5991 case $deplibs_check_method in
5992 file_magic*)
5993   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5994     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5995 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5996 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5997   echo $ECHO_N "(cached) $ECHO_C" >&6
5998 else
5999   case $MAGIC_CMD in
6000 [\\/*] |  ?:[\\/]*)
6001   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6002   ;;
6003 *)
6004   lt_save_MAGIC_CMD="$MAGIC_CMD"
6005   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6006   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6007   for ac_dir in $ac_dummy; do
6008     IFS="$lt_save_ifs"
6009     test -z "$ac_dir" && ac_dir=.
6010     if test -f $ac_dir/${ac_tool_prefix}file; then
6011       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6012       if test -n "$file_magic_test_file"; then
6013         case $deplibs_check_method in
6014         "file_magic "*)
6015           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6016           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6017           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6018             $EGREP "$file_magic_regex" > /dev/null; then
6019             :
6020           else
6021             cat <<EOF 1>&2
6022
6023 *** Warning: the command libtool uses to detect shared libraries,
6024 *** $file_magic_cmd, produces output that libtool cannot recognize.
6025 *** The result is that libtool may fail to recognize shared libraries
6026 *** as such.  This will affect the creation of libtool libraries that
6027 *** depend on shared libraries, but programs linked with such libtool
6028 *** libraries will work regardless of this problem.  Nevertheless, you
6029 *** may want to report the problem to your system manager and/or to
6030 *** bug-libtool@gnu.org
6031
6032 EOF
6033           fi ;;
6034         esac
6035       fi
6036       break
6037     fi
6038   done
6039   IFS="$lt_save_ifs"
6040   MAGIC_CMD="$lt_save_MAGIC_CMD"
6041   ;;
6042 esac
6043 fi
6044
6045 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6046 if test -n "$MAGIC_CMD"; then
6047   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6048 echo "${ECHO_T}$MAGIC_CMD" >&6
6049 else
6050   echo "$as_me:$LINENO: result: no" >&5
6051 echo "${ECHO_T}no" >&6
6052 fi
6053
6054 if test -z "$lt_cv_path_MAGIC_CMD"; then
6055   if test -n "$ac_tool_prefix"; then
6056     echo "$as_me:$LINENO: checking for file" >&5
6057 echo $ECHO_N "checking for file... $ECHO_C" >&6
6058 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6059   echo $ECHO_N "(cached) $ECHO_C" >&6
6060 else
6061   case $MAGIC_CMD in
6062 [\\/*] |  ?:[\\/]*)
6063   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6064   ;;
6065 *)
6066   lt_save_MAGIC_CMD="$MAGIC_CMD"
6067   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6068   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6069   for ac_dir in $ac_dummy; do
6070     IFS="$lt_save_ifs"
6071     test -z "$ac_dir" && ac_dir=.
6072     if test -f $ac_dir/file; then
6073       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6074       if test -n "$file_magic_test_file"; then
6075         case $deplibs_check_method in
6076         "file_magic "*)
6077           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6078           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6079           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6080             $EGREP "$file_magic_regex" > /dev/null; then
6081             :
6082           else
6083             cat <<EOF 1>&2
6084
6085 *** Warning: the command libtool uses to detect shared libraries,
6086 *** $file_magic_cmd, produces output that libtool cannot recognize.
6087 *** The result is that libtool may fail to recognize shared libraries
6088 *** as such.  This will affect the creation of libtool libraries that
6089 *** depend on shared libraries, but programs linked with such libtool
6090 *** libraries will work regardless of this problem.  Nevertheless, you
6091 *** may want to report the problem to your system manager and/or to
6092 *** bug-libtool@gnu.org
6093
6094 EOF
6095           fi ;;
6096         esac
6097       fi
6098       break
6099     fi
6100   done
6101   IFS="$lt_save_ifs"
6102   MAGIC_CMD="$lt_save_MAGIC_CMD"
6103   ;;
6104 esac
6105 fi
6106
6107 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6108 if test -n "$MAGIC_CMD"; then
6109   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6110 echo "${ECHO_T}$MAGIC_CMD" >&6
6111 else
6112   echo "$as_me:$LINENO: result: no" >&5
6113 echo "${ECHO_T}no" >&6
6114 fi
6115
6116   else
6117     MAGIC_CMD=:
6118   fi
6119 fi
6120
6121   fi
6122   ;;
6123 esac
6124
6125 enable_dlopen=no
6126 enable_win32_dll=no
6127
6128 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6129 if test "${enable_libtool_lock+set}" = set; then
6130   enableval="$enable_libtool_lock"
6131
6132 fi;
6133 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6134
6135
6136 # Check whether --with-pic or --without-pic was given.
6137 if test "${with_pic+set}" = set; then
6138   withval="$with_pic"
6139   pic_mode="$withval"
6140 else
6141   pic_mode=default
6142 fi;
6143 test -z "$pic_mode" && pic_mode=default
6144
6145 # Use C for the default configuration in the libtool script
6146 tagname=
6147 lt_save_CC="$CC"
6148 ac_ext=c
6149 ac_cpp='$CPP $CPPFLAGS'
6150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6153
6154
6155 # Source file extension for C test sources.
6156 ac_ext=c
6157
6158 # Object file extension for compiled C test sources.
6159 objext=o
6160 objext=$objext
6161
6162 # Code to be used in simple compile tests
6163 lt_simple_compile_test_code="int some_variable = 0;\n"
6164
6165 # Code to be used in simple link tests
6166 lt_simple_link_test_code='int main(){return(0);}\n'
6167
6168
6169 # If no C compiler was specified, use CC.
6170 LTCC=${LTCC-"$CC"}
6171
6172 # Allow CC to be a program name with arguments.
6173 compiler=$CC
6174
6175
6176 #
6177 # Check for any special shared library compilation flags.
6178 #
6179 lt_prog_cc_shlib=
6180 if test "$GCC" = no; then
6181   case $host_os in
6182   sco3.2v5*)
6183     lt_prog_cc_shlib='-belf'
6184     ;;
6185   esac
6186 fi
6187 if test -n "$lt_prog_cc_shlib"; then
6188   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6189 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6190   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6191   else
6192     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6193 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6194     lt_cv_prog_cc_can_build_shared=no
6195   fi
6196 fi
6197
6198
6199 #
6200 # Check to make sure the static flag actually works.
6201 #
6202 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6203 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6204 if test "${lt_prog_compiler_static_works+set}" = set; then
6205   echo $ECHO_N "(cached) $ECHO_C" >&6
6206 else
6207   lt_prog_compiler_static_works=no
6208    save_LDFLAGS="$LDFLAGS"
6209    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6210    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6211    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6212      # The compiler can only warn and ignore the option if not recognized
6213      # So say no if there are warnings
6214      if test -s conftest.err; then
6215        # Append any errors to the config.log.
6216        cat conftest.err 1>&5
6217      else
6218        lt_prog_compiler_static_works=yes
6219      fi
6220    fi
6221    $rm conftest*
6222    LDFLAGS="$save_LDFLAGS"
6223
6224 fi
6225 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6226 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6227
6228 if test x"$lt_prog_compiler_static_works" = xyes; then
6229     :
6230 else
6231     lt_prog_compiler_static=
6232 fi
6233
6234
6235
6236 ## CAVEAT EMPTOR:
6237 ## There is no encapsulation within the following macros, do not change
6238 ## the running order or otherwise move them around unless you know exactly
6239 ## what you are doing...
6240
6241 lt_prog_compiler_no_builtin_flag=
6242
6243 if test "$GCC" = yes; then
6244   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6245
6246   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6247 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6248 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6249   echo $ECHO_N "(cached) $ECHO_C" >&6
6250 else
6251   lt_cv_prog_compiler_rtti_exceptions=no
6252   ac_outfile=conftest.$ac_objext
6253    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6254    lt_compiler_flag="-fno-rtti -fno-exceptions"
6255    # Insert the option either (1) after the last *FLAGS variable, or
6256    # (2) before a word containing "conftest.", or (3) at the end.
6257    # Note that $ac_compile itself does not contain backslashes and begins
6258    # with a dollar sign (not a hyphen), so the echo should work correctly.
6259    # The option is referenced via a variable to avoid confusing sed.
6260    lt_compile=`echo "$ac_compile" | $SED \
6261    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6262    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6263    -e 's:$: $lt_compiler_flag:'`
6264    (eval echo "\"\$as_me:6264: $lt_compile\"" >&5)
6265    (eval "$lt_compile" 2>conftest.err)
6266    ac_status=$?
6267    cat conftest.err >&5
6268    echo "$as_me:6268: \$? = $ac_status" >&5
6269    if (exit $ac_status) && test -s "$ac_outfile"; then
6270      # The compiler can only warn and ignore the option if not recognized
6271      # So say no if there are warnings
6272      if test ! -s conftest.err; then
6273        lt_cv_prog_compiler_rtti_exceptions=yes
6274      fi
6275    fi
6276    $rm conftest*
6277
6278 fi
6279 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6280 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6281
6282 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6283     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6284 else
6285     :
6286 fi
6287
6288 fi
6289
6290 lt_prog_compiler_wl=
6291 lt_prog_compiler_pic=
6292 lt_prog_compiler_static=
6293
6294 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6295 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6296
6297   if test "$GCC" = yes; then
6298     lt_prog_compiler_wl='-Wl,'
6299     lt_prog_compiler_static='-static'
6300
6301     case $host_os in
6302       aix*)
6303       # All AIX code is PIC.
6304       if test "$host_cpu" = ia64; then
6305         # AIX 5 now supports IA64 processor
6306         lt_prog_compiler_static='-Bstatic'
6307       fi
6308       ;;
6309
6310     amigaos*)
6311       # FIXME: we need at least 68020 code to build shared libraries, but
6312       # adding the `-m68020' flag to GCC prevents building anything better,
6313       # like `-m68040'.
6314       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6315       ;;
6316
6317     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6318       # PIC is the default for these OSes.
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     darwin* | rhapsody*)
6328       # PIC is the default on this platform
6329       # Common symbols not allowed in MH_DYLIB files
6330       lt_prog_compiler_pic='-fno-common'
6331       ;;
6332
6333     msdosdjgpp*)
6334       # Just because we use GCC doesn't mean we suddenly get shared libraries
6335       # on systems that don't support them.
6336       lt_prog_compiler_can_build_shared=no
6337       enable_shared=no
6338       ;;
6339
6340     sysv4*MP*)
6341       if test -d /usr/nec; then
6342         lt_prog_compiler_pic=-Kconform_pic
6343       fi
6344       ;;
6345
6346     hpux*)
6347       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6348       # not for PA HP-UX.
6349       case "$host_cpu" in
6350       hppa*64*|ia64*)
6351         # +Z the default
6352         ;;
6353       *)
6354         lt_prog_compiler_pic='-fPIC'
6355         ;;
6356       esac
6357       ;;
6358
6359     *)
6360       lt_prog_compiler_pic='-fPIC'
6361       ;;
6362     esac
6363   else
6364     # PORTME Check for flag to pass linker flags through the system compiler.
6365     case $host_os in
6366     aix*)
6367       lt_prog_compiler_wl='-Wl,'
6368       if test "$host_cpu" = ia64; then
6369         # AIX 5 now supports IA64 processor
6370         lt_prog_compiler_static='-Bstatic'
6371       else
6372         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6373       fi
6374       ;;
6375
6376     mingw* | pw32* | os2*)
6377       # This hack is so that the source file can tell whether it is being
6378       # built for inclusion in a dll (and should export symbols for example).
6379       lt_prog_compiler_pic='-DDLL_EXPORT'
6380       ;;
6381
6382     hpux9* | hpux10* | hpux11*)
6383       lt_prog_compiler_wl='-Wl,'
6384       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6385       # not for PA HP-UX.
6386       case "$host_cpu" in
6387       hppa*64*|ia64*)
6388         # +Z the default
6389         ;;
6390       *)
6391         lt_prog_compiler_pic='+Z'
6392         ;;
6393       esac
6394       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6395       lt_prog_compiler_static='${wl}-a ${wl}archive'
6396       ;;
6397
6398     irix5* | irix6* | nonstopux*)
6399       lt_prog_compiler_wl='-Wl,'
6400       # PIC (with -KPIC) is the default.
6401       lt_prog_compiler_static='-non_shared'
6402       ;;
6403
6404     newsos6)
6405       lt_prog_compiler_pic='-KPIC'
6406       lt_prog_compiler_static='-Bstatic'
6407       ;;
6408
6409     linux*)
6410       case $CC in
6411       icc|ecc)
6412         lt_prog_compiler_wl='-Wl,'
6413         lt_prog_compiler_pic='-KPIC'
6414         lt_prog_compiler_static='-static'
6415         ;;
6416       ccc)
6417         lt_prog_compiler_wl='-Wl,'
6418         # All Alpha code is PIC.
6419         lt_prog_compiler_static='-non_shared'
6420         ;;
6421       esac
6422       ;;
6423
6424     osf3* | osf4* | osf5*)
6425       lt_prog_compiler_wl='-Wl,'
6426       # All OSF/1 code is PIC.
6427       lt_prog_compiler_static='-non_shared'
6428       ;;
6429
6430     sco3.2v5*)
6431       lt_prog_compiler_pic='-Kpic'
6432       lt_prog_compiler_static='-dn'
6433       ;;
6434
6435     solaris*)
6436       lt_prog_compiler_wl='-Wl,'
6437       lt_prog_compiler_pic='-KPIC'
6438       lt_prog_compiler_static='-Bstatic'
6439       ;;
6440
6441     sunos4*)
6442       lt_prog_compiler_wl='-Qoption ld '
6443       lt_prog_compiler_pic='-PIC'
6444       lt_prog_compiler_static='-Bstatic'
6445       ;;
6446
6447     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6448       lt_prog_compiler_wl='-Wl,'
6449       lt_prog_compiler_pic='-KPIC'
6450       lt_prog_compiler_static='-Bstatic'
6451       ;;
6452
6453     sysv4*MP*)
6454       if test -d /usr/nec ;then
6455         lt_prog_compiler_pic='-Kconform_pic'
6456         lt_prog_compiler_static='-Bstatic'
6457       fi
6458       ;;
6459
6460     uts4*)
6461       lt_prog_compiler_pic='-pic'
6462       lt_prog_compiler_static='-Bstatic'
6463       ;;
6464
6465     *)
6466       lt_prog_compiler_can_build_shared=no
6467       ;;
6468     esac
6469   fi
6470
6471 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6472 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6473
6474 #
6475 # Check to make sure the PIC flag actually works.
6476 #
6477 if test -n "$lt_prog_compiler_pic"; then
6478   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6479 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6480 if test "${lt_prog_compiler_pic_works+set}" = set; then
6481   echo $ECHO_N "(cached) $ECHO_C" >&6
6482 else
6483   lt_prog_compiler_pic_works=no
6484   ac_outfile=conftest.$ac_objext
6485    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6486    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6487    # Insert the option either (1) after the last *FLAGS variable, or
6488    # (2) before a word containing "conftest.", or (3) at the end.
6489    # Note that $ac_compile itself does not contain backslashes and begins
6490    # with a dollar sign (not a hyphen), so the echo should work correctly.
6491    # The option is referenced via a variable to avoid confusing sed.
6492    lt_compile=`echo "$ac_compile" | $SED \
6493    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6494    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6495    -e 's:$: $lt_compiler_flag:'`
6496    (eval echo "\"\$as_me:6496: $lt_compile\"" >&5)
6497    (eval "$lt_compile" 2>conftest.err)
6498    ac_status=$?
6499    cat conftest.err >&5
6500    echo "$as_me:6500: \$? = $ac_status" >&5
6501    if (exit $ac_status) && test -s "$ac_outfile"; then
6502      # The compiler can only warn and ignore the option if not recognized
6503      # So say no if there are warnings
6504      if test ! -s conftest.err; then
6505        lt_prog_compiler_pic_works=yes
6506      fi
6507    fi
6508    $rm conftest*
6509
6510 fi
6511 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6512 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6513
6514 if test x"$lt_prog_compiler_pic_works" = xyes; then
6515     case $lt_prog_compiler_pic in
6516      "" | " "*) ;;
6517      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6518      esac
6519 else
6520     lt_prog_compiler_pic=
6521      lt_prog_compiler_can_build_shared=no
6522 fi
6523
6524 fi
6525 case "$host_os" in
6526   # For platforms which do not support PIC, -DPIC is meaningless:
6527   *djgpp*)
6528     lt_prog_compiler_pic=
6529     ;;
6530   *)
6531     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6532     ;;
6533 esac
6534
6535 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6536 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6537 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6538   echo $ECHO_N "(cached) $ECHO_C" >&6
6539 else
6540   lt_cv_prog_compiler_c_o=no
6541    $rm -r conftest 2>/dev/null
6542    mkdir conftest
6543    cd conftest
6544    mkdir out
6545    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6546
6547    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6548    # that will create temporary files in the current directory regardless of
6549    # the output directory.  Thus, making CWD read-only will cause this test
6550    # to fail, enabling locking or at least warning the user not to do parallel
6551    # builds.
6552    chmod -w .
6553
6554    lt_compiler_flag="-o out/conftest2.$ac_objext"
6555    # Insert the option either (1) after the last *FLAGS variable, or
6556    # (2) before a word containing "conftest.", or (3) at the end.
6557    # Note that $ac_compile itself does not contain backslashes and begins
6558    # with a dollar sign (not a hyphen), so the echo should work correctly.
6559    lt_compile=`echo "$ac_compile" | $SED \
6560    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6561    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6562    -e 's:$: $lt_compiler_flag:'`
6563    (eval echo "\"\$as_me:6563: $lt_compile\"" >&5)
6564    (eval "$lt_compile" 2>out/conftest.err)
6565    ac_status=$?
6566    cat out/conftest.err >&5
6567    echo "$as_me:6567: \$? = $ac_status" >&5
6568    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6569    then
6570      # The compiler can only warn and ignore the option if not recognized
6571      # So say no if there are warnings
6572      if test ! -s out/conftest.err; then
6573        lt_cv_prog_compiler_c_o=yes
6574      fi
6575    fi
6576    chmod u+w .
6577    $rm conftest* out/*
6578    rmdir out
6579    cd ..
6580    rmdir conftest
6581    $rm conftest*
6582
6583 fi
6584 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6585 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6586
6587
6588 hard_links="nottested"
6589 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6590   # do not overwrite the value of need_locks provided by the user
6591   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6592 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6593   hard_links=yes
6594   $rm conftest*
6595   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6596   touch conftest.a
6597   ln conftest.a conftest.b 2>&5 || hard_links=no
6598   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6599   echo "$as_me:$LINENO: result: $hard_links" >&5
6600 echo "${ECHO_T}$hard_links" >&6
6601   if test "$hard_links" = no; then
6602     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6603 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6604     need_locks=warn
6605   fi
6606 else
6607   need_locks=no
6608 fi
6609
6610 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6611 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6612
6613   runpath_var=
6614   allow_undefined_flag=
6615   enable_shared_with_static_runtimes=no
6616   archive_cmds=
6617   archive_expsym_cmds=
6618   old_archive_From_new_cmds=
6619   old_archive_from_expsyms_cmds=
6620   export_dynamic_flag_spec=
6621   whole_archive_flag_spec=
6622   thread_safe_flag_spec=
6623   hardcode_libdir_flag_spec=
6624   hardcode_libdir_flag_spec_ld=
6625   hardcode_libdir_separator=
6626   hardcode_direct=no
6627   hardcode_minus_L=no
6628   hardcode_shlibpath_var=unsupported
6629   link_all_deplibs=unknown
6630   hardcode_automatic=no
6631   module_cmds=
6632   module_expsym_cmds=
6633   always_export_symbols=no
6634   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6635   # include_expsyms should be a list of space-separated symbols to be *always*
6636   # included in the symbol list
6637   include_expsyms=
6638   # exclude_expsyms can be an extended regexp of symbols to exclude
6639   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6640   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6641   # as well as any symbol that contains `d'.
6642   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6643   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6644   # platforms (ab)use it in PIC code, but their linkers get confused if
6645   # the symbol is explicitly referenced.  Since portable code cannot
6646   # rely on this symbol name, it's probably fine to never include it in
6647   # preloaded symbol tables.
6648   extract_expsyms_cmds=
6649
6650   case $host_os in
6651   cygwin* | mingw* | pw32*)
6652     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6653     # When not using gcc, we currently assume that we are using
6654     # Microsoft Visual C++.
6655     if test "$GCC" != yes; then
6656       with_gnu_ld=no
6657     fi
6658     ;;
6659   openbsd*)
6660     with_gnu_ld=no
6661     ;;
6662   esac
6663
6664   ld_shlibs=yes
6665   if test "$with_gnu_ld" = yes; then
6666     # If archive_cmds runs LD, not CC, wlarc should be empty
6667     wlarc='${wl}'
6668
6669     # See if GNU ld supports shared libraries.
6670     case $host_os in
6671     aix3* | aix4* | aix5*)
6672       # On AIX/PPC, the GNU linker is very broken
6673       if test "$host_cpu" != ia64; then
6674         ld_shlibs=no
6675         cat <<EOF 1>&2
6676
6677 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6678 *** to be unable to reliably create shared libraries on AIX.
6679 *** Therefore, libtool is disabling shared libraries support.  If you
6680 *** really care for shared libraries, you may want to modify your PATH
6681 *** so that a non-GNU linker is found, and then restart.
6682
6683 EOF
6684       fi
6685       ;;
6686
6687     amigaos*)
6688       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)'
6689       hardcode_libdir_flag_spec='-L$libdir'
6690       hardcode_minus_L=yes
6691
6692       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6693       # that the semantics of dynamic libraries on AmigaOS, at least up
6694       # to version 4, is to share data among multiple programs linked
6695       # with the same dynamic library.  Since this doesn't match the
6696       # behavior of shared libraries on other platforms, we can't use
6697       # them.
6698       ld_shlibs=no
6699       ;;
6700
6701     beos*)
6702       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6703         allow_undefined_flag=unsupported
6704         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6705         # support --undefined.  This deserves some investigation.  FIXME
6706         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6707       else
6708         ld_shlibs=no
6709       fi
6710       ;;
6711
6712     cygwin* | mingw* | pw32*)
6713       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6714       # as there is no search path for DLLs.
6715       hardcode_libdir_flag_spec='-L$libdir'
6716       allow_undefined_flag=unsupported
6717       always_export_symbols=no
6718       enable_shared_with_static_runtimes=yes
6719       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6720
6721       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6722         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6723         # If the export-symbols file already is a .def file (1st line
6724         # is EXPORTS), use it as is; otherwise, prepend...
6725         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6726           cp $export_symbols $output_objdir/$soname.def;
6727         else
6728           echo EXPORTS > $output_objdir/$soname.def;
6729           cat $export_symbols >> $output_objdir/$soname.def;
6730         fi~
6731         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6732       else
6733         ld_shlibs=no
6734       fi
6735       ;;
6736
6737     netbsd*)
6738       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6739         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6740         wlarc=
6741       else
6742         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6743         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6744       fi
6745       ;;
6746
6747     solaris* | sysv5*)
6748       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6749         ld_shlibs=no
6750         cat <<EOF 1>&2
6751
6752 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6753 *** create shared libraries on Solaris systems.  Therefore, libtool
6754 *** is disabling shared libraries support.  We urge you to upgrade GNU
6755 *** binutils to release 2.9.1 or newer.  Another option is to modify
6756 *** your PATH or compiler configuration so that the native linker is
6757 *** used, and then restart.
6758
6759 EOF
6760       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6761         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6762         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6763       else
6764         ld_shlibs=no
6765       fi
6766       ;;
6767
6768     sunos4*)
6769       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6770       wlarc=
6771       hardcode_direct=yes
6772       hardcode_shlibpath_var=no
6773       ;;
6774
6775     *)
6776       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6777         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6778         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6779       else
6780         ld_shlibs=no
6781       fi
6782       ;;
6783     esac
6784
6785     if test "$ld_shlibs" = yes; then
6786       runpath_var=LD_RUN_PATH
6787       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6788       export_dynamic_flag_spec='${wl}--export-dynamic'
6789       # ancient GNU ld didn't support --whole-archive et. al.
6790       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6791         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6792       else
6793         whole_archive_flag_spec=
6794       fi
6795     fi
6796   else
6797     # PORTME fill in a description of your system's linker (not GNU ld)
6798     case $host_os in
6799     aix3*)
6800       allow_undefined_flag=unsupported
6801       always_export_symbols=yes
6802       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'
6803       # Note: this linker hardcodes the directories in LIBPATH if there
6804       # are no directories specified by -L.
6805       hardcode_minus_L=yes
6806       if test "$GCC" = yes && test -z "$link_static_flag"; then
6807         # Neither direct hardcoding nor static linking is supported with a
6808         # broken collect2.
6809         hardcode_direct=unsupported
6810       fi
6811       ;;
6812
6813     aix4* | aix5*)
6814       if test "$host_cpu" = ia64; then
6815         # On IA64, the linker does run time linking by default, so we don't
6816         # have to do anything special.
6817         aix_use_runtimelinking=no
6818         exp_sym_flag='-Bexport'
6819         no_entry_flag=""
6820       else
6821         # If we're using GNU nm, then we don't want the "-C" option.
6822         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6823         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6824           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'
6825         else
6826           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'
6827         fi
6828         aix_use_runtimelinking=no
6829
6830         # Test if we are trying to use run time linking or normal
6831         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6832         # need to do runtime linking.
6833         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6834           for ld_flag in $LDFLAGS; do
6835           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6836             aix_use_runtimelinking=yes
6837             break
6838           fi
6839           done
6840         esac
6841
6842         exp_sym_flag='-bexport'
6843         no_entry_flag='-bnoentry'
6844       fi
6845
6846       # When large executables or shared objects are built, AIX ld can
6847       # have problems creating the table of contents.  If linking a library
6848       # or program results in "error TOC overflow" add -mminimal-toc to
6849       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6850       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6851
6852       archive_cmds=''
6853       hardcode_direct=yes
6854       hardcode_libdir_separator=':'
6855       link_all_deplibs=yes
6856
6857       if test "$GCC" = yes; then
6858         case $host_os in aix4.012|aix4.012.*)
6859         # We only want to do this on AIX 4.2 and lower, the check
6860         # below for broken collect2 doesn't work under 4.3+
6861           collect2name=`${CC} -print-prog-name=collect2`
6862           if test -f "$collect2name" && \
6863            strings "$collect2name" | grep resolve_lib_name >/dev/null
6864           then
6865           # We have reworked collect2
6866           hardcode_direct=yes
6867           else
6868           # We have old collect2
6869           hardcode_direct=unsupported
6870           # It fails to find uninstalled libraries when the uninstalled
6871           # path is not listed in the libpath.  Setting hardcode_minus_L
6872           # to unsupported forces relinking
6873           hardcode_minus_L=yes
6874           hardcode_libdir_flag_spec='-L$libdir'
6875           hardcode_libdir_separator=
6876           fi
6877         esac
6878         shared_flag='-shared'
6879       else
6880         # not using gcc
6881         if test "$host_cpu" = ia64; then
6882         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6883         # chokes on -Wl,-G. The following line is correct:
6884           shared_flag='-G'
6885         else
6886         if test "$aix_use_runtimelinking" = yes; then
6887             shared_flag='${wl}-G'
6888           else
6889             shared_flag='${wl}-bM:SRE'
6890         fi
6891         fi
6892       fi
6893
6894       # It seems that -bexpall does not export symbols beginning with
6895       # underscore (_), so it is better to generate a list of symbols to export.
6896       always_export_symbols=yes
6897       if test "$aix_use_runtimelinking" = yes; then
6898         # Warning - without using the other runtime loading flags (-brtl),
6899         # -berok will link without error, but may produce a broken library.
6900         allow_undefined_flag='-berok'
6901        # Determine the default libpath from the value encoded in an empty executable.
6902        cat >conftest.$ac_ext <<_ACEOF
6903 #line $LINENO "configure"
6904 /* confdefs.h.  */
6905 _ACEOF
6906 cat confdefs.h >>conftest.$ac_ext
6907 cat >>conftest.$ac_ext <<_ACEOF
6908 /* end confdefs.h.  */
6909
6910 int
6911 main ()
6912 {
6913
6914   ;
6915   return 0;
6916 }
6917 _ACEOF
6918 rm -f conftest.$ac_objext conftest$ac_exeext
6919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6920   (eval $ac_link) 2>&5
6921   ac_status=$?
6922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923   (exit $ac_status); } &&
6924          { ac_try='test -s conftest$ac_exeext'
6925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6926   (eval $ac_try) 2>&5
6927   ac_status=$?
6928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929   (exit $ac_status); }; }; then
6930
6931 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6932 }'`
6933 # Check for a 64-bit object if we didn't find anything.
6934 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; }
6935 }'`; fi
6936 else
6937   echo "$as_me: failed program was:" >&5
6938 sed 's/^/| /' conftest.$ac_ext >&5
6939
6940 fi
6941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6942 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6943
6944        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6945         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"
6946        else
6947         if test "$host_cpu" = ia64; then
6948           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6949           allow_undefined_flag="-z nodefs"
6950           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"
6951         else
6952          # Determine the default libpath from the value encoded in an empty executable.
6953          cat >conftest.$ac_ext <<_ACEOF
6954 #line $LINENO "configure"
6955 /* confdefs.h.  */
6956 _ACEOF
6957 cat confdefs.h >>conftest.$ac_ext
6958 cat >>conftest.$ac_ext <<_ACEOF
6959 /* end confdefs.h.  */
6960
6961 int
6962 main ()
6963 {
6964
6965   ;
6966   return 0;
6967 }
6968 _ACEOF
6969 rm -f conftest.$ac_objext conftest$ac_exeext
6970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6971   (eval $ac_link) 2>&5
6972   ac_status=$?
6973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974   (exit $ac_status); } &&
6975          { ac_try='test -s conftest$ac_exeext'
6976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977   (eval $ac_try) 2>&5
6978   ac_status=$?
6979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980   (exit $ac_status); }; }; then
6981
6982 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6983 }'`
6984 # Check for a 64-bit object if we didn't find anything.
6985 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; }
6986 }'`; fi
6987 else
6988   echo "$as_me: failed program was:" >&5
6989 sed 's/^/| /' conftest.$ac_ext >&5
6990
6991 fi
6992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6993 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6994
6995          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6996           # Warning - without using the other run time loading flags,
6997           # -berok will link without error, but may produce a broken library.
6998           no_undefined_flag=' ${wl}-bernotok'
6999           allow_undefined_flag=' ${wl}-berok'
7000           # -bexpall does not export symbols beginning with underscore (_)
7001           always_export_symbols=yes
7002           # Exported symbols can be pulled into shared objects from archives
7003           whole_archive_flag_spec=' '
7004           archive_cmds_need_lc=yes
7005           # This is similar to how AIX traditionally builds it's shared libraries.
7006           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'
7007         fi
7008       fi
7009       ;;
7010
7011     amigaos*)
7012       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)'
7013       hardcode_libdir_flag_spec='-L$libdir'
7014       hardcode_minus_L=yes
7015       # see comment about different semantics on the GNU ld section
7016       ld_shlibs=no
7017       ;;
7018
7019     bsdi4*)
7020       export_dynamic_flag_spec=-rdynamic
7021       ;;
7022
7023     cygwin* | mingw* | pw32*)
7024       # When not using gcc, we currently assume that we are using
7025       # Microsoft Visual C++.
7026       # hardcode_libdir_flag_spec is actually meaningless, as there is
7027       # no search path for DLLs.
7028       hardcode_libdir_flag_spec=' '
7029       allow_undefined_flag=unsupported
7030       # Tell ltmain to make .lib files, not .a files.
7031       libext=lib
7032       # Tell ltmain to make .dll files, not .so files.
7033       shrext=".dll"
7034       # FIXME: Setting linknames here is a bad hack.
7035       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7036       # The linker will automatically build a .lib file if we build a DLL.
7037       old_archive_From_new_cmds='true'
7038       # FIXME: Should let the user specify the lib program.
7039       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7040       fix_srcfile_path='`cygpath -w "$srcfile"`'
7041       enable_shared_with_static_runtimes=yes
7042       ;;
7043
7044     darwin* | rhapsody*)
7045     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7046       archive_cmds_need_lc=no
7047       case "$host_os" in
7048       rhapsody* | darwin1.[012])
7049         allow_undefined_flag='-undefined suppress'
7050         ;;
7051       *) # Darwin 1.3 on
7052         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7053         ;;
7054       esac
7055       # FIXME: Relying on posixy $() will cause problems for
7056       #        cross-compilation, but unfortunately the echo tests do not
7057       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7058       #        `"' quotes if we put them in here... so don't!
7059         lt_int_apple_cc_single_mod=no
7060         output_verbose_link_cmd='echo'
7061         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7062           lt_int_apple_cc_single_mod=yes
7063         fi
7064         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7065           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7066         else
7067         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'
7068       fi
7069       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7070       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7071         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7072           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}'
7073         else
7074           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}'
7075         fi
7076           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}'
7077       hardcode_direct=no
7078       hardcode_automatic=yes
7079       hardcode_shlibpath_var=unsupported
7080       whole_archive_flag_spec='-all_load $convenience'
7081       link_all_deplibs=yes
7082     fi
7083       ;;
7084
7085     dgux*)
7086       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7087       hardcode_libdir_flag_spec='-L$libdir'
7088       hardcode_shlibpath_var=no
7089       ;;
7090
7091     freebsd1*)
7092       ld_shlibs=no
7093       ;;
7094
7095     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7096     # support.  Future versions do this automatically, but an explicit c++rt0.o
7097     # does not break anything, and helps significantly (at the cost of a little
7098     # extra space).
7099     freebsd2.2*)
7100       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7101       hardcode_libdir_flag_spec='-R$libdir'
7102       hardcode_direct=yes
7103       hardcode_shlibpath_var=no
7104       ;;
7105
7106     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7107     freebsd2*)
7108       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7109       hardcode_direct=yes
7110       hardcode_minus_L=yes
7111       hardcode_shlibpath_var=no
7112       ;;
7113
7114     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7115     freebsd*)
7116       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7117       hardcode_libdir_flag_spec='-R$libdir'
7118       hardcode_direct=yes
7119       hardcode_shlibpath_var=no
7120       ;;
7121
7122     hpux9*)
7123       if test "$GCC" = yes; then
7124         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'
7125       else
7126         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'
7127       fi
7128       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7129       hardcode_libdir_separator=:
7130       hardcode_direct=yes
7131
7132       # hardcode_minus_L: Not really in the search PATH,
7133       # but as the default location of the library.
7134       hardcode_minus_L=yes
7135       export_dynamic_flag_spec='${wl}-E'
7136       ;;
7137
7138     hpux10* | hpux11*)
7139       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7140         case "$host_cpu" in
7141         hppa*64*|ia64*)
7142           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7143           ;;
7144         *)
7145           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7146           ;;
7147         esac
7148       else
7149         case "$host_cpu" in
7150         hppa*64*|ia64*)
7151           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7152           ;;
7153         *)
7154           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7155           ;;
7156         esac
7157       fi
7158       if test "$with_gnu_ld" = no; then
7159         case "$host_cpu" in
7160         hppa*64*)
7161           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7162           hardcode_libdir_flag_spec_ld='+b $libdir'
7163           hardcode_libdir_separator=:
7164           hardcode_direct=no
7165           hardcode_shlibpath_var=no
7166           ;;
7167         ia64*)
7168           hardcode_libdir_flag_spec='-L$libdir'
7169           hardcode_direct=no
7170           hardcode_shlibpath_var=no
7171
7172           # hardcode_minus_L: Not really in the search PATH,
7173           # but as the default location of the library.
7174           hardcode_minus_L=yes
7175           ;;
7176         *)
7177           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7178           hardcode_libdir_separator=:
7179           hardcode_direct=yes
7180           export_dynamic_flag_spec='${wl}-E'
7181
7182           # hardcode_minus_L: Not really in the search PATH,
7183           # but as the default location of the library.
7184           hardcode_minus_L=yes
7185           ;;
7186         esac
7187       fi
7188       ;;
7189
7190     irix5* | irix6* | nonstopux*)
7191       if test "$GCC" = yes; then
7192         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'
7193       else
7194         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'
7195         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7196       fi
7197       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7198       hardcode_libdir_separator=:
7199       link_all_deplibs=yes
7200       ;;
7201
7202     netbsd*)
7203       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7204         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7205       else
7206         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7207       fi
7208       hardcode_libdir_flag_spec='-R$libdir'
7209       hardcode_direct=yes
7210       hardcode_shlibpath_var=no
7211       ;;
7212
7213     newsos6)
7214       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7215       hardcode_direct=yes
7216       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7217       hardcode_libdir_separator=:
7218       hardcode_shlibpath_var=no
7219       ;;
7220
7221     openbsd*)
7222       hardcode_direct=yes
7223       hardcode_shlibpath_var=no
7224       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7225         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7226         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7227         export_dynamic_flag_spec='${wl}-E'
7228       else
7229        case $host_os in
7230          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7231            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7232            hardcode_libdir_flag_spec='-R$libdir'
7233            ;;
7234          *)
7235            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7236            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7237            ;;
7238        esac
7239       fi
7240       ;;
7241
7242     os2*)
7243       hardcode_libdir_flag_spec='-L$libdir'
7244       hardcode_minus_L=yes
7245       allow_undefined_flag=unsupported
7246       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'
7247       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7248       ;;
7249
7250     osf3*)
7251       if test "$GCC" = yes; then
7252         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7253         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'
7254       else
7255         allow_undefined_flag=' -expect_unresolved \*'
7256         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'
7257       fi
7258       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7259       hardcode_libdir_separator=:
7260       ;;
7261
7262     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7263       if test "$GCC" = yes; then
7264         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7265         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7266         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7267       else
7268         allow_undefined_flag=' -expect_unresolved \*'
7269         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'
7270         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7271         $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'
7272
7273         # Both c and cxx compiler support -rpath directly
7274         hardcode_libdir_flag_spec='-rpath $libdir'
7275       fi
7276       hardcode_libdir_separator=:
7277       ;;
7278
7279     sco3.2v5*)
7280       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7281       hardcode_shlibpath_var=no
7282       export_dynamic_flag_spec='${wl}-Bexport'
7283       runpath_var=LD_RUN_PATH
7284       hardcode_runpath_var=yes
7285       ;;
7286
7287     solaris*)
7288       no_undefined_flag=' -z text'
7289       if test "$GCC" = yes; then
7290         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7291         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7292           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7293       else
7294         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7295         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7296         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7297       fi
7298       hardcode_libdir_flag_spec='-R$libdir'
7299       hardcode_shlibpath_var=no
7300       case $host_os in
7301       solaris2.[0-5] | solaris2.[0-5].*) ;;
7302       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7303         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7304       esac
7305       link_all_deplibs=yes
7306       ;;
7307
7308     sunos4*)
7309       if test "x$host_vendor" = xsequent; then
7310         # Use $CC to link under sequent, because it throws in some extra .o
7311         # files that make .init and .fini sections work.
7312         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7313       else
7314         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7315       fi
7316       hardcode_libdir_flag_spec='-L$libdir'
7317       hardcode_direct=yes
7318       hardcode_minus_L=yes
7319       hardcode_shlibpath_var=no
7320       ;;
7321
7322     sysv4)
7323       case $host_vendor in
7324         sni)
7325           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7326           hardcode_direct=yes # is this really true???
7327         ;;
7328         siemens)
7329           ## LD is ld it makes a PLAMLIB
7330           ## CC just makes a GrossModule.
7331           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7332           reload_cmds='$CC -r -o $output$reload_objs'
7333           hardcode_direct=no
7334         ;;
7335         motorola)
7336           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7337           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7338         ;;
7339       esac
7340       runpath_var='LD_RUN_PATH'
7341       hardcode_shlibpath_var=no
7342       ;;
7343
7344     sysv4.3*)
7345       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7346       hardcode_shlibpath_var=no
7347       export_dynamic_flag_spec='-Bexport'
7348       ;;
7349
7350     sysv4*MP*)
7351       if test -d /usr/nec; then
7352         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7353         hardcode_shlibpath_var=no
7354         runpath_var=LD_RUN_PATH
7355         hardcode_runpath_var=yes
7356         ld_shlibs=yes
7357       fi
7358       ;;
7359
7360     sysv4.2uw2*)
7361       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7362       hardcode_direct=yes
7363       hardcode_minus_L=no
7364       hardcode_shlibpath_var=no
7365       hardcode_runpath_var=yes
7366       runpath_var=LD_RUN_PATH
7367       ;;
7368
7369    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7370       no_undefined_flag='${wl}-z ${wl}text'
7371       if test "$GCC" = yes; then
7372         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7373       else
7374         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7375       fi
7376       runpath_var='LD_RUN_PATH'
7377       hardcode_shlibpath_var=no
7378       ;;
7379
7380     sysv5*)
7381       no_undefined_flag=' -z text'
7382       # $CC -shared without GNU ld will not create a library from C++
7383       # object files and a static libstdc++, better avoid it by now
7384       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7385       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7386                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7387       hardcode_libdir_flag_spec=
7388       hardcode_shlibpath_var=no
7389       runpath_var='LD_RUN_PATH'
7390       ;;
7391
7392     uts4*)
7393       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7394       hardcode_libdir_flag_spec='-L$libdir'
7395       hardcode_shlibpath_var=no
7396       ;;
7397
7398     *)
7399       ld_shlibs=no
7400       ;;
7401     esac
7402   fi
7403
7404 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7405 echo "${ECHO_T}$ld_shlibs" >&6
7406 test "$ld_shlibs" = no && can_build_shared=no
7407
7408 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7409 if test "$GCC" = yes; then
7410   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7411 fi
7412
7413 #
7414 # Do we need to explicitly link libc?
7415 #
7416 case "x$archive_cmds_need_lc" in
7417 x|xyes)
7418   # Assume -lc should be added
7419   archive_cmds_need_lc=yes
7420
7421   if test "$enable_shared" = yes && test "$GCC" = yes; then
7422     case $archive_cmds in
7423     *'~'*)
7424       # FIXME: we may have to deal with multi-command sequences.
7425       ;;
7426     '$CC '*)
7427       # Test whether the compiler implicitly links with -lc since on some
7428       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7429       # to ld, don't add -lc before -lgcc.
7430       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7431 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7432       $rm conftest*
7433       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7434
7435       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7436   (eval $ac_compile) 2>&5
7437   ac_status=$?
7438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439   (exit $ac_status); } 2>conftest.err; then
7440         soname=conftest
7441         lib=conftest
7442         libobjs=conftest.$ac_objext
7443         deplibs=
7444         wl=$lt_prog_compiler_wl
7445         compiler_flags=-v
7446         linker_flags=-v
7447         verstring=
7448         output_objdir=.
7449         libname=conftest
7450         lt_save_allow_undefined_flag=$allow_undefined_flag
7451         allow_undefined_flag=
7452         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7453   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7454   ac_status=$?
7455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456   (exit $ac_status); }
7457         then
7458           archive_cmds_need_lc=no
7459         else
7460           archive_cmds_need_lc=yes
7461         fi
7462         allow_undefined_flag=$lt_save_allow_undefined_flag
7463       else
7464         cat conftest.err 1>&5
7465       fi
7466       $rm conftest*
7467       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7468 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7469       ;;
7470     esac
7471   fi
7472   ;;
7473 esac
7474
7475 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7476 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7477 hardcode_action=
7478 if test -n "$hardcode_libdir_flag_spec" || \
7479    test -n "$runpath_var " || \
7480    test "X$hardcode_automatic"="Xyes" ; then
7481
7482   # We can hardcode non-existant directories.
7483   if test "$hardcode_direct" != no &&
7484      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7485      # have to relink, otherwise we might link with an installed library
7486      # when we should be linking with a yet-to-be-installed one
7487      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7488      test "$hardcode_minus_L" != no; then
7489     # Linking always hardcodes the temporary library directory.
7490     hardcode_action=relink
7491   else
7492     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7493     hardcode_action=immediate
7494   fi
7495 else
7496   # We cannot hardcode anything, or else we can only hardcode existing
7497   # directories.
7498   hardcode_action=unsupported
7499 fi
7500 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7501 echo "${ECHO_T}$hardcode_action" >&6
7502
7503 if test "$hardcode_action" = relink; then
7504   # Fast installation is not supported
7505   enable_fast_install=no
7506 elif test "$shlibpath_overrides_runpath" = yes ||
7507      test "$enable_shared" = no; then
7508   # Fast installation is not necessary
7509   enable_fast_install=needless
7510 fi
7511
7512 striplib=
7513 old_striplib=
7514 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7515 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7516 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7517   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7518   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7519   echo "$as_me:$LINENO: result: yes" >&5
7520 echo "${ECHO_T}yes" >&6
7521 else
7522 # FIXME - insert some real tests, host_os isn't really good enough
7523   case $host_os in
7524    darwin*)
7525        if test -n "$STRIP" ; then
7526          striplib="$STRIP -x"
7527          echo "$as_me:$LINENO: result: yes" >&5
7528 echo "${ECHO_T}yes" >&6
7529        else
7530   echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6
7532 fi
7533        ;;
7534    *)
7535   echo "$as_me:$LINENO: result: no" >&5
7536 echo "${ECHO_T}no" >&6
7537     ;;
7538   esac
7539 fi
7540
7541 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7542 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7543 library_names_spec=
7544 libname_spec='lib$name'
7545 soname_spec=
7546 shrext=".so"
7547 postinstall_cmds=
7548 postuninstall_cmds=
7549 finish_cmds=
7550 finish_eval=
7551 shlibpath_var=
7552 shlibpath_overrides_runpath=unknown
7553 version_type=none
7554 dynamic_linker="$host_os ld.so"
7555 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7556 if test "$GCC" = yes; then
7557   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7558   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7559     # if the path contains ";" then we assume it to be the separator
7560     # otherwise default to the standard path separator (i.e. ":") - it is
7561     # assumed that no part of a normal pathname contains ";" but that should
7562     # okay in the real world where ";" in dirpaths is itself problematic.
7563     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7564   else
7565     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7566   fi
7567 else
7568   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7569 fi
7570 need_lib_prefix=unknown
7571 hardcode_into_libs=no
7572
7573 # when you set need_version to no, make sure it does not cause -set_version
7574 # flags to be left without arguments
7575 need_version=unknown
7576
7577 case $host_os in
7578 aix3*)
7579   version_type=linux
7580   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7581   shlibpath_var=LIBPATH
7582
7583   # AIX 3 has no versioning support, so we append a major version to the name.
7584   soname_spec='${libname}${release}${shared_ext}$major'
7585   ;;
7586
7587 aix4* | aix5*)
7588   version_type=linux
7589   need_lib_prefix=no
7590   need_version=no
7591   hardcode_into_libs=yes
7592   if test "$host_cpu" = ia64; then
7593     # AIX 5 supports IA64
7594     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7595     shlibpath_var=LD_LIBRARY_PATH
7596   else
7597     # With GCC up to 2.95.x, collect2 would create an import file
7598     # for dependence libraries.  The import file would start with
7599     # the line `#! .'.  This would cause the generated library to
7600     # depend on `.', always an invalid library.  This was fixed in
7601     # development snapshots of GCC prior to 3.0.
7602     case $host_os in
7603       aix4 | aix4.[01] | aix4.[01].*)
7604       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7605            echo ' yes '
7606            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7607         :
7608       else
7609         can_build_shared=no
7610       fi
7611       ;;
7612     esac
7613     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7614     # soname into executable. Probably we can add versioning support to
7615     # collect2, so additional links can be useful in future.
7616     if test "$aix_use_runtimelinking" = yes; then
7617       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7618       # instead of lib<name>.a to let people know that these are not
7619       # typical AIX shared libraries.
7620       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7621     else
7622       # We preserve .a as extension for shared libraries through AIX4.2
7623       # and later when we are not doing run time linking.
7624       library_names_spec='${libname}${release}.a $libname.a'
7625       soname_spec='${libname}${release}${shared_ext}$major'
7626     fi
7627     shlibpath_var=LIBPATH
7628   fi
7629   ;;
7630
7631 amigaos*)
7632   library_names_spec='$libname.ixlibrary $libname.a'
7633   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7634   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'
7635   ;;
7636
7637 beos*)
7638   library_names_spec='${libname}${shared_ext}'
7639   dynamic_linker="$host_os ld.so"
7640   shlibpath_var=LIBRARY_PATH
7641   ;;
7642
7643 bsdi4*)
7644   version_type=linux
7645   need_version=no
7646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7647   soname_spec='${libname}${release}${shared_ext}$major'
7648   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7649   shlibpath_var=LD_LIBRARY_PATH
7650   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7651   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7652   # the default ld.so.conf also contains /usr/contrib/lib and
7653   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7654   # libtool to hard-code these into programs
7655   ;;
7656
7657 cygwin* | mingw* | pw32*)
7658   version_type=windows
7659   shrext=".dll"
7660   need_version=no
7661   need_lib_prefix=no
7662
7663   case $GCC,$host_os in
7664   yes,cygwin* | yes,mingw* | yes,pw32*)
7665     library_names_spec='$libname.dll.a'
7666     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7667     postinstall_cmds='base_file=`basename \${file}`~
7668       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7669       dldir=$destdir/`dirname \$dlpath`~
7670       test -d \$dldir || mkdir -p \$dldir~
7671       $install_prog $dir/$dlname \$dldir/$dlname'
7672     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7673       dlpath=$dir/\$dldll~
7674        $rm \$dlpath'
7675     shlibpath_overrides_runpath=yes
7676
7677     case $host_os in
7678     cygwin*)
7679       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7680       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7681       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7682       ;;
7683     mingw*)
7684       # MinGW DLLs use traditional 'lib' prefix
7685       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7686       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7687       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7688         # It is most probably a Windows format PATH printed by
7689         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7690         # path with ; separators, and with drive letters. We can handle the
7691         # drive letters (cygwin fileutils understands them), so leave them,
7692         # especially as we might pass files found there to a mingw objdump,
7693         # which wouldn't understand a cygwinified path. Ahh.
7694         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7695       else
7696         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7697       fi
7698       ;;
7699     pw32*)
7700       # pw32 DLLs use 'pw' prefix rather than 'lib'
7701       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7702       ;;
7703     esac
7704     ;;
7705
7706   *)
7707     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7708     ;;
7709   esac
7710   dynamic_linker='Win32 ld.exe'
7711   # FIXME: first we should search . and the directory the executable is in
7712   shlibpath_var=PATH
7713   ;;
7714
7715 darwin* | rhapsody*)
7716   dynamic_linker="$host_os dyld"
7717   version_type=darwin
7718   need_lib_prefix=no
7719   need_version=no
7720   # FIXME: Relying on posixy $() will cause problems for
7721   #        cross-compilation, but unfortunately the echo tests do not
7722   #        yet detect zsh echo's removal of \ escapes.
7723   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7724   soname_spec='${libname}${release}${major}$shared_ext'
7725   shlibpath_overrides_runpath=yes
7726   shlibpath_var=DYLD_LIBRARY_PATH
7727   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7728   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7729   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7730   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"`
7731   fi
7732   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7733   ;;
7734
7735 dgux*)
7736   version_type=linux
7737   need_lib_prefix=no
7738   need_version=no
7739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7740   soname_spec='${libname}${release}${shared_ext}$major'
7741   shlibpath_var=LD_LIBRARY_PATH
7742   ;;
7743
7744 freebsd1*)
7745   dynamic_linker=no
7746   ;;
7747
7748 freebsd*)
7749   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7750   version_type=freebsd-$objformat
7751   case $version_type in
7752     freebsd-elf*)
7753       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7754       need_version=no
7755       need_lib_prefix=no
7756       ;;
7757     freebsd-*)
7758       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7759       need_version=yes
7760       ;;
7761   esac
7762   shlibpath_var=LD_LIBRARY_PATH
7763   case $host_os in
7764   freebsd2*)
7765     shlibpath_overrides_runpath=yes
7766     ;;
7767   freebsd3.01* | freebsdelf3.01*)
7768     shlibpath_overrides_runpath=yes
7769     hardcode_into_libs=yes
7770     ;;
7771   *) # from 3.2 on
7772     shlibpath_overrides_runpath=no
7773     hardcode_into_libs=yes
7774     ;;
7775   esac
7776   ;;
7777
7778 gnu*)
7779   version_type=linux
7780   need_lib_prefix=no
7781   need_version=no
7782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7783   soname_spec='${libname}${release}${shared_ext}$major'
7784   shlibpath_var=LD_LIBRARY_PATH
7785   hardcode_into_libs=yes
7786   ;;
7787
7788 hpux9* | hpux10* | hpux11*)
7789   # Give a soname corresponding to the major version so that dld.sl refuses to
7790   # link against other versions.
7791   version_type=sunos
7792   need_lib_prefix=no
7793   need_version=no
7794   case "$host_cpu" in
7795   ia64*)
7796     shrext='.so'
7797     hardcode_into_libs=yes
7798     dynamic_linker="$host_os dld.so"
7799     shlibpath_var=LD_LIBRARY_PATH
7800     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7801     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7802     soname_spec='${libname}${release}${shared_ext}$major'
7803     if test "X$HPUX_IA64_MODE" = X32; then
7804       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7805     else
7806       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7807     fi
7808     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7809     ;;
7810    hppa*64*)
7811      shrext='.sl'
7812      hardcode_into_libs=yes
7813      dynamic_linker="$host_os dld.sl"
7814      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7815      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7816      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7817      soname_spec='${libname}${release}${shared_ext}$major'
7818      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7819      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7820      ;;
7821    *)
7822     shrext='.sl'
7823     dynamic_linker="$host_os dld.sl"
7824     shlibpath_var=SHLIB_PATH
7825     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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     ;;
7829   esac
7830   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7831   postinstall_cmds='chmod 555 $lib'
7832   ;;
7833
7834 irix5* | irix6* | nonstopux*)
7835   case $host_os in
7836     nonstopux*) version_type=nonstopux ;;
7837     *)
7838         if test "$lt_cv_prog_gnu_ld" = yes; then
7839                 version_type=linux
7840         else
7841                 version_type=irix
7842         fi ;;
7843   esac
7844   need_lib_prefix=no
7845   need_version=no
7846   soname_spec='${libname}${release}${shared_ext}$major'
7847   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7848   case $host_os in
7849   irix5* | nonstopux*)
7850     libsuff= shlibsuff=
7851     ;;
7852   *)
7853     case $LD in # libtool.m4 will add one of these switches to LD
7854     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7855       libsuff= shlibsuff= libmagic=32-bit;;
7856     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7857       libsuff=32 shlibsuff=N32 libmagic=N32;;
7858     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7859       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7860     *) libsuff= shlibsuff= libmagic=never-match;;
7861     esac
7862     ;;
7863   esac
7864   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7865   shlibpath_overrides_runpath=no
7866   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7867   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7868   hardcode_into_libs=yes
7869   ;;
7870
7871 # No shared lib support for Linux oldld, aout, or coff.
7872 linux*oldld* | linux*aout* | linux*coff*)
7873   dynamic_linker=no
7874   ;;
7875
7876 # This must be Linux ELF.
7877 linux*)
7878   version_type=linux
7879   need_lib_prefix=no
7880   need_version=no
7881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7882   soname_spec='${libname}${release}${shared_ext}$major'
7883   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7884   shlibpath_var=LD_LIBRARY_PATH
7885   shlibpath_overrides_runpath=no
7886   # This implies no fast_install, which is unacceptable.
7887   # Some rework will be needed to allow for fast_install
7888   # before this can be enabled.
7889   hardcode_into_libs=yes
7890
7891   # We used to test for /lib/ld.so.1 and disable shared libraries on
7892   # powerpc, because MkLinux only supported shared libraries with the
7893   # GNU dynamic linker.  Since this was broken with cross compilers,
7894   # most powerpc-linux boxes support dynamic linking these days and
7895   # people can always --disable-shared, the test was removed, and we
7896   # assume the GNU/Linux dynamic linker is in use.
7897   dynamic_linker='GNU/Linux ld.so'
7898   ;;
7899
7900 netbsd*)
7901   version_type=sunos
7902   need_lib_prefix=no
7903   need_version=no
7904   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7905     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7906     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7907     dynamic_linker='NetBSD (a.out) ld.so'
7908   else
7909     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7910     soname_spec='${libname}${release}${shared_ext}$major'
7911     dynamic_linker='NetBSD ld.elf_so'
7912   fi
7913   shlibpath_var=LD_LIBRARY_PATH
7914   shlibpath_overrides_runpath=yes
7915   hardcode_into_libs=yes
7916   ;;
7917
7918 newsos6)
7919   version_type=linux
7920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7921   shlibpath_var=LD_LIBRARY_PATH
7922   shlibpath_overrides_runpath=yes
7923   ;;
7924
7925 nto-qnx)
7926   version_type=linux
7927   need_lib_prefix=no
7928   need_version=no
7929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7930   soname_spec='${libname}${release}${shared_ext}$major'
7931   shlibpath_var=LD_LIBRARY_PATH
7932   shlibpath_overrides_runpath=yes
7933   ;;
7934
7935 openbsd*)
7936   version_type=sunos
7937   need_lib_prefix=no
7938   need_version=no
7939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7940   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7941   shlibpath_var=LD_LIBRARY_PATH
7942   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7943     case $host_os in
7944       openbsd2.[89] | openbsd2.[89].*)
7945         shlibpath_overrides_runpath=no
7946         ;;
7947       *)
7948         shlibpath_overrides_runpath=yes
7949         ;;
7950       esac
7951   else
7952     shlibpath_overrides_runpath=yes
7953   fi
7954   ;;
7955
7956 os2*)
7957   libname_spec='$name'
7958   shrext=".dll"
7959   need_lib_prefix=no
7960   library_names_spec='$libname${shared_ext} $libname.a'
7961   dynamic_linker='OS/2 ld.exe'
7962   shlibpath_var=LIBPATH
7963   ;;
7964
7965 osf3* | osf4* | osf5*)
7966   version_type=osf
7967   need_lib_prefix=no
7968   need_version=no
7969   soname_spec='${libname}${release}${shared_ext}$major'
7970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7971   shlibpath_var=LD_LIBRARY_PATH
7972   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7973   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7974   ;;
7975
7976 sco3.2v5*)
7977   version_type=osf
7978   soname_spec='${libname}${release}${shared_ext}$major'
7979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7980   shlibpath_var=LD_LIBRARY_PATH
7981   ;;
7982
7983 solaris*)
7984   version_type=linux
7985   need_lib_prefix=no
7986   need_version=no
7987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7988   soname_spec='${libname}${release}${shared_ext}$major'
7989   shlibpath_var=LD_LIBRARY_PATH
7990   shlibpath_overrides_runpath=yes
7991   hardcode_into_libs=yes
7992   # ldd complains unless libraries are executable
7993   postinstall_cmds='chmod +x $lib'
7994   ;;
7995
7996 sunos4*)
7997   version_type=sunos
7998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7999   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8000   shlibpath_var=LD_LIBRARY_PATH
8001   shlibpath_overrides_runpath=yes
8002   if test "$with_gnu_ld" = yes; then
8003     need_lib_prefix=no
8004   fi
8005   need_version=yes
8006   ;;
8007
8008 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8009   version_type=linux
8010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8011   soname_spec='${libname}${release}${shared_ext}$major'
8012   shlibpath_var=LD_LIBRARY_PATH
8013   case $host_vendor in
8014     sni)
8015       shlibpath_overrides_runpath=no
8016       need_lib_prefix=no
8017       export_dynamic_flag_spec='${wl}-Blargedynsym'
8018       runpath_var=LD_RUN_PATH
8019       ;;
8020     siemens)
8021       need_lib_prefix=no
8022       ;;
8023     motorola)
8024       need_lib_prefix=no
8025       need_version=no
8026       shlibpath_overrides_runpath=no
8027       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8028       ;;
8029   esac
8030   ;;
8031
8032 sysv4*MP*)
8033   if test -d /usr/nec ;then
8034     version_type=linux
8035     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8036     soname_spec='$libname${shared_ext}.$major'
8037     shlibpath_var=LD_LIBRARY_PATH
8038   fi
8039   ;;
8040
8041 uts4*)
8042   version_type=linux
8043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8044   soname_spec='${libname}${release}${shared_ext}$major'
8045   shlibpath_var=LD_LIBRARY_PATH
8046   ;;
8047
8048 *)
8049   dynamic_linker=no
8050   ;;
8051 esac
8052 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8053 echo "${ECHO_T}$dynamic_linker" >&6
8054 test "$dynamic_linker" = no && can_build_shared=no
8055
8056 if test "x$enable_dlopen" != xyes; then
8057   enable_dlopen=unknown
8058   enable_dlopen_self=unknown
8059   enable_dlopen_self_static=unknown
8060 else
8061   lt_cv_dlopen=no
8062   lt_cv_dlopen_libs=
8063
8064   case $host_os in
8065   beos*)
8066     lt_cv_dlopen="load_add_on"
8067     lt_cv_dlopen_libs=
8068     lt_cv_dlopen_self=yes
8069     ;;
8070
8071   mingw* | pw32*)
8072     lt_cv_dlopen="LoadLibrary"
8073     lt_cv_dlopen_libs=
8074    ;;
8075
8076   cygwin*)
8077     lt_cv_dlopen="dlopen"
8078     lt_cv_dlopen_libs=
8079    ;;
8080
8081   darwin*)
8082   # if libdl is installed we need to link against it
8083     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8084 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8085 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8086   echo $ECHO_N "(cached) $ECHO_C" >&6
8087 else
8088   ac_check_lib_save_LIBS=$LIBS
8089 LIBS="-ldl  $LIBS"
8090 cat >conftest.$ac_ext <<_ACEOF
8091 #line $LINENO "configure"
8092 /* confdefs.h.  */
8093 _ACEOF
8094 cat confdefs.h >>conftest.$ac_ext
8095 cat >>conftest.$ac_ext <<_ACEOF
8096 /* end confdefs.h.  */
8097
8098 /* Override any gcc2 internal prototype to avoid an error.  */
8099 #ifdef __cplusplus
8100 extern "C"
8101 #endif
8102 /* We use char because int might match the return type of a gcc2
8103    builtin and then its argument prototype would still apply.  */
8104 char dlopen ();
8105 int
8106 main ()
8107 {
8108 dlopen ();
8109   ;
8110   return 0;
8111 }
8112 _ACEOF
8113 rm -f conftest.$ac_objext conftest$ac_exeext
8114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8115   (eval $ac_link) 2>&5
8116   ac_status=$?
8117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118   (exit $ac_status); } &&
8119          { ac_try='test -s conftest$ac_exeext'
8120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8121   (eval $ac_try) 2>&5
8122   ac_status=$?
8123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124   (exit $ac_status); }; }; then
8125   ac_cv_lib_dl_dlopen=yes
8126 else
8127   echo "$as_me: failed program was:" >&5
8128 sed 's/^/| /' conftest.$ac_ext >&5
8129
8130 ac_cv_lib_dl_dlopen=no
8131 fi
8132 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8133 LIBS=$ac_check_lib_save_LIBS
8134 fi
8135 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8136 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8137 if test $ac_cv_lib_dl_dlopen = yes; then
8138   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8139 else
8140
8141     lt_cv_dlopen="dyld"
8142     lt_cv_dlopen_libs=
8143     lt_cv_dlopen_self=yes
8144
8145 fi
8146
8147    ;;
8148
8149   *)
8150     echo "$as_me:$LINENO: checking for shl_load" >&5
8151 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8152 if test "${ac_cv_func_shl_load+set}" = set; then
8153   echo $ECHO_N "(cached) $ECHO_C" >&6
8154 else
8155   cat >conftest.$ac_ext <<_ACEOF
8156 #line $LINENO "configure"
8157 /* confdefs.h.  */
8158 _ACEOF
8159 cat confdefs.h >>conftest.$ac_ext
8160 cat >>conftest.$ac_ext <<_ACEOF
8161 /* end confdefs.h.  */
8162 /* System header to define __stub macros and hopefully few prototypes,
8163     which can conflict with char shl_load (); below.
8164     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8165     <limits.h> exists even on freestanding compilers.  */
8166 #ifdef __STDC__
8167 # include <limits.h>
8168 #else
8169 # include <assert.h>
8170 #endif
8171 /* Override any gcc2 internal prototype to avoid an error.  */
8172 #ifdef __cplusplus
8173 extern "C"
8174 {
8175 #endif
8176 /* We use char because int might match the return type of a gcc2
8177    builtin and then its argument prototype would still apply.  */
8178 char shl_load ();
8179 /* The GNU C library defines this for functions which it implements
8180     to always fail with ENOSYS.  Some functions are actually named
8181     something starting with __ and the normal name is an alias.  */
8182 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8183 choke me
8184 #else
8185 char (*f) () = shl_load;
8186 #endif
8187 #ifdef __cplusplus
8188 }
8189 #endif
8190
8191 int
8192 main ()
8193 {
8194 return f != shl_load;
8195   ;
8196   return 0;
8197 }
8198 _ACEOF
8199 rm -f conftest.$ac_objext conftest$ac_exeext
8200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8201   (eval $ac_link) 2>&5
8202   ac_status=$?
8203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204   (exit $ac_status); } &&
8205          { ac_try='test -s conftest$ac_exeext'
8206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8207   (eval $ac_try) 2>&5
8208   ac_status=$?
8209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210   (exit $ac_status); }; }; then
8211   ac_cv_func_shl_load=yes
8212 else
8213   echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.$ac_ext >&5
8215
8216 ac_cv_func_shl_load=no
8217 fi
8218 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8219 fi
8220 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8221 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8222 if test $ac_cv_func_shl_load = yes; then
8223   lt_cv_dlopen="shl_load"
8224 else
8225   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8226 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8227 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8228   echo $ECHO_N "(cached) $ECHO_C" >&6
8229 else
8230   ac_check_lib_save_LIBS=$LIBS
8231 LIBS="-ldld  $LIBS"
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
8240 /* Override any gcc2 internal prototype to avoid an error.  */
8241 #ifdef __cplusplus
8242 extern "C"
8243 #endif
8244 /* We use char because int might match the return type of a gcc2
8245    builtin and then its argument prototype would still apply.  */
8246 char shl_load ();
8247 int
8248 main ()
8249 {
8250 shl_load ();
8251   ;
8252   return 0;
8253 }
8254 _ACEOF
8255 rm -f conftest.$ac_objext conftest$ac_exeext
8256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8257   (eval $ac_link) 2>&5
8258   ac_status=$?
8259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260   (exit $ac_status); } &&
8261          { ac_try='test -s conftest$ac_exeext'
8262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8263   (eval $ac_try) 2>&5
8264   ac_status=$?
8265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266   (exit $ac_status); }; }; then
8267   ac_cv_lib_dld_shl_load=yes
8268 else
8269   echo "$as_me: failed program was:" >&5
8270 sed 's/^/| /' conftest.$ac_ext >&5
8271
8272 ac_cv_lib_dld_shl_load=no
8273 fi
8274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8275 LIBS=$ac_check_lib_save_LIBS
8276 fi
8277 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8278 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8279 if test $ac_cv_lib_dld_shl_load = yes; then
8280   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8281 else
8282   echo "$as_me:$LINENO: checking for dlopen" >&5
8283 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8284 if test "${ac_cv_func_dlopen+set}" = set; then
8285   echo $ECHO_N "(cached) $ECHO_C" >&6
8286 else
8287   cat >conftest.$ac_ext <<_ACEOF
8288 #line $LINENO "configure"
8289 /* confdefs.h.  */
8290 _ACEOF
8291 cat confdefs.h >>conftest.$ac_ext
8292 cat >>conftest.$ac_ext <<_ACEOF
8293 /* end confdefs.h.  */
8294 /* System header to define __stub macros and hopefully few prototypes,
8295     which can conflict with char dlopen (); below.
8296     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8297     <limits.h> exists even on freestanding compilers.  */
8298 #ifdef __STDC__
8299 # include <limits.h>
8300 #else
8301 # include <assert.h>
8302 #endif
8303 /* Override any gcc2 internal prototype to avoid an error.  */
8304 #ifdef __cplusplus
8305 extern "C"
8306 {
8307 #endif
8308 /* We use char because int might match the return type of a gcc2
8309    builtin and then its argument prototype would still apply.  */
8310 char dlopen ();
8311 /* The GNU C library defines this for functions which it implements
8312     to always fail with ENOSYS.  Some functions are actually named
8313     something starting with __ and the normal name is an alias.  */
8314 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8315 choke me
8316 #else
8317 char (*f) () = dlopen;
8318 #endif
8319 #ifdef __cplusplus
8320 }
8321 #endif
8322
8323 int
8324 main ()
8325 {
8326 return f != dlopen;
8327   ;
8328   return 0;
8329 }
8330 _ACEOF
8331 rm -f conftest.$ac_objext conftest$ac_exeext
8332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8333   (eval $ac_link) 2>&5
8334   ac_status=$?
8335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336   (exit $ac_status); } &&
8337          { ac_try='test -s conftest$ac_exeext'
8338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8339   (eval $ac_try) 2>&5
8340   ac_status=$?
8341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342   (exit $ac_status); }; }; then
8343   ac_cv_func_dlopen=yes
8344 else
8345   echo "$as_me: failed program was:" >&5
8346 sed 's/^/| /' conftest.$ac_ext >&5
8347
8348 ac_cv_func_dlopen=no
8349 fi
8350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8351 fi
8352 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8353 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8354 if test $ac_cv_func_dlopen = yes; then
8355   lt_cv_dlopen="dlopen"
8356 else
8357   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8358 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8359 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8360   echo $ECHO_N "(cached) $ECHO_C" >&6
8361 else
8362   ac_check_lib_save_LIBS=$LIBS
8363 LIBS="-ldl  $LIBS"
8364 cat >conftest.$ac_ext <<_ACEOF
8365 #line $LINENO "configure"
8366 /* confdefs.h.  */
8367 _ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h.  */
8371
8372 /* Override any gcc2 internal prototype to avoid an error.  */
8373 #ifdef __cplusplus
8374 extern "C"
8375 #endif
8376 /* We use char because int might match the return type of a gcc2
8377    builtin and then its argument prototype would still apply.  */
8378 char dlopen ();
8379 int
8380 main ()
8381 {
8382 dlopen ();
8383   ;
8384   return 0;
8385 }
8386 _ACEOF
8387 rm -f conftest.$ac_objext conftest$ac_exeext
8388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8389   (eval $ac_link) 2>&5
8390   ac_status=$?
8391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392   (exit $ac_status); } &&
8393          { ac_try='test -s conftest$ac_exeext'
8394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395   (eval $ac_try) 2>&5
8396   ac_status=$?
8397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398   (exit $ac_status); }; }; then
8399   ac_cv_lib_dl_dlopen=yes
8400 else
8401   echo "$as_me: failed program was:" >&5
8402 sed 's/^/| /' conftest.$ac_ext >&5
8403
8404 ac_cv_lib_dl_dlopen=no
8405 fi
8406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8407 LIBS=$ac_check_lib_save_LIBS
8408 fi
8409 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8410 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8411 if test $ac_cv_lib_dl_dlopen = yes; then
8412   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8413 else
8414   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8415 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8416 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8417   echo $ECHO_N "(cached) $ECHO_C" >&6
8418 else
8419   ac_check_lib_save_LIBS=$LIBS
8420 LIBS="-lsvld  $LIBS"
8421 cat >conftest.$ac_ext <<_ACEOF
8422 #line $LINENO "configure"
8423 /* confdefs.h.  */
8424 _ACEOF
8425 cat confdefs.h >>conftest.$ac_ext
8426 cat >>conftest.$ac_ext <<_ACEOF
8427 /* end confdefs.h.  */
8428
8429 /* Override any gcc2 internal prototype to avoid an error.  */
8430 #ifdef __cplusplus
8431 extern "C"
8432 #endif
8433 /* We use char because int might match the return type of a gcc2
8434    builtin and then its argument prototype would still apply.  */
8435 char dlopen ();
8436 int
8437 main ()
8438 {
8439 dlopen ();
8440   ;
8441   return 0;
8442 }
8443 _ACEOF
8444 rm -f conftest.$ac_objext conftest$ac_exeext
8445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8446   (eval $ac_link) 2>&5
8447   ac_status=$?
8448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449   (exit $ac_status); } &&
8450          { ac_try='test -s conftest$ac_exeext'
8451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452   (eval $ac_try) 2>&5
8453   ac_status=$?
8454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455   (exit $ac_status); }; }; then
8456   ac_cv_lib_svld_dlopen=yes
8457 else
8458   echo "$as_me: failed program was:" >&5
8459 sed 's/^/| /' conftest.$ac_ext >&5
8460
8461 ac_cv_lib_svld_dlopen=no
8462 fi
8463 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8464 LIBS=$ac_check_lib_save_LIBS
8465 fi
8466 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8467 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8468 if test $ac_cv_lib_svld_dlopen = yes; then
8469   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8470 else
8471   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8472 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8473 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8474   echo $ECHO_N "(cached) $ECHO_C" >&6
8475 else
8476   ac_check_lib_save_LIBS=$LIBS
8477 LIBS="-ldld  $LIBS"
8478 cat >conftest.$ac_ext <<_ACEOF
8479 #line $LINENO "configure"
8480 /* confdefs.h.  */
8481 _ACEOF
8482 cat confdefs.h >>conftest.$ac_ext
8483 cat >>conftest.$ac_ext <<_ACEOF
8484 /* end confdefs.h.  */
8485
8486 /* Override any gcc2 internal prototype to avoid an error.  */
8487 #ifdef __cplusplus
8488 extern "C"
8489 #endif
8490 /* We use char because int might match the return type of a gcc2
8491    builtin and then its argument prototype would still apply.  */
8492 char dld_link ();
8493 int
8494 main ()
8495 {
8496 dld_link ();
8497   ;
8498   return 0;
8499 }
8500 _ACEOF
8501 rm -f conftest.$ac_objext conftest$ac_exeext
8502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8503   (eval $ac_link) 2>&5
8504   ac_status=$?
8505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506   (exit $ac_status); } &&
8507          { ac_try='test -s conftest$ac_exeext'
8508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509   (eval $ac_try) 2>&5
8510   ac_status=$?
8511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512   (exit $ac_status); }; }; then
8513   ac_cv_lib_dld_dld_link=yes
8514 else
8515   echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8517
8518 ac_cv_lib_dld_dld_link=no
8519 fi
8520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8521 LIBS=$ac_check_lib_save_LIBS
8522 fi
8523 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8524 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8525 if test $ac_cv_lib_dld_dld_link = yes; then
8526   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8527 fi
8528
8529
8530 fi
8531
8532
8533 fi
8534
8535
8536 fi
8537
8538
8539 fi
8540
8541
8542 fi
8543
8544     ;;
8545   esac
8546
8547   if test "x$lt_cv_dlopen" != xno; then
8548     enable_dlopen=yes
8549   else
8550     enable_dlopen=no
8551   fi
8552
8553   case $lt_cv_dlopen in
8554   dlopen)
8555     save_CPPFLAGS="$CPPFLAGS"
8556     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8557
8558     save_LDFLAGS="$LDFLAGS"
8559     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8560
8561     save_LIBS="$LIBS"
8562     LIBS="$lt_cv_dlopen_libs $LIBS"
8563
8564     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8565 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8566 if test "${lt_cv_dlopen_self+set}" = set; then
8567   echo $ECHO_N "(cached) $ECHO_C" >&6
8568 else
8569           if test "$cross_compiling" = yes; then :
8570   lt_cv_dlopen_self=cross
8571 else
8572   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8573   lt_status=$lt_dlunknown
8574   cat > conftest.$ac_ext <<EOF
8575 #line 8575 "configure"
8576 #include "confdefs.h"
8577
8578 #if HAVE_DLFCN_H
8579 #include <dlfcn.h>
8580 #endif
8581
8582 #include <stdio.h>
8583
8584 #ifdef RTLD_GLOBAL
8585 #  define LT_DLGLOBAL           RTLD_GLOBAL
8586 #else
8587 #  ifdef DL_GLOBAL
8588 #    define LT_DLGLOBAL         DL_GLOBAL
8589 #  else
8590 #    define LT_DLGLOBAL         0
8591 #  endif
8592 #endif
8593
8594 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8595    find out it does not work in some platform. */
8596 #ifndef LT_DLLAZY_OR_NOW
8597 #  ifdef RTLD_LAZY
8598 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8599 #  else
8600 #    ifdef DL_LAZY
8601 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8602 #    else
8603 #      ifdef RTLD_NOW
8604 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8605 #      else
8606 #        ifdef DL_NOW
8607 #          define LT_DLLAZY_OR_NOW      DL_NOW
8608 #        else
8609 #          define LT_DLLAZY_OR_NOW      0
8610 #        endif
8611 #      endif
8612 #    endif
8613 #  endif
8614 #endif
8615
8616 #ifdef __cplusplus
8617 extern "C" void exit (int);
8618 #endif
8619
8620 void fnord() { int i=42;}
8621 int main ()
8622 {
8623   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8624   int status = $lt_dlunknown;
8625
8626   if (self)
8627     {
8628       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8629       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8630       /* dlclose (self); */
8631     }
8632
8633     exit (status);
8634 }
8635 EOF
8636   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8637   (eval $ac_link) 2>&5
8638   ac_status=$?
8639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8641     (./conftest; exit; ) 2>/dev/null
8642     lt_status=$?
8643     case x$lt_status in
8644       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8645       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8646       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8647     esac
8648   else :
8649     # compilation failed
8650     lt_cv_dlopen_self=no
8651   fi
8652 fi
8653 rm -fr conftest*
8654
8655
8656 fi
8657 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8658 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8659
8660     if test "x$lt_cv_dlopen_self" = xyes; then
8661       LDFLAGS="$LDFLAGS $link_static_flag"
8662       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8663 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8664 if test "${lt_cv_dlopen_self_static+set}" = set; then
8665   echo $ECHO_N "(cached) $ECHO_C" >&6
8666 else
8667           if test "$cross_compiling" = yes; then :
8668   lt_cv_dlopen_self_static=cross
8669 else
8670   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8671   lt_status=$lt_dlunknown
8672   cat > conftest.$ac_ext <<EOF
8673 #line 8673 "configure"
8674 #include "confdefs.h"
8675
8676 #if HAVE_DLFCN_H
8677 #include <dlfcn.h>
8678 #endif
8679
8680 #include <stdio.h>
8681
8682 #ifdef RTLD_GLOBAL
8683 #  define LT_DLGLOBAL           RTLD_GLOBAL
8684 #else
8685 #  ifdef DL_GLOBAL
8686 #    define LT_DLGLOBAL         DL_GLOBAL
8687 #  else
8688 #    define LT_DLGLOBAL         0
8689 #  endif
8690 #endif
8691
8692 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8693    find out it does not work in some platform. */
8694 #ifndef LT_DLLAZY_OR_NOW
8695 #  ifdef RTLD_LAZY
8696 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8697 #  else
8698 #    ifdef DL_LAZY
8699 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8700 #    else
8701 #      ifdef RTLD_NOW
8702 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8703 #      else
8704 #        ifdef DL_NOW
8705 #          define LT_DLLAZY_OR_NOW      DL_NOW
8706 #        else
8707 #          define LT_DLLAZY_OR_NOW      0
8708 #        endif
8709 #      endif
8710 #    endif
8711 #  endif
8712 #endif
8713
8714 #ifdef __cplusplus
8715 extern "C" void exit (int);
8716 #endif
8717
8718 void fnord() { int i=42;}
8719 int main ()
8720 {
8721   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8722   int status = $lt_dlunknown;
8723
8724   if (self)
8725     {
8726       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8727       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8728       /* dlclose (self); */
8729     }
8730
8731     exit (status);
8732 }
8733 EOF
8734   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8735   (eval $ac_link) 2>&5
8736   ac_status=$?
8737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8739     (./conftest; exit; ) 2>/dev/null
8740     lt_status=$?
8741     case x$lt_status in
8742       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8743       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8744       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8745     esac
8746   else :
8747     # compilation failed
8748     lt_cv_dlopen_self_static=no
8749   fi
8750 fi
8751 rm -fr conftest*
8752
8753
8754 fi
8755 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8756 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8757     fi
8758
8759     CPPFLAGS="$save_CPPFLAGS"
8760     LDFLAGS="$save_LDFLAGS"
8761     LIBS="$save_LIBS"
8762     ;;
8763   esac
8764
8765   case $lt_cv_dlopen_self in
8766   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8767   *) enable_dlopen_self=unknown ;;
8768   esac
8769
8770   case $lt_cv_dlopen_self_static in
8771   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8772   *) enable_dlopen_self_static=unknown ;;
8773   esac
8774 fi
8775
8776
8777 # Report which librarie types wil actually be built
8778 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8779 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8780 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8781 echo "${ECHO_T}$can_build_shared" >&6
8782
8783 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8784 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8785 test "$can_build_shared" = "no" && enable_shared=no
8786
8787 # On AIX, shared libraries and static libraries use the same namespace, and
8788 # are all built from PIC.
8789 case "$host_os" in
8790 aix3*)
8791   test "$enable_shared" = yes && enable_static=no
8792   if test -n "$RANLIB"; then
8793     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8794     postinstall_cmds='$RANLIB $lib'
8795   fi
8796   ;;
8797
8798 aix4*)
8799   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8800     test "$enable_shared" = yes && enable_static=no
8801   fi
8802   ;;
8803   darwin* | rhapsody*)
8804   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8805     archive_cmds_need_lc=no
8806     case "$host_os" in
8807     rhapsody* | darwin1.[012])
8808       allow_undefined_flag='-undefined suppress'
8809       ;;
8810     *) # Darwin 1.3 on
8811       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8812       ;;
8813     esac
8814     # FIXME: Relying on posixy $() will cause problems for
8815     #        cross-compilation, but unfortunately the echo tests do not
8816     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8817     #          `"' quotes if we put them in here... so don't!
8818                 output_verbose_link_cmd='echo'
8819     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8820     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8821     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8822                   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}'
8823                   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}'
8824     hardcode_direct=no
8825     hardcode_automatic=yes
8826     hardcode_shlibpath_var=unsupported
8827     whole_archive_flag_spec='-all_load $convenience'
8828     link_all_deplibs=yes
8829     fi
8830     ;;
8831 esac
8832 echo "$as_me:$LINENO: result: $enable_shared" >&5
8833 echo "${ECHO_T}$enable_shared" >&6
8834
8835 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8836 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8837 # Make sure either enable_shared or enable_static is yes.
8838 test "$enable_shared" = yes || enable_static=yes
8839 echo "$as_me:$LINENO: result: $enable_static" >&5
8840 echo "${ECHO_T}$enable_static" >&6
8841
8842 # The else clause should only fire when bootstrapping the
8843 # libtool distribution, otherwise you forgot to ship ltmain.sh
8844 # with your package, and you will get complaints that there are
8845 # no rules to generate ltmain.sh.
8846 if test -f "$ltmain"; then
8847   # See if we are running on zsh, and set the options which allow our commands through
8848   # without removal of \ escapes.
8849   if test -n "${ZSH_VERSION+set}" ; then
8850     setopt NO_GLOB_SUBST
8851   fi
8852   # Now quote all the things that may contain metacharacters while being
8853   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8854   # variables and quote the copies for generation of the libtool script.
8855   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8856     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8857     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8858     deplibs_check_method reload_flag reload_cmds need_locks \
8859     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8860     lt_cv_sys_global_symbol_to_c_name_address \
8861     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8862     old_postinstall_cmds old_postuninstall_cmds \
8863     compiler \
8864     CC \
8865     LD \
8866     lt_prog_compiler_wl \
8867     lt_prog_compiler_pic \
8868     lt_prog_compiler_static \
8869     lt_prog_compiler_no_builtin_flag \
8870     export_dynamic_flag_spec \
8871     thread_safe_flag_spec \
8872     whole_archive_flag_spec \
8873     enable_shared_with_static_runtimes \
8874     old_archive_cmds \
8875     old_archive_from_new_cmds \
8876     predep_objects \
8877     postdep_objects \
8878     predeps \
8879     postdeps \
8880     compiler_lib_search_path \
8881     archive_cmds \
8882     archive_expsym_cmds \
8883     postinstall_cmds \
8884     postuninstall_cmds \
8885     old_archive_from_expsyms_cmds \
8886     allow_undefined_flag \
8887     no_undefined_flag \
8888     export_symbols_cmds \
8889     hardcode_libdir_flag_spec \
8890     hardcode_libdir_flag_spec_ld \
8891     hardcode_libdir_separator \
8892     hardcode_automatic \
8893     module_cmds \
8894     module_expsym_cmds \
8895     lt_cv_prog_compiler_c_o \
8896     exclude_expsyms \
8897     include_expsyms; do
8898
8899     case $var in
8900     old_archive_cmds | \
8901     old_archive_from_new_cmds | \
8902     archive_cmds | \
8903     archive_expsym_cmds | \
8904     module_cmds | \
8905     module_expsym_cmds | \
8906     old_archive_from_expsyms_cmds | \
8907     export_symbols_cmds | \
8908     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8909     postinstall_cmds | postuninstall_cmds | \
8910     old_postinstall_cmds | old_postuninstall_cmds | \
8911     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8912       # Double-quote double-evaled strings.
8913       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8914       ;;
8915     *)
8916       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8917       ;;
8918     esac
8919   done
8920
8921   case $lt_echo in
8922   *'\$0 --fallback-echo"')
8923     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8924     ;;
8925   esac
8926
8927 cfgfile="${ofile}T"
8928   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8929   $rm -f "$cfgfile"
8930   { echo "$as_me:$LINENO: creating $ofile" >&5
8931 echo "$as_me: creating $ofile" >&6;}
8932
8933   cat <<__EOF__ >> "$cfgfile"
8934 #! $SHELL
8935
8936 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8937 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8938 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8939 #
8940 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8941 # Free Software Foundation, Inc.
8942 #
8943 # This file is part of GNU Libtool:
8944 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8945 #
8946 # This program is free software; you can redistribute it and/or modify
8947 # it under the terms of the GNU General Public License as published by
8948 # the Free Software Foundation; either version 2 of the License, or
8949 # (at your option) any later version.
8950 #
8951 # This program is distributed in the hope that it will be useful, but
8952 # WITHOUT ANY WARRANTY; without even the implied warranty of
8953 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8954 # General Public License for more details.
8955 #
8956 # You should have received a copy of the GNU General Public License
8957 # along with this program; if not, write to the Free Software
8958 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8959 #
8960 # As a special exception to the GNU General Public License, if you
8961 # distribute this file as part of a program that contains a
8962 # configuration script generated by Autoconf, you may include it under
8963 # the same distribution terms that you use for the rest of that program.
8964
8965 # A sed program that does not truncate output.
8966 SED=$lt_SED
8967
8968 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8969 Xsed="$SED -e s/^X//"
8970
8971 # The HP-UX ksh and POSIX shell print the target directory to stdout
8972 # if CDPATH is set.
8973 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8974
8975 # The names of the tagged configurations supported by this script.
8976 available_tags=
8977
8978 # ### BEGIN LIBTOOL CONFIG
8979
8980 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8981
8982 # Shell to use when invoking shell scripts.
8983 SHELL=$lt_SHELL
8984
8985 # Whether or not to build shared libraries.
8986 build_libtool_libs=$enable_shared
8987
8988 # Whether or not to build static libraries.
8989 build_old_libs=$enable_static
8990
8991 # Whether or not to add -lc for building shared libraries.
8992 build_libtool_need_lc=$archive_cmds_need_lc
8993
8994 # Whether or not to disallow shared libs when runtime libs are static
8995 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8996
8997 # Whether or not to optimize for fast installation.
8998 fast_install=$enable_fast_install
8999
9000 # The host system.
9001 host_alias=$host_alias
9002 host=$host
9003
9004 # An echo program that does not interpret backslashes.
9005 echo=$lt_echo
9006
9007 # The archiver.
9008 AR=$lt_AR
9009 AR_FLAGS=$lt_AR_FLAGS
9010
9011 # A C compiler.
9012 LTCC=$lt_LTCC
9013
9014 # A language-specific compiler.
9015 CC=$lt_compiler
9016
9017 # Is the compiler the GNU C compiler?
9018 with_gcc=$GCC
9019
9020 # An ERE matcher.
9021 EGREP=$lt_EGREP
9022
9023 # The linker used to build libraries.
9024 LD=$lt_LD
9025
9026 # Whether we need hard or soft links.
9027 LN_S=$lt_LN_S
9028
9029 # A BSD-compatible nm program.
9030 NM=$lt_NM
9031
9032 # A symbol stripping program
9033 STRIP=$STRIP
9034
9035 # Used to examine libraries when file_magic_cmd begins "file"
9036 MAGIC_CMD=$MAGIC_CMD
9037
9038 # Used on cygwin: DLL creation program.
9039 DLLTOOL="$DLLTOOL"
9040
9041 # Used on cygwin: object dumper.
9042 OBJDUMP="$OBJDUMP"
9043
9044 # Used on cygwin: assembler.
9045 AS="$AS"
9046
9047 # The name of the directory that contains temporary libtool files.
9048 objdir=$objdir
9049
9050 # How to create reloadable object files.
9051 reload_flag=$lt_reload_flag
9052 reload_cmds=$lt_reload_cmds
9053
9054 # How to pass a linker flag through the compiler.
9055 wl=$lt_lt_prog_compiler_wl
9056
9057 # Object file suffix (normally "o").
9058 objext="$ac_objext"
9059
9060 # Old archive suffix (normally "a").
9061 libext="$libext"
9062
9063 # Shared library suffix (normally ".so").
9064 shrext='$shrext'
9065
9066 # Executable file suffix (normally "").
9067 exeext="$exeext"
9068
9069 # Additional compiler flags for building library objects.
9070 pic_flag=$lt_lt_prog_compiler_pic
9071 pic_mode=$pic_mode
9072
9073 # What is the maximum length of a command?
9074 max_cmd_len=$lt_cv_sys_max_cmd_len
9075
9076 # Does compiler simultaneously support -c and -o options?
9077 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9078
9079 # Must we lock files when doing compilation ?
9080 need_locks=$lt_need_locks
9081
9082 # Do we need the lib prefix for modules?
9083 need_lib_prefix=$need_lib_prefix
9084
9085 # Do we need a version for libraries?
9086 need_version=$need_version
9087
9088 # Whether dlopen is supported.
9089 dlopen_support=$enable_dlopen
9090
9091 # Whether dlopen of programs is supported.
9092 dlopen_self=$enable_dlopen_self
9093
9094 # Whether dlopen of statically linked programs is supported.
9095 dlopen_self_static=$enable_dlopen_self_static
9096
9097 # Compiler flag to prevent dynamic linking.
9098 link_static_flag=$lt_lt_prog_compiler_static
9099
9100 # Compiler flag to turn off builtin functions.
9101 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9102
9103 # Compiler flag to allow reflexive dlopens.
9104 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9105
9106 # Compiler flag to generate shared objects directly from archives.
9107 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9108
9109 # Compiler flag to generate thread-safe objects.
9110 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9111
9112 # Library versioning type.
9113 version_type=$version_type
9114
9115 # Format of library name prefix.
9116 libname_spec=$lt_libname_spec
9117
9118 # List of archive names.  First name is the real one, the rest are links.
9119 # The last name is the one that the linker finds with -lNAME.
9120 library_names_spec=$lt_library_names_spec
9121
9122 # The coded name of the library, if different from the real name.
9123 soname_spec=$lt_soname_spec
9124
9125 # Commands used to build and install an old-style archive.
9126 RANLIB=$lt_RANLIB
9127 old_archive_cmds=$lt_old_archive_cmds
9128 old_postinstall_cmds=$lt_old_postinstall_cmds
9129 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9130
9131 # Create an old-style archive from a shared archive.
9132 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9133
9134 # Create a temporary old-style archive to link instead of a shared archive.
9135 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9136
9137 # Commands used to build and install a shared archive.
9138 archive_cmds=$lt_archive_cmds
9139 archive_expsym_cmds=$lt_archive_expsym_cmds
9140 postinstall_cmds=$lt_postinstall_cmds
9141 postuninstall_cmds=$lt_postuninstall_cmds
9142
9143 # Commands used to build a loadable module (assumed same as above if empty)
9144 module_cmds=$lt_module_cmds
9145 module_expsym_cmds=$lt_module_expsym_cmds
9146
9147 # Commands to strip libraries.
9148 old_striplib=$lt_old_striplib
9149 striplib=$lt_striplib
9150
9151 # Dependencies to place before the objects being linked to create a
9152 # shared library.
9153 predep_objects=$lt_predep_objects
9154
9155 # Dependencies to place after the objects being linked to create a
9156 # shared library.
9157 postdep_objects=$lt_postdep_objects
9158
9159 # Dependencies to place before the objects being linked to create a
9160 # shared library.
9161 predeps=$lt_predeps
9162
9163 # Dependencies to place after the objects being linked to create a
9164 # shared library.
9165 postdeps=$lt_postdeps
9166
9167 # The library search path used internally by the compiler when linking
9168 # a shared library.
9169 compiler_lib_search_path=$lt_compiler_lib_search_path
9170
9171 # Method to check whether dependent libraries are shared objects.
9172 deplibs_check_method=$lt_deplibs_check_method
9173
9174 # Command to use when deplibs_check_method == file_magic.
9175 file_magic_cmd=$lt_file_magic_cmd
9176
9177 # Flag that allows shared libraries with undefined symbols to be built.
9178 allow_undefined_flag=$lt_allow_undefined_flag
9179
9180 # Flag that forces no undefined symbols.
9181 no_undefined_flag=$lt_no_undefined_flag
9182
9183 # Commands used to finish a libtool library installation in a directory.
9184 finish_cmds=$lt_finish_cmds
9185
9186 # Same as above, but a single script fragment to be evaled but not shown.
9187 finish_eval=$lt_finish_eval
9188
9189 # Take the output of nm and produce a listing of raw symbols and C names.
9190 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9191
9192 # Transform the output of nm in a proper C declaration
9193 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9194
9195 # Transform the output of nm in a C name address pair
9196 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9197
9198 # This is the shared library runtime path variable.
9199 runpath_var=$runpath_var
9200
9201 # This is the shared library path variable.
9202 shlibpath_var=$shlibpath_var
9203
9204 # Is shlibpath searched before the hard-coded library search path?
9205 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9206
9207 # How to hardcode a shared library path into an executable.
9208 hardcode_action=$hardcode_action
9209
9210 # Whether we should hardcode library paths into libraries.
9211 hardcode_into_libs=$hardcode_into_libs
9212
9213 # Flag to hardcode \$libdir into a binary during linking.
9214 # This must work even if \$libdir does not exist.
9215 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9216
9217 # If ld is used when linking, flag to hardcode \$libdir into
9218 # a binary during linking. This must work even if \$libdir does
9219 # not exist.
9220 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9221
9222 # Whether we need a single -rpath flag with a separated argument.
9223 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9224
9225 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9226 # resulting binary.
9227 hardcode_direct=$hardcode_direct
9228
9229 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9230 # resulting binary.
9231 hardcode_minus_L=$hardcode_minus_L
9232
9233 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9234 # the resulting binary.
9235 hardcode_shlibpath_var=$hardcode_shlibpath_var
9236
9237 # Set to yes if building a shared library automatically hardcodes DIR into the library
9238 # and all subsequent libraries and executables linked against it.
9239 hardcode_automatic=$hardcode_automatic
9240
9241 # Variables whose values should be saved in libtool wrapper scripts and
9242 # restored at relink time.
9243 variables_saved_for_relink="$variables_saved_for_relink"
9244
9245 # Whether libtool must link a program against all its dependency libraries.
9246 link_all_deplibs=$link_all_deplibs
9247
9248 # Compile-time system search path for libraries
9249 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9250
9251 # Run-time system search path for libraries
9252 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9253
9254 # Fix the shell variable \$srcfile for the compiler.
9255 fix_srcfile_path="$fix_srcfile_path"
9256
9257 # Set to yes if exported symbols are required.
9258 always_export_symbols=$always_export_symbols
9259
9260 # The commands to list exported symbols.
9261 export_symbols_cmds=$lt_export_symbols_cmds
9262
9263 # The commands to extract the exported symbol list from a shared archive.
9264 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9265
9266 # Symbols that should not be listed in the preloaded symbols.
9267 exclude_expsyms=$lt_exclude_expsyms
9268
9269 # Symbols that must always be exported.
9270 include_expsyms=$lt_include_expsyms
9271
9272 # ### END LIBTOOL CONFIG
9273
9274 __EOF__
9275
9276
9277   case $host_os in
9278   aix3*)
9279     cat <<\EOF >> "$cfgfile"
9280
9281 # AIX sometimes has problems with the GCC collect2 program.  For some
9282 # reason, if we set the COLLECT_NAMES environment variable, the problems
9283 # vanish in a puff of smoke.
9284 if test "X${COLLECT_NAMES+set}" != Xset; then
9285   COLLECT_NAMES=
9286   export COLLECT_NAMES
9287 fi
9288 EOF
9289     ;;
9290   esac
9291
9292   # We use sed instead of cat because bash on DJGPP gets confused if
9293   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9294   # text mode, it properly converts lines to CR/LF.  This bash problem
9295   # is reportedly fixed, but why not run on old versions too?
9296   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9297
9298   mv -f "$cfgfile" "$ofile" || \
9299     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9300   chmod +x "$ofile"
9301
9302 else
9303   # If there is no Makefile yet, we rely on a make rule to execute
9304   # `config.status --recheck' to rerun these tests and create the
9305   # libtool script then.
9306   test -f Makefile && make "$ltmain"
9307 fi
9308
9309
9310 ac_ext=c
9311 ac_cpp='$CPP $CPPFLAGS'
9312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9315
9316 CC="$lt_save_CC"
9317
9318
9319 # Check whether --with-tags or --without-tags was given.
9320 if test "${with_tags+set}" = set; then
9321   withval="$with_tags"
9322   tagnames="$withval"
9323 fi;
9324
9325 if test -f "$ltmain" && test -n "$tagnames"; then
9326   if test ! -f "${ofile}"; then
9327     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9328 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9329   fi
9330
9331   if test -z "$LTCC"; then
9332     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9333     if test -z "$LTCC"; then
9334       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9335 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9336     else
9337       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9338 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9339     fi
9340   fi
9341
9342   # Extract list of available tagged configurations in $ofile.
9343   # Note that this assumes the entire list is on one line.
9344   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9345
9346   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9347   for tagname in $tagnames; do
9348     IFS="$lt_save_ifs"
9349     # Check whether tagname contains only valid characters
9350     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9351     "") ;;
9352     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9353 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9354    { (exit 1); exit 1; }; }
9355         ;;
9356     esac
9357
9358     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9359     then
9360       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9361 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9362    { (exit 1); exit 1; }; }
9363     fi
9364
9365     # Update the list of available tags.
9366     if test -n "$tagname"; then
9367       echo appending configuration tag \"$tagname\" to $ofile
9368
9369       case $tagname in
9370       CXX)
9371         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9372           ac_ext=cc
9373 ac_cpp='$CXXCPP $CPPFLAGS'
9374 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9375 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9376 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9377
9378
9379
9380
9381 archive_cmds_need_lc_CXX=no
9382 allow_undefined_flag_CXX=
9383 always_export_symbols_CXX=no
9384 archive_expsym_cmds_CXX=
9385 export_dynamic_flag_spec_CXX=
9386 hardcode_direct_CXX=no
9387 hardcode_libdir_flag_spec_CXX=
9388 hardcode_libdir_flag_spec_ld_CXX=
9389 hardcode_libdir_separator_CXX=
9390 hardcode_minus_L_CXX=no
9391 hardcode_automatic_CXX=no
9392 module_cmds_CXX=
9393 module_expsym_cmds_CXX=
9394 link_all_deplibs_CXX=unknown
9395 old_archive_cmds_CXX=$old_archive_cmds
9396 no_undefined_flag_CXX=
9397 whole_archive_flag_spec_CXX=
9398 enable_shared_with_static_runtimes_CXX=no
9399
9400 # Dependencies to place before and after the object being linked:
9401 predep_objects_CXX=
9402 postdep_objects_CXX=
9403 predeps_CXX=
9404 postdeps_CXX=
9405 compiler_lib_search_path_CXX=
9406
9407 # Source file extension for C++ test sources.
9408 ac_ext=cc
9409
9410 # Object file extension for compiled C++ test sources.
9411 objext=o
9412 objext_CXX=$objext
9413
9414 # Code to be used in simple compile tests
9415 lt_simple_compile_test_code="int some_variable = 0;\n"
9416
9417 # Code to be used in simple link tests
9418 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9419
9420 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9421
9422 # If no C compiler was specified, use CC.
9423 LTCC=${LTCC-"$CC"}
9424
9425 # Allow CC to be a program name with arguments.
9426 compiler=$CC
9427
9428
9429 # Allow CC to be a program name with arguments.
9430 lt_save_CC=$CC
9431 lt_save_LD=$LD
9432 lt_save_GCC=$GCC
9433 GCC=$GXX
9434 lt_save_with_gnu_ld=$with_gnu_ld
9435 lt_save_path_LD=$lt_cv_path_LD
9436 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9437   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9438 else
9439   unset lt_cv_prog_gnu_ld
9440 fi
9441 if test -n "${lt_cv_path_LDCXX+set}"; then
9442   lt_cv_path_LD=$lt_cv_path_LDCXX
9443 else
9444   unset lt_cv_path_LD
9445 fi
9446 test -z "${LDCXX+set}" || LD=$LDCXX
9447 CC=${CXX-"c++"}
9448 compiler=$CC
9449 compiler_CXX=$CC
9450 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9451
9452 # We don't want -fno-exception wen compiling C++ code, so set the
9453 # no_builtin_flag separately
9454 if test "$GXX" = yes; then
9455   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9456 else
9457   lt_prog_compiler_no_builtin_flag_CXX=
9458 fi
9459
9460 if test "$GXX" = yes; then
9461   # Set up default GNU C++ configuration
9462
9463
9464 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9465 if test "${with_gnu_ld+set}" = set; then
9466   withval="$with_gnu_ld"
9467   test "$withval" = no || with_gnu_ld=yes
9468 else
9469   with_gnu_ld=no
9470 fi;
9471 ac_prog=ld
9472 if test "$GCC" = yes; then
9473   # Check if gcc -print-prog-name=ld gives a path.
9474   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9475 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9476   case $host in
9477   *-*-mingw*)
9478     # gcc leaves a trailing carriage return which upsets mingw
9479     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9480   *)
9481     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9482   esac
9483   case $ac_prog in
9484     # Accept absolute paths.
9485     [\\/]* | ?:[\\/]*)
9486       re_direlt='/[^/][^/]*/\.\./'
9487       # Canonicalize the path of ld
9488       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9489       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9490         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9491       done
9492       test -z "$LD" && LD="$ac_prog"
9493       ;;
9494   "")
9495     # If it fails, then pretend we aren't using GCC.
9496     ac_prog=ld
9497     ;;
9498   *)
9499     # If it is relative, then search for the first ld in PATH.
9500     with_gnu_ld=unknown
9501     ;;
9502   esac
9503 elif test "$with_gnu_ld" = yes; then
9504   echo "$as_me:$LINENO: checking for GNU ld" >&5
9505 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9506 else
9507   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9508 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9509 fi
9510 if test "${lt_cv_path_LD+set}" = set; then
9511   echo $ECHO_N "(cached) $ECHO_C" >&6
9512 else
9513   if test -z "$LD"; then
9514   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9515   for ac_dir in $PATH; do
9516     IFS="$lt_save_ifs"
9517     test -z "$ac_dir" && ac_dir=.
9518     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9519       lt_cv_path_LD="$ac_dir/$ac_prog"
9520       # Check to see if the program is GNU ld.  I'd rather use --version,
9521       # but apparently some GNU ld's only accept -v.
9522       # Break only if it was the GNU/non-GNU ld that we prefer.
9523       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9524       *GNU* | *'with BFD'*)
9525         test "$with_gnu_ld" != no && break
9526         ;;
9527       *)
9528         test "$with_gnu_ld" != yes && break
9529         ;;
9530       esac
9531     fi
9532   done
9533   IFS="$lt_save_ifs"
9534 else
9535   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9536 fi
9537 fi
9538
9539 LD="$lt_cv_path_LD"
9540 if test -n "$LD"; then
9541   echo "$as_me:$LINENO: result: $LD" >&5
9542 echo "${ECHO_T}$LD" >&6
9543 else
9544   echo "$as_me:$LINENO: result: no" >&5
9545 echo "${ECHO_T}no" >&6
9546 fi
9547 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9548 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9549    { (exit 1); exit 1; }; }
9550 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9551 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9552 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9553   echo $ECHO_N "(cached) $ECHO_C" >&6
9554 else
9555   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9556 case `"$LD" -v 2>&1 </dev/null` in
9557 *GNU* | *'with BFD'*)
9558   lt_cv_prog_gnu_ld=yes
9559   ;;
9560 *)
9561   lt_cv_prog_gnu_ld=no
9562   ;;
9563 esac
9564 fi
9565 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9566 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9567 with_gnu_ld=$lt_cv_prog_gnu_ld
9568
9569
9570
9571   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9572   # archiving commands below assume that GNU ld is being used.
9573   if test "$with_gnu_ld" = yes; then
9574     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9575     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'
9576
9577     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9578     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9579
9580     # If archive_cmds runs LD, not CC, wlarc should be empty
9581     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9582     #     investigate it a little bit more. (MM)
9583     wlarc='${wl}'
9584
9585     # ancient GNU ld didn't support --whole-archive et. al.
9586     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9587         grep 'no-whole-archive' > /dev/null; then
9588       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9589     else
9590       whole_archive_flag_spec_CXX=
9591     fi
9592   else
9593     with_gnu_ld=no
9594     wlarc=
9595
9596     # A generic and very simple default shared library creation
9597     # command for GNU C++ for the case where it uses the native
9598     # linker, instead of GNU ld.  If possible, this setting should
9599     # overridden to take advantage of the native linker features on
9600     # the platform it is being used on.
9601     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9602   fi
9603
9604   # Commands to make compiler produce verbose output that lists
9605   # what "hidden" libraries, object files and flags are used when
9606   # linking a shared library.
9607   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9608
9609 else
9610   GXX=no
9611   with_gnu_ld=no
9612   wlarc=
9613 fi
9614
9615 # PORTME: fill in a description of your system's C++ link characteristics
9616 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9617 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9618 ld_shlibs_CXX=yes
9619 case $host_os in
9620   aix3*)
9621     # FIXME: insert proper C++ library support
9622     ld_shlibs_CXX=no
9623     ;;
9624   aix4* | aix5*)
9625     if test "$host_cpu" = ia64; then
9626       # On IA64, the linker does run time linking by default, so we don't
9627       # have to do anything special.
9628       aix_use_runtimelinking=no
9629       exp_sym_flag='-Bexport'
9630       no_entry_flag=""
9631     else
9632       aix_use_runtimelinking=no
9633
9634       # Test if we are trying to use run time linking or normal
9635       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9636       # need to do runtime linking.
9637       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9638         for ld_flag in $LDFLAGS; do
9639           case $ld_flag in
9640           *-brtl*)
9641             aix_use_runtimelinking=yes
9642             break
9643             ;;
9644           esac
9645         done
9646       esac
9647
9648       exp_sym_flag='-bexport'
9649       no_entry_flag='-bnoentry'
9650     fi
9651
9652     # When large executables or shared objects are built, AIX ld can
9653     # have problems creating the table of contents.  If linking a library
9654     # or program results in "error TOC overflow" add -mminimal-toc to
9655     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9656     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9657
9658     archive_cmds_CXX=''
9659     hardcode_direct_CXX=yes
9660     hardcode_libdir_separator_CXX=':'
9661     link_all_deplibs_CXX=yes
9662
9663     if test "$GXX" = yes; then
9664       case $host_os in aix4.012|aix4.012.*)
9665       # We only want to do this on AIX 4.2 and lower, the check
9666       # below for broken collect2 doesn't work under 4.3+
9667         collect2name=`${CC} -print-prog-name=collect2`
9668         if test -f "$collect2name" && \
9669            strings "$collect2name" | grep resolve_lib_name >/dev/null
9670         then
9671           # We have reworked collect2
9672           hardcode_direct_CXX=yes
9673         else
9674           # We have old collect2
9675           hardcode_direct_CXX=unsupported
9676           # It fails to find uninstalled libraries when the uninstalled
9677           # path is not listed in the libpath.  Setting hardcode_minus_L
9678           # to unsupported forces relinking
9679           hardcode_minus_L_CXX=yes
9680           hardcode_libdir_flag_spec_CXX='-L$libdir'
9681           hardcode_libdir_separator_CXX=
9682         fi
9683       esac
9684       shared_flag='-shared'
9685     else
9686       # not using gcc
9687       if test "$host_cpu" = ia64; then
9688         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9689         # chokes on -Wl,-G. The following line is correct:
9690         shared_flag='-G'
9691       else
9692         if test "$aix_use_runtimelinking" = yes; then
9693           shared_flag='${wl}-G'
9694         else
9695           shared_flag='${wl}-bM:SRE'
9696         fi
9697       fi
9698     fi
9699
9700     # It seems that -bexpall does not export symbols beginning with
9701     # underscore (_), so it is better to generate a list of symbols to export.
9702     always_export_symbols_CXX=yes
9703     if test "$aix_use_runtimelinking" = yes; then
9704       # Warning - without using the other runtime loading flags (-brtl),
9705       # -berok will link without error, but may produce a broken library.
9706       allow_undefined_flag_CXX='-berok'
9707       # Determine the default libpath from the value encoded in an empty executable.
9708       cat >conftest.$ac_ext <<_ACEOF
9709 #line $LINENO "configure"
9710 /* confdefs.h.  */
9711 _ACEOF
9712 cat confdefs.h >>conftest.$ac_ext
9713 cat >>conftest.$ac_ext <<_ACEOF
9714 /* end confdefs.h.  */
9715
9716 int
9717 main ()
9718 {
9719
9720   ;
9721   return 0;
9722 }
9723 _ACEOF
9724 rm -f conftest.$ac_objext conftest$ac_exeext
9725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9726   (eval $ac_link) 2>&5
9727   ac_status=$?
9728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729   (exit $ac_status); } &&
9730          { ac_try='test -s conftest$ac_exeext'
9731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9732   (eval $ac_try) 2>&5
9733   ac_status=$?
9734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735   (exit $ac_status); }; }; then
9736
9737 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9738 }'`
9739 # Check for a 64-bit object if we didn't find anything.
9740 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; }
9741 }'`; fi
9742 else
9743   echo "$as_me: failed program was:" >&5
9744 sed 's/^/| /' conftest.$ac_ext >&5
9745
9746 fi
9747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9748 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9749
9750       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9751
9752       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"
9753      else
9754       if test "$host_cpu" = ia64; then
9755         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9756         allow_undefined_flag_CXX="-z nodefs"
9757         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"
9758       else
9759         # Determine the default libpath from the value encoded in an empty executable.
9760         cat >conftest.$ac_ext <<_ACEOF
9761 #line $LINENO "configure"
9762 /* confdefs.h.  */
9763 _ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h.  */
9767
9768 int
9769 main ()
9770 {
9771
9772   ;
9773   return 0;
9774 }
9775 _ACEOF
9776 rm -f conftest.$ac_objext conftest$ac_exeext
9777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9778   (eval $ac_link) 2>&5
9779   ac_status=$?
9780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781   (exit $ac_status); } &&
9782          { ac_try='test -s conftest$ac_exeext'
9783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784   (eval $ac_try) 2>&5
9785   ac_status=$?
9786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787   (exit $ac_status); }; }; then
9788
9789 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9790 }'`
9791 # Check for a 64-bit object if we didn't find anything.
9792 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; }
9793 }'`; fi
9794 else
9795   echo "$as_me: failed program was:" >&5
9796 sed 's/^/| /' conftest.$ac_ext >&5
9797
9798 fi
9799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9800 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9801
9802         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9803         # Warning - without using the other run time loading flags,
9804         # -berok will link without error, but may produce a broken library.
9805         no_undefined_flag_CXX=' ${wl}-bernotok'
9806         allow_undefined_flag_CXX=' ${wl}-berok'
9807         # -bexpall does not export symbols beginning with underscore (_)
9808         always_export_symbols_CXX=yes
9809         # Exported symbols can be pulled into shared objects from archives
9810         whole_archive_flag_spec_CXX=' '
9811         archive_cmds_need_lc_CXX=yes
9812         # This is similar to how AIX traditionally builds it's shared libraries.
9813         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'
9814       fi
9815     fi
9816     ;;
9817   chorus*)
9818     case $cc_basename in
9819       *)
9820         # FIXME: insert proper C++ library support
9821         ld_shlibs_CXX=no
9822         ;;
9823     esac
9824     ;;
9825
9826   cygwin* | mingw* | pw32*)
9827     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9828     # as there is no search path for DLLs.
9829     hardcode_libdir_flag_spec_CXX='-L$libdir'
9830     allow_undefined_flag_CXX=unsupported
9831     always_export_symbols_CXX=no
9832     enable_shared_with_static_runtimes_CXX=yes
9833
9834     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9835       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'
9836       # If the export-symbols file already is a .def file (1st line
9837       # is EXPORTS), use it as is; otherwise, prepend...
9838       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9839         cp $export_symbols $output_objdir/$soname.def;
9840       else
9841         echo EXPORTS > $output_objdir/$soname.def;
9842         cat $export_symbols >> $output_objdir/$soname.def;
9843       fi~
9844       $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'
9845     else
9846       ld_shlibs_CXX=no
9847     fi
9848   ;;
9849
9850   darwin* | rhapsody*)
9851    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9852     archive_cmds_need_lc_CXX=no
9853     case "$host_os" in
9854     rhapsody* | darwin1.[012])
9855       allow_undefined_flag_CXX='-undefined suppress'
9856       ;;
9857     *) # Darwin 1.3 on
9858       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9859       ;;
9860     esac
9861         lt_int_apple_cc_single_mod=no
9862         output_verbose_link_cmd='echo'
9863         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9864           lt_int_apple_cc_single_mod=yes
9865         fi
9866         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9867           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9868         else
9869         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'
9870       fi
9871       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9872
9873     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9874       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9875         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}'
9876       else
9877         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}'
9878       fi
9879         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}'
9880     hardcode_direct_CXX=no
9881     hardcode_automatic_CXX=yes
9882     hardcode_shlibpath_var_CXX=unsupported
9883     whole_archive_flag_spec_CXX='-all_load $convenience'
9884     link_all_deplibs_CXX=yes
9885    fi
9886     ;;
9887
9888   dgux*)
9889     case $cc_basename in
9890       ec++)
9891         # FIXME: insert proper C++ library support
9892         ld_shlibs_CXX=no
9893         ;;
9894       ghcx)
9895         # Green Hills C++ Compiler
9896         # FIXME: insert proper C++ library support
9897         ld_shlibs_CXX=no
9898         ;;
9899       *)
9900         # FIXME: insert proper C++ library support
9901         ld_shlibs_CXX=no
9902         ;;
9903     esac
9904     ;;
9905   freebsd12*)
9906     # C++ shared libraries reported to be fairly broken before switch to ELF
9907     ld_shlibs_CXX=no
9908     ;;
9909   freebsd-elf*)
9910     archive_cmds_need_lc_CXX=no
9911     ;;
9912   freebsd*)
9913     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9914     # conventions
9915     ld_shlibs_CXX=yes
9916     ;;
9917   gnu*)
9918     ;;
9919   hpux9*)
9920     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9921     hardcode_libdir_separator_CXX=:
9922     export_dynamic_flag_spec_CXX='${wl}-E'
9923     hardcode_direct_CXX=yes
9924     hardcode_minus_L_CXX=yes # Not in the search PATH,
9925                                 # but as the default
9926                                 # location of the library.
9927
9928     case $cc_basename in
9929     CC)
9930       # FIXME: insert proper C++ library support
9931       ld_shlibs_CXX=no
9932       ;;
9933     aCC)
9934       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'
9935       # Commands to make compiler produce verbose output that lists
9936       # what "hidden" libraries, object files and flags are used when
9937       # linking a shared library.
9938       #
9939       # There doesn't appear to be a way to prevent this compiler from
9940       # explicitly linking system object files so we need to strip them
9941       # from the output so that they don't get included in the library
9942       # dependencies.
9943       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'
9944       ;;
9945     *)
9946       if test "$GXX" = yes; then
9947         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'
9948       else
9949         # FIXME: insert proper C++ library support
9950         ld_shlibs_CXX=no
9951       fi
9952       ;;
9953     esac
9954     ;;
9955   hpux10*|hpux11*)
9956     if test $with_gnu_ld = no; then
9957       case "$host_cpu" in
9958       hppa*64*)
9959         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9960         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9961         hardcode_libdir_separator_CXX=:
9962         ;;
9963       ia64*)
9964         hardcode_libdir_flag_spec_CXX='-L$libdir'
9965         ;;
9966       *)
9967         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9968         hardcode_libdir_separator_CXX=:
9969         export_dynamic_flag_spec_CXX='${wl}-E'
9970         ;;
9971       esac
9972     fi
9973     case "$host_cpu" in
9974     hppa*64*)
9975       hardcode_direct_CXX=no
9976       hardcode_shlibpath_var_CXX=no
9977       ;;
9978     ia64*)
9979       hardcode_direct_CXX=no
9980       hardcode_shlibpath_var_CXX=no
9981       hardcode_minus_L_CXX=yes # Not in the search PATH,
9982                                               # but as the default
9983                                               # location of the library.
9984       ;;
9985     *)
9986       hardcode_direct_CXX=yes
9987       hardcode_minus_L_CXX=yes # Not in the search PATH,
9988                                               # but as the default
9989                                               # location of the library.
9990       ;;
9991     esac
9992
9993     case $cc_basename in
9994       CC)
9995         # FIXME: insert proper C++ library support
9996         ld_shlibs_CXX=no
9997         ;;
9998       aCC)
9999         case "$host_cpu" in
10000         hppa*64*|ia64*)
10001           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10002           ;;
10003         *)
10004           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10005           ;;
10006         esac
10007         # Commands to make compiler produce verbose output that lists
10008         # what "hidden" libraries, object files and flags are used when
10009         # linking a shared library.
10010         #
10011         # There doesn't appear to be a way to prevent this compiler from
10012         # explicitly linking system object files so we need to strip them
10013         # from the output so that they don't get included in the library
10014         # dependencies.
10015         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'
10016         ;;
10017       *)
10018         if test "$GXX" = yes; then
10019           if test $with_gnu_ld = no; then
10020             case "$host_cpu" in
10021             ia64*|hppa*64*)
10022               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10023               ;;
10024             *)
10025               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'
10026               ;;
10027             esac
10028           fi
10029         else
10030           # FIXME: insert proper C++ library support
10031           ld_shlibs_CXX=no
10032         fi
10033         ;;
10034     esac
10035     ;;
10036   irix5* | irix6*)
10037     case $cc_basename in
10038       CC)
10039         # SGI C++
10040         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'
10041
10042         # Archives containing C++ object files must be created using
10043         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10044         # necessary to make sure instantiated templates are included
10045         # in the archive.
10046         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10047         ;;
10048       *)
10049         if test "$GXX" = yes; then
10050           if test "$with_gnu_ld" = no; then
10051             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'
10052           else
10053             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'
10054           fi
10055         fi
10056         link_all_deplibs_CXX=yes
10057         ;;
10058     esac
10059     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10060     hardcode_libdir_separator_CXX=:
10061     ;;
10062   linux*)
10063     case $cc_basename in
10064       KCC)
10065         # Kuck and Associates, Inc. (KAI) C++ Compiler
10066
10067         # KCC will only create a shared library if the output file
10068         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10069         # to its proper name (with version) after linking.
10070         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'
10071         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'
10072         # Commands to make compiler produce verbose output that lists
10073         # what "hidden" libraries, object files and flags are used when
10074         # linking a shared library.
10075         #
10076         # There doesn't appear to be a way to prevent this compiler from
10077         # explicitly linking system object files so we need to strip them
10078         # from the output so that they don't get included in the library
10079         # dependencies.
10080         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'
10081
10082         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10083         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10084
10085         # Archives containing C++ object files must be created using
10086         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10087         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10088         ;;
10089       icpc)
10090         # Intel C++
10091         with_gnu_ld=yes
10092         archive_cmds_need_lc_CXX=no
10093         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10094         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'
10095         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10096         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10097         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10098         ;;
10099       cxx)
10100         # Compaq C++
10101         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10102         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'
10103
10104         runpath_var=LD_RUN_PATH
10105         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10106         hardcode_libdir_separator_CXX=:
10107
10108         # Commands to make compiler produce verbose output that lists
10109         # what "hidden" libraries, object files and flags are used when
10110         # linking a shared library.
10111         #
10112         # There doesn't appear to be a way to prevent this compiler from
10113         # explicitly linking system object files so we need to strip them
10114         # from the output so that they don't get included in the library
10115         # dependencies.
10116         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'
10117         ;;
10118     esac
10119     ;;
10120   lynxos*)
10121     # FIXME: insert proper C++ library support
10122     ld_shlibs_CXX=no
10123     ;;
10124   m88k*)
10125     # FIXME: insert proper C++ library support
10126     ld_shlibs_CXX=no
10127     ;;
10128   mvs*)
10129     case $cc_basename in
10130       cxx)
10131         # FIXME: insert proper C++ library support
10132         ld_shlibs_CXX=no
10133         ;;
10134       *)
10135         # FIXME: insert proper C++ library support
10136         ld_shlibs_CXX=no
10137         ;;
10138     esac
10139     ;;
10140   netbsd*)
10141     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10142       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10143       wlarc=
10144       hardcode_libdir_flag_spec_CXX='-R$libdir'
10145       hardcode_direct_CXX=yes
10146       hardcode_shlibpath_var_CXX=no
10147     fi
10148     # Workaround some broken pre-1.5 toolchains
10149     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10150     ;;
10151   osf3*)
10152     case $cc_basename in
10153       KCC)
10154         # Kuck and Associates, Inc. (KAI) C++ Compiler
10155
10156         # KCC will only create a shared library if the output file
10157         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10158         # to its proper name (with version) after linking.
10159         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'
10160
10161         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10162         hardcode_libdir_separator_CXX=:
10163
10164         # Archives containing C++ object files must be created using
10165         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10166         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10167
10168         ;;
10169       RCC)
10170         # Rational C++ 2.4.1
10171         # FIXME: insert proper C++ library support
10172         ld_shlibs_CXX=no
10173         ;;
10174       cxx)
10175         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10176         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'
10177
10178         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10179         hardcode_libdir_separator_CXX=:
10180
10181         # Commands to make compiler produce verbose output that lists
10182         # what "hidden" libraries, object files and flags are used when
10183         # linking a shared library.
10184         #
10185         # There doesn't appear to be a way to prevent this compiler from
10186         # explicitly linking system object files so we need to strip them
10187         # from the output so that they don't get included in the library
10188         # dependencies.
10189         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'
10190         ;;
10191       *)
10192         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10193           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10194           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'
10195
10196           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10197           hardcode_libdir_separator_CXX=:
10198
10199           # Commands to make compiler produce verbose output that lists
10200           # what "hidden" libraries, object files and flags are used when
10201           # linking a shared library.
10202           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10203
10204         else
10205           # FIXME: insert proper C++ library support
10206           ld_shlibs_CXX=no
10207         fi
10208         ;;
10209     esac
10210     ;;
10211   osf4* | osf5*)
10212     case $cc_basename in
10213       KCC)
10214         # Kuck and Associates, Inc. (KAI) C++ Compiler
10215
10216         # KCC will only create a shared library if the output file
10217         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10218         # to its proper name (with version) after linking.
10219         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'
10220
10221         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10222         hardcode_libdir_separator_CXX=:
10223
10224         # Archives containing C++ object files must be created using
10225         # the KAI C++ compiler.
10226         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10227         ;;
10228       RCC)
10229         # Rational C++ 2.4.1
10230         # FIXME: insert proper C++ library support
10231         ld_shlibs_CXX=no
10232         ;;
10233       cxx)
10234         allow_undefined_flag_CXX=' -expect_unresolved \*'
10235         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'
10236         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10237           echo "-hidden">> $lib.exp~
10238           $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~
10239           $rm $lib.exp'
10240
10241         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10242         hardcode_libdir_separator_CXX=:
10243
10244         # Commands to make compiler produce verbose output that lists
10245         # what "hidden" libraries, object files and flags are used when
10246         # linking a shared library.
10247         #
10248         # There doesn't appear to be a way to prevent this compiler from
10249         # explicitly linking system object files so we need to strip them
10250         # from the output so that they don't get included in the library
10251         # dependencies.
10252         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'
10253         ;;
10254       *)
10255         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10256           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10257          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'
10258
10259           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10260           hardcode_libdir_separator_CXX=:
10261
10262           # Commands to make compiler produce verbose output that lists
10263           # what "hidden" libraries, object files and flags are used when
10264           # linking a shared library.
10265           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10266
10267         else
10268           # FIXME: insert proper C++ library support
10269           ld_shlibs_CXX=no
10270         fi
10271         ;;
10272     esac
10273     ;;
10274   psos*)
10275     # FIXME: insert proper C++ library support
10276     ld_shlibs_CXX=no
10277     ;;
10278   sco*)
10279     archive_cmds_need_lc_CXX=no
10280     case $cc_basename in
10281       CC)
10282         # FIXME: insert proper C++ library support
10283         ld_shlibs_CXX=no
10284         ;;
10285       *)
10286         # FIXME: insert proper C++ library support
10287         ld_shlibs_CXX=no
10288         ;;
10289     esac
10290     ;;
10291   sunos4*)
10292     case $cc_basename in
10293       CC)
10294         # Sun C++ 4.x
10295         # FIXME: insert proper C++ library support
10296         ld_shlibs_CXX=no
10297         ;;
10298       lcc)
10299         # Lucid
10300         # FIXME: insert proper C++ library support
10301         ld_shlibs_CXX=no
10302         ;;
10303       *)
10304         # FIXME: insert proper C++ library support
10305         ld_shlibs_CXX=no
10306         ;;
10307     esac
10308     ;;
10309   solaris*)
10310     case $cc_basename in
10311       CC)
10312         # Sun C++ 4.2, 5.x and Centerline C++
10313         no_undefined_flag_CXX=' -zdefs'
10314         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10315         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10316         $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'
10317
10318         hardcode_libdir_flag_spec_CXX='-R$libdir'
10319         hardcode_shlibpath_var_CXX=no
10320         case $host_os in
10321           solaris2.0-5 | solaris2.0-5.*) ;;
10322           *)
10323             # The C++ compiler is used as linker so we must use $wl
10324             # flag to pass the commands to the underlying system
10325             # linker.
10326             # Supported since Solaris 2.6 (maybe 2.5.1?)
10327             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10328             ;;
10329         esac
10330         link_all_deplibs_CXX=yes
10331
10332         # Commands to make compiler produce verbose output that lists
10333         # what "hidden" libraries, object files and flags are used when
10334         # linking a shared library.
10335         #
10336         # There doesn't appear to be a way to prevent this compiler from
10337         # explicitly linking system object files so we need to strip them
10338         # from the output so that they don't get included in the library
10339         # dependencies.
10340         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'
10341
10342         # Archives containing C++ object files must be created using
10343         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10344         # necessary to make sure instantiated templates are included
10345         # in the archive.
10346         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10347         ;;
10348       gcx)
10349         # Green Hills C++ Compiler
10350         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10351
10352         # The C++ compiler must be used to create the archive.
10353         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10354         ;;
10355       *)
10356         # GNU C++ compiler with Solaris linker
10357         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10358           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10359           if $CC --version | grep -v '^2\.7' > /dev/null; then
10360             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10361             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10362                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10363
10364             # Commands to make compiler produce verbose output that lists
10365             # what "hidden" libraries, object files and flags are used when
10366             # linking a shared library.
10367             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10368           else
10369             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10370             # platform.
10371             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10372             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10373                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10374
10375             # Commands to make compiler produce verbose output that lists
10376             # what "hidden" libraries, object files and flags are used when
10377             # linking a shared library.
10378             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10379           fi
10380
10381           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10382         fi
10383         ;;
10384     esac
10385     ;;
10386   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10387     archive_cmds_need_lc_CXX=no
10388     ;;
10389   tandem*)
10390     case $cc_basename in
10391       NCC)
10392         # NonStop-UX NCC 3.20
10393         # FIXME: insert proper C++ library support
10394         ld_shlibs_CXX=no
10395         ;;
10396       *)
10397         # FIXME: insert proper C++ library support
10398         ld_shlibs_CXX=no
10399         ;;
10400     esac
10401     ;;
10402   vxworks*)
10403     # FIXME: insert proper C++ library support
10404     ld_shlibs_CXX=no
10405     ;;
10406   *)
10407     # FIXME: insert proper C++ library support
10408     ld_shlibs_CXX=no
10409     ;;
10410 esac
10411 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10412 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10413 test "$ld_shlibs_CXX" = no && can_build_shared=no
10414
10415 GCC_CXX="$GXX"
10416 LD_CXX="$LD"
10417
10418 ## CAVEAT EMPTOR:
10419 ## There is no encapsulation within the following macros, do not change
10420 ## the running order or otherwise move them around unless you know exactly
10421 ## what you are doing...
10422
10423 cat > conftest.$ac_ext <<EOF
10424 class Foo
10425 {
10426 public:
10427   Foo (void) { a = 0; }
10428 private:
10429   int a;
10430 };
10431 EOF
10432
10433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10434   (eval $ac_compile) 2>&5
10435   ac_status=$?
10436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437   (exit $ac_status); }; then
10438   # Parse the compiler output and extract the necessary
10439   # objects, libraries and library flags.
10440
10441   # Sentinel used to keep track of whether or not we are before
10442   # the conftest object file.
10443   pre_test_object_deps_done=no
10444
10445   # The `*' in the case matches for architectures that use `case' in
10446   # $output_verbose_cmd can trigger glob expansion during the loop
10447   # eval without this substitution.
10448   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10449
10450   for p in `eval $output_verbose_link_cmd`; do
10451     case $p in
10452
10453     -L* | -R* | -l*)
10454        # Some compilers place space between "-{L,R}" and the path.
10455        # Remove the space.
10456        if test $p = "-L" \
10457           || test $p = "-R"; then
10458          prev=$p
10459          continue
10460        else
10461          prev=
10462        fi
10463
10464        if test "$pre_test_object_deps_done" = no; then
10465          case $p in
10466          -L* | -R*)
10467            # Internal compiler library paths should come after those
10468            # provided the user.  The postdeps already come after the
10469            # user supplied libs so there is no need to process them.
10470            if test -z "$compiler_lib_search_path_CXX"; then
10471              compiler_lib_search_path_CXX="${prev}${p}"
10472            else
10473              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10474            fi
10475            ;;
10476          # The "-l" case would never come before the object being
10477          # linked, so don't bother handling this case.
10478          esac
10479        else
10480          if test -z "$postdeps_CXX"; then
10481            postdeps_CXX="${prev}${p}"
10482          else
10483            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10484          fi
10485        fi
10486        ;;
10487
10488     *.$objext)
10489        # This assumes that the test object file only shows up
10490        # once in the compiler output.
10491        if test "$p" = "conftest.$objext"; then
10492          pre_test_object_deps_done=yes
10493          continue
10494        fi
10495
10496        if test "$pre_test_object_deps_done" = no; then
10497          if test -z "$predep_objects_CXX"; then
10498            predep_objects_CXX="$p"
10499          else
10500            predep_objects_CXX="$predep_objects_CXX $p"
10501          fi
10502        else
10503          if test -z "$postdep_objects_CXX"; then
10504            postdep_objects_CXX="$p"
10505          else
10506            postdep_objects_CXX="$postdep_objects_CXX $p"
10507          fi
10508        fi
10509        ;;
10510
10511     *) ;; # Ignore the rest.
10512
10513     esac
10514   done
10515
10516   # Clean up.
10517   rm -f a.out a.exe
10518 else
10519   echo "libtool.m4: error: problem compiling CXX test program"
10520 fi
10521
10522 $rm -f confest.$objext
10523
10524 case " $postdeps_CXX " in
10525 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10526 esac
10527
10528 lt_prog_compiler_wl_CXX=
10529 lt_prog_compiler_pic_CXX=
10530 lt_prog_compiler_static_CXX=
10531
10532 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10533 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10534
10535   # C++ specific cases for pic, static, wl, etc.
10536   if test "$GXX" = yes; then
10537     lt_prog_compiler_wl_CXX='-Wl,'
10538     lt_prog_compiler_static_CXX='-static'
10539
10540     case $host_os in
10541     aix*)
10542       # All AIX code is PIC.
10543       if test "$host_cpu" = ia64; then
10544         # AIX 5 now supports IA64 processor
10545         lt_prog_compiler_static_CXX='-Bstatic'
10546       fi
10547       ;;
10548     amigaos*)
10549       # FIXME: we need at least 68020 code to build shared libraries, but
10550       # adding the `-m68020' flag to GCC prevents building anything better,
10551       # like `-m68040'.
10552       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10553       ;;
10554     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10555       # PIC is the default for these OSes.
10556       ;;
10557     mingw* | os2* | pw32*)
10558       # This hack is so that the source file can tell whether it is being
10559       # built for inclusion in a dll (and should export symbols for example).
10560       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10561       ;;
10562     darwin* | rhapsody*)
10563       # PIC is the default on this platform
10564       # Common symbols not allowed in MH_DYLIB files
10565       lt_prog_compiler_pic_CXX='-fno-common'
10566       ;;
10567     *djgpp*)
10568       # DJGPP does not support shared libraries at all
10569       lt_prog_compiler_pic_CXX=
10570       ;;
10571     sysv4*MP*)
10572       if test -d /usr/nec; then
10573         lt_prog_compiler_pic_CXX=-Kconform_pic
10574       fi
10575       ;;
10576     hpux*)
10577       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10578       # not for PA HP-UX.
10579       case "$host_cpu" in
10580       hppa*64*|ia64*)
10581         ;;
10582       *)
10583         lt_prog_compiler_pic_CXX='-fPIC'
10584         ;;
10585       esac
10586       ;;
10587     *)
10588       lt_prog_compiler_pic_CXX='-fPIC'
10589       ;;
10590     esac
10591   else
10592     case $host_os in
10593       aix4* | aix5*)
10594         # All AIX code is PIC.
10595         if test "$host_cpu" = ia64; then
10596           # AIX 5 now supports IA64 processor
10597           lt_prog_compiler_static_CXX='-Bstatic'
10598         else
10599           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10600         fi
10601         ;;
10602       chorus*)
10603         case $cc_basename in
10604         cxch68)
10605           # Green Hills C++ Compiler
10606           # _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"
10607           ;;
10608         esac
10609         ;;
10610       dgux*)
10611         case $cc_basename in
10612           ec++)
10613             lt_prog_compiler_pic_CXX='-KPIC'
10614             ;;
10615           ghcx)
10616             # Green Hills C++ Compiler
10617             lt_prog_compiler_pic_CXX='-pic'
10618             ;;
10619           *)
10620             ;;
10621         esac
10622         ;;
10623       freebsd*)
10624         # FreeBSD uses GNU C++
10625         ;;
10626       hpux9* | hpux10* | hpux11*)
10627         case $cc_basename in
10628           CC)
10629             lt_prog_compiler_wl_CXX='-Wl,'
10630             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10631             if test "$host_cpu" != ia64; then
10632               lt_prog_compiler_pic_CXX='+Z'
10633             fi
10634             ;;
10635           aCC)
10636             lt_prog_compiler_wl_CXX='-Wl,'
10637             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10638             case "$host_cpu" in
10639             hppa*64*|ia64*)
10640               # +Z the default
10641               ;;
10642             *)
10643               lt_prog_compiler_pic_CXX='+Z'
10644               ;;
10645             esac
10646             ;;
10647           *)
10648             ;;
10649         esac
10650         ;;
10651       irix5* | irix6* | nonstopux*)
10652         case $cc_basename in
10653           CC)
10654             lt_prog_compiler_wl_CXX='-Wl,'
10655             lt_prog_compiler_static_CXX='-non_shared'
10656             # CC pic flag -KPIC is the default.
10657             ;;
10658           *)
10659             ;;
10660         esac
10661         ;;
10662       linux*)
10663         case $cc_basename in
10664           KCC)
10665             # KAI C++ Compiler
10666             lt_prog_compiler_wl_CXX='--backend -Wl,'
10667             lt_prog_compiler_pic_CXX='-fPIC'
10668             ;;
10669           icpc)
10670             # Intel C++
10671             lt_prog_compiler_wl_CXX='-Wl,'
10672             lt_prog_compiler_pic_CXX='-KPIC'
10673             lt_prog_compiler_static_CXX='-static'
10674             ;;
10675           cxx)
10676             # Compaq C++
10677             # Make sure the PIC flag is empty.  It appears that all Alpha
10678             # Linux and Compaq Tru64 Unix objects are PIC.
10679             lt_prog_compiler_pic_CXX=
10680             lt_prog_compiler_static_CXX='-non_shared'
10681             ;;
10682           *)
10683             ;;
10684         esac
10685         ;;
10686       lynxos*)
10687         ;;
10688       m88k*)
10689         ;;
10690       mvs*)
10691         case $cc_basename in
10692           cxx)
10693             lt_prog_compiler_pic_CXX='-W c,exportall'
10694             ;;
10695           *)
10696             ;;
10697         esac
10698         ;;
10699       netbsd*)
10700         ;;
10701       osf3* | osf4* | osf5*)
10702         case $cc_basename in
10703           KCC)
10704             lt_prog_compiler_wl_CXX='--backend -Wl,'
10705             ;;
10706           RCC)
10707             # Rational C++ 2.4.1
10708             lt_prog_compiler_pic_CXX='-pic'
10709             ;;
10710           cxx)
10711             # Digital/Compaq C++
10712             lt_prog_compiler_wl_CXX='-Wl,'
10713             # Make sure the PIC flag is empty.  It appears that all Alpha
10714             # Linux and Compaq Tru64 Unix objects are PIC.
10715             lt_prog_compiler_pic_CXX=
10716             lt_prog_compiler_static_CXX='-non_shared'
10717             ;;
10718           *)
10719             ;;
10720         esac
10721         ;;
10722       psos*)
10723         ;;
10724       sco*)
10725         case $cc_basename in
10726           CC)
10727             lt_prog_compiler_pic_CXX='-fPIC'
10728             ;;
10729           *)
10730             ;;
10731         esac
10732         ;;
10733       solaris*)
10734         case $cc_basename in
10735           CC)
10736             # Sun C++ 4.2, 5.x and Centerline C++
10737             lt_prog_compiler_pic_CXX='-KPIC'
10738             lt_prog_compiler_static_CXX='-Bstatic'
10739             lt_prog_compiler_wl_CXX='-Qoption ld '
10740             ;;
10741           gcx)
10742             # Green Hills C++ Compiler
10743             lt_prog_compiler_pic_CXX='-PIC'
10744             ;;
10745           *)
10746             ;;
10747         esac
10748         ;;
10749       sunos4*)
10750         case $cc_basename in
10751           CC)
10752             # Sun C++ 4.x
10753             lt_prog_compiler_pic_CXX='-pic'
10754             lt_prog_compiler_static_CXX='-Bstatic'
10755             ;;
10756           lcc)
10757             # Lucid
10758             lt_prog_compiler_pic_CXX='-pic'
10759             ;;
10760           *)
10761             ;;
10762         esac
10763         ;;
10764       tandem*)
10765         case $cc_basename in
10766           NCC)
10767             # NonStop-UX NCC 3.20
10768             lt_prog_compiler_pic_CXX='-KPIC'
10769             ;;
10770           *)
10771             ;;
10772         esac
10773         ;;
10774       unixware*)
10775         ;;
10776       vxworks*)
10777         ;;
10778       *)
10779         lt_prog_compiler_can_build_shared_CXX=no
10780         ;;
10781     esac
10782   fi
10783
10784 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10785 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10786
10787 #
10788 # Check to make sure the PIC flag actually works.
10789 #
10790 if test -n "$lt_prog_compiler_pic_CXX"; then
10791   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10792 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10793 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10794   echo $ECHO_N "(cached) $ECHO_C" >&6
10795 else
10796   lt_prog_compiler_pic_works_CXX=no
10797   ac_outfile=conftest.$ac_objext
10798    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10799    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10800    # Insert the option either (1) after the last *FLAGS variable, or
10801    # (2) before a word containing "conftest.", or (3) at the end.
10802    # Note that $ac_compile itself does not contain backslashes and begins
10803    # with a dollar sign (not a hyphen), so the echo should work correctly.
10804    # The option is referenced via a variable to avoid confusing sed.
10805    lt_compile=`echo "$ac_compile" | $SED \
10806    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10807    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10808    -e 's:$: $lt_compiler_flag:'`
10809    (eval echo "\"\$as_me:10809: $lt_compile\"" >&5)
10810    (eval "$lt_compile" 2>conftest.err)
10811    ac_status=$?
10812    cat conftest.err >&5
10813    echo "$as_me:10813: \$? = $ac_status" >&5
10814    if (exit $ac_status) && test -s "$ac_outfile"; then
10815      # The compiler can only warn and ignore the option if not recognized
10816      # So say no if there are warnings
10817      if test ! -s conftest.err; then
10818        lt_prog_compiler_pic_works_CXX=yes
10819      fi
10820    fi
10821    $rm conftest*
10822
10823 fi
10824 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10825 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10826
10827 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10828     case $lt_prog_compiler_pic_CXX in
10829      "" | " "*) ;;
10830      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10831      esac
10832 else
10833     lt_prog_compiler_pic_CXX=
10834      lt_prog_compiler_can_build_shared_CXX=no
10835 fi
10836
10837 fi
10838 case "$host_os" in
10839   # For platforms which do not support PIC, -DPIC is meaningless:
10840   *djgpp*)
10841     lt_prog_compiler_pic_CXX=
10842     ;;
10843   *)
10844     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10845     ;;
10846 esac
10847
10848 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10849 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10850 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10851   echo $ECHO_N "(cached) $ECHO_C" >&6
10852 else
10853   lt_cv_prog_compiler_c_o_CXX=no
10854    $rm -r conftest 2>/dev/null
10855    mkdir conftest
10856    cd conftest
10857    mkdir out
10858    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10859
10860    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10861    # that will create temporary files in the current directory regardless of
10862    # the output directory.  Thus, making CWD read-only will cause this test
10863    # to fail, enabling locking or at least warning the user not to do parallel
10864    # builds.
10865    chmod -w .
10866
10867    lt_compiler_flag="-o out/conftest2.$ac_objext"
10868    # Insert the option either (1) after the last *FLAGS variable, or
10869    # (2) before a word containing "conftest.", or (3) at the end.
10870    # Note that $ac_compile itself does not contain backslashes and begins
10871    # with a dollar sign (not a hyphen), so the echo should work correctly.
10872    lt_compile=`echo "$ac_compile" | $SED \
10873    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10874    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10875    -e 's:$: $lt_compiler_flag:'`
10876    (eval echo "\"\$as_me:10876: $lt_compile\"" >&5)
10877    (eval "$lt_compile" 2>out/conftest.err)
10878    ac_status=$?
10879    cat out/conftest.err >&5
10880    echo "$as_me:10880: \$? = $ac_status" >&5
10881    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10882    then
10883      # The compiler can only warn and ignore the option if not recognized
10884      # So say no if there are warnings
10885      if test ! -s out/conftest.err; then
10886        lt_cv_prog_compiler_c_o_CXX=yes
10887      fi
10888    fi
10889    chmod u+w .
10890    $rm conftest* out/*
10891    rmdir out
10892    cd ..
10893    rmdir conftest
10894    $rm conftest*
10895
10896 fi
10897 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10898 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10899
10900
10901 hard_links="nottested"
10902 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10903   # do not overwrite the value of need_locks provided by the user
10904   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10905 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10906   hard_links=yes
10907   $rm conftest*
10908   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10909   touch conftest.a
10910   ln conftest.a conftest.b 2>&5 || hard_links=no
10911   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10912   echo "$as_me:$LINENO: result: $hard_links" >&5
10913 echo "${ECHO_T}$hard_links" >&6
10914   if test "$hard_links" = no; then
10915     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10916 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10917     need_locks=warn
10918   fi
10919 else
10920   need_locks=no
10921 fi
10922
10923 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10924 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10925
10926   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10927   case $host_os in
10928   aix4* | aix5*)
10929     # If we're using GNU nm, then we don't want the "-C" option.
10930     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10931     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10932       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'
10933     else
10934       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'
10935     fi
10936     ;;
10937   pw32*)
10938     export_symbols_cmds_CXX="$ltdll_cmds"
10939   ;;
10940   cygwin* | mingw*)
10941     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10942   ;;
10943   *)
10944     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10945   ;;
10946   esac
10947
10948 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10949 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10950 test "$ld_shlibs_CXX" = no && can_build_shared=no
10951
10952 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10953 if test "$GCC" = yes; then
10954   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10955 fi
10956
10957 #
10958 # Do we need to explicitly link libc?
10959 #
10960 case "x$archive_cmds_need_lc_CXX" in
10961 x|xyes)
10962   # Assume -lc should be added
10963   archive_cmds_need_lc_CXX=yes
10964
10965   if test "$enable_shared" = yes && test "$GCC" = yes; then
10966     case $archive_cmds_CXX in
10967     *'~'*)
10968       # FIXME: we may have to deal with multi-command sequences.
10969       ;;
10970     '$CC '*)
10971       # Test whether the compiler implicitly links with -lc since on some
10972       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10973       # to ld, don't add -lc before -lgcc.
10974       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10975 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10976       $rm conftest*
10977       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10978
10979       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10980   (eval $ac_compile) 2>&5
10981   ac_status=$?
10982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983   (exit $ac_status); } 2>conftest.err; then
10984         soname=conftest
10985         lib=conftest
10986         libobjs=conftest.$ac_objext
10987         deplibs=
10988         wl=$lt_prog_compiler_wl_CXX
10989         compiler_flags=-v
10990         linker_flags=-v
10991         verstring=
10992         output_objdir=.
10993         libname=conftest
10994         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10995         allow_undefined_flag_CXX=
10996         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10997   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10998   ac_status=$?
10999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000   (exit $ac_status); }
11001         then
11002           archive_cmds_need_lc_CXX=no
11003         else
11004           archive_cmds_need_lc_CXX=yes
11005         fi
11006         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11007       else
11008         cat conftest.err 1>&5
11009       fi
11010       $rm conftest*
11011       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11012 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11013       ;;
11014     esac
11015   fi
11016   ;;
11017 esac
11018
11019 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11020 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11021 hardcode_action_CXX=
11022 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11023    test -n "$runpath_var CXX" || \
11024    test "X$hardcode_automatic_CXX"="Xyes" ; then
11025
11026   # We can hardcode non-existant directories.
11027   if test "$hardcode_direct_CXX" != no &&
11028      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11029      # have to relink, otherwise we might link with an installed library
11030      # when we should be linking with a yet-to-be-installed one
11031      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11032      test "$hardcode_minus_L_CXX" != no; then
11033     # Linking always hardcodes the temporary library directory.
11034     hardcode_action_CXX=relink
11035   else
11036     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11037     hardcode_action_CXX=immediate
11038   fi
11039 else
11040   # We cannot hardcode anything, or else we can only hardcode existing
11041   # directories.
11042   hardcode_action_CXX=unsupported
11043 fi
11044 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11045 echo "${ECHO_T}$hardcode_action_CXX" >&6
11046
11047 if test "$hardcode_action_CXX" = relink; then
11048   # Fast installation is not supported
11049   enable_fast_install=no
11050 elif test "$shlibpath_overrides_runpath" = yes ||
11051      test "$enable_shared" = no; then
11052   # Fast installation is not necessary
11053   enable_fast_install=needless
11054 fi
11055
11056 striplib=
11057 old_striplib=
11058 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11059 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11060 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11061   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11062   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11063   echo "$as_me:$LINENO: result: yes" >&5
11064 echo "${ECHO_T}yes" >&6
11065 else
11066 # FIXME - insert some real tests, host_os isn't really good enough
11067   case $host_os in
11068    darwin*)
11069        if test -n "$STRIP" ; then
11070          striplib="$STRIP -x"
11071          echo "$as_me:$LINENO: result: yes" >&5
11072 echo "${ECHO_T}yes" >&6
11073        else
11074   echo "$as_me:$LINENO: result: no" >&5
11075 echo "${ECHO_T}no" >&6
11076 fi
11077        ;;
11078    *)
11079   echo "$as_me:$LINENO: result: no" >&5
11080 echo "${ECHO_T}no" >&6
11081     ;;
11082   esac
11083 fi
11084
11085 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11086 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11087 library_names_spec=
11088 libname_spec='lib$name'
11089 soname_spec=
11090 shrext=".so"
11091 postinstall_cmds=
11092 postuninstall_cmds=
11093 finish_cmds=
11094 finish_eval=
11095 shlibpath_var=
11096 shlibpath_overrides_runpath=unknown
11097 version_type=none
11098 dynamic_linker="$host_os ld.so"
11099 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11100 if test "$GCC" = yes; then
11101   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11102   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11103     # if the path contains ";" then we assume it to be the separator
11104     # otherwise default to the standard path separator (i.e. ":") - it is
11105     # assumed that no part of a normal pathname contains ";" but that should
11106     # okay in the real world where ";" in dirpaths is itself problematic.
11107     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11108   else
11109     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11110   fi
11111 else
11112   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11113 fi
11114 need_lib_prefix=unknown
11115 hardcode_into_libs=no
11116
11117 # when you set need_version to no, make sure it does not cause -set_version
11118 # flags to be left without arguments
11119 need_version=unknown
11120
11121 case $host_os in
11122 aix3*)
11123   version_type=linux
11124   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11125   shlibpath_var=LIBPATH
11126
11127   # AIX 3 has no versioning support, so we append a major version to the name.
11128   soname_spec='${libname}${release}${shared_ext}$major'
11129   ;;
11130
11131 aix4* | aix5*)
11132   version_type=linux
11133   need_lib_prefix=no
11134   need_version=no
11135   hardcode_into_libs=yes
11136   if test "$host_cpu" = ia64; then
11137     # AIX 5 supports IA64
11138     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11139     shlibpath_var=LD_LIBRARY_PATH
11140   else
11141     # With GCC up to 2.95.x, collect2 would create an import file
11142     # for dependence libraries.  The import file would start with
11143     # the line `#! .'.  This would cause the generated library to
11144     # depend on `.', always an invalid library.  This was fixed in
11145     # development snapshots of GCC prior to 3.0.
11146     case $host_os in
11147       aix4 | aix4.[01] | aix4.[01].*)
11148       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11149            echo ' yes '
11150            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11151         :
11152       else
11153         can_build_shared=no
11154       fi
11155       ;;
11156     esac
11157     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11158     # soname into executable. Probably we can add versioning support to
11159     # collect2, so additional links can be useful in future.
11160     if test "$aix_use_runtimelinking" = yes; then
11161       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11162       # instead of lib<name>.a to let people know that these are not
11163       # typical AIX shared libraries.
11164       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11165     else
11166       # We preserve .a as extension for shared libraries through AIX4.2
11167       # and later when we are not doing run time linking.
11168       library_names_spec='${libname}${release}.a $libname.a'
11169       soname_spec='${libname}${release}${shared_ext}$major'
11170     fi
11171     shlibpath_var=LIBPATH
11172   fi
11173   ;;
11174
11175 amigaos*)
11176   library_names_spec='$libname.ixlibrary $libname.a'
11177   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11178   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'
11179   ;;
11180
11181 beos*)
11182   library_names_spec='${libname}${shared_ext}'
11183   dynamic_linker="$host_os ld.so"
11184   shlibpath_var=LIBRARY_PATH
11185   ;;
11186
11187 bsdi4*)
11188   version_type=linux
11189   need_version=no
11190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11191   soname_spec='${libname}${release}${shared_ext}$major'
11192   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11193   shlibpath_var=LD_LIBRARY_PATH
11194   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11195   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11196   # the default ld.so.conf also contains /usr/contrib/lib and
11197   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11198   # libtool to hard-code these into programs
11199   ;;
11200
11201 cygwin* | mingw* | pw32*)
11202   version_type=windows
11203   shrext=".dll"
11204   need_version=no
11205   need_lib_prefix=no
11206
11207   case $GCC,$host_os in
11208   yes,cygwin* | yes,mingw* | yes,pw32*)
11209     library_names_spec='$libname.dll.a'
11210     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11211     postinstall_cmds='base_file=`basename \${file}`~
11212       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11213       dldir=$destdir/`dirname \$dlpath`~
11214       test -d \$dldir || mkdir -p \$dldir~
11215       $install_prog $dir/$dlname \$dldir/$dlname'
11216     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11217       dlpath=$dir/\$dldll~
11218        $rm \$dlpath'
11219     shlibpath_overrides_runpath=yes
11220
11221     case $host_os in
11222     cygwin*)
11223       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11224       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11225       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11226       ;;
11227     mingw*)
11228       # MinGW DLLs use traditional 'lib' prefix
11229       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11230       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11231       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11232         # It is most probably a Windows format PATH printed by
11233         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11234         # path with ; separators, and with drive letters. We can handle the
11235         # drive letters (cygwin fileutils understands them), so leave them,
11236         # especially as we might pass files found there to a mingw objdump,
11237         # which wouldn't understand a cygwinified path. Ahh.
11238         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11239       else
11240         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11241       fi
11242       ;;
11243     pw32*)
11244       # pw32 DLLs use 'pw' prefix rather than 'lib'
11245       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11246       ;;
11247     esac
11248     ;;
11249
11250   *)
11251     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11252     ;;
11253   esac
11254   dynamic_linker='Win32 ld.exe'
11255   # FIXME: first we should search . and the directory the executable is in
11256   shlibpath_var=PATH
11257   ;;
11258
11259 darwin* | rhapsody*)
11260   dynamic_linker="$host_os dyld"
11261   version_type=darwin
11262   need_lib_prefix=no
11263   need_version=no
11264   # FIXME: Relying on posixy $() will cause problems for
11265   #        cross-compilation, but unfortunately the echo tests do not
11266   #        yet detect zsh echo's removal of \ escapes.
11267   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11268   soname_spec='${libname}${release}${major}$shared_ext'
11269   shlibpath_overrides_runpath=yes
11270   shlibpath_var=DYLD_LIBRARY_PATH
11271   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11272   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11273   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11274   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"`
11275   fi
11276   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11277   ;;
11278
11279 dgux*)
11280   version_type=linux
11281   need_lib_prefix=no
11282   need_version=no
11283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11284   soname_spec='${libname}${release}${shared_ext}$major'
11285   shlibpath_var=LD_LIBRARY_PATH
11286   ;;
11287
11288 freebsd1*)
11289   dynamic_linker=no
11290   ;;
11291
11292 freebsd*)
11293   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11294   version_type=freebsd-$objformat
11295   case $version_type in
11296     freebsd-elf*)
11297       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11298       need_version=no
11299       need_lib_prefix=no
11300       ;;
11301     freebsd-*)
11302       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11303       need_version=yes
11304       ;;
11305   esac
11306   shlibpath_var=LD_LIBRARY_PATH
11307   case $host_os in
11308   freebsd2*)
11309     shlibpath_overrides_runpath=yes
11310     ;;
11311   freebsd3.01* | freebsdelf3.01*)
11312     shlibpath_overrides_runpath=yes
11313     hardcode_into_libs=yes
11314     ;;
11315   *) # from 3.2 on
11316     shlibpath_overrides_runpath=no
11317     hardcode_into_libs=yes
11318     ;;
11319   esac
11320   ;;
11321
11322 gnu*)
11323   version_type=linux
11324   need_lib_prefix=no
11325   need_version=no
11326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11327   soname_spec='${libname}${release}${shared_ext}$major'
11328   shlibpath_var=LD_LIBRARY_PATH
11329   hardcode_into_libs=yes
11330   ;;
11331
11332 hpux9* | hpux10* | hpux11*)
11333   # Give a soname corresponding to the major version so that dld.sl refuses to
11334   # link against other versions.
11335   version_type=sunos
11336   need_lib_prefix=no
11337   need_version=no
11338   case "$host_cpu" in
11339   ia64*)
11340     shrext='.so'
11341     hardcode_into_libs=yes
11342     dynamic_linker="$host_os dld.so"
11343     shlibpath_var=LD_LIBRARY_PATH
11344     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11345     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11346     soname_spec='${libname}${release}${shared_ext}$major'
11347     if test "X$HPUX_IA64_MODE" = X32; then
11348       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11349     else
11350       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11351     fi
11352     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11353     ;;
11354    hppa*64*)
11355      shrext='.sl'
11356      hardcode_into_libs=yes
11357      dynamic_linker="$host_os dld.sl"
11358      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11359      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11360      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11361      soname_spec='${libname}${release}${shared_ext}$major'
11362      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11363      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11364      ;;
11365    *)
11366     shrext='.sl'
11367     dynamic_linker="$host_os dld.sl"
11368     shlibpath_var=SHLIB_PATH
11369     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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     ;;
11373   esac
11374   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11375   postinstall_cmds='chmod 555 $lib'
11376   ;;
11377
11378 irix5* | irix6* | nonstopux*)
11379   case $host_os in
11380     nonstopux*) version_type=nonstopux ;;
11381     *)
11382         if test "$lt_cv_prog_gnu_ld" = yes; then
11383                 version_type=linux
11384         else
11385                 version_type=irix
11386         fi ;;
11387   esac
11388   need_lib_prefix=no
11389   need_version=no
11390   soname_spec='${libname}${release}${shared_ext}$major'
11391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11392   case $host_os in
11393   irix5* | nonstopux*)
11394     libsuff= shlibsuff=
11395     ;;
11396   *)
11397     case $LD in # libtool.m4 will add one of these switches to LD
11398     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11399       libsuff= shlibsuff= libmagic=32-bit;;
11400     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11401       libsuff=32 shlibsuff=N32 libmagic=N32;;
11402     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11403       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11404     *) libsuff= shlibsuff= libmagic=never-match;;
11405     esac
11406     ;;
11407   esac
11408   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11409   shlibpath_overrides_runpath=no
11410   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11411   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11412   hardcode_into_libs=yes
11413   ;;
11414
11415 # No shared lib support for Linux oldld, aout, or coff.
11416 linux*oldld* | linux*aout* | linux*coff*)
11417   dynamic_linker=no
11418   ;;
11419
11420 # This must be Linux ELF.
11421 linux*)
11422   version_type=linux
11423   need_lib_prefix=no
11424   need_version=no
11425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11426   soname_spec='${libname}${release}${shared_ext}$major'
11427   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11428   shlibpath_var=LD_LIBRARY_PATH
11429   shlibpath_overrides_runpath=no
11430   # This implies no fast_install, which is unacceptable.
11431   # Some rework will be needed to allow for fast_install
11432   # before this can be enabled.
11433   hardcode_into_libs=yes
11434
11435   # We used to test for /lib/ld.so.1 and disable shared libraries on
11436   # powerpc, because MkLinux only supported shared libraries with the
11437   # GNU dynamic linker.  Since this was broken with cross compilers,
11438   # most powerpc-linux boxes support dynamic linking these days and
11439   # people can always --disable-shared, the test was removed, and we
11440   # assume the GNU/Linux dynamic linker is in use.
11441   dynamic_linker='GNU/Linux ld.so'
11442   ;;
11443
11444 netbsd*)
11445   version_type=sunos
11446   need_lib_prefix=no
11447   need_version=no
11448   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11449     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11450     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11451     dynamic_linker='NetBSD (a.out) ld.so'
11452   else
11453     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11454     soname_spec='${libname}${release}${shared_ext}$major'
11455     dynamic_linker='NetBSD ld.elf_so'
11456   fi
11457   shlibpath_var=LD_LIBRARY_PATH
11458   shlibpath_overrides_runpath=yes
11459   hardcode_into_libs=yes
11460   ;;
11461
11462 newsos6)
11463   version_type=linux
11464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11465   shlibpath_var=LD_LIBRARY_PATH
11466   shlibpath_overrides_runpath=yes
11467   ;;
11468
11469 nto-qnx)
11470   version_type=linux
11471   need_lib_prefix=no
11472   need_version=no
11473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11474   soname_spec='${libname}${release}${shared_ext}$major'
11475   shlibpath_var=LD_LIBRARY_PATH
11476   shlibpath_overrides_runpath=yes
11477   ;;
11478
11479 openbsd*)
11480   version_type=sunos
11481   need_lib_prefix=no
11482   need_version=no
11483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11484   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11485   shlibpath_var=LD_LIBRARY_PATH
11486   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11487     case $host_os in
11488       openbsd2.[89] | openbsd2.[89].*)
11489         shlibpath_overrides_runpath=no
11490         ;;
11491       *)
11492         shlibpath_overrides_runpath=yes
11493         ;;
11494       esac
11495   else
11496     shlibpath_overrides_runpath=yes
11497   fi
11498   ;;
11499
11500 os2*)
11501   libname_spec='$name'
11502   shrext=".dll"
11503   need_lib_prefix=no
11504   library_names_spec='$libname${shared_ext} $libname.a'
11505   dynamic_linker='OS/2 ld.exe'
11506   shlibpath_var=LIBPATH
11507   ;;
11508
11509 osf3* | osf4* | osf5*)
11510   version_type=osf
11511   need_lib_prefix=no
11512   need_version=no
11513   soname_spec='${libname}${release}${shared_ext}$major'
11514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11515   shlibpath_var=LD_LIBRARY_PATH
11516   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11517   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11518   ;;
11519
11520 sco3.2v5*)
11521   version_type=osf
11522   soname_spec='${libname}${release}${shared_ext}$major'
11523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11524   shlibpath_var=LD_LIBRARY_PATH
11525   ;;
11526
11527 solaris*)
11528   version_type=linux
11529   need_lib_prefix=no
11530   need_version=no
11531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11532   soname_spec='${libname}${release}${shared_ext}$major'
11533   shlibpath_var=LD_LIBRARY_PATH
11534   shlibpath_overrides_runpath=yes
11535   hardcode_into_libs=yes
11536   # ldd complains unless libraries are executable
11537   postinstall_cmds='chmod +x $lib'
11538   ;;
11539
11540 sunos4*)
11541   version_type=sunos
11542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11543   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11544   shlibpath_var=LD_LIBRARY_PATH
11545   shlibpath_overrides_runpath=yes
11546   if test "$with_gnu_ld" = yes; then
11547     need_lib_prefix=no
11548   fi
11549   need_version=yes
11550   ;;
11551
11552 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11553   version_type=linux
11554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11555   soname_spec='${libname}${release}${shared_ext}$major'
11556   shlibpath_var=LD_LIBRARY_PATH
11557   case $host_vendor in
11558     sni)
11559       shlibpath_overrides_runpath=no
11560       need_lib_prefix=no
11561       export_dynamic_flag_spec='${wl}-Blargedynsym'
11562       runpath_var=LD_RUN_PATH
11563       ;;
11564     siemens)
11565       need_lib_prefix=no
11566       ;;
11567     motorola)
11568       need_lib_prefix=no
11569       need_version=no
11570       shlibpath_overrides_runpath=no
11571       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11572       ;;
11573   esac
11574   ;;
11575
11576 sysv4*MP*)
11577   if test -d /usr/nec ;then
11578     version_type=linux
11579     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11580     soname_spec='$libname${shared_ext}.$major'
11581     shlibpath_var=LD_LIBRARY_PATH
11582   fi
11583   ;;
11584
11585 uts4*)
11586   version_type=linux
11587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11588   soname_spec='${libname}${release}${shared_ext}$major'
11589   shlibpath_var=LD_LIBRARY_PATH
11590   ;;
11591
11592 *)
11593   dynamic_linker=no
11594   ;;
11595 esac
11596 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11597 echo "${ECHO_T}$dynamic_linker" >&6
11598 test "$dynamic_linker" = no && can_build_shared=no
11599
11600 if test "x$enable_dlopen" != xyes; then
11601   enable_dlopen=unknown
11602   enable_dlopen_self=unknown
11603   enable_dlopen_self_static=unknown
11604 else
11605   lt_cv_dlopen=no
11606   lt_cv_dlopen_libs=
11607
11608   case $host_os in
11609   beos*)
11610     lt_cv_dlopen="load_add_on"
11611     lt_cv_dlopen_libs=
11612     lt_cv_dlopen_self=yes
11613     ;;
11614
11615   mingw* | pw32*)
11616     lt_cv_dlopen="LoadLibrary"
11617     lt_cv_dlopen_libs=
11618    ;;
11619
11620   cygwin*)
11621     lt_cv_dlopen="dlopen"
11622     lt_cv_dlopen_libs=
11623    ;;
11624
11625   darwin*)
11626   # if libdl is installed we need to link against it
11627     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11628 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11629 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11630   echo $ECHO_N "(cached) $ECHO_C" >&6
11631 else
11632   ac_check_lib_save_LIBS=$LIBS
11633 LIBS="-ldl  $LIBS"
11634 cat >conftest.$ac_ext <<_ACEOF
11635 #line $LINENO "configure"
11636 /* confdefs.h.  */
11637 _ACEOF
11638 cat confdefs.h >>conftest.$ac_ext
11639 cat >>conftest.$ac_ext <<_ACEOF
11640 /* end confdefs.h.  */
11641
11642 /* Override any gcc2 internal prototype to avoid an error.  */
11643 #ifdef __cplusplus
11644 extern "C"
11645 #endif
11646 /* We use char because int might match the return type of a gcc2
11647    builtin and then its argument prototype would still apply.  */
11648 char dlopen ();
11649 int
11650 main ()
11651 {
11652 dlopen ();
11653   ;
11654   return 0;
11655 }
11656 _ACEOF
11657 rm -f conftest.$ac_objext conftest$ac_exeext
11658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11659   (eval $ac_link) 2>&5
11660   ac_status=$?
11661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662   (exit $ac_status); } &&
11663          { ac_try='test -s conftest$ac_exeext'
11664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11665   (eval $ac_try) 2>&5
11666   ac_status=$?
11667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668   (exit $ac_status); }; }; then
11669   ac_cv_lib_dl_dlopen=yes
11670 else
11671   echo "$as_me: failed program was:" >&5
11672 sed 's/^/| /' conftest.$ac_ext >&5
11673
11674 ac_cv_lib_dl_dlopen=no
11675 fi
11676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11677 LIBS=$ac_check_lib_save_LIBS
11678 fi
11679 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11680 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11681 if test $ac_cv_lib_dl_dlopen = yes; then
11682   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11683 else
11684
11685     lt_cv_dlopen="dyld"
11686     lt_cv_dlopen_libs=
11687     lt_cv_dlopen_self=yes
11688
11689 fi
11690
11691    ;;
11692
11693   *)
11694     echo "$as_me:$LINENO: checking for shl_load" >&5
11695 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11696 if test "${ac_cv_func_shl_load+set}" = set; then
11697   echo $ECHO_N "(cached) $ECHO_C" >&6
11698 else
11699   cat >conftest.$ac_ext <<_ACEOF
11700 #line $LINENO "configure"
11701 /* confdefs.h.  */
11702 _ACEOF
11703 cat confdefs.h >>conftest.$ac_ext
11704 cat >>conftest.$ac_ext <<_ACEOF
11705 /* end confdefs.h.  */
11706 /* System header to define __stub macros and hopefully few prototypes,
11707     which can conflict with char shl_load (); below.
11708     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11709     <limits.h> exists even on freestanding compilers.  */
11710 #ifdef __STDC__
11711 # include <limits.h>
11712 #else
11713 # include <assert.h>
11714 #endif
11715 /* Override any gcc2 internal prototype to avoid an error.  */
11716 #ifdef __cplusplus
11717 extern "C"
11718 {
11719 #endif
11720 /* We use char because int might match the return type of a gcc2
11721    builtin and then its argument prototype would still apply.  */
11722 char shl_load ();
11723 /* The GNU C library defines this for functions which it implements
11724     to always fail with ENOSYS.  Some functions are actually named
11725     something starting with __ and the normal name is an alias.  */
11726 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11727 choke me
11728 #else
11729 char (*f) () = shl_load;
11730 #endif
11731 #ifdef __cplusplus
11732 }
11733 #endif
11734
11735 int
11736 main ()
11737 {
11738 return f != shl_load;
11739   ;
11740   return 0;
11741 }
11742 _ACEOF
11743 rm -f conftest.$ac_objext conftest$ac_exeext
11744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11745   (eval $ac_link) 2>&5
11746   ac_status=$?
11747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748   (exit $ac_status); } &&
11749          { ac_try='test -s conftest$ac_exeext'
11750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11751   (eval $ac_try) 2>&5
11752   ac_status=$?
11753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754   (exit $ac_status); }; }; then
11755   ac_cv_func_shl_load=yes
11756 else
11757   echo "$as_me: failed program was:" >&5
11758 sed 's/^/| /' conftest.$ac_ext >&5
11759
11760 ac_cv_func_shl_load=no
11761 fi
11762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11763 fi
11764 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11765 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11766 if test $ac_cv_func_shl_load = yes; then
11767   lt_cv_dlopen="shl_load"
11768 else
11769   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11770 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11771 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11772   echo $ECHO_N "(cached) $ECHO_C" >&6
11773 else
11774   ac_check_lib_save_LIBS=$LIBS
11775 LIBS="-ldld  $LIBS"
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
11784 /* Override any gcc2 internal prototype to avoid an error.  */
11785 #ifdef __cplusplus
11786 extern "C"
11787 #endif
11788 /* We use char because int might match the return type of a gcc2
11789    builtin and then its argument prototype would still apply.  */
11790 char shl_load ();
11791 int
11792 main ()
11793 {
11794 shl_load ();
11795   ;
11796   return 0;
11797 }
11798 _ACEOF
11799 rm -f conftest.$ac_objext conftest$ac_exeext
11800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11801   (eval $ac_link) 2>&5
11802   ac_status=$?
11803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804   (exit $ac_status); } &&
11805          { ac_try='test -s conftest$ac_exeext'
11806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11807   (eval $ac_try) 2>&5
11808   ac_status=$?
11809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810   (exit $ac_status); }; }; then
11811   ac_cv_lib_dld_shl_load=yes
11812 else
11813   echo "$as_me: failed program was:" >&5
11814 sed 's/^/| /' conftest.$ac_ext >&5
11815
11816 ac_cv_lib_dld_shl_load=no
11817 fi
11818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11819 LIBS=$ac_check_lib_save_LIBS
11820 fi
11821 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11822 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11823 if test $ac_cv_lib_dld_shl_load = yes; then
11824   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11825 else
11826   echo "$as_me:$LINENO: checking for dlopen" >&5
11827 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11828 if test "${ac_cv_func_dlopen+set}" = set; then
11829   echo $ECHO_N "(cached) $ECHO_C" >&6
11830 else
11831   cat >conftest.$ac_ext <<_ACEOF
11832 #line $LINENO "configure"
11833 /* confdefs.h.  */
11834 _ACEOF
11835 cat confdefs.h >>conftest.$ac_ext
11836 cat >>conftest.$ac_ext <<_ACEOF
11837 /* end confdefs.h.  */
11838 /* System header to define __stub macros and hopefully few prototypes,
11839     which can conflict with char dlopen (); below.
11840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11841     <limits.h> exists even on freestanding compilers.  */
11842 #ifdef __STDC__
11843 # include <limits.h>
11844 #else
11845 # include <assert.h>
11846 #endif
11847 /* Override any gcc2 internal prototype to avoid an error.  */
11848 #ifdef __cplusplus
11849 extern "C"
11850 {
11851 #endif
11852 /* We use char because int might match the return type of a gcc2
11853    builtin and then its argument prototype would still apply.  */
11854 char dlopen ();
11855 /* The GNU C library defines this for functions which it implements
11856     to always fail with ENOSYS.  Some functions are actually named
11857     something starting with __ and the normal name is an alias.  */
11858 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11859 choke me
11860 #else
11861 char (*f) () = dlopen;
11862 #endif
11863 #ifdef __cplusplus
11864 }
11865 #endif
11866
11867 int
11868 main ()
11869 {
11870 return f != dlopen;
11871   ;
11872   return 0;
11873 }
11874 _ACEOF
11875 rm -f conftest.$ac_objext conftest$ac_exeext
11876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11877   (eval $ac_link) 2>&5
11878   ac_status=$?
11879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880   (exit $ac_status); } &&
11881          { ac_try='test -s conftest$ac_exeext'
11882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11883   (eval $ac_try) 2>&5
11884   ac_status=$?
11885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886   (exit $ac_status); }; }; then
11887   ac_cv_func_dlopen=yes
11888 else
11889   echo "$as_me: failed program was:" >&5
11890 sed 's/^/| /' conftest.$ac_ext >&5
11891
11892 ac_cv_func_dlopen=no
11893 fi
11894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11895 fi
11896 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11897 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11898 if test $ac_cv_func_dlopen = yes; then
11899   lt_cv_dlopen="dlopen"
11900 else
11901   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11902 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11903 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11904   echo $ECHO_N "(cached) $ECHO_C" >&6
11905 else
11906   ac_check_lib_save_LIBS=$LIBS
11907 LIBS="-ldl  $LIBS"
11908 cat >conftest.$ac_ext <<_ACEOF
11909 #line $LINENO "configure"
11910 /* confdefs.h.  */
11911 _ACEOF
11912 cat confdefs.h >>conftest.$ac_ext
11913 cat >>conftest.$ac_ext <<_ACEOF
11914 /* end confdefs.h.  */
11915
11916 /* Override any gcc2 internal prototype to avoid an error.  */
11917 #ifdef __cplusplus
11918 extern "C"
11919 #endif
11920 /* We use char because int might match the return type of a gcc2
11921    builtin and then its argument prototype would still apply.  */
11922 char dlopen ();
11923 int
11924 main ()
11925 {
11926 dlopen ();
11927   ;
11928   return 0;
11929 }
11930 _ACEOF
11931 rm -f conftest.$ac_objext conftest$ac_exeext
11932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11933   (eval $ac_link) 2>&5
11934   ac_status=$?
11935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936   (exit $ac_status); } &&
11937          { ac_try='test -s conftest$ac_exeext'
11938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11939   (eval $ac_try) 2>&5
11940   ac_status=$?
11941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942   (exit $ac_status); }; }; then
11943   ac_cv_lib_dl_dlopen=yes
11944 else
11945   echo "$as_me: failed program was:" >&5
11946 sed 's/^/| /' conftest.$ac_ext >&5
11947
11948 ac_cv_lib_dl_dlopen=no
11949 fi
11950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11951 LIBS=$ac_check_lib_save_LIBS
11952 fi
11953 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11954 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11955 if test $ac_cv_lib_dl_dlopen = yes; then
11956   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11957 else
11958   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11959 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11960 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11961   echo $ECHO_N "(cached) $ECHO_C" >&6
11962 else
11963   ac_check_lib_save_LIBS=$LIBS
11964 LIBS="-lsvld  $LIBS"
11965 cat >conftest.$ac_ext <<_ACEOF
11966 #line $LINENO "configure"
11967 /* confdefs.h.  */
11968 _ACEOF
11969 cat confdefs.h >>conftest.$ac_ext
11970 cat >>conftest.$ac_ext <<_ACEOF
11971 /* end confdefs.h.  */
11972
11973 /* Override any gcc2 internal prototype to avoid an error.  */
11974 #ifdef __cplusplus
11975 extern "C"
11976 #endif
11977 /* We use char because int might match the return type of a gcc2
11978    builtin and then its argument prototype would still apply.  */
11979 char dlopen ();
11980 int
11981 main ()
11982 {
11983 dlopen ();
11984   ;
11985   return 0;
11986 }
11987 _ACEOF
11988 rm -f conftest.$ac_objext conftest$ac_exeext
11989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11990   (eval $ac_link) 2>&5
11991   ac_status=$?
11992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993   (exit $ac_status); } &&
11994          { ac_try='test -s conftest$ac_exeext'
11995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996   (eval $ac_try) 2>&5
11997   ac_status=$?
11998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999   (exit $ac_status); }; }; then
12000   ac_cv_lib_svld_dlopen=yes
12001 else
12002   echo "$as_me: failed program was:" >&5
12003 sed 's/^/| /' conftest.$ac_ext >&5
12004
12005 ac_cv_lib_svld_dlopen=no
12006 fi
12007 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12008 LIBS=$ac_check_lib_save_LIBS
12009 fi
12010 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12011 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12012 if test $ac_cv_lib_svld_dlopen = yes; then
12013   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12014 else
12015   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12016 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12017 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12018   echo $ECHO_N "(cached) $ECHO_C" >&6
12019 else
12020   ac_check_lib_save_LIBS=$LIBS
12021 LIBS="-ldld  $LIBS"
12022 cat >conftest.$ac_ext <<_ACEOF
12023 #line $LINENO "configure"
12024 /* confdefs.h.  */
12025 _ACEOF
12026 cat confdefs.h >>conftest.$ac_ext
12027 cat >>conftest.$ac_ext <<_ACEOF
12028 /* end confdefs.h.  */
12029
12030 /* Override any gcc2 internal prototype to avoid an error.  */
12031 #ifdef __cplusplus
12032 extern "C"
12033 #endif
12034 /* We use char because int might match the return type of a gcc2
12035    builtin and then its argument prototype would still apply.  */
12036 char dld_link ();
12037 int
12038 main ()
12039 {
12040 dld_link ();
12041   ;
12042   return 0;
12043 }
12044 _ACEOF
12045 rm -f conftest.$ac_objext conftest$ac_exeext
12046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12047   (eval $ac_link) 2>&5
12048   ac_status=$?
12049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050   (exit $ac_status); } &&
12051          { ac_try='test -s conftest$ac_exeext'
12052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12053   (eval $ac_try) 2>&5
12054   ac_status=$?
12055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056   (exit $ac_status); }; }; then
12057   ac_cv_lib_dld_dld_link=yes
12058 else
12059   echo "$as_me: failed program was:" >&5
12060 sed 's/^/| /' conftest.$ac_ext >&5
12061
12062 ac_cv_lib_dld_dld_link=no
12063 fi
12064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12065 LIBS=$ac_check_lib_save_LIBS
12066 fi
12067 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12068 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12069 if test $ac_cv_lib_dld_dld_link = yes; then
12070   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12071 fi
12072
12073
12074 fi
12075
12076
12077 fi
12078
12079
12080 fi
12081
12082
12083 fi
12084
12085
12086 fi
12087
12088     ;;
12089   esac
12090
12091   if test "x$lt_cv_dlopen" != xno; then
12092     enable_dlopen=yes
12093   else
12094     enable_dlopen=no
12095   fi
12096
12097   case $lt_cv_dlopen in
12098   dlopen)
12099     save_CPPFLAGS="$CPPFLAGS"
12100     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12101
12102     save_LDFLAGS="$LDFLAGS"
12103     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12104
12105     save_LIBS="$LIBS"
12106     LIBS="$lt_cv_dlopen_libs $LIBS"
12107
12108     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12109 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12110 if test "${lt_cv_dlopen_self+set}" = set; then
12111   echo $ECHO_N "(cached) $ECHO_C" >&6
12112 else
12113           if test "$cross_compiling" = yes; then :
12114   lt_cv_dlopen_self=cross
12115 else
12116   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12117   lt_status=$lt_dlunknown
12118   cat > conftest.$ac_ext <<EOF
12119 #line 12119 "configure"
12120 #include "confdefs.h"
12121
12122 #if HAVE_DLFCN_H
12123 #include <dlfcn.h>
12124 #endif
12125
12126 #include <stdio.h>
12127
12128 #ifdef RTLD_GLOBAL
12129 #  define LT_DLGLOBAL           RTLD_GLOBAL
12130 #else
12131 #  ifdef DL_GLOBAL
12132 #    define LT_DLGLOBAL         DL_GLOBAL
12133 #  else
12134 #    define LT_DLGLOBAL         0
12135 #  endif
12136 #endif
12137
12138 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12139    find out it does not work in some platform. */
12140 #ifndef LT_DLLAZY_OR_NOW
12141 #  ifdef RTLD_LAZY
12142 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12143 #  else
12144 #    ifdef DL_LAZY
12145 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12146 #    else
12147 #      ifdef RTLD_NOW
12148 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12149 #      else
12150 #        ifdef DL_NOW
12151 #          define LT_DLLAZY_OR_NOW      DL_NOW
12152 #        else
12153 #          define LT_DLLAZY_OR_NOW      0
12154 #        endif
12155 #      endif
12156 #    endif
12157 #  endif
12158 #endif
12159
12160 #ifdef __cplusplus
12161 extern "C" void exit (int);
12162 #endif
12163
12164 void fnord() { int i=42;}
12165 int main ()
12166 {
12167   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12168   int status = $lt_dlunknown;
12169
12170   if (self)
12171     {
12172       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12173       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12174       /* dlclose (self); */
12175     }
12176
12177     exit (status);
12178 }
12179 EOF
12180   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12181   (eval $ac_link) 2>&5
12182   ac_status=$?
12183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12185     (./conftest; exit; ) 2>/dev/null
12186     lt_status=$?
12187     case x$lt_status in
12188       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12189       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12190       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12191     esac
12192   else :
12193     # compilation failed
12194     lt_cv_dlopen_self=no
12195   fi
12196 fi
12197 rm -fr conftest*
12198
12199
12200 fi
12201 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12202 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12203
12204     if test "x$lt_cv_dlopen_self" = xyes; then
12205       LDFLAGS="$LDFLAGS $link_static_flag"
12206       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12207 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12208 if test "${lt_cv_dlopen_self_static+set}" = set; then
12209   echo $ECHO_N "(cached) $ECHO_C" >&6
12210 else
12211           if test "$cross_compiling" = yes; then :
12212   lt_cv_dlopen_self_static=cross
12213 else
12214   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12215   lt_status=$lt_dlunknown
12216   cat > conftest.$ac_ext <<EOF
12217 #line 12217 "configure"
12218 #include "confdefs.h"
12219
12220 #if HAVE_DLFCN_H
12221 #include <dlfcn.h>
12222 #endif
12223
12224 #include <stdio.h>
12225
12226 #ifdef RTLD_GLOBAL
12227 #  define LT_DLGLOBAL           RTLD_GLOBAL
12228 #else
12229 #  ifdef DL_GLOBAL
12230 #    define LT_DLGLOBAL         DL_GLOBAL
12231 #  else
12232 #    define LT_DLGLOBAL         0
12233 #  endif
12234 #endif
12235
12236 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12237    find out it does not work in some platform. */
12238 #ifndef LT_DLLAZY_OR_NOW
12239 #  ifdef RTLD_LAZY
12240 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12241 #  else
12242 #    ifdef DL_LAZY
12243 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12244 #    else
12245 #      ifdef RTLD_NOW
12246 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12247 #      else
12248 #        ifdef DL_NOW
12249 #          define LT_DLLAZY_OR_NOW      DL_NOW
12250 #        else
12251 #          define LT_DLLAZY_OR_NOW      0
12252 #        endif
12253 #      endif
12254 #    endif
12255 #  endif
12256 #endif
12257
12258 #ifdef __cplusplus
12259 extern "C" void exit (int);
12260 #endif
12261
12262 void fnord() { int i=42;}
12263 int main ()
12264 {
12265   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12266   int status = $lt_dlunknown;
12267
12268   if (self)
12269     {
12270       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12271       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12272       /* dlclose (self); */
12273     }
12274
12275     exit (status);
12276 }
12277 EOF
12278   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12279   (eval $ac_link) 2>&5
12280   ac_status=$?
12281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12283     (./conftest; exit; ) 2>/dev/null
12284     lt_status=$?
12285     case x$lt_status in
12286       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12287       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12288       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12289     esac
12290   else :
12291     # compilation failed
12292     lt_cv_dlopen_self_static=no
12293   fi
12294 fi
12295 rm -fr conftest*
12296
12297
12298 fi
12299 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12300 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12301     fi
12302
12303     CPPFLAGS="$save_CPPFLAGS"
12304     LDFLAGS="$save_LDFLAGS"
12305     LIBS="$save_LIBS"
12306     ;;
12307   esac
12308
12309   case $lt_cv_dlopen_self in
12310   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12311   *) enable_dlopen_self=unknown ;;
12312   esac
12313
12314   case $lt_cv_dlopen_self_static in
12315   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12316   *) enable_dlopen_self_static=unknown ;;
12317   esac
12318 fi
12319
12320
12321 # The else clause should only fire when bootstrapping the
12322 # libtool distribution, otherwise you forgot to ship ltmain.sh
12323 # with your package, and you will get complaints that there are
12324 # no rules to generate ltmain.sh.
12325 if test -f "$ltmain"; then
12326   # See if we are running on zsh, and set the options which allow our commands through
12327   # without removal of \ escapes.
12328   if test -n "${ZSH_VERSION+set}" ; then
12329     setopt NO_GLOB_SUBST
12330   fi
12331   # Now quote all the things that may contain metacharacters while being
12332   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12333   # variables and quote the copies for generation of the libtool script.
12334   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12335     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12336     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12337     deplibs_check_method reload_flag reload_cmds need_locks \
12338     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12339     lt_cv_sys_global_symbol_to_c_name_address \
12340     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12341     old_postinstall_cmds old_postuninstall_cmds \
12342     compiler_CXX \
12343     CC_CXX \
12344     LD_CXX \
12345     lt_prog_compiler_wl_CXX \
12346     lt_prog_compiler_pic_CXX \
12347     lt_prog_compiler_static_CXX \
12348     lt_prog_compiler_no_builtin_flag_CXX \
12349     export_dynamic_flag_spec_CXX \
12350     thread_safe_flag_spec_CXX \
12351     whole_archive_flag_spec_CXX \
12352     enable_shared_with_static_runtimes_CXX \
12353     old_archive_cmds_CXX \
12354     old_archive_from_new_cmds_CXX \
12355     predep_objects_CXX \
12356     postdep_objects_CXX \
12357     predeps_CXX \
12358     postdeps_CXX \
12359     compiler_lib_search_path_CXX \
12360     archive_cmds_CXX \
12361     archive_expsym_cmds_CXX \
12362     postinstall_cmds_CXX \
12363     postuninstall_cmds_CXX \
12364     old_archive_from_expsyms_cmds_CXX \
12365     allow_undefined_flag_CXX \
12366     no_undefined_flag_CXX \
12367     export_symbols_cmds_CXX \
12368     hardcode_libdir_flag_spec_CXX \
12369     hardcode_libdir_flag_spec_ld_CXX \
12370     hardcode_libdir_separator_CXX \
12371     hardcode_automatic_CXX \
12372     module_cmds_CXX \
12373     module_expsym_cmds_CXX \
12374     lt_cv_prog_compiler_c_o_CXX \
12375     exclude_expsyms_CXX \
12376     include_expsyms_CXX; do
12377
12378     case $var in
12379     old_archive_cmds_CXX | \
12380     old_archive_from_new_cmds_CXX | \
12381     archive_cmds_CXX | \
12382     archive_expsym_cmds_CXX | \
12383     module_cmds_CXX | \
12384     module_expsym_cmds_CXX | \
12385     old_archive_from_expsyms_cmds_CXX | \
12386     export_symbols_cmds_CXX | \
12387     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12388     postinstall_cmds | postuninstall_cmds | \
12389     old_postinstall_cmds | old_postuninstall_cmds | \
12390     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12391       # Double-quote double-evaled strings.
12392       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12393       ;;
12394     *)
12395       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12396       ;;
12397     esac
12398   done
12399
12400   case $lt_echo in
12401   *'\$0 --fallback-echo"')
12402     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12403     ;;
12404   esac
12405
12406 cfgfile="$ofile"
12407
12408   cat <<__EOF__ >> "$cfgfile"
12409 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12410
12411 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12412
12413 # Shell to use when invoking shell scripts.
12414 SHELL=$lt_SHELL
12415
12416 # Whether or not to build shared libraries.
12417 build_libtool_libs=$enable_shared
12418
12419 # Whether or not to build static libraries.
12420 build_old_libs=$enable_static
12421
12422 # Whether or not to add -lc for building shared libraries.
12423 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12424
12425 # Whether or not to disallow shared libs when runtime libs are static
12426 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12427
12428 # Whether or not to optimize for fast installation.
12429 fast_install=$enable_fast_install
12430
12431 # The host system.
12432 host_alias=$host_alias
12433 host=$host
12434
12435 # An echo program that does not interpret backslashes.
12436 echo=$lt_echo
12437
12438 # The archiver.
12439 AR=$lt_AR
12440 AR_FLAGS=$lt_AR_FLAGS
12441
12442 # A C compiler.
12443 LTCC=$lt_LTCC
12444
12445 # A language-specific compiler.
12446 CC=$lt_compiler_CXX
12447
12448 # Is the compiler the GNU C compiler?
12449 with_gcc=$GCC_CXX
12450
12451 # An ERE matcher.
12452 EGREP=$lt_EGREP
12453
12454 # The linker used to build libraries.
12455 LD=$lt_LD_CXX
12456
12457 # Whether we need hard or soft links.
12458 LN_S=$lt_LN_S
12459
12460 # A BSD-compatible nm program.
12461 NM=$lt_NM
12462
12463 # A symbol stripping program
12464 STRIP=$STRIP
12465
12466 # Used to examine libraries when file_magic_cmd begins "file"
12467 MAGIC_CMD=$MAGIC_CMD
12468
12469 # Used on cygwin: DLL creation program.
12470 DLLTOOL="$DLLTOOL"
12471
12472 # Used on cygwin: object dumper.
12473 OBJDUMP="$OBJDUMP"
12474
12475 # Used on cygwin: assembler.
12476 AS="$AS"
12477
12478 # The name of the directory that contains temporary libtool files.
12479 objdir=$objdir
12480
12481 # How to create reloadable object files.
12482 reload_flag=$lt_reload_flag
12483 reload_cmds=$lt_reload_cmds
12484
12485 # How to pass a linker flag through the compiler.
12486 wl=$lt_lt_prog_compiler_wl_CXX
12487
12488 # Object file suffix (normally "o").
12489 objext="$ac_objext"
12490
12491 # Old archive suffix (normally "a").
12492 libext="$libext"
12493
12494 # Shared library suffix (normally ".so").
12495 shrext='$shrext'
12496
12497 # Executable file suffix (normally "").
12498 exeext="$exeext"
12499
12500 # Additional compiler flags for building library objects.
12501 pic_flag=$lt_lt_prog_compiler_pic_CXX
12502 pic_mode=$pic_mode
12503
12504 # What is the maximum length of a command?
12505 max_cmd_len=$lt_cv_sys_max_cmd_len
12506
12507 # Does compiler simultaneously support -c and -o options?
12508 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12509
12510 # Must we lock files when doing compilation ?
12511 need_locks=$lt_need_locks
12512
12513 # Do we need the lib prefix for modules?
12514 need_lib_prefix=$need_lib_prefix
12515
12516 # Do we need a version for libraries?
12517 need_version=$need_version
12518
12519 # Whether dlopen is supported.
12520 dlopen_support=$enable_dlopen
12521
12522 # Whether dlopen of programs is supported.
12523 dlopen_self=$enable_dlopen_self
12524
12525 # Whether dlopen of statically linked programs is supported.
12526 dlopen_self_static=$enable_dlopen_self_static
12527
12528 # Compiler flag to prevent dynamic linking.
12529 link_static_flag=$lt_lt_prog_compiler_static_CXX
12530
12531 # Compiler flag to turn off builtin functions.
12532 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12533
12534 # Compiler flag to allow reflexive dlopens.
12535 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12536
12537 # Compiler flag to generate shared objects directly from archives.
12538 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12539
12540 # Compiler flag to generate thread-safe objects.
12541 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12542
12543 # Library versioning type.
12544 version_type=$version_type
12545
12546 # Format of library name prefix.
12547 libname_spec=$lt_libname_spec
12548
12549 # List of archive names.  First name is the real one, the rest are links.
12550 # The last name is the one that the linker finds with -lNAME.
12551 library_names_spec=$lt_library_names_spec
12552
12553 # The coded name of the library, if different from the real name.
12554 soname_spec=$lt_soname_spec
12555
12556 # Commands used to build and install an old-style archive.
12557 RANLIB=$lt_RANLIB
12558 old_archive_cmds=$lt_old_archive_cmds_CXX
12559 old_postinstall_cmds=$lt_old_postinstall_cmds
12560 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12561
12562 # Create an old-style archive from a shared archive.
12563 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12564
12565 # Create a temporary old-style archive to link instead of a shared archive.
12566 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12567
12568 # Commands used to build and install a shared archive.
12569 archive_cmds=$lt_archive_cmds_CXX
12570 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12571 postinstall_cmds=$lt_postinstall_cmds
12572 postuninstall_cmds=$lt_postuninstall_cmds
12573
12574 # Commands used to build a loadable module (assumed same as above if empty)
12575 module_cmds=$lt_module_cmds_CXX
12576 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12577
12578 # Commands to strip libraries.
12579 old_striplib=$lt_old_striplib
12580 striplib=$lt_striplib
12581
12582 # Dependencies to place before the objects being linked to create a
12583 # shared library.
12584 predep_objects=$lt_predep_objects_CXX
12585
12586 # Dependencies to place after the objects being linked to create a
12587 # shared library.
12588 postdep_objects=$lt_postdep_objects_CXX
12589
12590 # Dependencies to place before the objects being linked to create a
12591 # shared library.
12592 predeps=$lt_predeps_CXX
12593
12594 # Dependencies to place after the objects being linked to create a
12595 # shared library.
12596 postdeps=$lt_postdeps_CXX
12597
12598 # The library search path used internally by the compiler when linking
12599 # a shared library.
12600 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12601
12602 # Method to check whether dependent libraries are shared objects.
12603 deplibs_check_method=$lt_deplibs_check_method
12604
12605 # Command to use when deplibs_check_method == file_magic.
12606 file_magic_cmd=$lt_file_magic_cmd
12607
12608 # Flag that allows shared libraries with undefined symbols to be built.
12609 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12610
12611 # Flag that forces no undefined symbols.
12612 no_undefined_flag=$lt_no_undefined_flag_CXX
12613
12614 # Commands used to finish a libtool library installation in a directory.
12615 finish_cmds=$lt_finish_cmds
12616
12617 # Same as above, but a single script fragment to be evaled but not shown.
12618 finish_eval=$lt_finish_eval
12619
12620 # Take the output of nm and produce a listing of raw symbols and C names.
12621 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12622
12623 # Transform the output of nm in a proper C declaration
12624 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12625
12626 # Transform the output of nm in a C name address pair
12627 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12628
12629 # This is the shared library runtime path variable.
12630 runpath_var=$runpath_var
12631
12632 # This is the shared library path variable.
12633 shlibpath_var=$shlibpath_var
12634
12635 # Is shlibpath searched before the hard-coded library search path?
12636 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12637
12638 # How to hardcode a shared library path into an executable.
12639 hardcode_action=$hardcode_action_CXX
12640
12641 # Whether we should hardcode library paths into libraries.
12642 hardcode_into_libs=$hardcode_into_libs
12643
12644 # Flag to hardcode \$libdir into a binary during linking.
12645 # This must work even if \$libdir does not exist.
12646 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12647
12648 # If ld is used when linking, flag to hardcode \$libdir into
12649 # a binary during linking. This must work even if \$libdir does
12650 # not exist.
12651 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12652
12653 # Whether we need a single -rpath flag with a separated argument.
12654 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12655
12656 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12657 # resulting binary.
12658 hardcode_direct=$hardcode_direct_CXX
12659
12660 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12661 # resulting binary.
12662 hardcode_minus_L=$hardcode_minus_L_CXX
12663
12664 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12665 # the resulting binary.
12666 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12667
12668 # Set to yes if building a shared library automatically hardcodes DIR into the library
12669 # and all subsequent libraries and executables linked against it.
12670 hardcode_automatic=$hardcode_automatic_CXX
12671
12672 # Variables whose values should be saved in libtool wrapper scripts and
12673 # restored at relink time.
12674 variables_saved_for_relink="$variables_saved_for_relink"
12675
12676 # Whether libtool must link a program against all its dependency libraries.
12677 link_all_deplibs=$link_all_deplibs_CXX
12678
12679 # Compile-time system search path for libraries
12680 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12681
12682 # Run-time system search path for libraries
12683 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12684
12685 # Fix the shell variable \$srcfile for the compiler.
12686 fix_srcfile_path="$fix_srcfile_path_CXX"
12687
12688 # Set to yes if exported symbols are required.
12689 always_export_symbols=$always_export_symbols_CXX
12690
12691 # The commands to list exported symbols.
12692 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12693
12694 # The commands to extract the exported symbol list from a shared archive.
12695 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12696
12697 # Symbols that should not be listed in the preloaded symbols.
12698 exclude_expsyms=$lt_exclude_expsyms_CXX
12699
12700 # Symbols that must always be exported.
12701 include_expsyms=$lt_include_expsyms_CXX
12702
12703 # ### END LIBTOOL TAG CONFIG: $tagname
12704
12705 __EOF__
12706
12707
12708 else
12709   # If there is no Makefile yet, we rely on a make rule to execute
12710   # `config.status --recheck' to rerun these tests and create the
12711   # libtool script then.
12712   test -f Makefile && make "$ltmain"
12713 fi
12714
12715
12716 ac_ext=c
12717 ac_cpp='$CPP $CPPFLAGS'
12718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12721
12722 CC=$lt_save_CC
12723 LDCXX=$LD
12724 LD=$lt_save_LD
12725 GCC=$lt_save_GCC
12726 with_gnu_ldcxx=$with_gnu_ld
12727 with_gnu_ld=$lt_save_with_gnu_ld
12728 lt_cv_path_LDCXX=$lt_cv_path_LD
12729 lt_cv_path_LD=$lt_save_path_LD
12730 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12731 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12732
12733         else
12734           tagname=""
12735         fi
12736         ;;
12737
12738       F77)
12739         if test -n "$F77" && test "X$F77" != "Xno"; then
12740
12741 ac_ext=f
12742 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12743 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12744 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12745
12746
12747 archive_cmds_need_lc_F77=no
12748 allow_undefined_flag_F77=
12749 always_export_symbols_F77=no
12750 archive_expsym_cmds_F77=
12751 export_dynamic_flag_spec_F77=
12752 hardcode_direct_F77=no
12753 hardcode_libdir_flag_spec_F77=
12754 hardcode_libdir_flag_spec_ld_F77=
12755 hardcode_libdir_separator_F77=
12756 hardcode_minus_L_F77=no
12757 hardcode_automatic_F77=no
12758 module_cmds_F77=
12759 module_expsym_cmds_F77=
12760 link_all_deplibs_F77=unknown
12761 old_archive_cmds_F77=$old_archive_cmds
12762 no_undefined_flag_F77=
12763 whole_archive_flag_spec_F77=
12764 enable_shared_with_static_runtimes_F77=no
12765
12766 # Source file extension for f77 test sources.
12767 ac_ext=f
12768
12769 # Object file extension for compiled f77 test sources.
12770 objext=o
12771 objext_F77=$objext
12772
12773 # Code to be used in simple compile tests
12774 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12775
12776 # Code to be used in simple link tests
12777 lt_simple_link_test_code="      program t\n      end\n"
12778
12779 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12780
12781 # If no C compiler was specified, use CC.
12782 LTCC=${LTCC-"$CC"}
12783
12784 # Allow CC to be a program name with arguments.
12785 compiler=$CC
12786
12787
12788 # Allow CC to be a program name with arguments.
12789 lt_save_CC="$CC"
12790 CC=${F77-"f77"}
12791 compiler=$CC
12792 compiler_F77=$CC
12793 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12794
12795 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12796 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12797 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12798 echo "${ECHO_T}$can_build_shared" >&6
12799
12800 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12801 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12802 test "$can_build_shared" = "no" && enable_shared=no
12803
12804 # On AIX, shared libraries and static libraries use the same namespace, and
12805 # are all built from PIC.
12806 case "$host_os" in
12807 aix3*)
12808   test "$enable_shared" = yes && enable_static=no
12809   if test -n "$RANLIB"; then
12810     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12811     postinstall_cmds='$RANLIB $lib'
12812   fi
12813   ;;
12814 aix4*)
12815   test "$enable_shared" = yes && enable_static=no
12816   ;;
12817 esac
12818 echo "$as_me:$LINENO: result: $enable_shared" >&5
12819 echo "${ECHO_T}$enable_shared" >&6
12820
12821 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12822 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12823 # Make sure either enable_shared or enable_static is yes.
12824 test "$enable_shared" = yes || enable_static=yes
12825 echo "$as_me:$LINENO: result: $enable_static" >&5
12826 echo "${ECHO_T}$enable_static" >&6
12827
12828 test "$ld_shlibs_F77" = no && can_build_shared=no
12829
12830 GCC_F77="$G77"
12831 LD_F77="$LD"
12832
12833 lt_prog_compiler_wl_F77=
12834 lt_prog_compiler_pic_F77=
12835 lt_prog_compiler_static_F77=
12836
12837 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12838 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12839
12840   if test "$GCC" = yes; then
12841     lt_prog_compiler_wl_F77='-Wl,'
12842     lt_prog_compiler_static_F77='-static'
12843
12844     case $host_os in
12845       aix*)
12846       # All AIX code is PIC.
12847       if test "$host_cpu" = ia64; then
12848         # AIX 5 now supports IA64 processor
12849         lt_prog_compiler_static_F77='-Bstatic'
12850       fi
12851       ;;
12852
12853     amigaos*)
12854       # FIXME: we need at least 68020 code to build shared libraries, but
12855       # adding the `-m68020' flag to GCC prevents building anything better,
12856       # like `-m68040'.
12857       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12858       ;;
12859
12860     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12861       # PIC is the default for these OSes.
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     darwin* | rhapsody*)
12871       # PIC is the default on this platform
12872       # Common symbols not allowed in MH_DYLIB files
12873       lt_prog_compiler_pic_F77='-fno-common'
12874       ;;
12875
12876     msdosdjgpp*)
12877       # Just because we use GCC doesn't mean we suddenly get shared libraries
12878       # on systems that don't support them.
12879       lt_prog_compiler_can_build_shared_F77=no
12880       enable_shared=no
12881       ;;
12882
12883     sysv4*MP*)
12884       if test -d /usr/nec; then
12885         lt_prog_compiler_pic_F77=-Kconform_pic
12886       fi
12887       ;;
12888
12889     hpux*)
12890       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12891       # not for PA HP-UX.
12892       case "$host_cpu" in
12893       hppa*64*|ia64*)
12894         # +Z the default
12895         ;;
12896       *)
12897         lt_prog_compiler_pic_F77='-fPIC'
12898         ;;
12899       esac
12900       ;;
12901
12902     *)
12903       lt_prog_compiler_pic_F77='-fPIC'
12904       ;;
12905     esac
12906   else
12907     # PORTME Check for flag to pass linker flags through the system compiler.
12908     case $host_os in
12909     aix*)
12910       lt_prog_compiler_wl_F77='-Wl,'
12911       if test "$host_cpu" = ia64; then
12912         # AIX 5 now supports IA64 processor
12913         lt_prog_compiler_static_F77='-Bstatic'
12914       else
12915         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12916       fi
12917       ;;
12918
12919     mingw* | pw32* | os2*)
12920       # This hack is so that the source file can tell whether it is being
12921       # built for inclusion in a dll (and should export symbols for example).
12922       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12923       ;;
12924
12925     hpux9* | hpux10* | hpux11*)
12926       lt_prog_compiler_wl_F77='-Wl,'
12927       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12928       # not for PA HP-UX.
12929       case "$host_cpu" in
12930       hppa*64*|ia64*)
12931         # +Z the default
12932         ;;
12933       *)
12934         lt_prog_compiler_pic_F77='+Z'
12935         ;;
12936       esac
12937       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12938       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12939       ;;
12940
12941     irix5* | irix6* | nonstopux*)
12942       lt_prog_compiler_wl_F77='-Wl,'
12943       # PIC (with -KPIC) is the default.
12944       lt_prog_compiler_static_F77='-non_shared'
12945       ;;
12946
12947     newsos6)
12948       lt_prog_compiler_pic_F77='-KPIC'
12949       lt_prog_compiler_static_F77='-Bstatic'
12950       ;;
12951
12952     linux*)
12953       case $CC in
12954       icc|ecc)
12955         lt_prog_compiler_wl_F77='-Wl,'
12956         lt_prog_compiler_pic_F77='-KPIC'
12957         lt_prog_compiler_static_F77='-static'
12958         ;;
12959       ccc)
12960         lt_prog_compiler_wl_F77='-Wl,'
12961         # All Alpha code is PIC.
12962         lt_prog_compiler_static_F77='-non_shared'
12963         ;;
12964       esac
12965       ;;
12966
12967     osf3* | osf4* | osf5*)
12968       lt_prog_compiler_wl_F77='-Wl,'
12969       # All OSF/1 code is PIC.
12970       lt_prog_compiler_static_F77='-non_shared'
12971       ;;
12972
12973     sco3.2v5*)
12974       lt_prog_compiler_pic_F77='-Kpic'
12975       lt_prog_compiler_static_F77='-dn'
12976       ;;
12977
12978     solaris*)
12979       lt_prog_compiler_wl_F77='-Wl,'
12980       lt_prog_compiler_pic_F77='-KPIC'
12981       lt_prog_compiler_static_F77='-Bstatic'
12982       ;;
12983
12984     sunos4*)
12985       lt_prog_compiler_wl_F77='-Qoption ld '
12986       lt_prog_compiler_pic_F77='-PIC'
12987       lt_prog_compiler_static_F77='-Bstatic'
12988       ;;
12989
12990     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12991       lt_prog_compiler_wl_F77='-Wl,'
12992       lt_prog_compiler_pic_F77='-KPIC'
12993       lt_prog_compiler_static_F77='-Bstatic'
12994       ;;
12995
12996     sysv4*MP*)
12997       if test -d /usr/nec ;then
12998         lt_prog_compiler_pic_F77='-Kconform_pic'
12999         lt_prog_compiler_static_F77='-Bstatic'
13000       fi
13001       ;;
13002
13003     uts4*)
13004       lt_prog_compiler_pic_F77='-pic'
13005       lt_prog_compiler_static_F77='-Bstatic'
13006       ;;
13007
13008     *)
13009       lt_prog_compiler_can_build_shared_F77=no
13010       ;;
13011     esac
13012   fi
13013
13014 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13015 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13016
13017 #
13018 # Check to make sure the PIC flag actually works.
13019 #
13020 if test -n "$lt_prog_compiler_pic_F77"; then
13021   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13022 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13023 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13024   echo $ECHO_N "(cached) $ECHO_C" >&6
13025 else
13026   lt_prog_compiler_pic_works_F77=no
13027   ac_outfile=conftest.$ac_objext
13028    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13029    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13030    # Insert the option either (1) after the last *FLAGS variable, or
13031    # (2) before a word containing "conftest.", or (3) at the end.
13032    # Note that $ac_compile itself does not contain backslashes and begins
13033    # with a dollar sign (not a hyphen), so the echo should work correctly.
13034    # The option is referenced via a variable to avoid confusing sed.
13035    lt_compile=`echo "$ac_compile" | $SED \
13036    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13037    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13038    -e 's:$: $lt_compiler_flag:'`
13039    (eval echo "\"\$as_me:13039: $lt_compile\"" >&5)
13040    (eval "$lt_compile" 2>conftest.err)
13041    ac_status=$?
13042    cat conftest.err >&5
13043    echo "$as_me:13043: \$? = $ac_status" >&5
13044    if (exit $ac_status) && test -s "$ac_outfile"; then
13045      # The compiler can only warn and ignore the option if not recognized
13046      # So say no if there are warnings
13047      if test ! -s conftest.err; then
13048        lt_prog_compiler_pic_works_F77=yes
13049      fi
13050    fi
13051    $rm conftest*
13052
13053 fi
13054 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13055 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13056
13057 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13058     case $lt_prog_compiler_pic_F77 in
13059      "" | " "*) ;;
13060      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13061      esac
13062 else
13063     lt_prog_compiler_pic_F77=
13064      lt_prog_compiler_can_build_shared_F77=no
13065 fi
13066
13067 fi
13068 case "$host_os" in
13069   # For platforms which do not support PIC, -DPIC is meaningless:
13070   *djgpp*)
13071     lt_prog_compiler_pic_F77=
13072     ;;
13073   *)
13074     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13075     ;;
13076 esac
13077
13078 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13079 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13080 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13081   echo $ECHO_N "(cached) $ECHO_C" >&6
13082 else
13083   lt_cv_prog_compiler_c_o_F77=no
13084    $rm -r conftest 2>/dev/null
13085    mkdir conftest
13086    cd conftest
13087    mkdir out
13088    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13089
13090    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13091    # that will create temporary files in the current directory regardless of
13092    # the output directory.  Thus, making CWD read-only will cause this test
13093    # to fail, enabling locking or at least warning the user not to do parallel
13094    # builds.
13095    chmod -w .
13096
13097    lt_compiler_flag="-o out/conftest2.$ac_objext"
13098    # Insert the option either (1) after the last *FLAGS variable, or
13099    # (2) before a word containing "conftest.", or (3) at the end.
13100    # Note that $ac_compile itself does not contain backslashes and begins
13101    # with a dollar sign (not a hyphen), so the echo should work correctly.
13102    lt_compile=`echo "$ac_compile" | $SED \
13103    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13104    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13105    -e 's:$: $lt_compiler_flag:'`
13106    (eval echo "\"\$as_me:13106: $lt_compile\"" >&5)
13107    (eval "$lt_compile" 2>out/conftest.err)
13108    ac_status=$?
13109    cat out/conftest.err >&5
13110    echo "$as_me:13110: \$? = $ac_status" >&5
13111    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13112    then
13113      # The compiler can only warn and ignore the option if not recognized
13114      # So say no if there are warnings
13115      if test ! -s out/conftest.err; then
13116        lt_cv_prog_compiler_c_o_F77=yes
13117      fi
13118    fi
13119    chmod u+w .
13120    $rm conftest* out/*
13121    rmdir out
13122    cd ..
13123    rmdir conftest
13124    $rm conftest*
13125
13126 fi
13127 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13128 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13129
13130
13131 hard_links="nottested"
13132 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13133   # do not overwrite the value of need_locks provided by the user
13134   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13135 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13136   hard_links=yes
13137   $rm conftest*
13138   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13139   touch conftest.a
13140   ln conftest.a conftest.b 2>&5 || hard_links=no
13141   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13142   echo "$as_me:$LINENO: result: $hard_links" >&5
13143 echo "${ECHO_T}$hard_links" >&6
13144   if test "$hard_links" = no; then
13145     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13146 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13147     need_locks=warn
13148   fi
13149 else
13150   need_locks=no
13151 fi
13152
13153 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13154 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13155
13156   runpath_var=
13157   allow_undefined_flag_F77=
13158   enable_shared_with_static_runtimes_F77=no
13159   archive_cmds_F77=
13160   archive_expsym_cmds_F77=
13161   old_archive_From_new_cmds_F77=
13162   old_archive_from_expsyms_cmds_F77=
13163   export_dynamic_flag_spec_F77=
13164   whole_archive_flag_spec_F77=
13165   thread_safe_flag_spec_F77=
13166   hardcode_libdir_flag_spec_F77=
13167   hardcode_libdir_flag_spec_ld_F77=
13168   hardcode_libdir_separator_F77=
13169   hardcode_direct_F77=no
13170   hardcode_minus_L_F77=no
13171   hardcode_shlibpath_var_F77=unsupported
13172   link_all_deplibs_F77=unknown
13173   hardcode_automatic_F77=no
13174   module_cmds_F77=
13175   module_expsym_cmds_F77=
13176   always_export_symbols_F77=no
13177   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13178   # include_expsyms should be a list of space-separated symbols to be *always*
13179   # included in the symbol list
13180   include_expsyms_F77=
13181   # exclude_expsyms can be an extended regexp of symbols to exclude
13182   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13183   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13184   # as well as any symbol that contains `d'.
13185   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13186   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13187   # platforms (ab)use it in PIC code, but their linkers get confused if
13188   # the symbol is explicitly referenced.  Since portable code cannot
13189   # rely on this symbol name, it's probably fine to never include it in
13190   # preloaded symbol tables.
13191   extract_expsyms_cmds=
13192
13193   case $host_os in
13194   cygwin* | mingw* | pw32*)
13195     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13196     # When not using gcc, we currently assume that we are using
13197     # Microsoft Visual C++.
13198     if test "$GCC" != yes; then
13199       with_gnu_ld=no
13200     fi
13201     ;;
13202   openbsd*)
13203     with_gnu_ld=no
13204     ;;
13205   esac
13206
13207   ld_shlibs_F77=yes
13208   if test "$with_gnu_ld" = yes; then
13209     # If archive_cmds runs LD, not CC, wlarc should be empty
13210     wlarc='${wl}'
13211
13212     # See if GNU ld supports shared libraries.
13213     case $host_os in
13214     aix3* | aix4* | aix5*)
13215       # On AIX/PPC, the GNU linker is very broken
13216       if test "$host_cpu" != ia64; then
13217         ld_shlibs_F77=no
13218         cat <<EOF 1>&2
13219
13220 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13221 *** to be unable to reliably create shared libraries on AIX.
13222 *** Therefore, libtool is disabling shared libraries support.  If you
13223 *** really care for shared libraries, you may want to modify your PATH
13224 *** so that a non-GNU linker is found, and then restart.
13225
13226 EOF
13227       fi
13228       ;;
13229
13230     amigaos*)
13231       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)'
13232       hardcode_libdir_flag_spec_F77='-L$libdir'
13233       hardcode_minus_L_F77=yes
13234
13235       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13236       # that the semantics of dynamic libraries on AmigaOS, at least up
13237       # to version 4, is to share data among multiple programs linked
13238       # with the same dynamic library.  Since this doesn't match the
13239       # behavior of shared libraries on other platforms, we can't use
13240       # them.
13241       ld_shlibs_F77=no
13242       ;;
13243
13244     beos*)
13245       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13246         allow_undefined_flag_F77=unsupported
13247         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13248         # support --undefined.  This deserves some investigation.  FIXME
13249         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13250       else
13251         ld_shlibs_F77=no
13252       fi
13253       ;;
13254
13255     cygwin* | mingw* | pw32*)
13256       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13257       # as there is no search path for DLLs.
13258       hardcode_libdir_flag_spec_F77='-L$libdir'
13259       allow_undefined_flag_F77=unsupported
13260       always_export_symbols_F77=no
13261       enable_shared_with_static_runtimes_F77=yes
13262       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13263
13264       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13265         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13266         # If the export-symbols file already is a .def file (1st line
13267         # is EXPORTS), use it as is; otherwise, prepend...
13268         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13269           cp $export_symbols $output_objdir/$soname.def;
13270         else
13271           echo EXPORTS > $output_objdir/$soname.def;
13272           cat $export_symbols >> $output_objdir/$soname.def;
13273         fi~
13274         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13275       else
13276         ld_shlibs=no
13277       fi
13278       ;;
13279
13280     netbsd*)
13281       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13282         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13283         wlarc=
13284       else
13285         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13286         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13287       fi
13288       ;;
13289
13290     solaris* | sysv5*)
13291       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13292         ld_shlibs_F77=no
13293         cat <<EOF 1>&2
13294
13295 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13296 *** create shared libraries on Solaris systems.  Therefore, libtool
13297 *** is disabling shared libraries support.  We urge you to upgrade GNU
13298 *** binutils to release 2.9.1 or newer.  Another option is to modify
13299 *** your PATH or compiler configuration so that the native linker is
13300 *** used, and then restart.
13301
13302 EOF
13303       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13304         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13305         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13306       else
13307         ld_shlibs_F77=no
13308       fi
13309       ;;
13310
13311     sunos4*)
13312       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13313       wlarc=
13314       hardcode_direct_F77=yes
13315       hardcode_shlibpath_var_F77=no
13316       ;;
13317
13318     *)
13319       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13320         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13321         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13322       else
13323         ld_shlibs_F77=no
13324       fi
13325       ;;
13326     esac
13327
13328     if test "$ld_shlibs_F77" = yes; then
13329       runpath_var=LD_RUN_PATH
13330       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13331       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13332       # ancient GNU ld didn't support --whole-archive et. al.
13333       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13334         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13335       else
13336         whole_archive_flag_spec_F77=
13337       fi
13338     fi
13339   else
13340     # PORTME fill in a description of your system's linker (not GNU ld)
13341     case $host_os in
13342     aix3*)
13343       allow_undefined_flag_F77=unsupported
13344       always_export_symbols_F77=yes
13345       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'
13346       # Note: this linker hardcodes the directories in LIBPATH if there
13347       # are no directories specified by -L.
13348       hardcode_minus_L_F77=yes
13349       if test "$GCC" = yes && test -z "$link_static_flag"; then
13350         # Neither direct hardcoding nor static linking is supported with a
13351         # broken collect2.
13352         hardcode_direct_F77=unsupported
13353       fi
13354       ;;
13355
13356     aix4* | aix5*)
13357       if test "$host_cpu" = ia64; then
13358         # On IA64, the linker does run time linking by default, so we don't
13359         # have to do anything special.
13360         aix_use_runtimelinking=no
13361         exp_sym_flag='-Bexport'
13362         no_entry_flag=""
13363       else
13364         # If we're using GNU nm, then we don't want the "-C" option.
13365         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13366         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13367           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'
13368         else
13369           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'
13370         fi
13371         aix_use_runtimelinking=no
13372
13373         # Test if we are trying to use run time linking or normal
13374         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13375         # need to do runtime linking.
13376         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13377           for ld_flag in $LDFLAGS; do
13378           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13379             aix_use_runtimelinking=yes
13380             break
13381           fi
13382           done
13383         esac
13384
13385         exp_sym_flag='-bexport'
13386         no_entry_flag='-bnoentry'
13387       fi
13388
13389       # When large executables or shared objects are built, AIX ld can
13390       # have problems creating the table of contents.  If linking a library
13391       # or program results in "error TOC overflow" add -mminimal-toc to
13392       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13393       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13394
13395       archive_cmds_F77=''
13396       hardcode_direct_F77=yes
13397       hardcode_libdir_separator_F77=':'
13398       link_all_deplibs_F77=yes
13399
13400       if test "$GCC" = yes; then
13401         case $host_os in aix4.012|aix4.012.*)
13402         # We only want to do this on AIX 4.2 and lower, the check
13403         # below for broken collect2 doesn't work under 4.3+
13404           collect2name=`${CC} -print-prog-name=collect2`
13405           if test -f "$collect2name" && \
13406            strings "$collect2name" | grep resolve_lib_name >/dev/null
13407           then
13408           # We have reworked collect2
13409           hardcode_direct_F77=yes
13410           else
13411           # We have old collect2
13412           hardcode_direct_F77=unsupported
13413           # It fails to find uninstalled libraries when the uninstalled
13414           # path is not listed in the libpath.  Setting hardcode_minus_L
13415           # to unsupported forces relinking
13416           hardcode_minus_L_F77=yes
13417           hardcode_libdir_flag_spec_F77='-L$libdir'
13418           hardcode_libdir_separator_F77=
13419           fi
13420         esac
13421         shared_flag='-shared'
13422       else
13423         # not using gcc
13424         if test "$host_cpu" = ia64; then
13425         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13426         # chokes on -Wl,-G. The following line is correct:
13427           shared_flag='-G'
13428         else
13429         if test "$aix_use_runtimelinking" = yes; then
13430             shared_flag='${wl}-G'
13431           else
13432             shared_flag='${wl}-bM:SRE'
13433         fi
13434         fi
13435       fi
13436
13437       # It seems that -bexpall does not export symbols beginning with
13438       # underscore (_), so it is better to generate a list of symbols to export.
13439       always_export_symbols_F77=yes
13440       if test "$aix_use_runtimelinking" = yes; then
13441         # Warning - without using the other runtime loading flags (-brtl),
13442         # -berok will link without error, but may produce a broken library.
13443         allow_undefined_flag_F77='-berok'
13444        # Determine the default libpath from the value encoded in an empty executable.
13445        cat >conftest.$ac_ext <<_ACEOF
13446       program main
13447
13448       end
13449 _ACEOF
13450 rm -f conftest.$ac_objext conftest$ac_exeext
13451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13452   (eval $ac_link) 2>&5
13453   ac_status=$?
13454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455   (exit $ac_status); } &&
13456          { ac_try='test -s conftest$ac_exeext'
13457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458   (eval $ac_try) 2>&5
13459   ac_status=$?
13460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461   (exit $ac_status); }; }; then
13462
13463 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13464 }'`
13465 # Check for a 64-bit object if we didn't find anything.
13466 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; }
13467 }'`; fi
13468 else
13469   echo "$as_me: failed program was:" >&5
13470 sed 's/^/| /' conftest.$ac_ext >&5
13471
13472 fi
13473 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13474 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13475
13476        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13477         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"
13478        else
13479         if test "$host_cpu" = ia64; then
13480           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13481           allow_undefined_flag_F77="-z nodefs"
13482           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"
13483         else
13484          # Determine the default libpath from the value encoded in an empty executable.
13485          cat >conftest.$ac_ext <<_ACEOF
13486       program main
13487
13488       end
13489 _ACEOF
13490 rm -f conftest.$ac_objext conftest$ac_exeext
13491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13492   (eval $ac_link) 2>&5
13493   ac_status=$?
13494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495   (exit $ac_status); } &&
13496          { ac_try='test -s conftest$ac_exeext'
13497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498   (eval $ac_try) 2>&5
13499   ac_status=$?
13500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501   (exit $ac_status); }; }; then
13502
13503 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13504 }'`
13505 # Check for a 64-bit object if we didn't find anything.
13506 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; }
13507 }'`; fi
13508 else
13509   echo "$as_me: failed program was:" >&5
13510 sed 's/^/| /' conftest.$ac_ext >&5
13511
13512 fi
13513 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13514 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13515
13516          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13517           # Warning - without using the other run time loading flags,
13518           # -berok will link without error, but may produce a broken library.
13519           no_undefined_flag_F77=' ${wl}-bernotok'
13520           allow_undefined_flag_F77=' ${wl}-berok'
13521           # -bexpall does not export symbols beginning with underscore (_)
13522           always_export_symbols_F77=yes
13523           # Exported symbols can be pulled into shared objects from archives
13524           whole_archive_flag_spec_F77=' '
13525           archive_cmds_need_lc_F77=yes
13526           # This is similar to how AIX traditionally builds it's shared libraries.
13527           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'
13528         fi
13529       fi
13530       ;;
13531
13532     amigaos*)
13533       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)'
13534       hardcode_libdir_flag_spec_F77='-L$libdir'
13535       hardcode_minus_L_F77=yes
13536       # see comment about different semantics on the GNU ld section
13537       ld_shlibs_F77=no
13538       ;;
13539
13540     bsdi4*)
13541       export_dynamic_flag_spec_F77=-rdynamic
13542       ;;
13543
13544     cygwin* | mingw* | pw32*)
13545       # When not using gcc, we currently assume that we are using
13546       # Microsoft Visual C++.
13547       # hardcode_libdir_flag_spec is actually meaningless, as there is
13548       # no search path for DLLs.
13549       hardcode_libdir_flag_spec_F77=' '
13550       allow_undefined_flag_F77=unsupported
13551       # Tell ltmain to make .lib files, not .a files.
13552       libext=lib
13553       # Tell ltmain to make .dll files, not .so files.
13554       shrext=".dll"
13555       # FIXME: Setting linknames here is a bad hack.
13556       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13557       # The linker will automatically build a .lib file if we build a DLL.
13558       old_archive_From_new_cmds_F77='true'
13559       # FIXME: Should let the user specify the lib program.
13560       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13561       fix_srcfile_path='`cygpath -w "$srcfile"`'
13562       enable_shared_with_static_runtimes_F77=yes
13563       ;;
13564
13565     darwin* | rhapsody*)
13566     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13567       archive_cmds_need_lc_F77=no
13568       case "$host_os" in
13569       rhapsody* | darwin1.[012])
13570         allow_undefined_flag_F77='-undefined suppress'
13571         ;;
13572       *) # Darwin 1.3 on
13573         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13574         ;;
13575       esac
13576       # FIXME: Relying on posixy $() will cause problems for
13577       #        cross-compilation, but unfortunately the echo tests do not
13578       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13579       #        `"' quotes if we put them in here... so don't!
13580         lt_int_apple_cc_single_mod=no
13581         output_verbose_link_cmd='echo'
13582         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13583           lt_int_apple_cc_single_mod=yes
13584         fi
13585         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13586           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13587         else
13588         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'
13589       fi
13590       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13591       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13592         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13593           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}'
13594         else
13595           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}'
13596         fi
13597           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}'
13598       hardcode_direct_F77=no
13599       hardcode_automatic_F77=yes
13600       hardcode_shlibpath_var_F77=unsupported
13601       whole_archive_flag_spec_F77='-all_load $convenience'
13602       link_all_deplibs_F77=yes
13603     fi
13604       ;;
13605
13606     dgux*)
13607       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13608       hardcode_libdir_flag_spec_F77='-L$libdir'
13609       hardcode_shlibpath_var_F77=no
13610       ;;
13611
13612     freebsd1*)
13613       ld_shlibs_F77=no
13614       ;;
13615
13616     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13617     # support.  Future versions do this automatically, but an explicit c++rt0.o
13618     # does not break anything, and helps significantly (at the cost of a little
13619     # extra space).
13620     freebsd2.2*)
13621       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13622       hardcode_libdir_flag_spec_F77='-R$libdir'
13623       hardcode_direct_F77=yes
13624       hardcode_shlibpath_var_F77=no
13625       ;;
13626
13627     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13628     freebsd2*)
13629       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13630       hardcode_direct_F77=yes
13631       hardcode_minus_L_F77=yes
13632       hardcode_shlibpath_var_F77=no
13633       ;;
13634
13635     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13636     freebsd*)
13637       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13638       hardcode_libdir_flag_spec_F77='-R$libdir'
13639       hardcode_direct_F77=yes
13640       hardcode_shlibpath_var_F77=no
13641       ;;
13642
13643     hpux9*)
13644       if test "$GCC" = yes; then
13645         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'
13646       else
13647         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'
13648       fi
13649       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13650       hardcode_libdir_separator_F77=:
13651       hardcode_direct_F77=yes
13652
13653       # hardcode_minus_L: Not really in the search PATH,
13654       # but as the default location of the library.
13655       hardcode_minus_L_F77=yes
13656       export_dynamic_flag_spec_F77='${wl}-E'
13657       ;;
13658
13659     hpux10* | hpux11*)
13660       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13661         case "$host_cpu" in
13662         hppa*64*|ia64*)
13663           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13664           ;;
13665         *)
13666           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13667           ;;
13668         esac
13669       else
13670         case "$host_cpu" in
13671         hppa*64*|ia64*)
13672           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13673           ;;
13674         *)
13675           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13676           ;;
13677         esac
13678       fi
13679       if test "$with_gnu_ld" = no; then
13680         case "$host_cpu" in
13681         hppa*64*)
13682           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13683           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13684           hardcode_libdir_separator_F77=:
13685           hardcode_direct_F77=no
13686           hardcode_shlibpath_var_F77=no
13687           ;;
13688         ia64*)
13689           hardcode_libdir_flag_spec_F77='-L$libdir'
13690           hardcode_direct_F77=no
13691           hardcode_shlibpath_var_F77=no
13692
13693           # hardcode_minus_L: Not really in the search PATH,
13694           # but as the default location of the library.
13695           hardcode_minus_L_F77=yes
13696           ;;
13697         *)
13698           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13699           hardcode_libdir_separator_F77=:
13700           hardcode_direct_F77=yes
13701           export_dynamic_flag_spec_F77='${wl}-E'
13702
13703           # hardcode_minus_L: Not really in the search PATH,
13704           # but as the default location of the library.
13705           hardcode_minus_L_F77=yes
13706           ;;
13707         esac
13708       fi
13709       ;;
13710
13711     irix5* | irix6* | nonstopux*)
13712       if test "$GCC" = yes; then
13713         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'
13714       else
13715         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'
13716         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13717       fi
13718       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13719       hardcode_libdir_separator_F77=:
13720       link_all_deplibs_F77=yes
13721       ;;
13722
13723     netbsd*)
13724       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13725         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13726       else
13727         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13728       fi
13729       hardcode_libdir_flag_spec_F77='-R$libdir'
13730       hardcode_direct_F77=yes
13731       hardcode_shlibpath_var_F77=no
13732       ;;
13733
13734     newsos6)
13735       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13736       hardcode_direct_F77=yes
13737       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13738       hardcode_libdir_separator_F77=:
13739       hardcode_shlibpath_var_F77=no
13740       ;;
13741
13742     openbsd*)
13743       hardcode_direct_F77=yes
13744       hardcode_shlibpath_var_F77=no
13745       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13746         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13747         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13748         export_dynamic_flag_spec_F77='${wl}-E'
13749       else
13750        case $host_os in
13751          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13752            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13753            hardcode_libdir_flag_spec_F77='-R$libdir'
13754            ;;
13755          *)
13756            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13757            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13758            ;;
13759        esac
13760       fi
13761       ;;
13762
13763     os2*)
13764       hardcode_libdir_flag_spec_F77='-L$libdir'
13765       hardcode_minus_L_F77=yes
13766       allow_undefined_flag_F77=unsupported
13767       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'
13768       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13769       ;;
13770
13771     osf3*)
13772       if test "$GCC" = yes; then
13773         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13774         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'
13775       else
13776         allow_undefined_flag_F77=' -expect_unresolved \*'
13777         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'
13778       fi
13779       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13780       hardcode_libdir_separator_F77=:
13781       ;;
13782
13783     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13784       if test "$GCC" = yes; then
13785         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13786         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13787         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13788       else
13789         allow_undefined_flag_F77=' -expect_unresolved \*'
13790         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'
13791         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~
13792         $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'
13793
13794         # Both c and cxx compiler support -rpath directly
13795         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13796       fi
13797       hardcode_libdir_separator_F77=:
13798       ;;
13799
13800     sco3.2v5*)
13801       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13802       hardcode_shlibpath_var_F77=no
13803       export_dynamic_flag_spec_F77='${wl}-Bexport'
13804       runpath_var=LD_RUN_PATH
13805       hardcode_runpath_var=yes
13806       ;;
13807
13808     solaris*)
13809       no_undefined_flag_F77=' -z text'
13810       if test "$GCC" = yes; then
13811         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13812         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13813           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13814       else
13815         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13816         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13817         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13818       fi
13819       hardcode_libdir_flag_spec_F77='-R$libdir'
13820       hardcode_shlibpath_var_F77=no
13821       case $host_os in
13822       solaris2.[0-5] | solaris2.[0-5].*) ;;
13823       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13824         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13825       esac
13826       link_all_deplibs_F77=yes
13827       ;;
13828
13829     sunos4*)
13830       if test "x$host_vendor" = xsequent; then
13831         # Use $CC to link under sequent, because it throws in some extra .o
13832         # files that make .init and .fini sections work.
13833         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13834       else
13835         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13836       fi
13837       hardcode_libdir_flag_spec_F77='-L$libdir'
13838       hardcode_direct_F77=yes
13839       hardcode_minus_L_F77=yes
13840       hardcode_shlibpath_var_F77=no
13841       ;;
13842
13843     sysv4)
13844       case $host_vendor in
13845         sni)
13846           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13847           hardcode_direct_F77=yes # is this really true???
13848         ;;
13849         siemens)
13850           ## LD is ld it makes a PLAMLIB
13851           ## CC just makes a GrossModule.
13852           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13853           reload_cmds_F77='$CC -r -o $output$reload_objs'
13854           hardcode_direct_F77=no
13855         ;;
13856         motorola)
13857           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13858           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13859         ;;
13860       esac
13861       runpath_var='LD_RUN_PATH'
13862       hardcode_shlibpath_var_F77=no
13863       ;;
13864
13865     sysv4.3*)
13866       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13867       hardcode_shlibpath_var_F77=no
13868       export_dynamic_flag_spec_F77='-Bexport'
13869       ;;
13870
13871     sysv4*MP*)
13872       if test -d /usr/nec; then
13873         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13874         hardcode_shlibpath_var_F77=no
13875         runpath_var=LD_RUN_PATH
13876         hardcode_runpath_var=yes
13877         ld_shlibs_F77=yes
13878       fi
13879       ;;
13880
13881     sysv4.2uw2*)
13882       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13883       hardcode_direct_F77=yes
13884       hardcode_minus_L_F77=no
13885       hardcode_shlibpath_var_F77=no
13886       hardcode_runpath_var=yes
13887       runpath_var=LD_RUN_PATH
13888       ;;
13889
13890    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13891       no_undefined_flag_F77='${wl}-z ${wl}text'
13892       if test "$GCC" = yes; then
13893         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13894       else
13895         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13896       fi
13897       runpath_var='LD_RUN_PATH'
13898       hardcode_shlibpath_var_F77=no
13899       ;;
13900
13901     sysv5*)
13902       no_undefined_flag_F77=' -z text'
13903       # $CC -shared without GNU ld will not create a library from C++
13904       # object files and a static libstdc++, better avoid it by now
13905       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13906       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13907                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13908       hardcode_libdir_flag_spec_F77=
13909       hardcode_shlibpath_var_F77=no
13910       runpath_var='LD_RUN_PATH'
13911       ;;
13912
13913     uts4*)
13914       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13915       hardcode_libdir_flag_spec_F77='-L$libdir'
13916       hardcode_shlibpath_var_F77=no
13917       ;;
13918
13919     *)
13920       ld_shlibs_F77=no
13921       ;;
13922     esac
13923   fi
13924
13925 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13926 echo "${ECHO_T}$ld_shlibs_F77" >&6
13927 test "$ld_shlibs_F77" = no && can_build_shared=no
13928
13929 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13930 if test "$GCC" = yes; then
13931   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13932 fi
13933
13934 #
13935 # Do we need to explicitly link libc?
13936 #
13937 case "x$archive_cmds_need_lc_F77" in
13938 x|xyes)
13939   # Assume -lc should be added
13940   archive_cmds_need_lc_F77=yes
13941
13942   if test "$enable_shared" = yes && test "$GCC" = yes; then
13943     case $archive_cmds_F77 in
13944     *'~'*)
13945       # FIXME: we may have to deal with multi-command sequences.
13946       ;;
13947     '$CC '*)
13948       # Test whether the compiler implicitly links with -lc since on some
13949       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13950       # to ld, don't add -lc before -lgcc.
13951       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13952 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13953       $rm conftest*
13954       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13955
13956       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13957   (eval $ac_compile) 2>&5
13958   ac_status=$?
13959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960   (exit $ac_status); } 2>conftest.err; then
13961         soname=conftest
13962         lib=conftest
13963         libobjs=conftest.$ac_objext
13964         deplibs=
13965         wl=$lt_prog_compiler_wl_F77
13966         compiler_flags=-v
13967         linker_flags=-v
13968         verstring=
13969         output_objdir=.
13970         libname=conftest
13971         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13972         allow_undefined_flag_F77=
13973         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13974   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13975   ac_status=$?
13976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977   (exit $ac_status); }
13978         then
13979           archive_cmds_need_lc_F77=no
13980         else
13981           archive_cmds_need_lc_F77=yes
13982         fi
13983         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13984       else
13985         cat conftest.err 1>&5
13986       fi
13987       $rm conftest*
13988       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13989 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13990       ;;
13991     esac
13992   fi
13993   ;;
13994 esac
13995
13996 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13997 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13998 hardcode_action_F77=
13999 if test -n "$hardcode_libdir_flag_spec_F77" || \
14000    test -n "$runpath_var F77" || \
14001    test "X$hardcode_automatic_F77"="Xyes" ; then
14002
14003   # We can hardcode non-existant directories.
14004   if test "$hardcode_direct_F77" != no &&
14005      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14006      # have to relink, otherwise we might link with an installed library
14007      # when we should be linking with a yet-to-be-installed one
14008      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14009      test "$hardcode_minus_L_F77" != no; then
14010     # Linking always hardcodes the temporary library directory.
14011     hardcode_action_F77=relink
14012   else
14013     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14014     hardcode_action_F77=immediate
14015   fi
14016 else
14017   # We cannot hardcode anything, or else we can only hardcode existing
14018   # directories.
14019   hardcode_action_F77=unsupported
14020 fi
14021 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14022 echo "${ECHO_T}$hardcode_action_F77" >&6
14023
14024 if test "$hardcode_action_F77" = relink; then
14025   # Fast installation is not supported
14026   enable_fast_install=no
14027 elif test "$shlibpath_overrides_runpath" = yes ||
14028      test "$enable_shared" = no; then
14029   # Fast installation is not necessary
14030   enable_fast_install=needless
14031 fi
14032
14033 striplib=
14034 old_striplib=
14035 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14036 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14037 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14038   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14039   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14040   echo "$as_me:$LINENO: result: yes" >&5
14041 echo "${ECHO_T}yes" >&6
14042 else
14043 # FIXME - insert some real tests, host_os isn't really good enough
14044   case $host_os in
14045    darwin*)
14046        if test -n "$STRIP" ; then
14047          striplib="$STRIP -x"
14048          echo "$as_me:$LINENO: result: yes" >&5
14049 echo "${ECHO_T}yes" >&6
14050        else
14051   echo "$as_me:$LINENO: result: no" >&5
14052 echo "${ECHO_T}no" >&6
14053 fi
14054        ;;
14055    *)
14056   echo "$as_me:$LINENO: result: no" >&5
14057 echo "${ECHO_T}no" >&6
14058     ;;
14059   esac
14060 fi
14061
14062 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14063 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14064 library_names_spec=
14065 libname_spec='lib$name'
14066 soname_spec=
14067 shrext=".so"
14068 postinstall_cmds=
14069 postuninstall_cmds=
14070 finish_cmds=
14071 finish_eval=
14072 shlibpath_var=
14073 shlibpath_overrides_runpath=unknown
14074 version_type=none
14075 dynamic_linker="$host_os ld.so"
14076 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14077 if test "$GCC" = yes; then
14078   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14079   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14080     # if the path contains ";" then we assume it to be the separator
14081     # otherwise default to the standard path separator (i.e. ":") - it is
14082     # assumed that no part of a normal pathname contains ";" but that should
14083     # okay in the real world where ";" in dirpaths is itself problematic.
14084     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14085   else
14086     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14087   fi
14088 else
14089   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14090 fi
14091 need_lib_prefix=unknown
14092 hardcode_into_libs=no
14093
14094 # when you set need_version to no, make sure it does not cause -set_version
14095 # flags to be left without arguments
14096 need_version=unknown
14097
14098 case $host_os in
14099 aix3*)
14100   version_type=linux
14101   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14102   shlibpath_var=LIBPATH
14103
14104   # AIX 3 has no versioning support, so we append a major version to the name.
14105   soname_spec='${libname}${release}${shared_ext}$major'
14106   ;;
14107
14108 aix4* | aix5*)
14109   version_type=linux
14110   need_lib_prefix=no
14111   need_version=no
14112   hardcode_into_libs=yes
14113   if test "$host_cpu" = ia64; then
14114     # AIX 5 supports IA64
14115     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14116     shlibpath_var=LD_LIBRARY_PATH
14117   else
14118     # With GCC up to 2.95.x, collect2 would create an import file
14119     # for dependence libraries.  The import file would start with
14120     # the line `#! .'.  This would cause the generated library to
14121     # depend on `.', always an invalid library.  This was fixed in
14122     # development snapshots of GCC prior to 3.0.
14123     case $host_os in
14124       aix4 | aix4.[01] | aix4.[01].*)
14125       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14126            echo ' yes '
14127            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14128         :
14129       else
14130         can_build_shared=no
14131       fi
14132       ;;
14133     esac
14134     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14135     # soname into executable. Probably we can add versioning support to
14136     # collect2, so additional links can be useful in future.
14137     if test "$aix_use_runtimelinking" = yes; then
14138       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14139       # instead of lib<name>.a to let people know that these are not
14140       # typical AIX shared libraries.
14141       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14142     else
14143       # We preserve .a as extension for shared libraries through AIX4.2
14144       # and later when we are not doing run time linking.
14145       library_names_spec='${libname}${release}.a $libname.a'
14146       soname_spec='${libname}${release}${shared_ext}$major'
14147     fi
14148     shlibpath_var=LIBPATH
14149   fi
14150   ;;
14151
14152 amigaos*)
14153   library_names_spec='$libname.ixlibrary $libname.a'
14154   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14155   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'
14156   ;;
14157
14158 beos*)
14159   library_names_spec='${libname}${shared_ext}'
14160   dynamic_linker="$host_os ld.so"
14161   shlibpath_var=LIBRARY_PATH
14162   ;;
14163
14164 bsdi4*)
14165   version_type=linux
14166   need_version=no
14167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14168   soname_spec='${libname}${release}${shared_ext}$major'
14169   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14170   shlibpath_var=LD_LIBRARY_PATH
14171   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14172   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14173   # the default ld.so.conf also contains /usr/contrib/lib and
14174   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14175   # libtool to hard-code these into programs
14176   ;;
14177
14178 cygwin* | mingw* | pw32*)
14179   version_type=windows
14180   shrext=".dll"
14181   need_version=no
14182   need_lib_prefix=no
14183
14184   case $GCC,$host_os in
14185   yes,cygwin* | yes,mingw* | yes,pw32*)
14186     library_names_spec='$libname.dll.a'
14187     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14188     postinstall_cmds='base_file=`basename \${file}`~
14189       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14190       dldir=$destdir/`dirname \$dlpath`~
14191       test -d \$dldir || mkdir -p \$dldir~
14192       $install_prog $dir/$dlname \$dldir/$dlname'
14193     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14194       dlpath=$dir/\$dldll~
14195        $rm \$dlpath'
14196     shlibpath_overrides_runpath=yes
14197
14198     case $host_os in
14199     cygwin*)
14200       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14201       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14202       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14203       ;;
14204     mingw*)
14205       # MinGW DLLs use traditional 'lib' prefix
14206       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14207       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14208       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14209         # It is most probably a Windows format PATH printed by
14210         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14211         # path with ; separators, and with drive letters. We can handle the
14212         # drive letters (cygwin fileutils understands them), so leave them,
14213         # especially as we might pass files found there to a mingw objdump,
14214         # which wouldn't understand a cygwinified path. Ahh.
14215         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14216       else
14217         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14218       fi
14219       ;;
14220     pw32*)
14221       # pw32 DLLs use 'pw' prefix rather than 'lib'
14222       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14223       ;;
14224     esac
14225     ;;
14226
14227   *)
14228     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14229     ;;
14230   esac
14231   dynamic_linker='Win32 ld.exe'
14232   # FIXME: first we should search . and the directory the executable is in
14233   shlibpath_var=PATH
14234   ;;
14235
14236 darwin* | rhapsody*)
14237   dynamic_linker="$host_os dyld"
14238   version_type=darwin
14239   need_lib_prefix=no
14240   need_version=no
14241   # FIXME: Relying on posixy $() will cause problems for
14242   #        cross-compilation, but unfortunately the echo tests do not
14243   #        yet detect zsh echo's removal of \ escapes.
14244   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14245   soname_spec='${libname}${release}${major}$shared_ext'
14246   shlibpath_overrides_runpath=yes
14247   shlibpath_var=DYLD_LIBRARY_PATH
14248   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14249   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14250   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14251   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"`
14252   fi
14253   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14254   ;;
14255
14256 dgux*)
14257   version_type=linux
14258   need_lib_prefix=no
14259   need_version=no
14260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14261   soname_spec='${libname}${release}${shared_ext}$major'
14262   shlibpath_var=LD_LIBRARY_PATH
14263   ;;
14264
14265 freebsd1*)
14266   dynamic_linker=no
14267   ;;
14268
14269 freebsd*)
14270   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14271   version_type=freebsd-$objformat
14272   case $version_type in
14273     freebsd-elf*)
14274       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14275       need_version=no
14276       need_lib_prefix=no
14277       ;;
14278     freebsd-*)
14279       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14280       need_version=yes
14281       ;;
14282   esac
14283   shlibpath_var=LD_LIBRARY_PATH
14284   case $host_os in
14285   freebsd2*)
14286     shlibpath_overrides_runpath=yes
14287     ;;
14288   freebsd3.01* | freebsdelf3.01*)
14289     shlibpath_overrides_runpath=yes
14290     hardcode_into_libs=yes
14291     ;;
14292   *) # from 3.2 on
14293     shlibpath_overrides_runpath=no
14294     hardcode_into_libs=yes
14295     ;;
14296   esac
14297   ;;
14298
14299 gnu*)
14300   version_type=linux
14301   need_lib_prefix=no
14302   need_version=no
14303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14304   soname_spec='${libname}${release}${shared_ext}$major'
14305   shlibpath_var=LD_LIBRARY_PATH
14306   hardcode_into_libs=yes
14307   ;;
14308
14309 hpux9* | hpux10* | hpux11*)
14310   # Give a soname corresponding to the major version so that dld.sl refuses to
14311   # link against other versions.
14312   version_type=sunos
14313   need_lib_prefix=no
14314   need_version=no
14315   case "$host_cpu" in
14316   ia64*)
14317     shrext='.so'
14318     hardcode_into_libs=yes
14319     dynamic_linker="$host_os dld.so"
14320     shlibpath_var=LD_LIBRARY_PATH
14321     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14322     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14323     soname_spec='${libname}${release}${shared_ext}$major'
14324     if test "X$HPUX_IA64_MODE" = X32; then
14325       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14326     else
14327       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14328     fi
14329     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14330     ;;
14331    hppa*64*)
14332      shrext='.sl'
14333      hardcode_into_libs=yes
14334      dynamic_linker="$host_os dld.sl"
14335      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14336      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14337      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14338      soname_spec='${libname}${release}${shared_ext}$major'
14339      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14340      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14341      ;;
14342    *)
14343     shrext='.sl'
14344     dynamic_linker="$host_os dld.sl"
14345     shlibpath_var=SHLIB_PATH
14346     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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     ;;
14350   esac
14351   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14352   postinstall_cmds='chmod 555 $lib'
14353   ;;
14354
14355 irix5* | irix6* | nonstopux*)
14356   case $host_os in
14357     nonstopux*) version_type=nonstopux ;;
14358     *)
14359         if test "$lt_cv_prog_gnu_ld" = yes; then
14360                 version_type=linux
14361         else
14362                 version_type=irix
14363         fi ;;
14364   esac
14365   need_lib_prefix=no
14366   need_version=no
14367   soname_spec='${libname}${release}${shared_ext}$major'
14368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14369   case $host_os in
14370   irix5* | nonstopux*)
14371     libsuff= shlibsuff=
14372     ;;
14373   *)
14374     case $LD in # libtool.m4 will add one of these switches to LD
14375     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14376       libsuff= shlibsuff= libmagic=32-bit;;
14377     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14378       libsuff=32 shlibsuff=N32 libmagic=N32;;
14379     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14380       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14381     *) libsuff= shlibsuff= libmagic=never-match;;
14382     esac
14383     ;;
14384   esac
14385   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14386   shlibpath_overrides_runpath=no
14387   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14388   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14389   hardcode_into_libs=yes
14390   ;;
14391
14392 # No shared lib support for Linux oldld, aout, or coff.
14393 linux*oldld* | linux*aout* | linux*coff*)
14394   dynamic_linker=no
14395   ;;
14396
14397 # This must be Linux ELF.
14398 linux*)
14399   version_type=linux
14400   need_lib_prefix=no
14401   need_version=no
14402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14403   soname_spec='${libname}${release}${shared_ext}$major'
14404   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14405   shlibpath_var=LD_LIBRARY_PATH
14406   shlibpath_overrides_runpath=no
14407   # This implies no fast_install, which is unacceptable.
14408   # Some rework will be needed to allow for fast_install
14409   # before this can be enabled.
14410   hardcode_into_libs=yes
14411
14412   # We used to test for /lib/ld.so.1 and disable shared libraries on
14413   # powerpc, because MkLinux only supported shared libraries with the
14414   # GNU dynamic linker.  Since this was broken with cross compilers,
14415   # most powerpc-linux boxes support dynamic linking these days and
14416   # people can always --disable-shared, the test was removed, and we
14417   # assume the GNU/Linux dynamic linker is in use.
14418   dynamic_linker='GNU/Linux ld.so'
14419   ;;
14420
14421 netbsd*)
14422   version_type=sunos
14423   need_lib_prefix=no
14424   need_version=no
14425   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14426     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14427     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14428     dynamic_linker='NetBSD (a.out) ld.so'
14429   else
14430     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14431     soname_spec='${libname}${release}${shared_ext}$major'
14432     dynamic_linker='NetBSD ld.elf_so'
14433   fi
14434   shlibpath_var=LD_LIBRARY_PATH
14435   shlibpath_overrides_runpath=yes
14436   hardcode_into_libs=yes
14437   ;;
14438
14439 newsos6)
14440   version_type=linux
14441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14442   shlibpath_var=LD_LIBRARY_PATH
14443   shlibpath_overrides_runpath=yes
14444   ;;
14445
14446 nto-qnx)
14447   version_type=linux
14448   need_lib_prefix=no
14449   need_version=no
14450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14451   soname_spec='${libname}${release}${shared_ext}$major'
14452   shlibpath_var=LD_LIBRARY_PATH
14453   shlibpath_overrides_runpath=yes
14454   ;;
14455
14456 openbsd*)
14457   version_type=sunos
14458   need_lib_prefix=no
14459   need_version=no
14460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14461   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14462   shlibpath_var=LD_LIBRARY_PATH
14463   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14464     case $host_os in
14465       openbsd2.[89] | openbsd2.[89].*)
14466         shlibpath_overrides_runpath=no
14467         ;;
14468       *)
14469         shlibpath_overrides_runpath=yes
14470         ;;
14471       esac
14472   else
14473     shlibpath_overrides_runpath=yes
14474   fi
14475   ;;
14476
14477 os2*)
14478   libname_spec='$name'
14479   shrext=".dll"
14480   need_lib_prefix=no
14481   library_names_spec='$libname${shared_ext} $libname.a'
14482   dynamic_linker='OS/2 ld.exe'
14483   shlibpath_var=LIBPATH
14484   ;;
14485
14486 osf3* | osf4* | osf5*)
14487   version_type=osf
14488   need_lib_prefix=no
14489   need_version=no
14490   soname_spec='${libname}${release}${shared_ext}$major'
14491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14492   shlibpath_var=LD_LIBRARY_PATH
14493   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14494   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14495   ;;
14496
14497 sco3.2v5*)
14498   version_type=osf
14499   soname_spec='${libname}${release}${shared_ext}$major'
14500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14501   shlibpath_var=LD_LIBRARY_PATH
14502   ;;
14503
14504 solaris*)
14505   version_type=linux
14506   need_lib_prefix=no
14507   need_version=no
14508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14509   soname_spec='${libname}${release}${shared_ext}$major'
14510   shlibpath_var=LD_LIBRARY_PATH
14511   shlibpath_overrides_runpath=yes
14512   hardcode_into_libs=yes
14513   # ldd complains unless libraries are executable
14514   postinstall_cmds='chmod +x $lib'
14515   ;;
14516
14517 sunos4*)
14518   version_type=sunos
14519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14520   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14521   shlibpath_var=LD_LIBRARY_PATH
14522   shlibpath_overrides_runpath=yes
14523   if test "$with_gnu_ld" = yes; then
14524     need_lib_prefix=no
14525   fi
14526   need_version=yes
14527   ;;
14528
14529 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14530   version_type=linux
14531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14532   soname_spec='${libname}${release}${shared_ext}$major'
14533   shlibpath_var=LD_LIBRARY_PATH
14534   case $host_vendor in
14535     sni)
14536       shlibpath_overrides_runpath=no
14537       need_lib_prefix=no
14538       export_dynamic_flag_spec='${wl}-Blargedynsym'
14539       runpath_var=LD_RUN_PATH
14540       ;;
14541     siemens)
14542       need_lib_prefix=no
14543       ;;
14544     motorola)
14545       need_lib_prefix=no
14546       need_version=no
14547       shlibpath_overrides_runpath=no
14548       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14549       ;;
14550   esac
14551   ;;
14552
14553 sysv4*MP*)
14554   if test -d /usr/nec ;then
14555     version_type=linux
14556     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14557     soname_spec='$libname${shared_ext}.$major'
14558     shlibpath_var=LD_LIBRARY_PATH
14559   fi
14560   ;;
14561
14562 uts4*)
14563   version_type=linux
14564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14565   soname_spec='${libname}${release}${shared_ext}$major'
14566   shlibpath_var=LD_LIBRARY_PATH
14567   ;;
14568
14569 *)
14570   dynamic_linker=no
14571   ;;
14572 esac
14573 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14574 echo "${ECHO_T}$dynamic_linker" >&6
14575 test "$dynamic_linker" = no && can_build_shared=no
14576
14577
14578 # The else clause should only fire when bootstrapping the
14579 # libtool distribution, otherwise you forgot to ship ltmain.sh
14580 # with your package, and you will get complaints that there are
14581 # no rules to generate ltmain.sh.
14582 if test -f "$ltmain"; then
14583   # See if we are running on zsh, and set the options which allow our commands through
14584   # without removal of \ escapes.
14585   if test -n "${ZSH_VERSION+set}" ; then
14586     setopt NO_GLOB_SUBST
14587   fi
14588   # Now quote all the things that may contain metacharacters while being
14589   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14590   # variables and quote the copies for generation of the libtool script.
14591   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14592     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14593     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14594     deplibs_check_method reload_flag reload_cmds need_locks \
14595     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14596     lt_cv_sys_global_symbol_to_c_name_address \
14597     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14598     old_postinstall_cmds old_postuninstall_cmds \
14599     compiler_F77 \
14600     CC_F77 \
14601     LD_F77 \
14602     lt_prog_compiler_wl_F77 \
14603     lt_prog_compiler_pic_F77 \
14604     lt_prog_compiler_static_F77 \
14605     lt_prog_compiler_no_builtin_flag_F77 \
14606     export_dynamic_flag_spec_F77 \
14607     thread_safe_flag_spec_F77 \
14608     whole_archive_flag_spec_F77 \
14609     enable_shared_with_static_runtimes_F77 \
14610     old_archive_cmds_F77 \
14611     old_archive_from_new_cmds_F77 \
14612     predep_objects_F77 \
14613     postdep_objects_F77 \
14614     predeps_F77 \
14615     postdeps_F77 \
14616     compiler_lib_search_path_F77 \
14617     archive_cmds_F77 \
14618     archive_expsym_cmds_F77 \
14619     postinstall_cmds_F77 \
14620     postuninstall_cmds_F77 \
14621     old_archive_from_expsyms_cmds_F77 \
14622     allow_undefined_flag_F77 \
14623     no_undefined_flag_F77 \
14624     export_symbols_cmds_F77 \
14625     hardcode_libdir_flag_spec_F77 \
14626     hardcode_libdir_flag_spec_ld_F77 \
14627     hardcode_libdir_separator_F77 \
14628     hardcode_automatic_F77 \
14629     module_cmds_F77 \
14630     module_expsym_cmds_F77 \
14631     lt_cv_prog_compiler_c_o_F77 \
14632     exclude_expsyms_F77 \
14633     include_expsyms_F77; do
14634
14635     case $var in
14636     old_archive_cmds_F77 | \
14637     old_archive_from_new_cmds_F77 | \
14638     archive_cmds_F77 | \
14639     archive_expsym_cmds_F77 | \
14640     module_cmds_F77 | \
14641     module_expsym_cmds_F77 | \
14642     old_archive_from_expsyms_cmds_F77 | \
14643     export_symbols_cmds_F77 | \
14644     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14645     postinstall_cmds | postuninstall_cmds | \
14646     old_postinstall_cmds | old_postuninstall_cmds | \
14647     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14648       # Double-quote double-evaled strings.
14649       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14650       ;;
14651     *)
14652       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14653       ;;
14654     esac
14655   done
14656
14657   case $lt_echo in
14658   *'\$0 --fallback-echo"')
14659     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14660     ;;
14661   esac
14662
14663 cfgfile="$ofile"
14664
14665   cat <<__EOF__ >> "$cfgfile"
14666 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14667
14668 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14669
14670 # Shell to use when invoking shell scripts.
14671 SHELL=$lt_SHELL
14672
14673 # Whether or not to build shared libraries.
14674 build_libtool_libs=$enable_shared
14675
14676 # Whether or not to build static libraries.
14677 build_old_libs=$enable_static
14678
14679 # Whether or not to add -lc for building shared libraries.
14680 build_libtool_need_lc=$archive_cmds_need_lc_F77
14681
14682 # Whether or not to disallow shared libs when runtime libs are static
14683 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14684
14685 # Whether or not to optimize for fast installation.
14686 fast_install=$enable_fast_install
14687
14688 # The host system.
14689 host_alias=$host_alias
14690 host=$host
14691
14692 # An echo program that does not interpret backslashes.
14693 echo=$lt_echo
14694
14695 # The archiver.
14696 AR=$lt_AR
14697 AR_FLAGS=$lt_AR_FLAGS
14698
14699 # A C compiler.
14700 LTCC=$lt_LTCC
14701
14702 # A language-specific compiler.
14703 CC=$lt_compiler_F77
14704
14705 # Is the compiler the GNU C compiler?
14706 with_gcc=$GCC_F77
14707
14708 # An ERE matcher.
14709 EGREP=$lt_EGREP
14710
14711 # The linker used to build libraries.
14712 LD=$lt_LD_F77
14713
14714 # Whether we need hard or soft links.
14715 LN_S=$lt_LN_S
14716
14717 # A BSD-compatible nm program.
14718 NM=$lt_NM
14719
14720 # A symbol stripping program
14721 STRIP=$STRIP
14722
14723 # Used to examine libraries when file_magic_cmd begins "file"
14724 MAGIC_CMD=$MAGIC_CMD
14725
14726 # Used on cygwin: DLL creation program.
14727 DLLTOOL="$DLLTOOL"
14728
14729 # Used on cygwin: object dumper.
14730 OBJDUMP="$OBJDUMP"
14731
14732 # Used on cygwin: assembler.
14733 AS="$AS"
14734
14735 # The name of the directory that contains temporary libtool files.
14736 objdir=$objdir
14737
14738 # How to create reloadable object files.
14739 reload_flag=$lt_reload_flag
14740 reload_cmds=$lt_reload_cmds
14741
14742 # How to pass a linker flag through the compiler.
14743 wl=$lt_lt_prog_compiler_wl_F77
14744
14745 # Object file suffix (normally "o").
14746 objext="$ac_objext"
14747
14748 # Old archive suffix (normally "a").
14749 libext="$libext"
14750
14751 # Shared library suffix (normally ".so").
14752 shrext='$shrext'
14753
14754 # Executable file suffix (normally "").
14755 exeext="$exeext"
14756
14757 # Additional compiler flags for building library objects.
14758 pic_flag=$lt_lt_prog_compiler_pic_F77
14759 pic_mode=$pic_mode
14760
14761 # What is the maximum length of a command?
14762 max_cmd_len=$lt_cv_sys_max_cmd_len
14763
14764 # Does compiler simultaneously support -c and -o options?
14765 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14766
14767 # Must we lock files when doing compilation ?
14768 need_locks=$lt_need_locks
14769
14770 # Do we need the lib prefix for modules?
14771 need_lib_prefix=$need_lib_prefix
14772
14773 # Do we need a version for libraries?
14774 need_version=$need_version
14775
14776 # Whether dlopen is supported.
14777 dlopen_support=$enable_dlopen
14778
14779 # Whether dlopen of programs is supported.
14780 dlopen_self=$enable_dlopen_self
14781
14782 # Whether dlopen of statically linked programs is supported.
14783 dlopen_self_static=$enable_dlopen_self_static
14784
14785 # Compiler flag to prevent dynamic linking.
14786 link_static_flag=$lt_lt_prog_compiler_static_F77
14787
14788 # Compiler flag to turn off builtin functions.
14789 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14790
14791 # Compiler flag to allow reflexive dlopens.
14792 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14793
14794 # Compiler flag to generate shared objects directly from archives.
14795 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14796
14797 # Compiler flag to generate thread-safe objects.
14798 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14799
14800 # Library versioning type.
14801 version_type=$version_type
14802
14803 # Format of library name prefix.
14804 libname_spec=$lt_libname_spec
14805
14806 # List of archive names.  First name is the real one, the rest are links.
14807 # The last name is the one that the linker finds with -lNAME.
14808 library_names_spec=$lt_library_names_spec
14809
14810 # The coded name of the library, if different from the real name.
14811 soname_spec=$lt_soname_spec
14812
14813 # Commands used to build and install an old-style archive.
14814 RANLIB=$lt_RANLIB
14815 old_archive_cmds=$lt_old_archive_cmds_F77
14816 old_postinstall_cmds=$lt_old_postinstall_cmds
14817 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14818
14819 # Create an old-style archive from a shared archive.
14820 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14821
14822 # Create a temporary old-style archive to link instead of a shared archive.
14823 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14824
14825 # Commands used to build and install a shared archive.
14826 archive_cmds=$lt_archive_cmds_F77
14827 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14828 postinstall_cmds=$lt_postinstall_cmds
14829 postuninstall_cmds=$lt_postuninstall_cmds
14830
14831 # Commands used to build a loadable module (assumed same as above if empty)
14832 module_cmds=$lt_module_cmds_F77
14833 module_expsym_cmds=$lt_module_expsym_cmds_F77
14834
14835 # Commands to strip libraries.
14836 old_striplib=$lt_old_striplib
14837 striplib=$lt_striplib
14838
14839 # Dependencies to place before the objects being linked to create a
14840 # shared library.
14841 predep_objects=$lt_predep_objects_F77
14842
14843 # Dependencies to place after the objects being linked to create a
14844 # shared library.
14845 postdep_objects=$lt_postdep_objects_F77
14846
14847 # Dependencies to place before the objects being linked to create a
14848 # shared library.
14849 predeps=$lt_predeps_F77
14850
14851 # Dependencies to place after the objects being linked to create a
14852 # shared library.
14853 postdeps=$lt_postdeps_F77
14854
14855 # The library search path used internally by the compiler when linking
14856 # a shared library.
14857 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14858
14859 # Method to check whether dependent libraries are shared objects.
14860 deplibs_check_method=$lt_deplibs_check_method
14861
14862 # Command to use when deplibs_check_method == file_magic.
14863 file_magic_cmd=$lt_file_magic_cmd
14864
14865 # Flag that allows shared libraries with undefined symbols to be built.
14866 allow_undefined_flag=$lt_allow_undefined_flag_F77
14867
14868 # Flag that forces no undefined symbols.
14869 no_undefined_flag=$lt_no_undefined_flag_F77
14870
14871 # Commands used to finish a libtool library installation in a directory.
14872 finish_cmds=$lt_finish_cmds
14873
14874 # Same as above, but a single script fragment to be evaled but not shown.
14875 finish_eval=$lt_finish_eval
14876
14877 # Take the output of nm and produce a listing of raw symbols and C names.
14878 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14879
14880 # Transform the output of nm in a proper C declaration
14881 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14882
14883 # Transform the output of nm in a C name address pair
14884 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14885
14886 # This is the shared library runtime path variable.
14887 runpath_var=$runpath_var
14888
14889 # This is the shared library path variable.
14890 shlibpath_var=$shlibpath_var
14891
14892 # Is shlibpath searched before the hard-coded library search path?
14893 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14894
14895 # How to hardcode a shared library path into an executable.
14896 hardcode_action=$hardcode_action_F77
14897
14898 # Whether we should hardcode library paths into libraries.
14899 hardcode_into_libs=$hardcode_into_libs
14900
14901 # Flag to hardcode \$libdir into a binary during linking.
14902 # This must work even if \$libdir does not exist.
14903 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14904
14905 # If ld is used when linking, flag to hardcode \$libdir into
14906 # a binary during linking. This must work even if \$libdir does
14907 # not exist.
14908 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14909
14910 # Whether we need a single -rpath flag with a separated argument.
14911 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14912
14913 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14914 # resulting binary.
14915 hardcode_direct=$hardcode_direct_F77
14916
14917 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14918 # resulting binary.
14919 hardcode_minus_L=$hardcode_minus_L_F77
14920
14921 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14922 # the resulting binary.
14923 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14924
14925 # Set to yes if building a shared library automatically hardcodes DIR into the library
14926 # and all subsequent libraries and executables linked against it.
14927 hardcode_automatic=$hardcode_automatic_F77
14928
14929 # Variables whose values should be saved in libtool wrapper scripts and
14930 # restored at relink time.
14931 variables_saved_for_relink="$variables_saved_for_relink"
14932
14933 # Whether libtool must link a program against all its dependency libraries.
14934 link_all_deplibs=$link_all_deplibs_F77
14935
14936 # Compile-time system search path for libraries
14937 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14938
14939 # Run-time system search path for libraries
14940 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14941
14942 # Fix the shell variable \$srcfile for the compiler.
14943 fix_srcfile_path="$fix_srcfile_path_F77"
14944
14945 # Set to yes if exported symbols are required.
14946 always_export_symbols=$always_export_symbols_F77
14947
14948 # The commands to list exported symbols.
14949 export_symbols_cmds=$lt_export_symbols_cmds_F77
14950
14951 # The commands to extract the exported symbol list from a shared archive.
14952 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14953
14954 # Symbols that should not be listed in the preloaded symbols.
14955 exclude_expsyms=$lt_exclude_expsyms_F77
14956
14957 # Symbols that must always be exported.
14958 include_expsyms=$lt_include_expsyms_F77
14959
14960 # ### END LIBTOOL TAG CONFIG: $tagname
14961
14962 __EOF__
14963
14964
14965 else
14966   # If there is no Makefile yet, we rely on a make rule to execute
14967   # `config.status --recheck' to rerun these tests and create the
14968   # libtool script then.
14969   test -f Makefile && make "$ltmain"
14970 fi
14971
14972
14973 ac_ext=c
14974 ac_cpp='$CPP $CPPFLAGS'
14975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14978
14979 CC="$lt_save_CC"
14980
14981         else
14982           tagname=""
14983         fi
14984         ;;
14985
14986       GCJ)
14987         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14988
14989
14990
14991 # Source file extension for Java test sources.
14992 ac_ext=java
14993
14994 # Object file extension for compiled Java test sources.
14995 objext=o
14996 objext_GCJ=$objext
14997
14998 # Code to be used in simple compile tests
14999 lt_simple_compile_test_code="class foo {}\n"
15000
15001 # Code to be used in simple link tests
15002 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15003
15004 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15005
15006 # If no C compiler was specified, use CC.
15007 LTCC=${LTCC-"$CC"}
15008
15009 # Allow CC to be a program name with arguments.
15010 compiler=$CC
15011
15012
15013 # Allow CC to be a program name with arguments.
15014 lt_save_CC="$CC"
15015 CC=${GCJ-"gcj"}
15016 compiler=$CC
15017 compiler_GCJ=$CC
15018
15019 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15020 archive_cmds_need_lc_GCJ=no
15021
15022 ## CAVEAT EMPTOR:
15023 ## There is no encapsulation within the following macros, do not change
15024 ## the running order or otherwise move them around unless you know exactly
15025 ## what you are doing...
15026
15027 lt_prog_compiler_no_builtin_flag_GCJ=
15028
15029 if test "$GCC" = yes; then
15030   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15031
15032   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15033 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15034 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15035   echo $ECHO_N "(cached) $ECHO_C" >&6
15036 else
15037   lt_cv_prog_compiler_rtti_exceptions=no
15038   ac_outfile=conftest.$ac_objext
15039    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15040    lt_compiler_flag="-fno-rtti -fno-exceptions"
15041    # Insert the option either (1) after the last *FLAGS variable, or
15042    # (2) before a word containing "conftest.", or (3) at the end.
15043    # Note that $ac_compile itself does not contain backslashes and begins
15044    # with a dollar sign (not a hyphen), so the echo should work correctly.
15045    # The option is referenced via a variable to avoid confusing sed.
15046    lt_compile=`echo "$ac_compile" | $SED \
15047    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15048    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15049    -e 's:$: $lt_compiler_flag:'`
15050    (eval echo "\"\$as_me:15050: $lt_compile\"" >&5)
15051    (eval "$lt_compile" 2>conftest.err)
15052    ac_status=$?
15053    cat conftest.err >&5
15054    echo "$as_me:15054: \$? = $ac_status" >&5
15055    if (exit $ac_status) && test -s "$ac_outfile"; then
15056      # The compiler can only warn and ignore the option if not recognized
15057      # So say no if there are warnings
15058      if test ! -s conftest.err; then
15059        lt_cv_prog_compiler_rtti_exceptions=yes
15060      fi
15061    fi
15062    $rm conftest*
15063
15064 fi
15065 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15066 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15067
15068 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15069     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15070 else
15071     :
15072 fi
15073
15074 fi
15075
15076 lt_prog_compiler_wl_GCJ=
15077 lt_prog_compiler_pic_GCJ=
15078 lt_prog_compiler_static_GCJ=
15079
15080 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15081 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15082
15083   if test "$GCC" = yes; then
15084     lt_prog_compiler_wl_GCJ='-Wl,'
15085     lt_prog_compiler_static_GCJ='-static'
15086
15087     case $host_os in
15088       aix*)
15089       # All AIX code is PIC.
15090       if test "$host_cpu" = ia64; then
15091         # AIX 5 now supports IA64 processor
15092         lt_prog_compiler_static_GCJ='-Bstatic'
15093       fi
15094       ;;
15095
15096     amigaos*)
15097       # FIXME: we need at least 68020 code to build shared libraries, but
15098       # adding the `-m68020' flag to GCC prevents building anything better,
15099       # like `-m68040'.
15100       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15101       ;;
15102
15103     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15104       # PIC is the default for these OSes.
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     darwin* | rhapsody*)
15114       # PIC is the default on this platform
15115       # Common symbols not allowed in MH_DYLIB files
15116       lt_prog_compiler_pic_GCJ='-fno-common'
15117       ;;
15118
15119     msdosdjgpp*)
15120       # Just because we use GCC doesn't mean we suddenly get shared libraries
15121       # on systems that don't support them.
15122       lt_prog_compiler_can_build_shared_GCJ=no
15123       enable_shared=no
15124       ;;
15125
15126     sysv4*MP*)
15127       if test -d /usr/nec; then
15128         lt_prog_compiler_pic_GCJ=-Kconform_pic
15129       fi
15130       ;;
15131
15132     hpux*)
15133       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15134       # not for PA HP-UX.
15135       case "$host_cpu" in
15136       hppa*64*|ia64*)
15137         # +Z the default
15138         ;;
15139       *)
15140         lt_prog_compiler_pic_GCJ='-fPIC'
15141         ;;
15142       esac
15143       ;;
15144
15145     *)
15146       lt_prog_compiler_pic_GCJ='-fPIC'
15147       ;;
15148     esac
15149   else
15150     # PORTME Check for flag to pass linker flags through the system compiler.
15151     case $host_os in
15152     aix*)
15153       lt_prog_compiler_wl_GCJ='-Wl,'
15154       if test "$host_cpu" = ia64; then
15155         # AIX 5 now supports IA64 processor
15156         lt_prog_compiler_static_GCJ='-Bstatic'
15157       else
15158         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15159       fi
15160       ;;
15161
15162     mingw* | pw32* | os2*)
15163       # This hack is so that the source file can tell whether it is being
15164       # built for inclusion in a dll (and should export symbols for example).
15165       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15166       ;;
15167
15168     hpux9* | hpux10* | hpux11*)
15169       lt_prog_compiler_wl_GCJ='-Wl,'
15170       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15171       # not for PA HP-UX.
15172       case "$host_cpu" in
15173       hppa*64*|ia64*)
15174         # +Z the default
15175         ;;
15176       *)
15177         lt_prog_compiler_pic_GCJ='+Z'
15178         ;;
15179       esac
15180       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15181       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15182       ;;
15183
15184     irix5* | irix6* | nonstopux*)
15185       lt_prog_compiler_wl_GCJ='-Wl,'
15186       # PIC (with -KPIC) is the default.
15187       lt_prog_compiler_static_GCJ='-non_shared'
15188       ;;
15189
15190     newsos6)
15191       lt_prog_compiler_pic_GCJ='-KPIC'
15192       lt_prog_compiler_static_GCJ='-Bstatic'
15193       ;;
15194
15195     linux*)
15196       case $CC in
15197       icc|ecc)
15198         lt_prog_compiler_wl_GCJ='-Wl,'
15199         lt_prog_compiler_pic_GCJ='-KPIC'
15200         lt_prog_compiler_static_GCJ='-static'
15201         ;;
15202       ccc)
15203         lt_prog_compiler_wl_GCJ='-Wl,'
15204         # All Alpha code is PIC.
15205         lt_prog_compiler_static_GCJ='-non_shared'
15206         ;;
15207       esac
15208       ;;
15209
15210     osf3* | osf4* | osf5*)
15211       lt_prog_compiler_wl_GCJ='-Wl,'
15212       # All OSF/1 code is PIC.
15213       lt_prog_compiler_static_GCJ='-non_shared'
15214       ;;
15215
15216     sco3.2v5*)
15217       lt_prog_compiler_pic_GCJ='-Kpic'
15218       lt_prog_compiler_static_GCJ='-dn'
15219       ;;
15220
15221     solaris*)
15222       lt_prog_compiler_wl_GCJ='-Wl,'
15223       lt_prog_compiler_pic_GCJ='-KPIC'
15224       lt_prog_compiler_static_GCJ='-Bstatic'
15225       ;;
15226
15227     sunos4*)
15228       lt_prog_compiler_wl_GCJ='-Qoption ld '
15229       lt_prog_compiler_pic_GCJ='-PIC'
15230       lt_prog_compiler_static_GCJ='-Bstatic'
15231       ;;
15232
15233     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15234       lt_prog_compiler_wl_GCJ='-Wl,'
15235       lt_prog_compiler_pic_GCJ='-KPIC'
15236       lt_prog_compiler_static_GCJ='-Bstatic'
15237       ;;
15238
15239     sysv4*MP*)
15240       if test -d /usr/nec ;then
15241         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15242         lt_prog_compiler_static_GCJ='-Bstatic'
15243       fi
15244       ;;
15245
15246     uts4*)
15247       lt_prog_compiler_pic_GCJ='-pic'
15248       lt_prog_compiler_static_GCJ='-Bstatic'
15249       ;;
15250
15251     *)
15252       lt_prog_compiler_can_build_shared_GCJ=no
15253       ;;
15254     esac
15255   fi
15256
15257 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15258 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15259
15260 #
15261 # Check to make sure the PIC flag actually works.
15262 #
15263 if test -n "$lt_prog_compiler_pic_GCJ"; then
15264   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15265 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15266 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15267   echo $ECHO_N "(cached) $ECHO_C" >&6
15268 else
15269   lt_prog_compiler_pic_works_GCJ=no
15270   ac_outfile=conftest.$ac_objext
15271    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15272    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15273    # Insert the option either (1) after the last *FLAGS variable, or
15274    # (2) before a word containing "conftest.", or (3) at the end.
15275    # Note that $ac_compile itself does not contain backslashes and begins
15276    # with a dollar sign (not a hyphen), so the echo should work correctly.
15277    # The option is referenced via a variable to avoid confusing sed.
15278    lt_compile=`echo "$ac_compile" | $SED \
15279    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15280    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15281    -e 's:$: $lt_compiler_flag:'`
15282    (eval echo "\"\$as_me:15282: $lt_compile\"" >&5)
15283    (eval "$lt_compile" 2>conftest.err)
15284    ac_status=$?
15285    cat conftest.err >&5
15286    echo "$as_me:15286: \$? = $ac_status" >&5
15287    if (exit $ac_status) && test -s "$ac_outfile"; then
15288      # The compiler can only warn and ignore the option if not recognized
15289      # So say no if there are warnings
15290      if test ! -s conftest.err; then
15291        lt_prog_compiler_pic_works_GCJ=yes
15292      fi
15293    fi
15294    $rm conftest*
15295
15296 fi
15297 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15298 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15299
15300 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15301     case $lt_prog_compiler_pic_GCJ in
15302      "" | " "*) ;;
15303      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15304      esac
15305 else
15306     lt_prog_compiler_pic_GCJ=
15307      lt_prog_compiler_can_build_shared_GCJ=no
15308 fi
15309
15310 fi
15311 case "$host_os" in
15312   # For platforms which do not support PIC, -DPIC is meaningless:
15313   *djgpp*)
15314     lt_prog_compiler_pic_GCJ=
15315     ;;
15316   *)
15317     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15318     ;;
15319 esac
15320
15321 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15322 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15323 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15324   echo $ECHO_N "(cached) $ECHO_C" >&6
15325 else
15326   lt_cv_prog_compiler_c_o_GCJ=no
15327    $rm -r conftest 2>/dev/null
15328    mkdir conftest
15329    cd conftest
15330    mkdir out
15331    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15332
15333    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15334    # that will create temporary files in the current directory regardless of
15335    # the output directory.  Thus, making CWD read-only will cause this test
15336    # to fail, enabling locking or at least warning the user not to do parallel
15337    # builds.
15338    chmod -w .
15339
15340    lt_compiler_flag="-o out/conftest2.$ac_objext"
15341    # Insert the option either (1) after the last *FLAGS variable, or
15342    # (2) before a word containing "conftest.", or (3) at the end.
15343    # Note that $ac_compile itself does not contain backslashes and begins
15344    # with a dollar sign (not a hyphen), so the echo should work correctly.
15345    lt_compile=`echo "$ac_compile" | $SED \
15346    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15347    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15348    -e 's:$: $lt_compiler_flag:'`
15349    (eval echo "\"\$as_me:15349: $lt_compile\"" >&5)
15350    (eval "$lt_compile" 2>out/conftest.err)
15351    ac_status=$?
15352    cat out/conftest.err >&5
15353    echo "$as_me:15353: \$? = $ac_status" >&5
15354    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15355    then
15356      # The compiler can only warn and ignore the option if not recognized
15357      # So say no if there are warnings
15358      if test ! -s out/conftest.err; then
15359        lt_cv_prog_compiler_c_o_GCJ=yes
15360      fi
15361    fi
15362    chmod u+w .
15363    $rm conftest* out/*
15364    rmdir out
15365    cd ..
15366    rmdir conftest
15367    $rm conftest*
15368
15369 fi
15370 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15371 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15372
15373
15374 hard_links="nottested"
15375 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15376   # do not overwrite the value of need_locks provided by the user
15377   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15378 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15379   hard_links=yes
15380   $rm conftest*
15381   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15382   touch conftest.a
15383   ln conftest.a conftest.b 2>&5 || hard_links=no
15384   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15385   echo "$as_me:$LINENO: result: $hard_links" >&5
15386 echo "${ECHO_T}$hard_links" >&6
15387   if test "$hard_links" = no; then
15388     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15389 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15390     need_locks=warn
15391   fi
15392 else
15393   need_locks=no
15394 fi
15395
15396 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15397 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15398
15399   runpath_var=
15400   allow_undefined_flag_GCJ=
15401   enable_shared_with_static_runtimes_GCJ=no
15402   archive_cmds_GCJ=
15403   archive_expsym_cmds_GCJ=
15404   old_archive_From_new_cmds_GCJ=
15405   old_archive_from_expsyms_cmds_GCJ=
15406   export_dynamic_flag_spec_GCJ=
15407   whole_archive_flag_spec_GCJ=
15408   thread_safe_flag_spec_GCJ=
15409   hardcode_libdir_flag_spec_GCJ=
15410   hardcode_libdir_flag_spec_ld_GCJ=
15411   hardcode_libdir_separator_GCJ=
15412   hardcode_direct_GCJ=no
15413   hardcode_minus_L_GCJ=no
15414   hardcode_shlibpath_var_GCJ=unsupported
15415   link_all_deplibs_GCJ=unknown
15416   hardcode_automatic_GCJ=no
15417   module_cmds_GCJ=
15418   module_expsym_cmds_GCJ=
15419   always_export_symbols_GCJ=no
15420   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15421   # include_expsyms should be a list of space-separated symbols to be *always*
15422   # included in the symbol list
15423   include_expsyms_GCJ=
15424   # exclude_expsyms can be an extended regexp of symbols to exclude
15425   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15426   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15427   # as well as any symbol that contains `d'.
15428   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15429   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15430   # platforms (ab)use it in PIC code, but their linkers get confused if
15431   # the symbol is explicitly referenced.  Since portable code cannot
15432   # rely on this symbol name, it's probably fine to never include it in
15433   # preloaded symbol tables.
15434   extract_expsyms_cmds=
15435
15436   case $host_os in
15437   cygwin* | mingw* | pw32*)
15438     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15439     # When not using gcc, we currently assume that we are using
15440     # Microsoft Visual C++.
15441     if test "$GCC" != yes; then
15442       with_gnu_ld=no
15443     fi
15444     ;;
15445   openbsd*)
15446     with_gnu_ld=no
15447     ;;
15448   esac
15449
15450   ld_shlibs_GCJ=yes
15451   if test "$with_gnu_ld" = yes; then
15452     # If archive_cmds runs LD, not CC, wlarc should be empty
15453     wlarc='${wl}'
15454
15455     # See if GNU ld supports shared libraries.
15456     case $host_os in
15457     aix3* | aix4* | aix5*)
15458       # On AIX/PPC, the GNU linker is very broken
15459       if test "$host_cpu" != ia64; then
15460         ld_shlibs_GCJ=no
15461         cat <<EOF 1>&2
15462
15463 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15464 *** to be unable to reliably create shared libraries on AIX.
15465 *** Therefore, libtool is disabling shared libraries support.  If you
15466 *** really care for shared libraries, you may want to modify your PATH
15467 *** so that a non-GNU linker is found, and then restart.
15468
15469 EOF
15470       fi
15471       ;;
15472
15473     amigaos*)
15474       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)'
15475       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15476       hardcode_minus_L_GCJ=yes
15477
15478       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15479       # that the semantics of dynamic libraries on AmigaOS, at least up
15480       # to version 4, is to share data among multiple programs linked
15481       # with the same dynamic library.  Since this doesn't match the
15482       # behavior of shared libraries on other platforms, we can't use
15483       # them.
15484       ld_shlibs_GCJ=no
15485       ;;
15486
15487     beos*)
15488       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15489         allow_undefined_flag_GCJ=unsupported
15490         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15491         # support --undefined.  This deserves some investigation.  FIXME
15492         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15493       else
15494         ld_shlibs_GCJ=no
15495       fi
15496       ;;
15497
15498     cygwin* | mingw* | pw32*)
15499       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15500       # as there is no search path for DLLs.
15501       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15502       allow_undefined_flag_GCJ=unsupported
15503       always_export_symbols_GCJ=no
15504       enable_shared_with_static_runtimes_GCJ=yes
15505       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15506
15507       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15508         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15509         # If the export-symbols file already is a .def file (1st line
15510         # is EXPORTS), use it as is; otherwise, prepend...
15511         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15512           cp $export_symbols $output_objdir/$soname.def;
15513         else
15514           echo EXPORTS > $output_objdir/$soname.def;
15515           cat $export_symbols >> $output_objdir/$soname.def;
15516         fi~
15517         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15518       else
15519         ld_shlibs=no
15520       fi
15521       ;;
15522
15523     netbsd*)
15524       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15525         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15526         wlarc=
15527       else
15528         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15529         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15530       fi
15531       ;;
15532
15533     solaris* | sysv5*)
15534       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15535         ld_shlibs_GCJ=no
15536         cat <<EOF 1>&2
15537
15538 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15539 *** create shared libraries on Solaris systems.  Therefore, libtool
15540 *** is disabling shared libraries support.  We urge you to upgrade GNU
15541 *** binutils to release 2.9.1 or newer.  Another option is to modify
15542 *** your PATH or compiler configuration so that the native linker is
15543 *** used, and then restart.
15544
15545 EOF
15546       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15547         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15548         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15549       else
15550         ld_shlibs_GCJ=no
15551       fi
15552       ;;
15553
15554     sunos4*)
15555       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15556       wlarc=
15557       hardcode_direct_GCJ=yes
15558       hardcode_shlibpath_var_GCJ=no
15559       ;;
15560
15561     *)
15562       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15563         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15564         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15565       else
15566         ld_shlibs_GCJ=no
15567       fi
15568       ;;
15569     esac
15570
15571     if test "$ld_shlibs_GCJ" = yes; then
15572       runpath_var=LD_RUN_PATH
15573       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15574       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15575       # ancient GNU ld didn't support --whole-archive et. al.
15576       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15577         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15578       else
15579         whole_archive_flag_spec_GCJ=
15580       fi
15581     fi
15582   else
15583     # PORTME fill in a description of your system's linker (not GNU ld)
15584     case $host_os in
15585     aix3*)
15586       allow_undefined_flag_GCJ=unsupported
15587       always_export_symbols_GCJ=yes
15588       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'
15589       # Note: this linker hardcodes the directories in LIBPATH if there
15590       # are no directories specified by -L.
15591       hardcode_minus_L_GCJ=yes
15592       if test "$GCC" = yes && test -z "$link_static_flag"; then
15593         # Neither direct hardcoding nor static linking is supported with a
15594         # broken collect2.
15595         hardcode_direct_GCJ=unsupported
15596       fi
15597       ;;
15598
15599     aix4* | aix5*)
15600       if test "$host_cpu" = ia64; then
15601         # On IA64, the linker does run time linking by default, so we don't
15602         # have to do anything special.
15603         aix_use_runtimelinking=no
15604         exp_sym_flag='-Bexport'
15605         no_entry_flag=""
15606       else
15607         # If we're using GNU nm, then we don't want the "-C" option.
15608         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15609         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15610           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'
15611         else
15612           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'
15613         fi
15614         aix_use_runtimelinking=no
15615
15616         # Test if we are trying to use run time linking or normal
15617         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15618         # need to do runtime linking.
15619         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15620           for ld_flag in $LDFLAGS; do
15621           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15622             aix_use_runtimelinking=yes
15623             break
15624           fi
15625           done
15626         esac
15627
15628         exp_sym_flag='-bexport'
15629         no_entry_flag='-bnoentry'
15630       fi
15631
15632       # When large executables or shared objects are built, AIX ld can
15633       # have problems creating the table of contents.  If linking a library
15634       # or program results in "error TOC overflow" add -mminimal-toc to
15635       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15636       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15637
15638       archive_cmds_GCJ=''
15639       hardcode_direct_GCJ=yes
15640       hardcode_libdir_separator_GCJ=':'
15641       link_all_deplibs_GCJ=yes
15642
15643       if test "$GCC" = yes; then
15644         case $host_os in aix4.012|aix4.012.*)
15645         # We only want to do this on AIX 4.2 and lower, the check
15646         # below for broken collect2 doesn't work under 4.3+
15647           collect2name=`${CC} -print-prog-name=collect2`
15648           if test -f "$collect2name" && \
15649            strings "$collect2name" | grep resolve_lib_name >/dev/null
15650           then
15651           # We have reworked collect2
15652           hardcode_direct_GCJ=yes
15653           else
15654           # We have old collect2
15655           hardcode_direct_GCJ=unsupported
15656           # It fails to find uninstalled libraries when the uninstalled
15657           # path is not listed in the libpath.  Setting hardcode_minus_L
15658           # to unsupported forces relinking
15659           hardcode_minus_L_GCJ=yes
15660           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15661           hardcode_libdir_separator_GCJ=
15662           fi
15663         esac
15664         shared_flag='-shared'
15665       else
15666         # not using gcc
15667         if test "$host_cpu" = ia64; then
15668         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15669         # chokes on -Wl,-G. The following line is correct:
15670           shared_flag='-G'
15671         else
15672         if test "$aix_use_runtimelinking" = yes; then
15673             shared_flag='${wl}-G'
15674           else
15675             shared_flag='${wl}-bM:SRE'
15676         fi
15677         fi
15678       fi
15679
15680       # It seems that -bexpall does not export symbols beginning with
15681       # underscore (_), so it is better to generate a list of symbols to export.
15682       always_export_symbols_GCJ=yes
15683       if test "$aix_use_runtimelinking" = yes; then
15684         # Warning - without using the other runtime loading flags (-brtl),
15685         # -berok will link without error, but may produce a broken library.
15686         allow_undefined_flag_GCJ='-berok'
15687        # Determine the default libpath from the value encoded in an empty executable.
15688        cat >conftest.$ac_ext <<_ACEOF
15689 #line $LINENO "configure"
15690 /* confdefs.h.  */
15691 _ACEOF
15692 cat confdefs.h >>conftest.$ac_ext
15693 cat >>conftest.$ac_ext <<_ACEOF
15694 /* end confdefs.h.  */
15695
15696 int
15697 main ()
15698 {
15699
15700   ;
15701   return 0;
15702 }
15703 _ACEOF
15704 rm -f conftest.$ac_objext conftest$ac_exeext
15705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15706   (eval $ac_link) 2>&5
15707   ac_status=$?
15708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709   (exit $ac_status); } &&
15710          { ac_try='test -s conftest$ac_exeext'
15711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712   (eval $ac_try) 2>&5
15713   ac_status=$?
15714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715   (exit $ac_status); }; }; then
15716
15717 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15718 }'`
15719 # Check for a 64-bit object if we didn't find anything.
15720 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; }
15721 }'`; fi
15722 else
15723   echo "$as_me: failed program was:" >&5
15724 sed 's/^/| /' conftest.$ac_ext >&5
15725
15726 fi
15727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15728 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15729
15730        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15731         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"
15732        else
15733         if test "$host_cpu" = ia64; then
15734           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15735           allow_undefined_flag_GCJ="-z nodefs"
15736           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"
15737         else
15738          # Determine the default libpath from the value encoded in an empty executable.
15739          cat >conftest.$ac_ext <<_ACEOF
15740 #line $LINENO "configure"
15741 /* confdefs.h.  */
15742 _ACEOF
15743 cat confdefs.h >>conftest.$ac_ext
15744 cat >>conftest.$ac_ext <<_ACEOF
15745 /* end confdefs.h.  */
15746
15747 int
15748 main ()
15749 {
15750
15751   ;
15752   return 0;
15753 }
15754 _ACEOF
15755 rm -f conftest.$ac_objext conftest$ac_exeext
15756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15757   (eval $ac_link) 2>&5
15758   ac_status=$?
15759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760   (exit $ac_status); } &&
15761          { ac_try='test -s conftest$ac_exeext'
15762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15763   (eval $ac_try) 2>&5
15764   ac_status=$?
15765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766   (exit $ac_status); }; }; then
15767
15768 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15769 }'`
15770 # Check for a 64-bit object if we didn't find anything.
15771 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; }
15772 }'`; fi
15773 else
15774   echo "$as_me: failed program was:" >&5
15775 sed 's/^/| /' conftest.$ac_ext >&5
15776
15777 fi
15778 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15779 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15780
15781          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15782           # Warning - without using the other run time loading flags,
15783           # -berok will link without error, but may produce a broken library.
15784           no_undefined_flag_GCJ=' ${wl}-bernotok'
15785           allow_undefined_flag_GCJ=' ${wl}-berok'
15786           # -bexpall does not export symbols beginning with underscore (_)
15787           always_export_symbols_GCJ=yes
15788           # Exported symbols can be pulled into shared objects from archives
15789           whole_archive_flag_spec_GCJ=' '
15790           archive_cmds_need_lc_GCJ=yes
15791           # This is similar to how AIX traditionally builds it's shared libraries.
15792           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'
15793         fi
15794       fi
15795       ;;
15796
15797     amigaos*)
15798       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)'
15799       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15800       hardcode_minus_L_GCJ=yes
15801       # see comment about different semantics on the GNU ld section
15802       ld_shlibs_GCJ=no
15803       ;;
15804
15805     bsdi4*)
15806       export_dynamic_flag_spec_GCJ=-rdynamic
15807       ;;
15808
15809     cygwin* | mingw* | pw32*)
15810       # When not using gcc, we currently assume that we are using
15811       # Microsoft Visual C++.
15812       # hardcode_libdir_flag_spec is actually meaningless, as there is
15813       # no search path for DLLs.
15814       hardcode_libdir_flag_spec_GCJ=' '
15815       allow_undefined_flag_GCJ=unsupported
15816       # Tell ltmain to make .lib files, not .a files.
15817       libext=lib
15818       # Tell ltmain to make .dll files, not .so files.
15819       shrext=".dll"
15820       # FIXME: Setting linknames here is a bad hack.
15821       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15822       # The linker will automatically build a .lib file if we build a DLL.
15823       old_archive_From_new_cmds_GCJ='true'
15824       # FIXME: Should let the user specify the lib program.
15825       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15826       fix_srcfile_path='`cygpath -w "$srcfile"`'
15827       enable_shared_with_static_runtimes_GCJ=yes
15828       ;;
15829
15830     darwin* | rhapsody*)
15831     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15832       archive_cmds_need_lc_GCJ=no
15833       case "$host_os" in
15834       rhapsody* | darwin1.[012])
15835         allow_undefined_flag_GCJ='-undefined suppress'
15836         ;;
15837       *) # Darwin 1.3 on
15838         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15839         ;;
15840       esac
15841       # FIXME: Relying on posixy $() will cause problems for
15842       #        cross-compilation, but unfortunately the echo tests do not
15843       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15844       #        `"' quotes if we put them in here... so don't!
15845         lt_int_apple_cc_single_mod=no
15846         output_verbose_link_cmd='echo'
15847         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15848           lt_int_apple_cc_single_mod=yes
15849         fi
15850         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15851           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15852         else
15853         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'
15854       fi
15855       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15856       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15857         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15858           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}'
15859         else
15860           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}'
15861         fi
15862           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}'
15863       hardcode_direct_GCJ=no
15864       hardcode_automatic_GCJ=yes
15865       hardcode_shlibpath_var_GCJ=unsupported
15866       whole_archive_flag_spec_GCJ='-all_load $convenience'
15867       link_all_deplibs_GCJ=yes
15868     fi
15869       ;;
15870
15871     dgux*)
15872       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15873       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15874       hardcode_shlibpath_var_GCJ=no
15875       ;;
15876
15877     freebsd1*)
15878       ld_shlibs_GCJ=no
15879       ;;
15880
15881     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15882     # support.  Future versions do this automatically, but an explicit c++rt0.o
15883     # does not break anything, and helps significantly (at the cost of a little
15884     # extra space).
15885     freebsd2.2*)
15886       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15887       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15888       hardcode_direct_GCJ=yes
15889       hardcode_shlibpath_var_GCJ=no
15890       ;;
15891
15892     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15893     freebsd2*)
15894       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15895       hardcode_direct_GCJ=yes
15896       hardcode_minus_L_GCJ=yes
15897       hardcode_shlibpath_var_GCJ=no
15898       ;;
15899
15900     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15901     freebsd*)
15902       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15903       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15904       hardcode_direct_GCJ=yes
15905       hardcode_shlibpath_var_GCJ=no
15906       ;;
15907
15908     hpux9*)
15909       if test "$GCC" = yes; then
15910         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'
15911       else
15912         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'
15913       fi
15914       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15915       hardcode_libdir_separator_GCJ=:
15916       hardcode_direct_GCJ=yes
15917
15918       # hardcode_minus_L: Not really in the search PATH,
15919       # but as the default location of the library.
15920       hardcode_minus_L_GCJ=yes
15921       export_dynamic_flag_spec_GCJ='${wl}-E'
15922       ;;
15923
15924     hpux10* | hpux11*)
15925       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15926         case "$host_cpu" in
15927         hppa*64*|ia64*)
15928           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15929           ;;
15930         *)
15931           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15932           ;;
15933         esac
15934       else
15935         case "$host_cpu" in
15936         hppa*64*|ia64*)
15937           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15938           ;;
15939         *)
15940           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15941           ;;
15942         esac
15943       fi
15944       if test "$with_gnu_ld" = no; then
15945         case "$host_cpu" in
15946         hppa*64*)
15947           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15948           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15949           hardcode_libdir_separator_GCJ=:
15950           hardcode_direct_GCJ=no
15951           hardcode_shlibpath_var_GCJ=no
15952           ;;
15953         ia64*)
15954           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15955           hardcode_direct_GCJ=no
15956           hardcode_shlibpath_var_GCJ=no
15957
15958           # hardcode_minus_L: Not really in the search PATH,
15959           # but as the default location of the library.
15960           hardcode_minus_L_GCJ=yes
15961           ;;
15962         *)
15963           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15964           hardcode_libdir_separator_GCJ=:
15965           hardcode_direct_GCJ=yes
15966           export_dynamic_flag_spec_GCJ='${wl}-E'
15967
15968           # hardcode_minus_L: Not really in the search PATH,
15969           # but as the default location of the library.
15970           hardcode_minus_L_GCJ=yes
15971           ;;
15972         esac
15973       fi
15974       ;;
15975
15976     irix5* | irix6* | nonstopux*)
15977       if test "$GCC" = yes; then
15978         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'
15979       else
15980         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'
15981         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15982       fi
15983       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15984       hardcode_libdir_separator_GCJ=:
15985       link_all_deplibs_GCJ=yes
15986       ;;
15987
15988     netbsd*)
15989       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15990         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15991       else
15992         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15993       fi
15994       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15995       hardcode_direct_GCJ=yes
15996       hardcode_shlibpath_var_GCJ=no
15997       ;;
15998
15999     newsos6)
16000       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16001       hardcode_direct_GCJ=yes
16002       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16003       hardcode_libdir_separator_GCJ=:
16004       hardcode_shlibpath_var_GCJ=no
16005       ;;
16006
16007     openbsd*)
16008       hardcode_direct_GCJ=yes
16009       hardcode_shlibpath_var_GCJ=no
16010       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16011         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16012         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16013         export_dynamic_flag_spec_GCJ='${wl}-E'
16014       else
16015        case $host_os in
16016          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16017            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16018            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16019            ;;
16020          *)
16021            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16022            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16023            ;;
16024        esac
16025       fi
16026       ;;
16027
16028     os2*)
16029       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16030       hardcode_minus_L_GCJ=yes
16031       allow_undefined_flag_GCJ=unsupported
16032       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'
16033       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16034       ;;
16035
16036     osf3*)
16037       if test "$GCC" = yes; then
16038         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16039         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'
16040       else
16041         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16042         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'
16043       fi
16044       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16045       hardcode_libdir_separator_GCJ=:
16046       ;;
16047
16048     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16049       if test "$GCC" = yes; then
16050         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16051         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16052         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16053       else
16054         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16055         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'
16056         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~
16057         $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'
16058
16059         # Both c and cxx compiler support -rpath directly
16060         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16061       fi
16062       hardcode_libdir_separator_GCJ=:
16063       ;;
16064
16065     sco3.2v5*)
16066       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16067       hardcode_shlibpath_var_GCJ=no
16068       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16069       runpath_var=LD_RUN_PATH
16070       hardcode_runpath_var=yes
16071       ;;
16072
16073     solaris*)
16074       no_undefined_flag_GCJ=' -z text'
16075       if test "$GCC" = yes; then
16076         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16077         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16078           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16079       else
16080         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16081         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16082         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16083       fi
16084       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16085       hardcode_shlibpath_var_GCJ=no
16086       case $host_os in
16087       solaris2.[0-5] | solaris2.[0-5].*) ;;
16088       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16089         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16090       esac
16091       link_all_deplibs_GCJ=yes
16092       ;;
16093
16094     sunos4*)
16095       if test "x$host_vendor" = xsequent; then
16096         # Use $CC to link under sequent, because it throws in some extra .o
16097         # files that make .init and .fini sections work.
16098         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16099       else
16100         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16101       fi
16102       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16103       hardcode_direct_GCJ=yes
16104       hardcode_minus_L_GCJ=yes
16105       hardcode_shlibpath_var_GCJ=no
16106       ;;
16107
16108     sysv4)
16109       case $host_vendor in
16110         sni)
16111           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16112           hardcode_direct_GCJ=yes # is this really true???
16113         ;;
16114         siemens)
16115           ## LD is ld it makes a PLAMLIB
16116           ## CC just makes a GrossModule.
16117           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16118           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16119           hardcode_direct_GCJ=no
16120         ;;
16121         motorola)
16122           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16123           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16124         ;;
16125       esac
16126       runpath_var='LD_RUN_PATH'
16127       hardcode_shlibpath_var_GCJ=no
16128       ;;
16129
16130     sysv4.3*)
16131       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16132       hardcode_shlibpath_var_GCJ=no
16133       export_dynamic_flag_spec_GCJ='-Bexport'
16134       ;;
16135
16136     sysv4*MP*)
16137       if test -d /usr/nec; then
16138         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16139         hardcode_shlibpath_var_GCJ=no
16140         runpath_var=LD_RUN_PATH
16141         hardcode_runpath_var=yes
16142         ld_shlibs_GCJ=yes
16143       fi
16144       ;;
16145
16146     sysv4.2uw2*)
16147       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16148       hardcode_direct_GCJ=yes
16149       hardcode_minus_L_GCJ=no
16150       hardcode_shlibpath_var_GCJ=no
16151       hardcode_runpath_var=yes
16152       runpath_var=LD_RUN_PATH
16153       ;;
16154
16155    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16156       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16157       if test "$GCC" = yes; then
16158         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16159       else
16160         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16161       fi
16162       runpath_var='LD_RUN_PATH'
16163       hardcode_shlibpath_var_GCJ=no
16164       ;;
16165
16166     sysv5*)
16167       no_undefined_flag_GCJ=' -z text'
16168       # $CC -shared without GNU ld will not create a library from C++
16169       # object files and a static libstdc++, better avoid it by now
16170       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16171       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16172                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16173       hardcode_libdir_flag_spec_GCJ=
16174       hardcode_shlibpath_var_GCJ=no
16175       runpath_var='LD_RUN_PATH'
16176       ;;
16177
16178     uts4*)
16179       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16180       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16181       hardcode_shlibpath_var_GCJ=no
16182       ;;
16183
16184     *)
16185       ld_shlibs_GCJ=no
16186       ;;
16187     esac
16188   fi
16189
16190 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16191 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16192 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16193
16194 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16195 if test "$GCC" = yes; then
16196   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16197 fi
16198
16199 #
16200 # Do we need to explicitly link libc?
16201 #
16202 case "x$archive_cmds_need_lc_GCJ" in
16203 x|xyes)
16204   # Assume -lc should be added
16205   archive_cmds_need_lc_GCJ=yes
16206
16207   if test "$enable_shared" = yes && test "$GCC" = yes; then
16208     case $archive_cmds_GCJ in
16209     *'~'*)
16210       # FIXME: we may have to deal with multi-command sequences.
16211       ;;
16212     '$CC '*)
16213       # Test whether the compiler implicitly links with -lc since on some
16214       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16215       # to ld, don't add -lc before -lgcc.
16216       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16217 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16218       $rm conftest*
16219       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16220
16221       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16222   (eval $ac_compile) 2>&5
16223   ac_status=$?
16224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225   (exit $ac_status); } 2>conftest.err; then
16226         soname=conftest
16227         lib=conftest
16228         libobjs=conftest.$ac_objext
16229         deplibs=
16230         wl=$lt_prog_compiler_wl_GCJ
16231         compiler_flags=-v
16232         linker_flags=-v
16233         verstring=
16234         output_objdir=.
16235         libname=conftest
16236         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16237         allow_undefined_flag_GCJ=
16238         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16239   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16240   ac_status=$?
16241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242   (exit $ac_status); }
16243         then
16244           archive_cmds_need_lc_GCJ=no
16245         else
16246           archive_cmds_need_lc_GCJ=yes
16247         fi
16248         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16249       else
16250         cat conftest.err 1>&5
16251       fi
16252       $rm conftest*
16253       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16254 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16255       ;;
16256     esac
16257   fi
16258   ;;
16259 esac
16260
16261 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16262 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16263 hardcode_action_GCJ=
16264 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16265    test -n "$runpath_var GCJ" || \
16266    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16267
16268   # We can hardcode non-existant directories.
16269   if test "$hardcode_direct_GCJ" != no &&
16270      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16271      # have to relink, otherwise we might link with an installed library
16272      # when we should be linking with a yet-to-be-installed one
16273      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16274      test "$hardcode_minus_L_GCJ" != no; then
16275     # Linking always hardcodes the temporary library directory.
16276     hardcode_action_GCJ=relink
16277   else
16278     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16279     hardcode_action_GCJ=immediate
16280   fi
16281 else
16282   # We cannot hardcode anything, or else we can only hardcode existing
16283   # directories.
16284   hardcode_action_GCJ=unsupported
16285 fi
16286 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16287 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16288
16289 if test "$hardcode_action_GCJ" = relink; then
16290   # Fast installation is not supported
16291   enable_fast_install=no
16292 elif test "$shlibpath_overrides_runpath" = yes ||
16293      test "$enable_shared" = no; then
16294   # Fast installation is not necessary
16295   enable_fast_install=needless
16296 fi
16297
16298 striplib=
16299 old_striplib=
16300 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16301 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16302 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16303   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16304   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16305   echo "$as_me:$LINENO: result: yes" >&5
16306 echo "${ECHO_T}yes" >&6
16307 else
16308 # FIXME - insert some real tests, host_os isn't really good enough
16309   case $host_os in
16310    darwin*)
16311        if test -n "$STRIP" ; then
16312          striplib="$STRIP -x"
16313          echo "$as_me:$LINENO: result: yes" >&5
16314 echo "${ECHO_T}yes" >&6
16315        else
16316   echo "$as_me:$LINENO: result: no" >&5
16317 echo "${ECHO_T}no" >&6
16318 fi
16319        ;;
16320    *)
16321   echo "$as_me:$LINENO: result: no" >&5
16322 echo "${ECHO_T}no" >&6
16323     ;;
16324   esac
16325 fi
16326
16327 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16328 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16329 library_names_spec=
16330 libname_spec='lib$name'
16331 soname_spec=
16332 shrext=".so"
16333 postinstall_cmds=
16334 postuninstall_cmds=
16335 finish_cmds=
16336 finish_eval=
16337 shlibpath_var=
16338 shlibpath_overrides_runpath=unknown
16339 version_type=none
16340 dynamic_linker="$host_os ld.so"
16341 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16342 if test "$GCC" = yes; then
16343   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16344   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16345     # if the path contains ";" then we assume it to be the separator
16346     # otherwise default to the standard path separator (i.e. ":") - it is
16347     # assumed that no part of a normal pathname contains ";" but that should
16348     # okay in the real world where ";" in dirpaths is itself problematic.
16349     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16350   else
16351     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16352   fi
16353 else
16354   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16355 fi
16356 need_lib_prefix=unknown
16357 hardcode_into_libs=no
16358
16359 # when you set need_version to no, make sure it does not cause -set_version
16360 # flags to be left without arguments
16361 need_version=unknown
16362
16363 case $host_os in
16364 aix3*)
16365   version_type=linux
16366   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16367   shlibpath_var=LIBPATH
16368
16369   # AIX 3 has no versioning support, so we append a major version to the name.
16370   soname_spec='${libname}${release}${shared_ext}$major'
16371   ;;
16372
16373 aix4* | aix5*)
16374   version_type=linux
16375   need_lib_prefix=no
16376   need_version=no
16377   hardcode_into_libs=yes
16378   if test "$host_cpu" = ia64; then
16379     # AIX 5 supports IA64
16380     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16381     shlibpath_var=LD_LIBRARY_PATH
16382   else
16383     # With GCC up to 2.95.x, collect2 would create an import file
16384     # for dependence libraries.  The import file would start with
16385     # the line `#! .'.  This would cause the generated library to
16386     # depend on `.', always an invalid library.  This was fixed in
16387     # development snapshots of GCC prior to 3.0.
16388     case $host_os in
16389       aix4 | aix4.[01] | aix4.[01].*)
16390       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16391            echo ' yes '
16392            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16393         :
16394       else
16395         can_build_shared=no
16396       fi
16397       ;;
16398     esac
16399     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16400     # soname into executable. Probably we can add versioning support to
16401     # collect2, so additional links can be useful in future.
16402     if test "$aix_use_runtimelinking" = yes; then
16403       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16404       # instead of lib<name>.a to let people know that these are not
16405       # typical AIX shared libraries.
16406       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16407     else
16408       # We preserve .a as extension for shared libraries through AIX4.2
16409       # and later when we are not doing run time linking.
16410       library_names_spec='${libname}${release}.a $libname.a'
16411       soname_spec='${libname}${release}${shared_ext}$major'
16412     fi
16413     shlibpath_var=LIBPATH
16414   fi
16415   ;;
16416
16417 amigaos*)
16418   library_names_spec='$libname.ixlibrary $libname.a'
16419   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16420   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'
16421   ;;
16422
16423 beos*)
16424   library_names_spec='${libname}${shared_ext}'
16425   dynamic_linker="$host_os ld.so"
16426   shlibpath_var=LIBRARY_PATH
16427   ;;
16428
16429 bsdi4*)
16430   version_type=linux
16431   need_version=no
16432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16433   soname_spec='${libname}${release}${shared_ext}$major'
16434   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16435   shlibpath_var=LD_LIBRARY_PATH
16436   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16437   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16438   # the default ld.so.conf also contains /usr/contrib/lib and
16439   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16440   # libtool to hard-code these into programs
16441   ;;
16442
16443 cygwin* | mingw* | pw32*)
16444   version_type=windows
16445   shrext=".dll"
16446   need_version=no
16447   need_lib_prefix=no
16448
16449   case $GCC,$host_os in
16450   yes,cygwin* | yes,mingw* | yes,pw32*)
16451     library_names_spec='$libname.dll.a'
16452     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16453     postinstall_cmds='base_file=`basename \${file}`~
16454       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16455       dldir=$destdir/`dirname \$dlpath`~
16456       test -d \$dldir || mkdir -p \$dldir~
16457       $install_prog $dir/$dlname \$dldir/$dlname'
16458     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16459       dlpath=$dir/\$dldll~
16460        $rm \$dlpath'
16461     shlibpath_overrides_runpath=yes
16462
16463     case $host_os in
16464     cygwin*)
16465       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16466       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16467       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16468       ;;
16469     mingw*)
16470       # MinGW DLLs use traditional 'lib' prefix
16471       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16472       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16473       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16474         # It is most probably a Windows format PATH printed by
16475         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16476         # path with ; separators, and with drive letters. We can handle the
16477         # drive letters (cygwin fileutils understands them), so leave them,
16478         # especially as we might pass files found there to a mingw objdump,
16479         # which wouldn't understand a cygwinified path. Ahh.
16480         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16481       else
16482         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16483       fi
16484       ;;
16485     pw32*)
16486       # pw32 DLLs use 'pw' prefix rather than 'lib'
16487       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16488       ;;
16489     esac
16490     ;;
16491
16492   *)
16493     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16494     ;;
16495   esac
16496   dynamic_linker='Win32 ld.exe'
16497   # FIXME: first we should search . and the directory the executable is in
16498   shlibpath_var=PATH
16499   ;;
16500
16501 darwin* | rhapsody*)
16502   dynamic_linker="$host_os dyld"
16503   version_type=darwin
16504   need_lib_prefix=no
16505   need_version=no
16506   # FIXME: Relying on posixy $() will cause problems for
16507   #        cross-compilation, but unfortunately the echo tests do not
16508   #        yet detect zsh echo's removal of \ escapes.
16509   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16510   soname_spec='${libname}${release}${major}$shared_ext'
16511   shlibpath_overrides_runpath=yes
16512   shlibpath_var=DYLD_LIBRARY_PATH
16513   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16514   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16515   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16516   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"`
16517   fi
16518   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16519   ;;
16520
16521 dgux*)
16522   version_type=linux
16523   need_lib_prefix=no
16524   need_version=no
16525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16526   soname_spec='${libname}${release}${shared_ext}$major'
16527   shlibpath_var=LD_LIBRARY_PATH
16528   ;;
16529
16530 freebsd1*)
16531   dynamic_linker=no
16532   ;;
16533
16534 freebsd*)
16535   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16536   version_type=freebsd-$objformat
16537   case $version_type in
16538     freebsd-elf*)
16539       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16540       need_version=no
16541       need_lib_prefix=no
16542       ;;
16543     freebsd-*)
16544       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16545       need_version=yes
16546       ;;
16547   esac
16548   shlibpath_var=LD_LIBRARY_PATH
16549   case $host_os in
16550   freebsd2*)
16551     shlibpath_overrides_runpath=yes
16552     ;;
16553   freebsd3.01* | freebsdelf3.01*)
16554     shlibpath_overrides_runpath=yes
16555     hardcode_into_libs=yes
16556     ;;
16557   *) # from 3.2 on
16558     shlibpath_overrides_runpath=no
16559     hardcode_into_libs=yes
16560     ;;
16561   esac
16562   ;;
16563
16564 gnu*)
16565   version_type=linux
16566   need_lib_prefix=no
16567   need_version=no
16568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16569   soname_spec='${libname}${release}${shared_ext}$major'
16570   shlibpath_var=LD_LIBRARY_PATH
16571   hardcode_into_libs=yes
16572   ;;
16573
16574 hpux9* | hpux10* | hpux11*)
16575   # Give a soname corresponding to the major version so that dld.sl refuses to
16576   # link against other versions.
16577   version_type=sunos
16578   need_lib_prefix=no
16579   need_version=no
16580   case "$host_cpu" in
16581   ia64*)
16582     shrext='.so'
16583     hardcode_into_libs=yes
16584     dynamic_linker="$host_os dld.so"
16585     shlibpath_var=LD_LIBRARY_PATH
16586     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16587     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16588     soname_spec='${libname}${release}${shared_ext}$major'
16589     if test "X$HPUX_IA64_MODE" = X32; then
16590       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16591     else
16592       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16593     fi
16594     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16595     ;;
16596    hppa*64*)
16597      shrext='.sl'
16598      hardcode_into_libs=yes
16599      dynamic_linker="$host_os dld.sl"
16600      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16601      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16602      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16603      soname_spec='${libname}${release}${shared_ext}$major'
16604      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16605      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16606      ;;
16607    *)
16608     shrext='.sl'
16609     dynamic_linker="$host_os dld.sl"
16610     shlibpath_var=SHLIB_PATH
16611     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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     ;;
16615   esac
16616   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16617   postinstall_cmds='chmod 555 $lib'
16618   ;;
16619
16620 irix5* | irix6* | nonstopux*)
16621   case $host_os in
16622     nonstopux*) version_type=nonstopux ;;
16623     *)
16624         if test "$lt_cv_prog_gnu_ld" = yes; then
16625                 version_type=linux
16626         else
16627                 version_type=irix
16628         fi ;;
16629   esac
16630   need_lib_prefix=no
16631   need_version=no
16632   soname_spec='${libname}${release}${shared_ext}$major'
16633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16634   case $host_os in
16635   irix5* | nonstopux*)
16636     libsuff= shlibsuff=
16637     ;;
16638   *)
16639     case $LD in # libtool.m4 will add one of these switches to LD
16640     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16641       libsuff= shlibsuff= libmagic=32-bit;;
16642     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16643       libsuff=32 shlibsuff=N32 libmagic=N32;;
16644     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16645       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16646     *) libsuff= shlibsuff= libmagic=never-match;;
16647     esac
16648     ;;
16649   esac
16650   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16651   shlibpath_overrides_runpath=no
16652   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16653   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16654   hardcode_into_libs=yes
16655   ;;
16656
16657 # No shared lib support for Linux oldld, aout, or coff.
16658 linux*oldld* | linux*aout* | linux*coff*)
16659   dynamic_linker=no
16660   ;;
16661
16662 # This must be Linux ELF.
16663 linux*)
16664   version_type=linux
16665   need_lib_prefix=no
16666   need_version=no
16667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16668   soname_spec='${libname}${release}${shared_ext}$major'
16669   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16670   shlibpath_var=LD_LIBRARY_PATH
16671   shlibpath_overrides_runpath=no
16672   # This implies no fast_install, which is unacceptable.
16673   # Some rework will be needed to allow for fast_install
16674   # before this can be enabled.
16675   hardcode_into_libs=yes
16676
16677   # We used to test for /lib/ld.so.1 and disable shared libraries on
16678   # powerpc, because MkLinux only supported shared libraries with the
16679   # GNU dynamic linker.  Since this was broken with cross compilers,
16680   # most powerpc-linux boxes support dynamic linking these days and
16681   # people can always --disable-shared, the test was removed, and we
16682   # assume the GNU/Linux dynamic linker is in use.
16683   dynamic_linker='GNU/Linux ld.so'
16684   ;;
16685
16686 netbsd*)
16687   version_type=sunos
16688   need_lib_prefix=no
16689   need_version=no
16690   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16691     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16692     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16693     dynamic_linker='NetBSD (a.out) ld.so'
16694   else
16695     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16696     soname_spec='${libname}${release}${shared_ext}$major'
16697     dynamic_linker='NetBSD ld.elf_so'
16698   fi
16699   shlibpath_var=LD_LIBRARY_PATH
16700   shlibpath_overrides_runpath=yes
16701   hardcode_into_libs=yes
16702   ;;
16703
16704 newsos6)
16705   version_type=linux
16706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16707   shlibpath_var=LD_LIBRARY_PATH
16708   shlibpath_overrides_runpath=yes
16709   ;;
16710
16711 nto-qnx)
16712   version_type=linux
16713   need_lib_prefix=no
16714   need_version=no
16715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16716   soname_spec='${libname}${release}${shared_ext}$major'
16717   shlibpath_var=LD_LIBRARY_PATH
16718   shlibpath_overrides_runpath=yes
16719   ;;
16720
16721 openbsd*)
16722   version_type=sunos
16723   need_lib_prefix=no
16724   need_version=no
16725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16726   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16727   shlibpath_var=LD_LIBRARY_PATH
16728   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16729     case $host_os in
16730       openbsd2.[89] | openbsd2.[89].*)
16731         shlibpath_overrides_runpath=no
16732         ;;
16733       *)
16734         shlibpath_overrides_runpath=yes
16735         ;;
16736       esac
16737   else
16738     shlibpath_overrides_runpath=yes
16739   fi
16740   ;;
16741
16742 os2*)
16743   libname_spec='$name'
16744   shrext=".dll"
16745   need_lib_prefix=no
16746   library_names_spec='$libname${shared_ext} $libname.a'
16747   dynamic_linker='OS/2 ld.exe'
16748   shlibpath_var=LIBPATH
16749   ;;
16750
16751 osf3* | osf4* | osf5*)
16752   version_type=osf
16753   need_lib_prefix=no
16754   need_version=no
16755   soname_spec='${libname}${release}${shared_ext}$major'
16756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16757   shlibpath_var=LD_LIBRARY_PATH
16758   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16759   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16760   ;;
16761
16762 sco3.2v5*)
16763   version_type=osf
16764   soname_spec='${libname}${release}${shared_ext}$major'
16765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16766   shlibpath_var=LD_LIBRARY_PATH
16767   ;;
16768
16769 solaris*)
16770   version_type=linux
16771   need_lib_prefix=no
16772   need_version=no
16773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16774   soname_spec='${libname}${release}${shared_ext}$major'
16775   shlibpath_var=LD_LIBRARY_PATH
16776   shlibpath_overrides_runpath=yes
16777   hardcode_into_libs=yes
16778   # ldd complains unless libraries are executable
16779   postinstall_cmds='chmod +x $lib'
16780   ;;
16781
16782 sunos4*)
16783   version_type=sunos
16784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16785   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16786   shlibpath_var=LD_LIBRARY_PATH
16787   shlibpath_overrides_runpath=yes
16788   if test "$with_gnu_ld" = yes; then
16789     need_lib_prefix=no
16790   fi
16791   need_version=yes
16792   ;;
16793
16794 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16795   version_type=linux
16796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16797   soname_spec='${libname}${release}${shared_ext}$major'
16798   shlibpath_var=LD_LIBRARY_PATH
16799   case $host_vendor in
16800     sni)
16801       shlibpath_overrides_runpath=no
16802       need_lib_prefix=no
16803       export_dynamic_flag_spec='${wl}-Blargedynsym'
16804       runpath_var=LD_RUN_PATH
16805       ;;
16806     siemens)
16807       need_lib_prefix=no
16808       ;;
16809     motorola)
16810       need_lib_prefix=no
16811       need_version=no
16812       shlibpath_overrides_runpath=no
16813       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16814       ;;
16815   esac
16816   ;;
16817
16818 sysv4*MP*)
16819   if test -d /usr/nec ;then
16820     version_type=linux
16821     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16822     soname_spec='$libname${shared_ext}.$major'
16823     shlibpath_var=LD_LIBRARY_PATH
16824   fi
16825   ;;
16826
16827 uts4*)
16828   version_type=linux
16829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16830   soname_spec='${libname}${release}${shared_ext}$major'
16831   shlibpath_var=LD_LIBRARY_PATH
16832   ;;
16833
16834 *)
16835   dynamic_linker=no
16836   ;;
16837 esac
16838 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16839 echo "${ECHO_T}$dynamic_linker" >&6
16840 test "$dynamic_linker" = no && can_build_shared=no
16841
16842 if test "x$enable_dlopen" != xyes; then
16843   enable_dlopen=unknown
16844   enable_dlopen_self=unknown
16845   enable_dlopen_self_static=unknown
16846 else
16847   lt_cv_dlopen=no
16848   lt_cv_dlopen_libs=
16849
16850   case $host_os in
16851   beos*)
16852     lt_cv_dlopen="load_add_on"
16853     lt_cv_dlopen_libs=
16854     lt_cv_dlopen_self=yes
16855     ;;
16856
16857   mingw* | pw32*)
16858     lt_cv_dlopen="LoadLibrary"
16859     lt_cv_dlopen_libs=
16860    ;;
16861
16862   cygwin*)
16863     lt_cv_dlopen="dlopen"
16864     lt_cv_dlopen_libs=
16865    ;;
16866
16867   darwin*)
16868   # if libdl is installed we need to link against it
16869     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16870 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16871 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16872   echo $ECHO_N "(cached) $ECHO_C" >&6
16873 else
16874   ac_check_lib_save_LIBS=$LIBS
16875 LIBS="-ldl  $LIBS"
16876 cat >conftest.$ac_ext <<_ACEOF
16877 #line $LINENO "configure"
16878 /* confdefs.h.  */
16879 _ACEOF
16880 cat confdefs.h >>conftest.$ac_ext
16881 cat >>conftest.$ac_ext <<_ACEOF
16882 /* end confdefs.h.  */
16883
16884 /* Override any gcc2 internal prototype to avoid an error.  */
16885 #ifdef __cplusplus
16886 extern "C"
16887 #endif
16888 /* We use char because int might match the return type of a gcc2
16889    builtin and then its argument prototype would still apply.  */
16890 char dlopen ();
16891 int
16892 main ()
16893 {
16894 dlopen ();
16895   ;
16896   return 0;
16897 }
16898 _ACEOF
16899 rm -f conftest.$ac_objext conftest$ac_exeext
16900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16901   (eval $ac_link) 2>&5
16902   ac_status=$?
16903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904   (exit $ac_status); } &&
16905          { ac_try='test -s conftest$ac_exeext'
16906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16907   (eval $ac_try) 2>&5
16908   ac_status=$?
16909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910   (exit $ac_status); }; }; then
16911   ac_cv_lib_dl_dlopen=yes
16912 else
16913   echo "$as_me: failed program was:" >&5
16914 sed 's/^/| /' conftest.$ac_ext >&5
16915
16916 ac_cv_lib_dl_dlopen=no
16917 fi
16918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16919 LIBS=$ac_check_lib_save_LIBS
16920 fi
16921 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16922 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16923 if test $ac_cv_lib_dl_dlopen = yes; then
16924   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16925 else
16926
16927     lt_cv_dlopen="dyld"
16928     lt_cv_dlopen_libs=
16929     lt_cv_dlopen_self=yes
16930
16931 fi
16932
16933    ;;
16934
16935   *)
16936     echo "$as_me:$LINENO: checking for shl_load" >&5
16937 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16938 if test "${ac_cv_func_shl_load+set}" = set; then
16939   echo $ECHO_N "(cached) $ECHO_C" >&6
16940 else
16941   cat >conftest.$ac_ext <<_ACEOF
16942 #line $LINENO "configure"
16943 /* confdefs.h.  */
16944 _ACEOF
16945 cat confdefs.h >>conftest.$ac_ext
16946 cat >>conftest.$ac_ext <<_ACEOF
16947 /* end confdefs.h.  */
16948 /* System header to define __stub macros and hopefully few prototypes,
16949     which can conflict with char shl_load (); below.
16950     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16951     <limits.h> exists even on freestanding compilers.  */
16952 #ifdef __STDC__
16953 # include <limits.h>
16954 #else
16955 # include <assert.h>
16956 #endif
16957 /* Override any gcc2 internal prototype to avoid an error.  */
16958 #ifdef __cplusplus
16959 extern "C"
16960 {
16961 #endif
16962 /* We use char because int might match the return type of a gcc2
16963    builtin and then its argument prototype would still apply.  */
16964 char shl_load ();
16965 /* The GNU C library defines this for functions which it implements
16966     to always fail with ENOSYS.  Some functions are actually named
16967     something starting with __ and the normal name is an alias.  */
16968 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16969 choke me
16970 #else
16971 char (*f) () = shl_load;
16972 #endif
16973 #ifdef __cplusplus
16974 }
16975 #endif
16976
16977 int
16978 main ()
16979 {
16980 return f != shl_load;
16981   ;
16982   return 0;
16983 }
16984 _ACEOF
16985 rm -f conftest.$ac_objext conftest$ac_exeext
16986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16987   (eval $ac_link) 2>&5
16988   ac_status=$?
16989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990   (exit $ac_status); } &&
16991          { ac_try='test -s conftest$ac_exeext'
16992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16993   (eval $ac_try) 2>&5
16994   ac_status=$?
16995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996   (exit $ac_status); }; }; then
16997   ac_cv_func_shl_load=yes
16998 else
16999   echo "$as_me: failed program was:" >&5
17000 sed 's/^/| /' conftest.$ac_ext >&5
17001
17002 ac_cv_func_shl_load=no
17003 fi
17004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17005 fi
17006 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17007 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17008 if test $ac_cv_func_shl_load = yes; then
17009   lt_cv_dlopen="shl_load"
17010 else
17011   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17012 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17013 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17014   echo $ECHO_N "(cached) $ECHO_C" >&6
17015 else
17016   ac_check_lib_save_LIBS=$LIBS
17017 LIBS="-ldld  $LIBS"
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
17026 /* Override any gcc2 internal prototype to avoid an error.  */
17027 #ifdef __cplusplus
17028 extern "C"
17029 #endif
17030 /* We use char because int might match the return type of a gcc2
17031    builtin and then its argument prototype would still apply.  */
17032 char shl_load ();
17033 int
17034 main ()
17035 {
17036 shl_load ();
17037   ;
17038   return 0;
17039 }
17040 _ACEOF
17041 rm -f conftest.$ac_objext conftest$ac_exeext
17042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17043   (eval $ac_link) 2>&5
17044   ac_status=$?
17045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046   (exit $ac_status); } &&
17047          { ac_try='test -s conftest$ac_exeext'
17048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049   (eval $ac_try) 2>&5
17050   ac_status=$?
17051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052   (exit $ac_status); }; }; then
17053   ac_cv_lib_dld_shl_load=yes
17054 else
17055   echo "$as_me: failed program was:" >&5
17056 sed 's/^/| /' conftest.$ac_ext >&5
17057
17058 ac_cv_lib_dld_shl_load=no
17059 fi
17060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17061 LIBS=$ac_check_lib_save_LIBS
17062 fi
17063 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17064 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17065 if test $ac_cv_lib_dld_shl_load = yes; then
17066   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17067 else
17068   echo "$as_me:$LINENO: checking for dlopen" >&5
17069 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17070 if test "${ac_cv_func_dlopen+set}" = set; then
17071   echo $ECHO_N "(cached) $ECHO_C" >&6
17072 else
17073   cat >conftest.$ac_ext <<_ACEOF
17074 #line $LINENO "configure"
17075 /* confdefs.h.  */
17076 _ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h.  */
17080 /* System header to define __stub macros and hopefully few prototypes,
17081     which can conflict with char dlopen (); below.
17082     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17083     <limits.h> exists even on freestanding compilers.  */
17084 #ifdef __STDC__
17085 # include <limits.h>
17086 #else
17087 # include <assert.h>
17088 #endif
17089 /* Override any gcc2 internal prototype to avoid an error.  */
17090 #ifdef __cplusplus
17091 extern "C"
17092 {
17093 #endif
17094 /* We use char because int might match the return type of a gcc2
17095    builtin and then its argument prototype would still apply.  */
17096 char dlopen ();
17097 /* The GNU C library defines this for functions which it implements
17098     to always fail with ENOSYS.  Some functions are actually named
17099     something starting with __ and the normal name is an alias.  */
17100 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17101 choke me
17102 #else
17103 char (*f) () = dlopen;
17104 #endif
17105 #ifdef __cplusplus
17106 }
17107 #endif
17108
17109 int
17110 main ()
17111 {
17112 return f != dlopen;
17113   ;
17114   return 0;
17115 }
17116 _ACEOF
17117 rm -f conftest.$ac_objext conftest$ac_exeext
17118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17119   (eval $ac_link) 2>&5
17120   ac_status=$?
17121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122   (exit $ac_status); } &&
17123          { ac_try='test -s conftest$ac_exeext'
17124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17125   (eval $ac_try) 2>&5
17126   ac_status=$?
17127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128   (exit $ac_status); }; }; then
17129   ac_cv_func_dlopen=yes
17130 else
17131   echo "$as_me: failed program was:" >&5
17132 sed 's/^/| /' conftest.$ac_ext >&5
17133
17134 ac_cv_func_dlopen=no
17135 fi
17136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17137 fi
17138 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17139 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17140 if test $ac_cv_func_dlopen = yes; then
17141   lt_cv_dlopen="dlopen"
17142 else
17143   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17144 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17145 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17146   echo $ECHO_N "(cached) $ECHO_C" >&6
17147 else
17148   ac_check_lib_save_LIBS=$LIBS
17149 LIBS="-ldl  $LIBS"
17150 cat >conftest.$ac_ext <<_ACEOF
17151 #line $LINENO "configure"
17152 /* confdefs.h.  */
17153 _ACEOF
17154 cat confdefs.h >>conftest.$ac_ext
17155 cat >>conftest.$ac_ext <<_ACEOF
17156 /* end confdefs.h.  */
17157
17158 /* Override any gcc2 internal prototype to avoid an error.  */
17159 #ifdef __cplusplus
17160 extern "C"
17161 #endif
17162 /* We use char because int might match the return type of a gcc2
17163    builtin and then its argument prototype would still apply.  */
17164 char dlopen ();
17165 int
17166 main ()
17167 {
17168 dlopen ();
17169   ;
17170   return 0;
17171 }
17172 _ACEOF
17173 rm -f conftest.$ac_objext conftest$ac_exeext
17174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17175   (eval $ac_link) 2>&5
17176   ac_status=$?
17177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178   (exit $ac_status); } &&
17179          { ac_try='test -s conftest$ac_exeext'
17180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17181   (eval $ac_try) 2>&5
17182   ac_status=$?
17183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184   (exit $ac_status); }; }; then
17185   ac_cv_lib_dl_dlopen=yes
17186 else
17187   echo "$as_me: failed program was:" >&5
17188 sed 's/^/| /' conftest.$ac_ext >&5
17189
17190 ac_cv_lib_dl_dlopen=no
17191 fi
17192 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17193 LIBS=$ac_check_lib_save_LIBS
17194 fi
17195 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17196 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17197 if test $ac_cv_lib_dl_dlopen = yes; then
17198   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17199 else
17200   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17201 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17202 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17203   echo $ECHO_N "(cached) $ECHO_C" >&6
17204 else
17205   ac_check_lib_save_LIBS=$LIBS
17206 LIBS="-lsvld  $LIBS"
17207 cat >conftest.$ac_ext <<_ACEOF
17208 #line $LINENO "configure"
17209 /* confdefs.h.  */
17210 _ACEOF
17211 cat confdefs.h >>conftest.$ac_ext
17212 cat >>conftest.$ac_ext <<_ACEOF
17213 /* end confdefs.h.  */
17214
17215 /* Override any gcc2 internal prototype to avoid an error.  */
17216 #ifdef __cplusplus
17217 extern "C"
17218 #endif
17219 /* We use char because int might match the return type of a gcc2
17220    builtin and then its argument prototype would still apply.  */
17221 char dlopen ();
17222 int
17223 main ()
17224 {
17225 dlopen ();
17226   ;
17227   return 0;
17228 }
17229 _ACEOF
17230 rm -f conftest.$ac_objext conftest$ac_exeext
17231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17232   (eval $ac_link) 2>&5
17233   ac_status=$?
17234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235   (exit $ac_status); } &&
17236          { ac_try='test -s conftest$ac_exeext'
17237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17238   (eval $ac_try) 2>&5
17239   ac_status=$?
17240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241   (exit $ac_status); }; }; then
17242   ac_cv_lib_svld_dlopen=yes
17243 else
17244   echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17246
17247 ac_cv_lib_svld_dlopen=no
17248 fi
17249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17250 LIBS=$ac_check_lib_save_LIBS
17251 fi
17252 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17253 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17254 if test $ac_cv_lib_svld_dlopen = yes; then
17255   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17256 else
17257   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17258 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17259 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17260   echo $ECHO_N "(cached) $ECHO_C" >&6
17261 else
17262   ac_check_lib_save_LIBS=$LIBS
17263 LIBS="-ldld  $LIBS"
17264 cat >conftest.$ac_ext <<_ACEOF
17265 #line $LINENO "configure"
17266 /* confdefs.h.  */
17267 _ACEOF
17268 cat confdefs.h >>conftest.$ac_ext
17269 cat >>conftest.$ac_ext <<_ACEOF
17270 /* end confdefs.h.  */
17271
17272 /* Override any gcc2 internal prototype to avoid an error.  */
17273 #ifdef __cplusplus
17274 extern "C"
17275 #endif
17276 /* We use char because int might match the return type of a gcc2
17277    builtin and then its argument prototype would still apply.  */
17278 char dld_link ();
17279 int
17280 main ()
17281 {
17282 dld_link ();
17283   ;
17284   return 0;
17285 }
17286 _ACEOF
17287 rm -f conftest.$ac_objext conftest$ac_exeext
17288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17289   (eval $ac_link) 2>&5
17290   ac_status=$?
17291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292   (exit $ac_status); } &&
17293          { ac_try='test -s conftest$ac_exeext'
17294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295   (eval $ac_try) 2>&5
17296   ac_status=$?
17297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298   (exit $ac_status); }; }; then
17299   ac_cv_lib_dld_dld_link=yes
17300 else
17301   echo "$as_me: failed program was:" >&5
17302 sed 's/^/| /' conftest.$ac_ext >&5
17303
17304 ac_cv_lib_dld_dld_link=no
17305 fi
17306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17307 LIBS=$ac_check_lib_save_LIBS
17308 fi
17309 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17310 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17311 if test $ac_cv_lib_dld_dld_link = yes; then
17312   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17313 fi
17314
17315
17316 fi
17317
17318
17319 fi
17320
17321
17322 fi
17323
17324
17325 fi
17326
17327
17328 fi
17329
17330     ;;
17331   esac
17332
17333   if test "x$lt_cv_dlopen" != xno; then
17334     enable_dlopen=yes
17335   else
17336     enable_dlopen=no
17337   fi
17338
17339   case $lt_cv_dlopen in
17340   dlopen)
17341     save_CPPFLAGS="$CPPFLAGS"
17342     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17343
17344     save_LDFLAGS="$LDFLAGS"
17345     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17346
17347     save_LIBS="$LIBS"
17348     LIBS="$lt_cv_dlopen_libs $LIBS"
17349
17350     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17351 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17352 if test "${lt_cv_dlopen_self+set}" = set; then
17353   echo $ECHO_N "(cached) $ECHO_C" >&6
17354 else
17355           if test "$cross_compiling" = yes; then :
17356   lt_cv_dlopen_self=cross
17357 else
17358   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17359   lt_status=$lt_dlunknown
17360   cat > conftest.$ac_ext <<EOF
17361 #line 17361 "configure"
17362 #include "confdefs.h"
17363
17364 #if HAVE_DLFCN_H
17365 #include <dlfcn.h>
17366 #endif
17367
17368 #include <stdio.h>
17369
17370 #ifdef RTLD_GLOBAL
17371 #  define LT_DLGLOBAL           RTLD_GLOBAL
17372 #else
17373 #  ifdef DL_GLOBAL
17374 #    define LT_DLGLOBAL         DL_GLOBAL
17375 #  else
17376 #    define LT_DLGLOBAL         0
17377 #  endif
17378 #endif
17379
17380 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17381    find out it does not work in some platform. */
17382 #ifndef LT_DLLAZY_OR_NOW
17383 #  ifdef RTLD_LAZY
17384 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17385 #  else
17386 #    ifdef DL_LAZY
17387 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17388 #    else
17389 #      ifdef RTLD_NOW
17390 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17391 #      else
17392 #        ifdef DL_NOW
17393 #          define LT_DLLAZY_OR_NOW      DL_NOW
17394 #        else
17395 #          define LT_DLLAZY_OR_NOW      0
17396 #        endif
17397 #      endif
17398 #    endif
17399 #  endif
17400 #endif
17401
17402 #ifdef __cplusplus
17403 extern "C" void exit (int);
17404 #endif
17405
17406 void fnord() { int i=42;}
17407 int main ()
17408 {
17409   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17410   int status = $lt_dlunknown;
17411
17412   if (self)
17413     {
17414       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17415       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17416       /* dlclose (self); */
17417     }
17418
17419     exit (status);
17420 }
17421 EOF
17422   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17423   (eval $ac_link) 2>&5
17424   ac_status=$?
17425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17427     (./conftest; exit; ) 2>/dev/null
17428     lt_status=$?
17429     case x$lt_status in
17430       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17431       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17432       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17433     esac
17434   else :
17435     # compilation failed
17436     lt_cv_dlopen_self=no
17437   fi
17438 fi
17439 rm -fr conftest*
17440
17441
17442 fi
17443 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17444 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17445
17446     if test "x$lt_cv_dlopen_self" = xyes; then
17447       LDFLAGS="$LDFLAGS $link_static_flag"
17448       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17449 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17450 if test "${lt_cv_dlopen_self_static+set}" = set; then
17451   echo $ECHO_N "(cached) $ECHO_C" >&6
17452 else
17453           if test "$cross_compiling" = yes; then :
17454   lt_cv_dlopen_self_static=cross
17455 else
17456   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17457   lt_status=$lt_dlunknown
17458   cat > conftest.$ac_ext <<EOF
17459 #line 17459 "configure"
17460 #include "confdefs.h"
17461
17462 #if HAVE_DLFCN_H
17463 #include <dlfcn.h>
17464 #endif
17465
17466 #include <stdio.h>
17467
17468 #ifdef RTLD_GLOBAL
17469 #  define LT_DLGLOBAL           RTLD_GLOBAL
17470 #else
17471 #  ifdef DL_GLOBAL
17472 #    define LT_DLGLOBAL         DL_GLOBAL
17473 #  else
17474 #    define LT_DLGLOBAL         0
17475 #  endif
17476 #endif
17477
17478 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17479    find out it does not work in some platform. */
17480 #ifndef LT_DLLAZY_OR_NOW
17481 #  ifdef RTLD_LAZY
17482 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17483 #  else
17484 #    ifdef DL_LAZY
17485 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17486 #    else
17487 #      ifdef RTLD_NOW
17488 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17489 #      else
17490 #        ifdef DL_NOW
17491 #          define LT_DLLAZY_OR_NOW      DL_NOW
17492 #        else
17493 #          define LT_DLLAZY_OR_NOW      0
17494 #        endif
17495 #      endif
17496 #    endif
17497 #  endif
17498 #endif
17499
17500 #ifdef __cplusplus
17501 extern "C" void exit (int);
17502 #endif
17503
17504 void fnord() { int i=42;}
17505 int main ()
17506 {
17507   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17508   int status = $lt_dlunknown;
17509
17510   if (self)
17511     {
17512       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17513       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17514       /* dlclose (self); */
17515     }
17516
17517     exit (status);
17518 }
17519 EOF
17520   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17521   (eval $ac_link) 2>&5
17522   ac_status=$?
17523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17525     (./conftest; exit; ) 2>/dev/null
17526     lt_status=$?
17527     case x$lt_status in
17528       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17529       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17530       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17531     esac
17532   else :
17533     # compilation failed
17534     lt_cv_dlopen_self_static=no
17535   fi
17536 fi
17537 rm -fr conftest*
17538
17539
17540 fi
17541 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17542 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17543     fi
17544
17545     CPPFLAGS="$save_CPPFLAGS"
17546     LDFLAGS="$save_LDFLAGS"
17547     LIBS="$save_LIBS"
17548     ;;
17549   esac
17550
17551   case $lt_cv_dlopen_self in
17552   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17553   *) enable_dlopen_self=unknown ;;
17554   esac
17555
17556   case $lt_cv_dlopen_self_static in
17557   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17558   *) enable_dlopen_self_static=unknown ;;
17559   esac
17560 fi
17561
17562
17563 # The else clause should only fire when bootstrapping the
17564 # libtool distribution, otherwise you forgot to ship ltmain.sh
17565 # with your package, and you will get complaints that there are
17566 # no rules to generate ltmain.sh.
17567 if test -f "$ltmain"; then
17568   # See if we are running on zsh, and set the options which allow our commands through
17569   # without removal of \ escapes.
17570   if test -n "${ZSH_VERSION+set}" ; then
17571     setopt NO_GLOB_SUBST
17572   fi
17573   # Now quote all the things that may contain metacharacters while being
17574   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17575   # variables and quote the copies for generation of the libtool script.
17576   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17577     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17578     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17579     deplibs_check_method reload_flag reload_cmds need_locks \
17580     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17581     lt_cv_sys_global_symbol_to_c_name_address \
17582     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17583     old_postinstall_cmds old_postuninstall_cmds \
17584     compiler_GCJ \
17585     CC_GCJ \
17586     LD_GCJ \
17587     lt_prog_compiler_wl_GCJ \
17588     lt_prog_compiler_pic_GCJ \
17589     lt_prog_compiler_static_GCJ \
17590     lt_prog_compiler_no_builtin_flag_GCJ \
17591     export_dynamic_flag_spec_GCJ \
17592     thread_safe_flag_spec_GCJ \
17593     whole_archive_flag_spec_GCJ \
17594     enable_shared_with_static_runtimes_GCJ \
17595     old_archive_cmds_GCJ \
17596     old_archive_from_new_cmds_GCJ \
17597     predep_objects_GCJ \
17598     postdep_objects_GCJ \
17599     predeps_GCJ \
17600     postdeps_GCJ \
17601     compiler_lib_search_path_GCJ \
17602     archive_cmds_GCJ \
17603     archive_expsym_cmds_GCJ \
17604     postinstall_cmds_GCJ \
17605     postuninstall_cmds_GCJ \
17606     old_archive_from_expsyms_cmds_GCJ \
17607     allow_undefined_flag_GCJ \
17608     no_undefined_flag_GCJ \
17609     export_symbols_cmds_GCJ \
17610     hardcode_libdir_flag_spec_GCJ \
17611     hardcode_libdir_flag_spec_ld_GCJ \
17612     hardcode_libdir_separator_GCJ \
17613     hardcode_automatic_GCJ \
17614     module_cmds_GCJ \
17615     module_expsym_cmds_GCJ \
17616     lt_cv_prog_compiler_c_o_GCJ \
17617     exclude_expsyms_GCJ \
17618     include_expsyms_GCJ; do
17619
17620     case $var in
17621     old_archive_cmds_GCJ | \
17622     old_archive_from_new_cmds_GCJ | \
17623     archive_cmds_GCJ | \
17624     archive_expsym_cmds_GCJ | \
17625     module_cmds_GCJ | \
17626     module_expsym_cmds_GCJ | \
17627     old_archive_from_expsyms_cmds_GCJ | \
17628     export_symbols_cmds_GCJ | \
17629     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17630     postinstall_cmds | postuninstall_cmds | \
17631     old_postinstall_cmds | old_postuninstall_cmds | \
17632     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17633       # Double-quote double-evaled strings.
17634       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17635       ;;
17636     *)
17637       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17638       ;;
17639     esac
17640   done
17641
17642   case $lt_echo in
17643   *'\$0 --fallback-echo"')
17644     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17645     ;;
17646   esac
17647
17648 cfgfile="$ofile"
17649
17650   cat <<__EOF__ >> "$cfgfile"
17651 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17652
17653 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17654
17655 # Shell to use when invoking shell scripts.
17656 SHELL=$lt_SHELL
17657
17658 # Whether or not to build shared libraries.
17659 build_libtool_libs=$enable_shared
17660
17661 # Whether or not to build static libraries.
17662 build_old_libs=$enable_static
17663
17664 # Whether or not to add -lc for building shared libraries.
17665 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17666
17667 # Whether or not to disallow shared libs when runtime libs are static
17668 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17669
17670 # Whether or not to optimize for fast installation.
17671 fast_install=$enable_fast_install
17672
17673 # The host system.
17674 host_alias=$host_alias
17675 host=$host
17676
17677 # An echo program that does not interpret backslashes.
17678 echo=$lt_echo
17679
17680 # The archiver.
17681 AR=$lt_AR
17682 AR_FLAGS=$lt_AR_FLAGS
17683
17684 # A C compiler.
17685 LTCC=$lt_LTCC
17686
17687 # A language-specific compiler.
17688 CC=$lt_compiler_GCJ
17689
17690 # Is the compiler the GNU C compiler?
17691 with_gcc=$GCC_GCJ
17692
17693 # An ERE matcher.
17694 EGREP=$lt_EGREP
17695
17696 # The linker used to build libraries.
17697 LD=$lt_LD_GCJ
17698
17699 # Whether we need hard or soft links.
17700 LN_S=$lt_LN_S
17701
17702 # A BSD-compatible nm program.
17703 NM=$lt_NM
17704
17705 # A symbol stripping program
17706 STRIP=$STRIP
17707
17708 # Used to examine libraries when file_magic_cmd begins "file"
17709 MAGIC_CMD=$MAGIC_CMD
17710
17711 # Used on cygwin: DLL creation program.
17712 DLLTOOL="$DLLTOOL"
17713
17714 # Used on cygwin: object dumper.
17715 OBJDUMP="$OBJDUMP"
17716
17717 # Used on cygwin: assembler.
17718 AS="$AS"
17719
17720 # The name of the directory that contains temporary libtool files.
17721 objdir=$objdir
17722
17723 # How to create reloadable object files.
17724 reload_flag=$lt_reload_flag
17725 reload_cmds=$lt_reload_cmds
17726
17727 # How to pass a linker flag through the compiler.
17728 wl=$lt_lt_prog_compiler_wl_GCJ
17729
17730 # Object file suffix (normally "o").
17731 objext="$ac_objext"
17732
17733 # Old archive suffix (normally "a").
17734 libext="$libext"
17735
17736 # Shared library suffix (normally ".so").
17737 shrext='$shrext'
17738
17739 # Executable file suffix (normally "").
17740 exeext="$exeext"
17741
17742 # Additional compiler flags for building library objects.
17743 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17744 pic_mode=$pic_mode
17745
17746 # What is the maximum length of a command?
17747 max_cmd_len=$lt_cv_sys_max_cmd_len
17748
17749 # Does compiler simultaneously support -c and -o options?
17750 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17751
17752 # Must we lock files when doing compilation ?
17753 need_locks=$lt_need_locks
17754
17755 # Do we need the lib prefix for modules?
17756 need_lib_prefix=$need_lib_prefix
17757
17758 # Do we need a version for libraries?
17759 need_version=$need_version
17760
17761 # Whether dlopen is supported.
17762 dlopen_support=$enable_dlopen
17763
17764 # Whether dlopen of programs is supported.
17765 dlopen_self=$enable_dlopen_self
17766
17767 # Whether dlopen of statically linked programs is supported.
17768 dlopen_self_static=$enable_dlopen_self_static
17769
17770 # Compiler flag to prevent dynamic linking.
17771 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17772
17773 # Compiler flag to turn off builtin functions.
17774 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17775
17776 # Compiler flag to allow reflexive dlopens.
17777 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17778
17779 # Compiler flag to generate shared objects directly from archives.
17780 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17781
17782 # Compiler flag to generate thread-safe objects.
17783 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17784
17785 # Library versioning type.
17786 version_type=$version_type
17787
17788 # Format of library name prefix.
17789 libname_spec=$lt_libname_spec
17790
17791 # List of archive names.  First name is the real one, the rest are links.
17792 # The last name is the one that the linker finds with -lNAME.
17793 library_names_spec=$lt_library_names_spec
17794
17795 # The coded name of the library, if different from the real name.
17796 soname_spec=$lt_soname_spec
17797
17798 # Commands used to build and install an old-style archive.
17799 RANLIB=$lt_RANLIB
17800 old_archive_cmds=$lt_old_archive_cmds_GCJ
17801 old_postinstall_cmds=$lt_old_postinstall_cmds
17802 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17803
17804 # Create an old-style archive from a shared archive.
17805 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17806
17807 # Create a temporary old-style archive to link instead of a shared archive.
17808 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17809
17810 # Commands used to build and install a shared archive.
17811 archive_cmds=$lt_archive_cmds_GCJ
17812 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17813 postinstall_cmds=$lt_postinstall_cmds
17814 postuninstall_cmds=$lt_postuninstall_cmds
17815
17816 # Commands used to build a loadable module (assumed same as above if empty)
17817 module_cmds=$lt_module_cmds_GCJ
17818 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17819
17820 # Commands to strip libraries.
17821 old_striplib=$lt_old_striplib
17822 striplib=$lt_striplib
17823
17824 # Dependencies to place before the objects being linked to create a
17825 # shared library.
17826 predep_objects=$lt_predep_objects_GCJ
17827
17828 # Dependencies to place after the objects being linked to create a
17829 # shared library.
17830 postdep_objects=$lt_postdep_objects_GCJ
17831
17832 # Dependencies to place before the objects being linked to create a
17833 # shared library.
17834 predeps=$lt_predeps_GCJ
17835
17836 # Dependencies to place after the objects being linked to create a
17837 # shared library.
17838 postdeps=$lt_postdeps_GCJ
17839
17840 # The library search path used internally by the compiler when linking
17841 # a shared library.
17842 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17843
17844 # Method to check whether dependent libraries are shared objects.
17845 deplibs_check_method=$lt_deplibs_check_method
17846
17847 # Command to use when deplibs_check_method == file_magic.
17848 file_magic_cmd=$lt_file_magic_cmd
17849
17850 # Flag that allows shared libraries with undefined symbols to be built.
17851 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17852
17853 # Flag that forces no undefined symbols.
17854 no_undefined_flag=$lt_no_undefined_flag_GCJ
17855
17856 # Commands used to finish a libtool library installation in a directory.
17857 finish_cmds=$lt_finish_cmds
17858
17859 # Same as above, but a single script fragment to be evaled but not shown.
17860 finish_eval=$lt_finish_eval
17861
17862 # Take the output of nm and produce a listing of raw symbols and C names.
17863 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17864
17865 # Transform the output of nm in a proper C declaration
17866 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17867
17868 # Transform the output of nm in a C name address pair
17869 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17870
17871 # This is the shared library runtime path variable.
17872 runpath_var=$runpath_var
17873
17874 # This is the shared library path variable.
17875 shlibpath_var=$shlibpath_var
17876
17877 # Is shlibpath searched before the hard-coded library search path?
17878 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17879
17880 # How to hardcode a shared library path into an executable.
17881 hardcode_action=$hardcode_action_GCJ
17882
17883 # Whether we should hardcode library paths into libraries.
17884 hardcode_into_libs=$hardcode_into_libs
17885
17886 # Flag to hardcode \$libdir into a binary during linking.
17887 # This must work even if \$libdir does not exist.
17888 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17889
17890 # If ld is used when linking, flag to hardcode \$libdir into
17891 # a binary during linking. This must work even if \$libdir does
17892 # not exist.
17893 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17894
17895 # Whether we need a single -rpath flag with a separated argument.
17896 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17897
17898 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17899 # resulting binary.
17900 hardcode_direct=$hardcode_direct_GCJ
17901
17902 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17903 # resulting binary.
17904 hardcode_minus_L=$hardcode_minus_L_GCJ
17905
17906 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17907 # the resulting binary.
17908 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17909
17910 # Set to yes if building a shared library automatically hardcodes DIR into the library
17911 # and all subsequent libraries and executables linked against it.
17912 hardcode_automatic=$hardcode_automatic_GCJ
17913
17914 # Variables whose values should be saved in libtool wrapper scripts and
17915 # restored at relink time.
17916 variables_saved_for_relink="$variables_saved_for_relink"
17917
17918 # Whether libtool must link a program against all its dependency libraries.
17919 link_all_deplibs=$link_all_deplibs_GCJ
17920
17921 # Compile-time system search path for libraries
17922 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17923
17924 # Run-time system search path for libraries
17925 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17926
17927 # Fix the shell variable \$srcfile for the compiler.
17928 fix_srcfile_path="$fix_srcfile_path_GCJ"
17929
17930 # Set to yes if exported symbols are required.
17931 always_export_symbols=$always_export_symbols_GCJ
17932
17933 # The commands to list exported symbols.
17934 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17935
17936 # The commands to extract the exported symbol list from a shared archive.
17937 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17938
17939 # Symbols that should not be listed in the preloaded symbols.
17940 exclude_expsyms=$lt_exclude_expsyms_GCJ
17941
17942 # Symbols that must always be exported.
17943 include_expsyms=$lt_include_expsyms_GCJ
17944
17945 # ### END LIBTOOL TAG CONFIG: $tagname
17946
17947 __EOF__
17948
17949
17950 else
17951   # If there is no Makefile yet, we rely on a make rule to execute
17952   # `config.status --recheck' to rerun these tests and create the
17953   # libtool script then.
17954   test -f Makefile && make "$ltmain"
17955 fi
17956
17957
17958 ac_ext=c
17959 ac_cpp='$CPP $CPPFLAGS'
17960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17963
17964 CC="$lt_save_CC"
17965
17966         else
17967           tagname=""
17968         fi
17969         ;;
17970
17971       RC)
17972
17973
17974
17975 # Source file extension for RC test sources.
17976 ac_ext=rc
17977
17978 # Object file extension for compiled RC test sources.
17979 objext=o
17980 objext_RC=$objext
17981
17982 # Code to be used in simple compile tests
17983 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17984
17985 # Code to be used in simple link tests
17986 lt_simple_link_test_code="$lt_simple_compile_test_code"
17987
17988 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17989
17990 # If no C compiler was specified, use CC.
17991 LTCC=${LTCC-"$CC"}
17992
17993 # Allow CC to be a program name with arguments.
17994 compiler=$CC
17995
17996
17997 # Allow CC to be a program name with arguments.
17998 lt_save_CC="$CC"
17999 CC=${RC-"windres"}
18000 compiler=$CC
18001 compiler_RC=$CC
18002 lt_cv_prog_compiler_c_o_RC=yes
18003
18004 # The else clause should only fire when bootstrapping the
18005 # libtool distribution, otherwise you forgot to ship ltmain.sh
18006 # with your package, and you will get complaints that there are
18007 # no rules to generate ltmain.sh.
18008 if test -f "$ltmain"; then
18009   # See if we are running on zsh, and set the options which allow our commands through
18010   # without removal of \ escapes.
18011   if test -n "${ZSH_VERSION+set}" ; then
18012     setopt NO_GLOB_SUBST
18013   fi
18014   # Now quote all the things that may contain metacharacters while being
18015   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18016   # variables and quote the copies for generation of the libtool script.
18017   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18018     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18019     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18020     deplibs_check_method reload_flag reload_cmds need_locks \
18021     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18022     lt_cv_sys_global_symbol_to_c_name_address \
18023     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18024     old_postinstall_cmds old_postuninstall_cmds \
18025     compiler_RC \
18026     CC_RC \
18027     LD_RC \
18028     lt_prog_compiler_wl_RC \
18029     lt_prog_compiler_pic_RC \
18030     lt_prog_compiler_static_RC \
18031     lt_prog_compiler_no_builtin_flag_RC \
18032     export_dynamic_flag_spec_RC \
18033     thread_safe_flag_spec_RC \
18034     whole_archive_flag_spec_RC \
18035     enable_shared_with_static_runtimes_RC \
18036     old_archive_cmds_RC \
18037     old_archive_from_new_cmds_RC \
18038     predep_objects_RC \
18039     postdep_objects_RC \
18040     predeps_RC \
18041     postdeps_RC \
18042     compiler_lib_search_path_RC \
18043     archive_cmds_RC \
18044     archive_expsym_cmds_RC \
18045     postinstall_cmds_RC \
18046     postuninstall_cmds_RC \
18047     old_archive_from_expsyms_cmds_RC \
18048     allow_undefined_flag_RC \
18049     no_undefined_flag_RC \
18050     export_symbols_cmds_RC \
18051     hardcode_libdir_flag_spec_RC \
18052     hardcode_libdir_flag_spec_ld_RC \
18053     hardcode_libdir_separator_RC \
18054     hardcode_automatic_RC \
18055     module_cmds_RC \
18056     module_expsym_cmds_RC \
18057     lt_cv_prog_compiler_c_o_RC \
18058     exclude_expsyms_RC \
18059     include_expsyms_RC; do
18060
18061     case $var in
18062     old_archive_cmds_RC | \
18063     old_archive_from_new_cmds_RC | \
18064     archive_cmds_RC | \
18065     archive_expsym_cmds_RC | \
18066     module_cmds_RC | \
18067     module_expsym_cmds_RC | \
18068     old_archive_from_expsyms_cmds_RC | \
18069     export_symbols_cmds_RC | \
18070     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18071     postinstall_cmds | postuninstall_cmds | \
18072     old_postinstall_cmds | old_postuninstall_cmds | \
18073     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18074       # Double-quote double-evaled strings.
18075       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18076       ;;
18077     *)
18078       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18079       ;;
18080     esac
18081   done
18082
18083   case $lt_echo in
18084   *'\$0 --fallback-echo"')
18085     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18086     ;;
18087   esac
18088
18089 cfgfile="$ofile"
18090
18091   cat <<__EOF__ >> "$cfgfile"
18092 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18093
18094 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18095
18096 # Shell to use when invoking shell scripts.
18097 SHELL=$lt_SHELL
18098
18099 # Whether or not to build shared libraries.
18100 build_libtool_libs=$enable_shared
18101
18102 # Whether or not to build static libraries.
18103 build_old_libs=$enable_static
18104
18105 # Whether or not to add -lc for building shared libraries.
18106 build_libtool_need_lc=$archive_cmds_need_lc_RC
18107
18108 # Whether or not to disallow shared libs when runtime libs are static
18109 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18110
18111 # Whether or not to optimize for fast installation.
18112 fast_install=$enable_fast_install
18113
18114 # The host system.
18115 host_alias=$host_alias
18116 host=$host
18117
18118 # An echo program that does not interpret backslashes.
18119 echo=$lt_echo
18120
18121 # The archiver.
18122 AR=$lt_AR
18123 AR_FLAGS=$lt_AR_FLAGS
18124
18125 # A C compiler.
18126 LTCC=$lt_LTCC
18127
18128 # A language-specific compiler.
18129 CC=$lt_compiler_RC
18130
18131 # Is the compiler the GNU C compiler?
18132 with_gcc=$GCC_RC
18133
18134 # An ERE matcher.
18135 EGREP=$lt_EGREP
18136
18137 # The linker used to build libraries.
18138 LD=$lt_LD_RC
18139
18140 # Whether we need hard or soft links.
18141 LN_S=$lt_LN_S
18142
18143 # A BSD-compatible nm program.
18144 NM=$lt_NM
18145
18146 # A symbol stripping program
18147 STRIP=$STRIP
18148
18149 # Used to examine libraries when file_magic_cmd begins "file"
18150 MAGIC_CMD=$MAGIC_CMD
18151
18152 # Used on cygwin: DLL creation program.
18153 DLLTOOL="$DLLTOOL"
18154
18155 # Used on cygwin: object dumper.
18156 OBJDUMP="$OBJDUMP"
18157
18158 # Used on cygwin: assembler.
18159 AS="$AS"
18160
18161 # The name of the directory that contains temporary libtool files.
18162 objdir=$objdir
18163
18164 # How to create reloadable object files.
18165 reload_flag=$lt_reload_flag
18166 reload_cmds=$lt_reload_cmds
18167
18168 # How to pass a linker flag through the compiler.
18169 wl=$lt_lt_prog_compiler_wl_RC
18170
18171 # Object file suffix (normally "o").
18172 objext="$ac_objext"
18173
18174 # Old archive suffix (normally "a").
18175 libext="$libext"
18176
18177 # Shared library suffix (normally ".so").
18178 shrext='$shrext'
18179
18180 # Executable file suffix (normally "").
18181 exeext="$exeext"
18182
18183 # Additional compiler flags for building library objects.
18184 pic_flag=$lt_lt_prog_compiler_pic_RC
18185 pic_mode=$pic_mode
18186
18187 # What is the maximum length of a command?
18188 max_cmd_len=$lt_cv_sys_max_cmd_len
18189
18190 # Does compiler simultaneously support -c and -o options?
18191 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18192
18193 # Must we lock files when doing compilation ?
18194 need_locks=$lt_need_locks
18195
18196 # Do we need the lib prefix for modules?
18197 need_lib_prefix=$need_lib_prefix
18198
18199 # Do we need a version for libraries?
18200 need_version=$need_version
18201
18202 # Whether dlopen is supported.
18203 dlopen_support=$enable_dlopen
18204
18205 # Whether dlopen of programs is supported.
18206 dlopen_self=$enable_dlopen_self
18207
18208 # Whether dlopen of statically linked programs is supported.
18209 dlopen_self_static=$enable_dlopen_self_static
18210
18211 # Compiler flag to prevent dynamic linking.
18212 link_static_flag=$lt_lt_prog_compiler_static_RC
18213
18214 # Compiler flag to turn off builtin functions.
18215 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18216
18217 # Compiler flag to allow reflexive dlopens.
18218 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18219
18220 # Compiler flag to generate shared objects directly from archives.
18221 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18222
18223 # Compiler flag to generate thread-safe objects.
18224 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18225
18226 # Library versioning type.
18227 version_type=$version_type
18228
18229 # Format of library name prefix.
18230 libname_spec=$lt_libname_spec
18231
18232 # List of archive names.  First name is the real one, the rest are links.
18233 # The last name is the one that the linker finds with -lNAME.
18234 library_names_spec=$lt_library_names_spec
18235
18236 # The coded name of the library, if different from the real name.
18237 soname_spec=$lt_soname_spec
18238
18239 # Commands used to build and install an old-style archive.
18240 RANLIB=$lt_RANLIB
18241 old_archive_cmds=$lt_old_archive_cmds_RC
18242 old_postinstall_cmds=$lt_old_postinstall_cmds
18243 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18244
18245 # Create an old-style archive from a shared archive.
18246 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18247
18248 # Create a temporary old-style archive to link instead of a shared archive.
18249 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18250
18251 # Commands used to build and install a shared archive.
18252 archive_cmds=$lt_archive_cmds_RC
18253 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18254 postinstall_cmds=$lt_postinstall_cmds
18255 postuninstall_cmds=$lt_postuninstall_cmds
18256
18257 # Commands used to build a loadable module (assumed same as above if empty)
18258 module_cmds=$lt_module_cmds_RC
18259 module_expsym_cmds=$lt_module_expsym_cmds_RC
18260
18261 # Commands to strip libraries.
18262 old_striplib=$lt_old_striplib
18263 striplib=$lt_striplib
18264
18265 # Dependencies to place before the objects being linked to create a
18266 # shared library.
18267 predep_objects=$lt_predep_objects_RC
18268
18269 # Dependencies to place after the objects being linked to create a
18270 # shared library.
18271 postdep_objects=$lt_postdep_objects_RC
18272
18273 # Dependencies to place before the objects being linked to create a
18274 # shared library.
18275 predeps=$lt_predeps_RC
18276
18277 # Dependencies to place after the objects being linked to create a
18278 # shared library.
18279 postdeps=$lt_postdeps_RC
18280
18281 # The library search path used internally by the compiler when linking
18282 # a shared library.
18283 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18284
18285 # Method to check whether dependent libraries are shared objects.
18286 deplibs_check_method=$lt_deplibs_check_method
18287
18288 # Command to use when deplibs_check_method == file_magic.
18289 file_magic_cmd=$lt_file_magic_cmd
18290
18291 # Flag that allows shared libraries with undefined symbols to be built.
18292 allow_undefined_flag=$lt_allow_undefined_flag_RC
18293
18294 # Flag that forces no undefined symbols.
18295 no_undefined_flag=$lt_no_undefined_flag_RC
18296
18297 # Commands used to finish a libtool library installation in a directory.
18298 finish_cmds=$lt_finish_cmds
18299
18300 # Same as above, but a single script fragment to be evaled but not shown.
18301 finish_eval=$lt_finish_eval
18302
18303 # Take the output of nm and produce a listing of raw symbols and C names.
18304 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18305
18306 # Transform the output of nm in a proper C declaration
18307 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18308
18309 # Transform the output of nm in a C name address pair
18310 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18311
18312 # This is the shared library runtime path variable.
18313 runpath_var=$runpath_var
18314
18315 # This is the shared library path variable.
18316 shlibpath_var=$shlibpath_var
18317
18318 # Is shlibpath searched before the hard-coded library search path?
18319 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18320
18321 # How to hardcode a shared library path into an executable.
18322 hardcode_action=$hardcode_action_RC
18323
18324 # Whether we should hardcode library paths into libraries.
18325 hardcode_into_libs=$hardcode_into_libs
18326
18327 # Flag to hardcode \$libdir into a binary during linking.
18328 # This must work even if \$libdir does not exist.
18329 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18330
18331 # If ld is used when linking, flag to hardcode \$libdir into
18332 # a binary during linking. This must work even if \$libdir does
18333 # not exist.
18334 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18335
18336 # Whether we need a single -rpath flag with a separated argument.
18337 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18338
18339 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18340 # resulting binary.
18341 hardcode_direct=$hardcode_direct_RC
18342
18343 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18344 # resulting binary.
18345 hardcode_minus_L=$hardcode_minus_L_RC
18346
18347 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18348 # the resulting binary.
18349 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18350
18351 # Set to yes if building a shared library automatically hardcodes DIR into the library
18352 # and all subsequent libraries and executables linked against it.
18353 hardcode_automatic=$hardcode_automatic_RC
18354
18355 # Variables whose values should be saved in libtool wrapper scripts and
18356 # restored at relink time.
18357 variables_saved_for_relink="$variables_saved_for_relink"
18358
18359 # Whether libtool must link a program against all its dependency libraries.
18360 link_all_deplibs=$link_all_deplibs_RC
18361
18362 # Compile-time system search path for libraries
18363 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18364
18365 # Run-time system search path for libraries
18366 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18367
18368 # Fix the shell variable \$srcfile for the compiler.
18369 fix_srcfile_path="$fix_srcfile_path_RC"
18370
18371 # Set to yes if exported symbols are required.
18372 always_export_symbols=$always_export_symbols_RC
18373
18374 # The commands to list exported symbols.
18375 export_symbols_cmds=$lt_export_symbols_cmds_RC
18376
18377 # The commands to extract the exported symbol list from a shared archive.
18378 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18379
18380 # Symbols that should not be listed in the preloaded symbols.
18381 exclude_expsyms=$lt_exclude_expsyms_RC
18382
18383 # Symbols that must always be exported.
18384 include_expsyms=$lt_include_expsyms_RC
18385
18386 # ### END LIBTOOL TAG CONFIG: $tagname
18387
18388 __EOF__
18389
18390
18391 else
18392   # If there is no Makefile yet, we rely on a make rule to execute
18393   # `config.status --recheck' to rerun these tests and create the
18394   # libtool script then.
18395   test -f Makefile && make "$ltmain"
18396 fi
18397
18398
18399 ac_ext=c
18400 ac_cpp='$CPP $CPPFLAGS'
18401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18404
18405 CC="$lt_save_CC"
18406
18407         ;;
18408
18409       *)
18410         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18411 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18412    { (exit 1); exit 1; }; }
18413         ;;
18414       esac
18415
18416       # Append the new tag name to the list of available tags.
18417       if test -n "$tagname" ; then
18418       available_tags="$available_tags $tagname"
18419     fi
18420     fi
18421   done
18422   IFS="$lt_save_ifs"
18423
18424   # Now substitute the updated list of available tags.
18425   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18426     mv "${ofile}T" "$ofile"
18427     chmod +x "$ofile"
18428   else
18429     rm -f "${ofile}T"
18430     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18431 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18432    { (exit 1); exit 1; }; }
18433   fi
18434 fi
18435
18436
18437
18438 # This can be used to rebuild libtool when needed
18439 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18440
18441 # Always use our own libtool.
18442 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18443
18444 # Prevent multiple expansion
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466 # Extract the first word of "pwd", so it can be a program name with args.
18467 set dummy pwd; ac_word=$2
18468 echo "$as_me:$LINENO: checking for $ac_word" >&5
18469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18470 if test "${ac_cv_path_RPWD+set}" = set; then
18471   echo $ECHO_N "(cached) $ECHO_C" >&6
18472 else
18473   case $RPWD in
18474   [\\/]* | ?:[\\/]*)
18475   ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18476   ;;
18477   *)
18478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18479 for as_dir in $PATH
18480 do
18481   IFS=$as_save_IFS
18482   test -z "$as_dir" && as_dir=.
18483   for ac_exec_ext in '' $ac_executable_extensions; do
18484   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18485     ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18487     break 2
18488   fi
18489 done
18490 done
18491
18492   test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
18493   ;;
18494 esac
18495 fi
18496 RPWD=$ac_cv_path_RPWD
18497
18498 if test -n "$RPWD"; then
18499   echo "$as_me:$LINENO: result: $RPWD" >&5
18500 echo "${ECHO_T}$RPWD" >&6
18501 else
18502   echo "$as_me:$LINENO: result: no" >&5
18503 echo "${ECHO_T}no" >&6
18504 fi
18505
18506 if test ${RPWD} = "false"
18507 then
18508         { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18509 echo "$as_me: error: pwd required but not found" >&2;}
18510    { (exit 1); exit 1; }; }
18511 fi
18512
18513 # Extract the first word of "ar", so it can be a program name with args.
18514 set dummy ar; ac_word=$2
18515 echo "$as_me:$LINENO: checking for $ac_word" >&5
18516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18517 if test "${ac_cv_path_AR+set}" = set; then
18518   echo $ECHO_N "(cached) $ECHO_C" >&6
18519 else
18520   case $AR in
18521   [\\/]* | ?:[\\/]*)
18522   ac_cv_path_AR="$AR" # Let the user override the test with a path.
18523   ;;
18524   *)
18525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18526 for as_dir in $PATH
18527 do
18528   IFS=$as_save_IFS
18529   test -z "$as_dir" && as_dir=.
18530   for ac_exec_ext in '' $ac_executable_extensions; do
18531   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18532     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18534     break 2
18535   fi
18536 done
18537 done
18538
18539   test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
18540   ;;
18541 esac
18542 fi
18543 AR=$ac_cv_path_AR
18544
18545 if test -n "$AR"; then
18546   echo "$as_me:$LINENO: result: $AR" >&5
18547 echo "${ECHO_T}$AR" >&6
18548 else
18549   echo "$as_me:$LINENO: result: no" >&5
18550 echo "${ECHO_T}no" >&6
18551 fi
18552
18553 if test ${AR} = "false"
18554 then
18555         { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18556 echo "$as_me: error: ar required but not found" >&2;}
18557    { (exit 1); exit 1; }; }
18558 fi
18559
18560 # Extract the first word of "sed", so it can be a program name with args.
18561 set dummy sed; ac_word=$2
18562 echo "$as_me:$LINENO: checking for $ac_word" >&5
18563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18564 if test "${ac_cv_path_SED+set}" = set; then
18565   echo $ECHO_N "(cached) $ECHO_C" >&6
18566 else
18567   case $SED in
18568   [\\/]* | ?:[\\/]*)
18569   ac_cv_path_SED="$SED" # Let the user override the test with a path.
18570   ;;
18571   *)
18572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18573 for as_dir in $PATH
18574 do
18575   IFS=$as_save_IFS
18576   test -z "$as_dir" && as_dir=.
18577   for ac_exec_ext in '' $ac_executable_extensions; do
18578   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18579     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18581     break 2
18582   fi
18583 done
18584 done
18585
18586   test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
18587   ;;
18588 esac
18589 fi
18590 SED=$ac_cv_path_SED
18591
18592 if test -n "$SED"; then
18593   echo "$as_me:$LINENO: result: $SED" >&5
18594 echo "${ECHO_T}$SED" >&6
18595 else
18596   echo "$as_me:$LINENO: result: no" >&5
18597 echo "${ECHO_T}no" >&6
18598 fi
18599
18600 if test ${SED} = "false"
18601 then
18602         { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18603 echo "$as_me: error: sed required but not found" >&2;}
18604    { (exit 1); exit 1; }; }
18605 fi
18606
18607 # Extract the first word of "rm", so it can be a program name with args.
18608 set dummy rm; ac_word=$2
18609 echo "$as_me:$LINENO: checking for $ac_word" >&5
18610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18611 if test "${ac_cv_path_RM+set}" = set; then
18612   echo $ECHO_N "(cached) $ECHO_C" >&6
18613 else
18614   case $RM in
18615   [\\/]* | ?:[\\/]*)
18616   ac_cv_path_RM="$RM" # Let the user override the test with a path.
18617   ;;
18618   *)
18619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18620 for as_dir in $PATH
18621 do
18622   IFS=$as_save_IFS
18623   test -z "$as_dir" && as_dir=.
18624   for ac_exec_ext in '' $ac_executable_extensions; do
18625   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18626     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18628     break 2
18629   fi
18630 done
18631 done
18632
18633   test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
18634   ;;
18635 esac
18636 fi
18637 RM=$ac_cv_path_RM
18638
18639 if test -n "$RM"; then
18640   echo "$as_me:$LINENO: result: $RM" >&5
18641 echo "${ECHO_T}$RM" >&6
18642 else
18643   echo "$as_me:$LINENO: result: no" >&5
18644 echo "${ECHO_T}no" >&6
18645 fi
18646
18647 if test ${RM} = "false"
18648 then
18649         { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18650 echo "$as_me: error: rm required but not found" >&2;}
18651    { (exit 1); exit 1; }; }
18652 fi
18653
18654 # Extract the first word of "echo", so it can be a program name with args.
18655 set dummy echo; ac_word=$2
18656 echo "$as_me:$LINENO: checking for $ac_word" >&5
18657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18658 if test "${ac_cv_path_ECHO+set}" = set; then
18659   echo $ECHO_N "(cached) $ECHO_C" >&6
18660 else
18661   case $ECHO in
18662   [\\/]* | ?:[\\/]*)
18663   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18664   ;;
18665   *)
18666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18667 for as_dir in $PATH
18668 do
18669   IFS=$as_save_IFS
18670   test -z "$as_dir" && as_dir=.
18671   for ac_exec_ext in '' $ac_executable_extensions; do
18672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18673     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18675     break 2
18676   fi
18677 done
18678 done
18679
18680   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
18681   ;;
18682 esac
18683 fi
18684 ECHO=$ac_cv_path_ECHO
18685
18686 if test -n "$ECHO"; then
18687   echo "$as_me:$LINENO: result: $ECHO" >&5
18688 echo "${ECHO_T}$ECHO" >&6
18689 else
18690   echo "$as_me:$LINENO: result: no" >&5
18691 echo "${ECHO_T}no" >&6
18692 fi
18693
18694 if test ${ECHO} = "false"
18695 then
18696         { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18697 echo "$as_me: error: echo required but not found" >&2;}
18698    { (exit 1); exit 1; }; }
18699 fi
18700
18701 # Extract the first word of "mkdir", so it can be a program name with args.
18702 set dummy mkdir; ac_word=$2
18703 echo "$as_me:$LINENO: checking for $ac_word" >&5
18704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18705 if test "${ac_cv_path_MKDIR+set}" = set; then
18706   echo $ECHO_N "(cached) $ECHO_C" >&6
18707 else
18708   case $MKDIR in
18709   [\\/]* | ?:[\\/]*)
18710   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18711   ;;
18712   *)
18713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18714 for as_dir in $PATH
18715 do
18716   IFS=$as_save_IFS
18717   test -z "$as_dir" && as_dir=.
18718   for ac_exec_ext in '' $ac_executable_extensions; do
18719   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18720     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18722     break 2
18723   fi
18724 done
18725 done
18726
18727   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
18728   ;;
18729 esac
18730 fi
18731 MKDIR=$ac_cv_path_MKDIR
18732
18733 if test -n "$MKDIR"; then
18734   echo "$as_me:$LINENO: result: $MKDIR" >&5
18735 echo "${ECHO_T}$MKDIR" >&6
18736 else
18737   echo "$as_me:$LINENO: result: no" >&5
18738 echo "${ECHO_T}no" >&6
18739 fi
18740
18741 if test ${MKDIR} = "false"
18742 then
18743         { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18744 echo "$as_me: error: mkdir required but not found" >&2;}
18745    { (exit 1); exit 1; }; }
18746 fi
18747
18748 # Extract the first word of "date", so it can be a program name with args.
18749 set dummy date; ac_word=$2
18750 echo "$as_me:$LINENO: checking for $ac_word" >&5
18751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18752 if test "${ac_cv_path_DATE+set}" = set; then
18753   echo $ECHO_N "(cached) $ECHO_C" >&6
18754 else
18755   case $DATE in
18756   [\\/]* | ?:[\\/]*)
18757   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18758   ;;
18759   *)
18760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18761 for as_dir in $PATH
18762 do
18763   IFS=$as_save_IFS
18764   test -z "$as_dir" && as_dir=.
18765   for ac_exec_ext in '' $ac_executable_extensions; do
18766   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18767     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18769     break 2
18770   fi
18771 done
18772 done
18773
18774   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
18775   ;;
18776 esac
18777 fi
18778 DATE=$ac_cv_path_DATE
18779
18780 if test -n "$DATE"; then
18781   echo "$as_me:$LINENO: result: $DATE" >&5
18782 echo "${ECHO_T}$DATE" >&6
18783 else
18784   echo "$as_me:$LINENO: result: no" >&5
18785 echo "${ECHO_T}no" >&6
18786 fi
18787
18788 if test ${DATE} = "false"
18789 then
18790         { { echo "$as_me:$LINENO: error: date required but not found" >&5
18791 echo "$as_me: error: date required but not found" >&2;}
18792    { (exit 1); exit 1; }; }
18793 fi
18794
18795 # Extract the first word of "mv", so it can be a program name with args.
18796 set dummy mv; ac_word=$2
18797 echo "$as_me:$LINENO: checking for $ac_word" >&5
18798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18799 if test "${ac_cv_path_MV+set}" = set; then
18800   echo $ECHO_N "(cached) $ECHO_C" >&6
18801 else
18802   case $MV in
18803   [\\/]* | ?:[\\/]*)
18804   ac_cv_path_MV="$MV" # Let the user override the test with a path.
18805   ;;
18806   *)
18807   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18808 for as_dir in $PATH
18809 do
18810   IFS=$as_save_IFS
18811   test -z "$as_dir" && as_dir=.
18812   for ac_exec_ext in '' $ac_executable_extensions; do
18813   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18814     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18816     break 2
18817   fi
18818 done
18819 done
18820
18821   test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
18822   ;;
18823 esac
18824 fi
18825 MV=$ac_cv_path_MV
18826
18827 if test -n "$MV"; then
18828   echo "$as_me:$LINENO: result: $MV" >&5
18829 echo "${ECHO_T}$MV" >&6
18830 else
18831   echo "$as_me:$LINENO: result: no" >&5
18832 echo "${ECHO_T}no" >&6
18833 fi
18834
18835 if test ${MV} = "false"
18836 then
18837         { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18838 echo "$as_me: error: mv required but not found" >&2;}
18839    { (exit 1); exit 1; }; }
18840 fi
18841
18842 # Extract the first word of "dot", so it can be a program name with args.
18843 set dummy dot; ac_word=$2
18844 echo "$as_me:$LINENO: checking for $ac_word" >&5
18845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18846 if test "${ac_cv_path_DOT+set}" = set; then
18847   echo $ECHO_N "(cached) $ECHO_C" >&6
18848 else
18849   case $DOT in
18850   [\\/]* | ?:[\\/]*)
18851   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18852   ;;
18853   *)
18854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18855 for as_dir in $PATH
18856 do
18857   IFS=$as_save_IFS
18858   test -z "$as_dir" && as_dir=.
18859   for ac_exec_ext in '' $ac_executable_extensions; do
18860   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18861     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18863     break 2
18864   fi
18865 done
18866 done
18867
18868   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
18869   ;;
18870 esac
18871 fi
18872 DOT=$ac_cv_path_DOT
18873
18874 if test -n "$DOT"; then
18875   echo "$as_me:$LINENO: result: $DOT" >&5
18876 echo "${ECHO_T}$DOT" >&6
18877 else
18878   echo "$as_me:$LINENO: result: no" >&5
18879 echo "${ECHO_T}no" >&6
18880 fi
18881
18882
18883 # Extract the first word of "etags", so it can be a program name with args.
18884 set dummy etags; ac_word=$2
18885 echo "$as_me:$LINENO: checking for $ac_word" >&5
18886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18887 if test "${ac_cv_path_ETAGS+set}" = set; then
18888   echo $ECHO_N "(cached) $ECHO_C" >&6
18889 else
18890   case $ETAGS in
18891   [\\/]* | ?:[\\/]*)
18892   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18893   ;;
18894   *)
18895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18896 for as_dir in $PATH
18897 do
18898   IFS=$as_save_IFS
18899   test -z "$as_dir" && as_dir=.
18900   for ac_exec_ext in '' $ac_executable_extensions; do
18901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18902     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18904     break 2
18905   fi
18906 done
18907 done
18908
18909   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
18910   ;;
18911 esac
18912 fi
18913 ETAGS=$ac_cv_path_ETAGS
18914
18915 if test -n "$ETAGS"; then
18916   echo "$as_me:$LINENO: result: $ETAGS" >&5
18917 echo "${ECHO_T}$ETAGS" >&6
18918 else
18919   echo "$as_me:$LINENO: result: no" >&5
18920 echo "${ECHO_T}no" >&6
18921 fi
18922
18923
18924 # Extract the first word of "purify", so it can be a program name with args.
18925 set dummy purify; ac_word=$2
18926 echo "$as_me:$LINENO: checking for $ac_word" >&5
18927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18928 if test "${ac_cv_path_PURIFY+set}" = set; then
18929   echo $ECHO_N "(cached) $ECHO_C" >&6
18930 else
18931   case $PURIFY in
18932   [\\/]* | ?:[\\/]*)
18933   ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18934   ;;
18935   *)
18936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18937 for as_dir in $PATH
18938 do
18939   IFS=$as_save_IFS
18940   test -z "$as_dir" && as_dir=.
18941   for ac_exec_ext in '' $ac_executable_extensions; do
18942   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18943     ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18945     break 2
18946   fi
18947 done
18948 done
18949
18950   test -z "$ac_cv_path_PURIFY" && ac_cv_path_PURIFY="false"
18951   ;;
18952 esac
18953 fi
18954 PURIFY=$ac_cv_path_PURIFY
18955
18956 if test -n "$PURIFY"; then
18957   echo "$as_me:$LINENO: result: $PURIFY" >&5
18958 echo "${ECHO_T}$PURIFY" >&6
18959 else
18960   echo "$as_me:$LINENO: result: no" >&5
18961 echo "${ECHO_T}no" >&6
18962 fi
18963
18964
18965 # Extract the first word of "python", so it can be a program name with args.
18966 set dummy python; ac_word=$2
18967 echo "$as_me:$LINENO: checking for $ac_word" >&5
18968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18969 if test "${ac_cv_path_PYTHON+set}" = set; then
18970   echo $ECHO_N "(cached) $ECHO_C" >&6
18971 else
18972   case $PYTHON in
18973   [\\/]* | ?:[\\/]*)
18974   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18975   ;;
18976   *)
18977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18978 for as_dir in $PATH
18979 do
18980   IFS=$as_save_IFS
18981   test -z "$as_dir" && as_dir=.
18982   for ac_exec_ext in '' $ac_executable_extensions; do
18983   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18984     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18986     break 2
18987   fi
18988 done
18989 done
18990
18991   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
18992   ;;
18993 esac
18994 fi
18995 PYTHON=$ac_cv_path_PYTHON
18996
18997 if test -n "$PYTHON"; then
18998   echo "$as_me:$LINENO: result: $PYTHON" >&5
18999 echo "${ECHO_T}$PYTHON" >&6
19000 else
19001   echo "$as_me:$LINENO: result: no" >&5
19002 echo "${ECHO_T}no" >&6
19003 fi
19004
19005 if test ${PYTHON} = "false"
19006 then
19007         { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
19008 echo "$as_me: WARNING: python required but not found" >&2;}
19009 fi
19010
19011 # Extract the first word of "qmtest", so it can be a program name with args.
19012 set dummy qmtest; ac_word=$2
19013 echo "$as_me:$LINENO: checking for $ac_word" >&5
19014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19015 if test "${ac_cv_path_QMTEST+set}" = set; then
19016   echo $ECHO_N "(cached) $ECHO_C" >&6
19017 else
19018   case $QMTEST in
19019   [\\/]* | ?:[\\/]*)
19020   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19021   ;;
19022   *)
19023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19024 for as_dir in $PATH
19025 do
19026   IFS=$as_save_IFS
19027   test -z "$as_dir" && as_dir=.
19028   for ac_exec_ext in '' $ac_executable_extensions; do
19029   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19030     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19032     break 2
19033   fi
19034 done
19035 done
19036
19037   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
19038   ;;
19039 esac
19040 fi
19041 QMTEST=$ac_cv_path_QMTEST
19042
19043 if test -n "$QMTEST"; then
19044   echo "$as_me:$LINENO: result: $QMTEST" >&5
19045 echo "${ECHO_T}$QMTEST" >&6
19046 else
19047   echo "$as_me:$LINENO: result: no" >&5
19048 echo "${ECHO_T}no" >&6
19049 fi
19050
19051 if test ${QMTEST} = "false"
19052 then
19053         { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19054 echo "$as_me: WARNING: qmtest required but not found" >&2;}
19055 fi
19056
19057 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
19058 pymajor=`echo $pyversion | cut -d. -f1`
19059 pyminor=`echo $pyversion | cut -d. -f2`
19060
19061 if test "$pymajor" -ge "2"
19062 then
19063         if test "$pymajor" -eq "2"
19064         then
19065                 if test "$pyminor" -lt "2"
19066                 then
19067                         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19068 echo "$as_me: error: Python 2.2 or greater required" >&2;}
19069    { (exit 1); exit 1; }; }
19070                 fi
19071         fi
19072 else
19073         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19074 echo "$as_me: error: Python 2.2 or greater required" >&2;}
19075    { (exit 1); exit 1; }; }
19076 fi
19077
19078
19079
19080
19081
19082 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19083 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19084 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19085   echo $ECHO_N "(cached) $ECHO_C" >&6
19086 else
19087   ac_check_lib_save_LIBS=$LIBS
19088 LIBS="-lelf  $LIBS"
19089 cat >conftest.$ac_ext <<_ACEOF
19090 #line $LINENO "configure"
19091 /* confdefs.h.  */
19092 _ACEOF
19093 cat confdefs.h >>conftest.$ac_ext
19094 cat >>conftest.$ac_ext <<_ACEOF
19095 /* end confdefs.h.  */
19096
19097 /* Override any gcc2 internal prototype to avoid an error.  */
19098 #ifdef __cplusplus
19099 extern "C"
19100 #endif
19101 /* We use char because int might match the return type of a gcc2
19102    builtin and then its argument prototype would still apply.  */
19103 char elf_begin ();
19104 int
19105 main ()
19106 {
19107 elf_begin ();
19108   ;
19109   return 0;
19110 }
19111 _ACEOF
19112 rm -f conftest.$ac_objext conftest$ac_exeext
19113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19114   (eval $ac_link) 2>&5
19115   ac_status=$?
19116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117   (exit $ac_status); } &&
19118          { ac_try='test -s conftest$ac_exeext'
19119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19120   (eval $ac_try) 2>&5
19121   ac_status=$?
19122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123   (exit $ac_status); }; }; then
19124   ac_cv_lib_elf_elf_begin=yes
19125 else
19126   echo "$as_me: failed program was:" >&5
19127 sed 's/^/| /' conftest.$ac_ext >&5
19128
19129 ac_cv_lib_elf_elf_begin=no
19130 fi
19131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19132 LIBS=$ac_check_lib_save_LIBS
19133 fi
19134 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19135 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19136 if test $ac_cv_lib_elf_elf_begin = yes; then
19137   cat >>confdefs.h <<_ACEOF
19138 #define HAVE_LIBELF 1
19139 _ACEOF
19140
19141   LIBS="-lelf $LIBS"
19142
19143 fi
19144
19145
19146 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19147 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19148 if test "${ac_cv_search_dlopen+set}" = set; then
19149   echo $ECHO_N "(cached) $ECHO_C" >&6
19150 else
19151   ac_func_search_save_LIBS=$LIBS
19152 ac_cv_search_dlopen=no
19153 cat >conftest.$ac_ext <<_ACEOF
19154 #line $LINENO "configure"
19155 /* confdefs.h.  */
19156 _ACEOF
19157 cat confdefs.h >>conftest.$ac_ext
19158 cat >>conftest.$ac_ext <<_ACEOF
19159 /* end confdefs.h.  */
19160
19161 /* Override any gcc2 internal prototype to avoid an error.  */
19162 #ifdef __cplusplus
19163 extern "C"
19164 #endif
19165 /* We use char because int might match the return type of a gcc2
19166    builtin and then its argument prototype would still apply.  */
19167 char dlopen ();
19168 int
19169 main ()
19170 {
19171 dlopen ();
19172   ;
19173   return 0;
19174 }
19175 _ACEOF
19176 rm -f conftest.$ac_objext conftest$ac_exeext
19177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19178   (eval $ac_link) 2>&5
19179   ac_status=$?
19180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181   (exit $ac_status); } &&
19182          { ac_try='test -s conftest$ac_exeext'
19183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19184   (eval $ac_try) 2>&5
19185   ac_status=$?
19186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187   (exit $ac_status); }; }; then
19188   ac_cv_search_dlopen="none required"
19189 else
19190   echo "$as_me: failed program was:" >&5
19191 sed 's/^/| /' conftest.$ac_ext >&5
19192
19193 fi
19194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19195 if test "$ac_cv_search_dlopen" = no; then
19196   for ac_lib in dl; do
19197     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19198     cat >conftest.$ac_ext <<_ACEOF
19199 #line $LINENO "configure"
19200 /* confdefs.h.  */
19201 _ACEOF
19202 cat confdefs.h >>conftest.$ac_ext
19203 cat >>conftest.$ac_ext <<_ACEOF
19204 /* end confdefs.h.  */
19205
19206 /* Override any gcc2 internal prototype to avoid an error.  */
19207 #ifdef __cplusplus
19208 extern "C"
19209 #endif
19210 /* We use char because int might match the return type of a gcc2
19211    builtin and then its argument prototype would still apply.  */
19212 char dlopen ();
19213 int
19214 main ()
19215 {
19216 dlopen ();
19217   ;
19218   return 0;
19219 }
19220 _ACEOF
19221 rm -f conftest.$ac_objext conftest$ac_exeext
19222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19223   (eval $ac_link) 2>&5
19224   ac_status=$?
19225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226   (exit $ac_status); } &&
19227          { ac_try='test -s conftest$ac_exeext'
19228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229   (eval $ac_try) 2>&5
19230   ac_status=$?
19231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232   (exit $ac_status); }; }; then
19233   ac_cv_search_dlopen="-l$ac_lib"
19234 break
19235 else
19236   echo "$as_me: failed program was:" >&5
19237 sed 's/^/| /' conftest.$ac_ext >&5
19238
19239 fi
19240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19241   done
19242 fi
19243 LIBS=$ac_func_search_save_LIBS
19244 fi
19245 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19246 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19247 if test "$ac_cv_search_dlopen" != no; then
19248   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19249
19250 else
19251   { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19252 echo "$as_me: error: dlopen() required but not found" >&2;}
19253    { (exit 1); exit 1; }; }
19254 fi
19255
19256
19257 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19258 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19259 if test "${ac_cv_search_mallinfo+set}" = set; then
19260   echo $ECHO_N "(cached) $ECHO_C" >&6
19261 else
19262   ac_func_search_save_LIBS=$LIBS
19263 ac_cv_search_mallinfo=no
19264 cat >conftest.$ac_ext <<_ACEOF
19265 #line $LINENO "configure"
19266 /* confdefs.h.  */
19267 _ACEOF
19268 cat confdefs.h >>conftest.$ac_ext
19269 cat >>conftest.$ac_ext <<_ACEOF
19270 /* end confdefs.h.  */
19271
19272 /* Override any gcc2 internal prototype to avoid an error.  */
19273 #ifdef __cplusplus
19274 extern "C"
19275 #endif
19276 /* We use char because int might match the return type of a gcc2
19277    builtin and then its argument prototype would still apply.  */
19278 char mallinfo ();
19279 int
19280 main ()
19281 {
19282 mallinfo ();
19283   ;
19284   return 0;
19285 }
19286 _ACEOF
19287 rm -f conftest.$ac_objext conftest$ac_exeext
19288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19289   (eval $ac_link) 2>&5
19290   ac_status=$?
19291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292   (exit $ac_status); } &&
19293          { ac_try='test -s conftest$ac_exeext'
19294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19295   (eval $ac_try) 2>&5
19296   ac_status=$?
19297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298   (exit $ac_status); }; }; then
19299   ac_cv_search_mallinfo="none required"
19300 else
19301   echo "$as_me: failed program was:" >&5
19302 sed 's/^/| /' conftest.$ac_ext >&5
19303
19304 fi
19305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19306 if test "$ac_cv_search_mallinfo" = no; then
19307   for ac_lib in malloc; do
19308     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19309     cat >conftest.$ac_ext <<_ACEOF
19310 #line $LINENO "configure"
19311 /* confdefs.h.  */
19312 _ACEOF
19313 cat confdefs.h >>conftest.$ac_ext
19314 cat >>conftest.$ac_ext <<_ACEOF
19315 /* end confdefs.h.  */
19316
19317 /* Override any gcc2 internal prototype to avoid an error.  */
19318 #ifdef __cplusplus
19319 extern "C"
19320 #endif
19321 /* We use char because int might match the return type of a gcc2
19322    builtin and then its argument prototype would still apply.  */
19323 char mallinfo ();
19324 int
19325 main ()
19326 {
19327 mallinfo ();
19328   ;
19329   return 0;
19330 }
19331 _ACEOF
19332 rm -f conftest.$ac_objext conftest$ac_exeext
19333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19334   (eval $ac_link) 2>&5
19335   ac_status=$?
19336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337   (exit $ac_status); } &&
19338          { ac_try='test -s conftest$ac_exeext'
19339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19340   (eval $ac_try) 2>&5
19341   ac_status=$?
19342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343   (exit $ac_status); }; }; then
19344   ac_cv_search_mallinfo="-l$ac_lib"
19345 break
19346 else
19347   echo "$as_me: failed program was:" >&5
19348 sed 's/^/| /' conftest.$ac_ext >&5
19349
19350 fi
19351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19352   done
19353 fi
19354 LIBS=$ac_func_search_save_LIBS
19355 fi
19356 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19357 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19358 if test "$ac_cv_search_mallinfo" != no; then
19359   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19360   cat >>confdefs.h <<\_ACEOF
19361 #define HAVE_MALLINFO 1
19362 _ACEOF
19363
19364 fi
19365
19366
19367
19368 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19369 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19370 if test "${ac_cv_header_stdc+set}" = set; then
19371   echo $ECHO_N "(cached) $ECHO_C" >&6
19372 else
19373   cat >conftest.$ac_ext <<_ACEOF
19374 #line $LINENO "configure"
19375 /* confdefs.h.  */
19376 _ACEOF
19377 cat confdefs.h >>conftest.$ac_ext
19378 cat >>conftest.$ac_ext <<_ACEOF
19379 /* end confdefs.h.  */
19380 #include <stdlib.h>
19381 #include <stdarg.h>
19382 #include <string.h>
19383 #include <float.h>
19384
19385 int
19386 main ()
19387 {
19388
19389   ;
19390   return 0;
19391 }
19392 _ACEOF
19393 rm -f conftest.$ac_objext
19394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19395   (eval $ac_compile) 2>&5
19396   ac_status=$?
19397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398   (exit $ac_status); } &&
19399          { ac_try='test -s conftest.$ac_objext'
19400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19401   (eval $ac_try) 2>&5
19402   ac_status=$?
19403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404   (exit $ac_status); }; }; then
19405   ac_cv_header_stdc=yes
19406 else
19407   echo "$as_me: failed program was:" >&5
19408 sed 's/^/| /' conftest.$ac_ext >&5
19409
19410 ac_cv_header_stdc=no
19411 fi
19412 rm -f conftest.$ac_objext conftest.$ac_ext
19413
19414 if test $ac_cv_header_stdc = yes; then
19415   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19416   cat >conftest.$ac_ext <<_ACEOF
19417 #line $LINENO "configure"
19418 /* confdefs.h.  */
19419 _ACEOF
19420 cat confdefs.h >>conftest.$ac_ext
19421 cat >>conftest.$ac_ext <<_ACEOF
19422 /* end confdefs.h.  */
19423 #include <string.h>
19424
19425 _ACEOF
19426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19427   $EGREP "memchr" >/dev/null 2>&1; then
19428   :
19429 else
19430   ac_cv_header_stdc=no
19431 fi
19432 rm -f conftest*
19433
19434 fi
19435
19436 if test $ac_cv_header_stdc = yes; then
19437   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19438   cat >conftest.$ac_ext <<_ACEOF
19439 #line $LINENO "configure"
19440 /* confdefs.h.  */
19441 _ACEOF
19442 cat confdefs.h >>conftest.$ac_ext
19443 cat >>conftest.$ac_ext <<_ACEOF
19444 /* end confdefs.h.  */
19445 #include <stdlib.h>
19446
19447 _ACEOF
19448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19449   $EGREP "free" >/dev/null 2>&1; then
19450   :
19451 else
19452   ac_cv_header_stdc=no
19453 fi
19454 rm -f conftest*
19455
19456 fi
19457
19458 if test $ac_cv_header_stdc = yes; then
19459   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19460   if test "$cross_compiling" = yes; then
19461   :
19462 else
19463   cat >conftest.$ac_ext <<_ACEOF
19464 #line $LINENO "configure"
19465 /* confdefs.h.  */
19466 _ACEOF
19467 cat confdefs.h >>conftest.$ac_ext
19468 cat >>conftest.$ac_ext <<_ACEOF
19469 /* end confdefs.h.  */
19470 #include <ctype.h>
19471 #if ((' ' & 0x0FF) == 0x020)
19472 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19473 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19474 #else
19475 # define ISLOWER(c) \
19476                    (('a' <= (c) && (c) <= 'i') \
19477                      || ('j' <= (c) && (c) <= 'r') \
19478                      || ('s' <= (c) && (c) <= 'z'))
19479 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19480 #endif
19481
19482 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19483 int
19484 main ()
19485 {
19486   int i;
19487   for (i = 0; i < 256; i++)
19488     if (XOR (islower (i), ISLOWER (i))
19489         || toupper (i) != TOUPPER (i))
19490       exit(2);
19491   exit (0);
19492 }
19493 _ACEOF
19494 rm -f conftest$ac_exeext
19495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19496   (eval $ac_link) 2>&5
19497   ac_status=$?
19498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19501   (eval $ac_try) 2>&5
19502   ac_status=$?
19503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504   (exit $ac_status); }; }; then
19505   :
19506 else
19507   echo "$as_me: program exited with status $ac_status" >&5
19508 echo "$as_me: failed program was:" >&5
19509 sed 's/^/| /' conftest.$ac_ext >&5
19510
19511 ( exit $ac_status )
19512 ac_cv_header_stdc=no
19513 fi
19514 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19515 fi
19516 fi
19517 fi
19518 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19519 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19520 if test $ac_cv_header_stdc = yes; then
19521
19522 cat >>confdefs.h <<\_ACEOF
19523 #define STDC_HEADERS 1
19524 _ACEOF
19525
19526 fi
19527
19528 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19529 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19530 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19531   echo $ECHO_N "(cached) $ECHO_C" >&6
19532 else
19533   cat >conftest.$ac_ext <<_ACEOF
19534 #line $LINENO "configure"
19535 /* confdefs.h.  */
19536 _ACEOF
19537 cat confdefs.h >>conftest.$ac_ext
19538 cat >>conftest.$ac_ext <<_ACEOF
19539 /* end confdefs.h.  */
19540 #include <sys/types.h>
19541 #include <sys/wait.h>
19542 #ifndef WEXITSTATUS
19543 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19544 #endif
19545 #ifndef WIFEXITED
19546 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19547 #endif
19548
19549 int
19550 main ()
19551 {
19552   int s;
19553   wait (&s);
19554   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19555   ;
19556   return 0;
19557 }
19558 _ACEOF
19559 rm -f conftest.$ac_objext
19560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19561   (eval $ac_compile) 2>&5
19562   ac_status=$?
19563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564   (exit $ac_status); } &&
19565          { ac_try='test -s conftest.$ac_objext'
19566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19567   (eval $ac_try) 2>&5
19568   ac_status=$?
19569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570   (exit $ac_status); }; }; then
19571   ac_cv_header_sys_wait_h=yes
19572 else
19573   echo "$as_me: failed program was:" >&5
19574 sed 's/^/| /' conftest.$ac_ext >&5
19575
19576 ac_cv_header_sys_wait_h=no
19577 fi
19578 rm -f conftest.$ac_objext conftest.$ac_ext
19579 fi
19580 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19581 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19582 if test $ac_cv_header_sys_wait_h = yes; then
19583
19584 cat >>confdefs.h <<\_ACEOF
19585 #define HAVE_SYS_WAIT_H 1
19586 _ACEOF
19587
19588 fi
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19600 do
19601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19603   echo "$as_me:$LINENO: checking for $ac_header" >&5
19604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19606   echo $ECHO_N "(cached) $ECHO_C" >&6
19607 fi
19608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19610 else
19611   # Is the header compilable?
19612 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19614 cat >conftest.$ac_ext <<_ACEOF
19615 #line $LINENO "configure"
19616 /* confdefs.h.  */
19617 _ACEOF
19618 cat confdefs.h >>conftest.$ac_ext
19619 cat >>conftest.$ac_ext <<_ACEOF
19620 /* end confdefs.h.  */
19621 $ac_includes_default
19622 #include <$ac_header>
19623 _ACEOF
19624 rm -f conftest.$ac_objext
19625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19626   (eval $ac_compile) 2>&5
19627   ac_status=$?
19628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629   (exit $ac_status); } &&
19630          { ac_try='test -s conftest.$ac_objext'
19631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19632   (eval $ac_try) 2>&5
19633   ac_status=$?
19634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635   (exit $ac_status); }; }; then
19636   ac_header_compiler=yes
19637 else
19638   echo "$as_me: failed program was:" >&5
19639 sed 's/^/| /' conftest.$ac_ext >&5
19640
19641 ac_header_compiler=no
19642 fi
19643 rm -f conftest.$ac_objext conftest.$ac_ext
19644 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19645 echo "${ECHO_T}$ac_header_compiler" >&6
19646
19647 # Is the header present?
19648 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19650 cat >conftest.$ac_ext <<_ACEOF
19651 #line $LINENO "configure"
19652 /* confdefs.h.  */
19653 _ACEOF
19654 cat confdefs.h >>conftest.$ac_ext
19655 cat >>conftest.$ac_ext <<_ACEOF
19656 /* end confdefs.h.  */
19657 #include <$ac_header>
19658 _ACEOF
19659 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19660   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19661   ac_status=$?
19662   grep -v '^ *+' conftest.er1 >conftest.err
19663   rm -f conftest.er1
19664   cat conftest.err >&5
19665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666   (exit $ac_status); } >/dev/null; then
19667   if test -s conftest.err; then
19668     ac_cpp_err=$ac_c_preproc_warn_flag
19669   else
19670     ac_cpp_err=
19671   fi
19672 else
19673   ac_cpp_err=yes
19674 fi
19675 if test -z "$ac_cpp_err"; then
19676   ac_header_preproc=yes
19677 else
19678   echo "$as_me: failed program was:" >&5
19679 sed 's/^/| /' conftest.$ac_ext >&5
19680
19681   ac_header_preproc=no
19682 fi
19683 rm -f conftest.err conftest.$ac_ext
19684 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19685 echo "${ECHO_T}$ac_header_preproc" >&6
19686
19687 # So?  What about this header?
19688 case $ac_header_compiler:$ac_header_preproc in
19689   yes:no )
19690     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19692     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19693 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19694     (
19695       cat <<\_ASBOX
19696 ## ------------------------------------ ##
19697 ## Report this to bug-autoconf@gnu.org. ##
19698 ## ------------------------------------ ##
19699 _ASBOX
19700     ) |
19701       sed "s/^/$as_me: WARNING:     /" >&2
19702     ;;
19703   no:yes )
19704     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19706     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19707 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19708     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19709 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19710     (
19711       cat <<\_ASBOX
19712 ## ------------------------------------ ##
19713 ## Report this to bug-autoconf@gnu.org. ##
19714 ## ------------------------------------ ##
19715 _ASBOX
19716     ) |
19717       sed "s/^/$as_me: WARNING:     /" >&2
19718     ;;
19719 esac
19720 echo "$as_me:$LINENO: checking for $ac_header" >&5
19721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19723   echo $ECHO_N "(cached) $ECHO_C" >&6
19724 else
19725   eval "$as_ac_Header=$ac_header_preproc"
19726 fi
19727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19729
19730 fi
19731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19732   cat >>confdefs.h <<_ACEOF
19733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19734 _ACEOF
19735
19736 fi
19737
19738 done
19739
19740
19741
19742
19743
19744
19745 for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19746 do
19747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19749   echo "$as_me:$LINENO: checking for $ac_header" >&5
19750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19752   echo $ECHO_N "(cached) $ECHO_C" >&6
19753 fi
19754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19756 else
19757   # Is the header compilable?
19758 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19759 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19760 cat >conftest.$ac_ext <<_ACEOF
19761 #line $LINENO "configure"
19762 /* confdefs.h.  */
19763 _ACEOF
19764 cat confdefs.h >>conftest.$ac_ext
19765 cat >>conftest.$ac_ext <<_ACEOF
19766 /* end confdefs.h.  */
19767 $ac_includes_default
19768 #include <$ac_header>
19769 _ACEOF
19770 rm -f conftest.$ac_objext
19771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19772   (eval $ac_compile) 2>&5
19773   ac_status=$?
19774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775   (exit $ac_status); } &&
19776          { ac_try='test -s conftest.$ac_objext'
19777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19778   (eval $ac_try) 2>&5
19779   ac_status=$?
19780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781   (exit $ac_status); }; }; then
19782   ac_header_compiler=yes
19783 else
19784   echo "$as_me: failed program was:" >&5
19785 sed 's/^/| /' conftest.$ac_ext >&5
19786
19787 ac_header_compiler=no
19788 fi
19789 rm -f conftest.$ac_objext conftest.$ac_ext
19790 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19791 echo "${ECHO_T}$ac_header_compiler" >&6
19792
19793 # Is the header present?
19794 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19795 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19796 cat >conftest.$ac_ext <<_ACEOF
19797 #line $LINENO "configure"
19798 /* confdefs.h.  */
19799 _ACEOF
19800 cat confdefs.h >>conftest.$ac_ext
19801 cat >>conftest.$ac_ext <<_ACEOF
19802 /* end confdefs.h.  */
19803 #include <$ac_header>
19804 _ACEOF
19805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19806   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19807   ac_status=$?
19808   grep -v '^ *+' conftest.er1 >conftest.err
19809   rm -f conftest.er1
19810   cat conftest.err >&5
19811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812   (exit $ac_status); } >/dev/null; then
19813   if test -s conftest.err; then
19814     ac_cpp_err=$ac_c_preproc_warn_flag
19815   else
19816     ac_cpp_err=
19817   fi
19818 else
19819   ac_cpp_err=yes
19820 fi
19821 if test -z "$ac_cpp_err"; then
19822   ac_header_preproc=yes
19823 else
19824   echo "$as_me: failed program was:" >&5
19825 sed 's/^/| /' conftest.$ac_ext >&5
19826
19827   ac_header_preproc=no
19828 fi
19829 rm -f conftest.err conftest.$ac_ext
19830 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19831 echo "${ECHO_T}$ac_header_preproc" >&6
19832
19833 # So?  What about this header?
19834 case $ac_header_compiler:$ac_header_preproc in
19835   yes:no )
19836     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19837 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19838     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19840     (
19841       cat <<\_ASBOX
19842 ## ------------------------------------ ##
19843 ## Report this to bug-autoconf@gnu.org. ##
19844 ## ------------------------------------ ##
19845 _ASBOX
19846     ) |
19847       sed "s/^/$as_me: WARNING:     /" >&2
19848     ;;
19849   no:yes )
19850     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19852     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19853 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19854     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19855 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19856     (
19857       cat <<\_ASBOX
19858 ## ------------------------------------ ##
19859 ## Report this to bug-autoconf@gnu.org. ##
19860 ## ------------------------------------ ##
19861 _ASBOX
19862     ) |
19863       sed "s/^/$as_me: WARNING:     /" >&2
19864     ;;
19865 esac
19866 echo "$as_me:$LINENO: checking for $ac_header" >&5
19867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19869   echo $ECHO_N "(cached) $ECHO_C" >&6
19870 else
19871   eval "$as_ac_Header=$ac_header_preproc"
19872 fi
19873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19875
19876 fi
19877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19878   cat >>confdefs.h <<_ACEOF
19879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19880 _ACEOF
19881
19882 fi
19883
19884 done
19885
19886
19887
19888
19889 for ac_header in dlfcn.h link.h
19890 do
19891 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19893   echo "$as_me:$LINENO: checking for $ac_header" >&5
19894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19896   echo $ECHO_N "(cached) $ECHO_C" >&6
19897 fi
19898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19900 else
19901   # Is the header compilable?
19902 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19903 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19904 cat >conftest.$ac_ext <<_ACEOF
19905 #line $LINENO "configure"
19906 /* confdefs.h.  */
19907 _ACEOF
19908 cat confdefs.h >>conftest.$ac_ext
19909 cat >>conftest.$ac_ext <<_ACEOF
19910 /* end confdefs.h.  */
19911 $ac_includes_default
19912 #include <$ac_header>
19913 _ACEOF
19914 rm -f conftest.$ac_objext
19915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19916   (eval $ac_compile) 2>&5
19917   ac_status=$?
19918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919   (exit $ac_status); } &&
19920          { ac_try='test -s conftest.$ac_objext'
19921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19922   (eval $ac_try) 2>&5
19923   ac_status=$?
19924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925   (exit $ac_status); }; }; then
19926   ac_header_compiler=yes
19927 else
19928   echo "$as_me: failed program was:" >&5
19929 sed 's/^/| /' conftest.$ac_ext >&5
19930
19931 ac_header_compiler=no
19932 fi
19933 rm -f conftest.$ac_objext conftest.$ac_ext
19934 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19935 echo "${ECHO_T}$ac_header_compiler" >&6
19936
19937 # Is the header present?
19938 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19940 cat >conftest.$ac_ext <<_ACEOF
19941 #line $LINENO "configure"
19942 /* confdefs.h.  */
19943 _ACEOF
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h.  */
19947 #include <$ac_header>
19948 _ACEOF
19949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19950   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19951   ac_status=$?
19952   grep -v '^ *+' conftest.er1 >conftest.err
19953   rm -f conftest.er1
19954   cat conftest.err >&5
19955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956   (exit $ac_status); } >/dev/null; then
19957   if test -s conftest.err; then
19958     ac_cpp_err=$ac_c_preproc_warn_flag
19959   else
19960     ac_cpp_err=
19961   fi
19962 else
19963   ac_cpp_err=yes
19964 fi
19965 if test -z "$ac_cpp_err"; then
19966   ac_header_preproc=yes
19967 else
19968   echo "$as_me: failed program was:" >&5
19969 sed 's/^/| /' conftest.$ac_ext >&5
19970
19971   ac_header_preproc=no
19972 fi
19973 rm -f conftest.err conftest.$ac_ext
19974 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19975 echo "${ECHO_T}$ac_header_preproc" >&6
19976
19977 # So?  What about this header?
19978 case $ac_header_compiler:$ac_header_preproc in
19979   yes:no )
19980     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19982     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19984     (
19985       cat <<\_ASBOX
19986 ## ------------------------------------ ##
19987 ## Report this to bug-autoconf@gnu.org. ##
19988 ## ------------------------------------ ##
19989 _ASBOX
19990     ) |
19991       sed "s/^/$as_me: WARNING:     /" >&2
19992     ;;
19993   no:yes )
19994     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19996     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19997 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19998     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20000     (
20001       cat <<\_ASBOX
20002 ## ------------------------------------ ##
20003 ## Report this to bug-autoconf@gnu.org. ##
20004 ## ------------------------------------ ##
20005 _ASBOX
20006     ) |
20007       sed "s/^/$as_me: WARNING:     /" >&2
20008     ;;
20009 esac
20010 echo "$as_me:$LINENO: checking for $ac_header" >&5
20011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20013   echo $ECHO_N "(cached) $ECHO_C" >&6
20014 else
20015   eval "$as_ac_Header=$ac_header_preproc"
20016 fi
20017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20019
20020 fi
20021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20022   cat >>confdefs.h <<_ACEOF
20023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20024 _ACEOF
20025
20026 fi
20027
20028 done
20029
20030
20031
20032 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20033 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20034 if test "${ac_cv_c_const+set}" = set; then
20035   echo $ECHO_N "(cached) $ECHO_C" >&6
20036 else
20037   cat >conftest.$ac_ext <<_ACEOF
20038 #line $LINENO "configure"
20039 /* confdefs.h.  */
20040 _ACEOF
20041 cat confdefs.h >>conftest.$ac_ext
20042 cat >>conftest.$ac_ext <<_ACEOF
20043 /* end confdefs.h.  */
20044
20045 int
20046 main ()
20047 {
20048 /* FIXME: Include the comments suggested by Paul. */
20049 #ifndef __cplusplus
20050   /* Ultrix mips cc rejects this.  */
20051   typedef int charset[2];
20052   const charset x;
20053   /* SunOS 4.1.1 cc rejects this.  */
20054   char const *const *ccp;
20055   char **p;
20056   /* NEC SVR4.0.2 mips cc rejects this.  */
20057   struct point {int x, y;};
20058   static struct point const zero = {0,0};
20059   /* AIX XL C 1.02.0.0 rejects this.
20060      It does not let you subtract one const X* pointer from another in
20061      an arm of an if-expression whose if-part is not a constant
20062      expression */
20063   const char *g = "string";
20064   ccp = &g + (g ? g-g : 0);
20065   /* HPUX 7.0 cc rejects these. */
20066   ++ccp;
20067   p = (char**) ccp;
20068   ccp = (char const *const *) p;
20069   { /* SCO 3.2v4 cc rejects this.  */
20070     char *t;
20071     char const *s = 0 ? (char *) 0 : (char const *) 0;
20072
20073     *t++ = 0;
20074   }
20075   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20076     int x[] = {25, 17};
20077     const int *foo = &x[0];
20078     ++foo;
20079   }
20080   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20081     typedef const int *iptr;
20082     iptr p = 0;
20083     ++p;
20084   }
20085   { /* AIX XL C 1.02.0.0 rejects this saying
20086        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20087     struct s { int j; const int *ap[3]; };
20088     struct s *b; b->j = 5;
20089   }
20090   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20091     const int foo = 10;
20092   }
20093 #endif
20094
20095   ;
20096   return 0;
20097 }
20098 _ACEOF
20099 rm -f conftest.$ac_objext
20100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20101   (eval $ac_compile) 2>&5
20102   ac_status=$?
20103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104   (exit $ac_status); } &&
20105          { ac_try='test -s conftest.$ac_objext'
20106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107   (eval $ac_try) 2>&5
20108   ac_status=$?
20109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110   (exit $ac_status); }; }; then
20111   ac_cv_c_const=yes
20112 else
20113   echo "$as_me: failed program was:" >&5
20114 sed 's/^/| /' conftest.$ac_ext >&5
20115
20116 ac_cv_c_const=no
20117 fi
20118 rm -f conftest.$ac_objext conftest.$ac_ext
20119 fi
20120 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20121 echo "${ECHO_T}$ac_cv_c_const" >&6
20122 if test $ac_cv_c_const = no; then
20123
20124 cat >>confdefs.h <<\_ACEOF
20125 #define const
20126 _ACEOF
20127
20128 fi
20129
20130 echo "$as_me:$LINENO: checking for inline" >&5
20131 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20132 if test "${ac_cv_c_inline+set}" = set; then
20133   echo $ECHO_N "(cached) $ECHO_C" >&6
20134 else
20135   ac_cv_c_inline=no
20136 for ac_kw in inline __inline__ __inline; do
20137   cat >conftest.$ac_ext <<_ACEOF
20138 #line $LINENO "configure"
20139 /* confdefs.h.  */
20140 _ACEOF
20141 cat confdefs.h >>conftest.$ac_ext
20142 cat >>conftest.$ac_ext <<_ACEOF
20143 /* end confdefs.h.  */
20144 #ifndef __cplusplus
20145 typedef int foo_t;
20146 static $ac_kw foo_t static_foo () {return 0; }
20147 $ac_kw foo_t foo () {return 0; }
20148 #endif
20149
20150 _ACEOF
20151 rm -f conftest.$ac_objext
20152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20153   (eval $ac_compile) 2>&5
20154   ac_status=$?
20155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156   (exit $ac_status); } &&
20157          { ac_try='test -s conftest.$ac_objext'
20158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20159   (eval $ac_try) 2>&5
20160   ac_status=$?
20161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162   (exit $ac_status); }; }; then
20163   ac_cv_c_inline=$ac_kw; break
20164 else
20165   echo "$as_me: failed program was:" >&5
20166 sed 's/^/| /' conftest.$ac_ext >&5
20167
20168 fi
20169 rm -f conftest.$ac_objext conftest.$ac_ext
20170 done
20171
20172 fi
20173 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20174 echo "${ECHO_T}$ac_cv_c_inline" >&6
20175 case $ac_cv_c_inline in
20176   inline | yes) ;;
20177   no)
20178 cat >>confdefs.h <<\_ACEOF
20179 #define inline
20180 _ACEOF
20181  ;;
20182   *)  cat >>confdefs.h <<_ACEOF
20183 #define inline $ac_cv_c_inline
20184 _ACEOF
20185  ;;
20186 esac
20187
20188
20189 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20190 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20191 if test "${ac_cv_c_bigendian+set}" = set; then
20192   echo $ECHO_N "(cached) $ECHO_C" >&6
20193 else
20194   # See if sys/param.h defines the BYTE_ORDER macro.
20195 cat >conftest.$ac_ext <<_ACEOF
20196 #line $LINENO "configure"
20197 /* confdefs.h.  */
20198 _ACEOF
20199 cat confdefs.h >>conftest.$ac_ext
20200 cat >>conftest.$ac_ext <<_ACEOF
20201 /* end confdefs.h.  */
20202 #include <sys/types.h>
20203 #include <sys/param.h>
20204
20205 int
20206 main ()
20207 {
20208 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20209  bogus endian macros
20210 #endif
20211
20212   ;
20213   return 0;
20214 }
20215 _ACEOF
20216 rm -f conftest.$ac_objext
20217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20218   (eval $ac_compile) 2>&5
20219   ac_status=$?
20220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221   (exit $ac_status); } &&
20222          { ac_try='test -s conftest.$ac_objext'
20223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20224   (eval $ac_try) 2>&5
20225   ac_status=$?
20226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227   (exit $ac_status); }; }; then
20228   # It does; now see whether it defined to BIG_ENDIAN or not.
20229 cat >conftest.$ac_ext <<_ACEOF
20230 #line $LINENO "configure"
20231 /* confdefs.h.  */
20232 _ACEOF
20233 cat confdefs.h >>conftest.$ac_ext
20234 cat >>conftest.$ac_ext <<_ACEOF
20235 /* end confdefs.h.  */
20236 #include <sys/types.h>
20237 #include <sys/param.h>
20238
20239 int
20240 main ()
20241 {
20242 #if BYTE_ORDER != BIG_ENDIAN
20243  not big endian
20244 #endif
20245
20246   ;
20247   return 0;
20248 }
20249 _ACEOF
20250 rm -f conftest.$ac_objext
20251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20252   (eval $ac_compile) 2>&5
20253   ac_status=$?
20254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255   (exit $ac_status); } &&
20256          { ac_try='test -s conftest.$ac_objext'
20257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20258   (eval $ac_try) 2>&5
20259   ac_status=$?
20260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261   (exit $ac_status); }; }; then
20262   ac_cv_c_bigendian=yes
20263 else
20264   echo "$as_me: failed program was:" >&5
20265 sed 's/^/| /' conftest.$ac_ext >&5
20266
20267 ac_cv_c_bigendian=no
20268 fi
20269 rm -f conftest.$ac_objext conftest.$ac_ext
20270 else
20271   echo "$as_me: failed program was:" >&5
20272 sed 's/^/| /' conftest.$ac_ext >&5
20273
20274 # It does not; compile a test program.
20275 if test "$cross_compiling" = yes; then
20276   # try to guess the endianness by grepping values into an object file
20277   ac_cv_c_bigendian=unknown
20278   cat >conftest.$ac_ext <<_ACEOF
20279 #line $LINENO "configure"
20280 /* confdefs.h.  */
20281 _ACEOF
20282 cat confdefs.h >>conftest.$ac_ext
20283 cat >>conftest.$ac_ext <<_ACEOF
20284 /* end confdefs.h.  */
20285 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20286 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20287 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20288 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20289 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20290 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20291 int
20292 main ()
20293 {
20294  _ascii (); _ebcdic ();
20295   ;
20296   return 0;
20297 }
20298 _ACEOF
20299 rm -f conftest.$ac_objext
20300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20301   (eval $ac_compile) 2>&5
20302   ac_status=$?
20303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304   (exit $ac_status); } &&
20305          { ac_try='test -s conftest.$ac_objext'
20306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20307   (eval $ac_try) 2>&5
20308   ac_status=$?
20309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310   (exit $ac_status); }; }; then
20311   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20312   ac_cv_c_bigendian=yes
20313 fi
20314 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20315   if test "$ac_cv_c_bigendian" = unknown; then
20316     ac_cv_c_bigendian=no
20317   else
20318     # finding both strings is unlikely to happen, but who knows?
20319     ac_cv_c_bigendian=unknown
20320   fi
20321 fi
20322 else
20323   echo "$as_me: failed program was:" >&5
20324 sed 's/^/| /' conftest.$ac_ext >&5
20325
20326 fi
20327 rm -f conftest.$ac_objext conftest.$ac_ext
20328 else
20329   cat >conftest.$ac_ext <<_ACEOF
20330 #line $LINENO "configure"
20331 /* confdefs.h.  */
20332 _ACEOF
20333 cat confdefs.h >>conftest.$ac_ext
20334 cat >>conftest.$ac_ext <<_ACEOF
20335 /* end confdefs.h.  */
20336 int
20337 main ()
20338 {
20339   /* Are we little or big endian?  From Harbison&Steele.  */
20340   union
20341   {
20342     long l;
20343     char c[sizeof (long)];
20344   } u;
20345   u.l = 1;
20346   exit (u.c[sizeof (long) - 1] == 1);
20347 }
20348 _ACEOF
20349 rm -f conftest$ac_exeext
20350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20351   (eval $ac_link) 2>&5
20352   ac_status=$?
20353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20356   (eval $ac_try) 2>&5
20357   ac_status=$?
20358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359   (exit $ac_status); }; }; then
20360   ac_cv_c_bigendian=no
20361 else
20362   echo "$as_me: program exited with status $ac_status" >&5
20363 echo "$as_me: failed program was:" >&5
20364 sed 's/^/| /' conftest.$ac_ext >&5
20365
20366 ( exit $ac_status )
20367 ac_cv_c_bigendian=yes
20368 fi
20369 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20370 fi
20371 fi
20372 rm -f conftest.$ac_objext conftest.$ac_ext
20373 fi
20374 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20375 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20376 case $ac_cv_c_bigendian in
20377   yes)
20378     cat >>confdefs.h <<\_ACEOF
20379 #define ENDIAN_BIG 1
20380 _ACEOF
20381  ;;
20382   no)
20383     cat >>confdefs.h <<\_ACEOF
20384 #define ENDIAN_LITTLE 1
20385 _ACEOF
20386  ;;
20387   *)
20388     { { echo "$as_me:$LINENO: error: unknown endianness
20389 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20390 echo "$as_me: error: unknown endianness
20391 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20392    { (exit 1); exit 1; }; } ;;
20393 esac
20394
20395
20396 echo "$as_me:$LINENO: checking for pid_t" >&5
20397 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20398 if test "${ac_cv_type_pid_t+set}" = set; then
20399   echo $ECHO_N "(cached) $ECHO_C" >&6
20400 else
20401   cat >conftest.$ac_ext <<_ACEOF
20402 #line $LINENO "configure"
20403 /* confdefs.h.  */
20404 _ACEOF
20405 cat confdefs.h >>conftest.$ac_ext
20406 cat >>conftest.$ac_ext <<_ACEOF
20407 /* end confdefs.h.  */
20408 $ac_includes_default
20409 int
20410 main ()
20411 {
20412 if ((pid_t *) 0)
20413   return 0;
20414 if (sizeof (pid_t))
20415   return 0;
20416   ;
20417   return 0;
20418 }
20419 _ACEOF
20420 rm -f conftest.$ac_objext
20421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20422   (eval $ac_compile) 2>&5
20423   ac_status=$?
20424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425   (exit $ac_status); } &&
20426          { ac_try='test -s conftest.$ac_objext'
20427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20428   (eval $ac_try) 2>&5
20429   ac_status=$?
20430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431   (exit $ac_status); }; }; then
20432   ac_cv_type_pid_t=yes
20433 else
20434   echo "$as_me: failed program was:" >&5
20435 sed 's/^/| /' conftest.$ac_ext >&5
20436
20437 ac_cv_type_pid_t=no
20438 fi
20439 rm -f conftest.$ac_objext conftest.$ac_ext
20440 fi
20441 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20442 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20443 if test $ac_cv_type_pid_t = yes; then
20444   :
20445 else
20446
20447 cat >>confdefs.h <<_ACEOF
20448 #define pid_t int
20449 _ACEOF
20450
20451 fi
20452
20453 echo "$as_me:$LINENO: checking for size_t" >&5
20454 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20455 if test "${ac_cv_type_size_t+set}" = set; then
20456   echo $ECHO_N "(cached) $ECHO_C" >&6
20457 else
20458   cat >conftest.$ac_ext <<_ACEOF
20459 #line $LINENO "configure"
20460 /* confdefs.h.  */
20461 _ACEOF
20462 cat confdefs.h >>conftest.$ac_ext
20463 cat >>conftest.$ac_ext <<_ACEOF
20464 /* end confdefs.h.  */
20465 $ac_includes_default
20466 int
20467 main ()
20468 {
20469 if ((size_t *) 0)
20470   return 0;
20471 if (sizeof (size_t))
20472   return 0;
20473   ;
20474   return 0;
20475 }
20476 _ACEOF
20477 rm -f conftest.$ac_objext
20478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20479   (eval $ac_compile) 2>&5
20480   ac_status=$?
20481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482   (exit $ac_status); } &&
20483          { ac_try='test -s conftest.$ac_objext'
20484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20485   (eval $ac_try) 2>&5
20486   ac_status=$?
20487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488   (exit $ac_status); }; }; then
20489   ac_cv_type_size_t=yes
20490 else
20491   echo "$as_me: failed program was:" >&5
20492 sed 's/^/| /' conftest.$ac_ext >&5
20493
20494 ac_cv_type_size_t=no
20495 fi
20496 rm -f conftest.$ac_objext conftest.$ac_ext
20497 fi
20498 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20499 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20500 if test $ac_cv_type_size_t = yes; then
20501   :
20502 else
20503
20504 cat >>confdefs.h <<_ACEOF
20505 #define size_t unsigned
20506 _ACEOF
20507
20508 fi
20509
20510 echo "$as_me:$LINENO: checking for int64_t" >&5
20511 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20512 if test "${ac_cv_type_int64_t+set}" = set; then
20513   echo $ECHO_N "(cached) $ECHO_C" >&6
20514 else
20515   cat >conftest.$ac_ext <<_ACEOF
20516 #line $LINENO "configure"
20517 /* confdefs.h.  */
20518 _ACEOF
20519 cat confdefs.h >>conftest.$ac_ext
20520 cat >>conftest.$ac_ext <<_ACEOF
20521 /* end confdefs.h.  */
20522 $ac_includes_default
20523 int
20524 main ()
20525 {
20526 if ((int64_t *) 0)
20527   return 0;
20528 if (sizeof (int64_t))
20529   return 0;
20530   ;
20531   return 0;
20532 }
20533 _ACEOF
20534 rm -f conftest.$ac_objext
20535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20536   (eval $ac_compile) 2>&5
20537   ac_status=$?
20538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539   (exit $ac_status); } &&
20540          { ac_try='test -s conftest.$ac_objext'
20541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20542   (eval $ac_try) 2>&5
20543   ac_status=$?
20544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545   (exit $ac_status); }; }; then
20546   ac_cv_type_int64_t=yes
20547 else
20548   echo "$as_me: failed program was:" >&5
20549 sed 's/^/| /' conftest.$ac_ext >&5
20550
20551 ac_cv_type_int64_t=no
20552 fi
20553 rm -f conftest.$ac_objext conftest.$ac_ext
20554 fi
20555 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20556 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20557 if test $ac_cv_type_int64_t = yes; then
20558
20559 cat >>confdefs.h <<_ACEOF
20560 #define HAVE_INT64_T 1
20561 _ACEOF
20562
20563
20564 else
20565   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20566 echo "$as_me: error: Type int64_t required but not found" >&2;}
20567    { (exit 1); exit 1; }; }
20568 fi
20569
20570 echo "$as_me:$LINENO: checking for uint64_t" >&5
20571 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20572 if test "${ac_cv_type_uint64_t+set}" = set; then
20573   echo $ECHO_N "(cached) $ECHO_C" >&6
20574 else
20575   cat >conftest.$ac_ext <<_ACEOF
20576 #line $LINENO "configure"
20577 /* confdefs.h.  */
20578 _ACEOF
20579 cat confdefs.h >>conftest.$ac_ext
20580 cat >>conftest.$ac_ext <<_ACEOF
20581 /* end confdefs.h.  */
20582 $ac_includes_default
20583 int
20584 main ()
20585 {
20586 if ((uint64_t *) 0)
20587   return 0;
20588 if (sizeof (uint64_t))
20589   return 0;
20590   ;
20591   return 0;
20592 }
20593 _ACEOF
20594 rm -f conftest.$ac_objext
20595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20596   (eval $ac_compile) 2>&5
20597   ac_status=$?
20598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599   (exit $ac_status); } &&
20600          { ac_try='test -s conftest.$ac_objext'
20601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20602   (eval $ac_try) 2>&5
20603   ac_status=$?
20604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605   (exit $ac_status); }; }; then
20606   ac_cv_type_uint64_t=yes
20607 else
20608   echo "$as_me: failed program was:" >&5
20609 sed 's/^/| /' conftest.$ac_ext >&5
20610
20611 ac_cv_type_uint64_t=no
20612 fi
20613 rm -f conftest.$ac_objext conftest.$ac_ext
20614 fi
20615 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20616 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20617 if test $ac_cv_type_uint64_t = yes; then
20618
20619 cat >>confdefs.h <<_ACEOF
20620 #define HAVE_UINT64_T 1
20621 _ACEOF
20622
20623
20624 else
20625   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20626 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20627    { (exit 1); exit 1; }; }
20628 fi
20629
20630 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20631 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20632 if test "${ac_cv_header_time+set}" = set; then
20633   echo $ECHO_N "(cached) $ECHO_C" >&6
20634 else
20635   cat >conftest.$ac_ext <<_ACEOF
20636 #line $LINENO "configure"
20637 /* confdefs.h.  */
20638 _ACEOF
20639 cat confdefs.h >>conftest.$ac_ext
20640 cat >>conftest.$ac_ext <<_ACEOF
20641 /* end confdefs.h.  */
20642 #include <sys/types.h>
20643 #include <sys/time.h>
20644 #include <time.h>
20645
20646 int
20647 main ()
20648 {
20649 if ((struct tm *) 0)
20650 return 0;
20651   ;
20652   return 0;
20653 }
20654 _ACEOF
20655 rm -f conftest.$ac_objext
20656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20657   (eval $ac_compile) 2>&5
20658   ac_status=$?
20659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660   (exit $ac_status); } &&
20661          { ac_try='test -s conftest.$ac_objext'
20662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20663   (eval $ac_try) 2>&5
20664   ac_status=$?
20665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666   (exit $ac_status); }; }; then
20667   ac_cv_header_time=yes
20668 else
20669   echo "$as_me: failed program was:" >&5
20670 sed 's/^/| /' conftest.$ac_ext >&5
20671
20672 ac_cv_header_time=no
20673 fi
20674 rm -f conftest.$ac_objext conftest.$ac_ext
20675 fi
20676 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20677 echo "${ECHO_T}$ac_cv_header_time" >&6
20678 if test $ac_cv_header_time = yes; then
20679
20680 cat >>confdefs.h <<\_ACEOF
20681 #define TIME_WITH_SYS_TIME 1
20682 _ACEOF
20683
20684 fi
20685
20686 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20687 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20688 if test "${ac_cv_struct_tm+set}" = set; then
20689   echo $ECHO_N "(cached) $ECHO_C" >&6
20690 else
20691   cat >conftest.$ac_ext <<_ACEOF
20692 #line $LINENO "configure"
20693 /* confdefs.h.  */
20694 _ACEOF
20695 cat confdefs.h >>conftest.$ac_ext
20696 cat >>conftest.$ac_ext <<_ACEOF
20697 /* end confdefs.h.  */
20698 #include <sys/types.h>
20699 #include <time.h>
20700
20701 int
20702 main ()
20703 {
20704 struct tm *tp; tp->tm_sec;
20705   ;
20706   return 0;
20707 }
20708 _ACEOF
20709 rm -f conftest.$ac_objext
20710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20711   (eval $ac_compile) 2>&5
20712   ac_status=$?
20713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714   (exit $ac_status); } &&
20715          { ac_try='test -s conftest.$ac_objext'
20716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20717   (eval $ac_try) 2>&5
20718   ac_status=$?
20719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720   (exit $ac_status); }; }; then
20721   ac_cv_struct_tm=time.h
20722 else
20723   echo "$as_me: failed program was:" >&5
20724 sed 's/^/| /' conftest.$ac_ext >&5
20725
20726 ac_cv_struct_tm=sys/time.h
20727 fi
20728 rm -f conftest.$ac_objext conftest.$ac_ext
20729 fi
20730 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20731 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20732 if test $ac_cv_struct_tm = sys/time.h; then
20733
20734 cat >>confdefs.h <<\_ACEOF
20735 #define TM_IN_SYS_TIME 1
20736 _ACEOF
20737
20738 fi
20739
20740
20741 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20742 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20743 if test "${ac_cv_cxx_namespaces+set}" = set; then
20744   echo $ECHO_N "(cached) $ECHO_C" >&6
20745 else
20746
20747
20748  ac_ext=cc
20749 ac_cpp='$CXXCPP $CPPFLAGS'
20750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20753
20754  cat >conftest.$ac_ext <<_ACEOF
20755 #line $LINENO "configure"
20756 /* confdefs.h.  */
20757 _ACEOF
20758 cat confdefs.h >>conftest.$ac_ext
20759 cat >>conftest.$ac_ext <<_ACEOF
20760 /* end confdefs.h.  */
20761 namespace Outer { namespace Inner { int i = 0; }}
20762 int
20763 main ()
20764 {
20765 using namespace Outer::Inner; return i;
20766   ;
20767   return 0;
20768 }
20769 _ACEOF
20770 rm -f conftest.$ac_objext
20771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20772   (eval $ac_compile) 2>&5
20773   ac_status=$?
20774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775   (exit $ac_status); } &&
20776          { ac_try='test -s conftest.$ac_objext'
20777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778   (eval $ac_try) 2>&5
20779   ac_status=$?
20780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781   (exit $ac_status); }; }; then
20782   ac_cv_cxx_namespaces=yes
20783 else
20784   echo "$as_me: failed program was:" >&5
20785 sed 's/^/| /' conftest.$ac_ext >&5
20786
20787 ac_cv_cxx_namespaces=no
20788 fi
20789 rm -f conftest.$ac_objext conftest.$ac_ext
20790  ac_ext=c
20791 ac_cpp='$CPP $CPPFLAGS'
20792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20795
20796
20797 fi
20798 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20799 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20800 if test "$ac_cv_cxx_namespaces" = yes; then
20801
20802 cat >>confdefs.h <<\_ACEOF
20803 #define HAVE_NAMESPACES
20804 _ACEOF
20805
20806 fi
20807
20808 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20809 echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20810 if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20811   echo $ECHO_N "(cached) $ECHO_C" >&6
20812 else
20813
20814
20815
20816   ac_ext=cc
20817 ac_cpp='$CXXCPP $CPPFLAGS'
20818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20821
20822   cat >conftest.$ac_ext <<_ACEOF
20823 #line $LINENO "configure"
20824 /* confdefs.h.  */
20825 _ACEOF
20826 cat confdefs.h >>conftest.$ac_ext
20827 cat >>conftest.$ac_ext <<_ACEOF
20828 /* end confdefs.h.  */
20829 #include <ext/hash_map>
20830 #ifdef HAVE_NAMESPACES
20831 using namespace std;
20832 #endif
20833 int
20834 main ()
20835 {
20836 hash_map<int, int> t; return 0;
20837   ;
20838   return 0;
20839 }
20840 _ACEOF
20841 rm -f conftest.$ac_objext
20842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20843   (eval $ac_compile) 2>&5
20844   ac_status=$?
20845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846   (exit $ac_status); } &&
20847          { ac_try='test -s conftest.$ac_objext'
20848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20849   (eval $ac_try) 2>&5
20850   ac_status=$?
20851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852   (exit $ac_status); }; }; then
20853   ac_cv_cxx_have_ext_hash_map=std
20854 else
20855   echo "$as_me: failed program was:" >&5
20856 sed 's/^/| /' conftest.$ac_ext >&5
20857
20858 ac_cv_cxx_have_ext_hash_map=no
20859 fi
20860 rm -f conftest.$ac_objext conftest.$ac_ext
20861   cat >conftest.$ac_ext <<_ACEOF
20862 #line $LINENO "configure"
20863 /* confdefs.h.  */
20864 _ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h.  */
20868 #include <ext/hash_map>
20869 #ifdef HAVE_NAMESPACES
20870 using namespace __gnu_cxx;
20871 #endif
20872 int
20873 main ()
20874 {
20875 hash_map<int, int> t; return 0;
20876   ;
20877   return 0;
20878 }
20879 _ACEOF
20880 rm -f conftest.$ac_objext
20881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20882   (eval $ac_compile) 2>&5
20883   ac_status=$?
20884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885   (exit $ac_status); } &&
20886          { ac_try='test -s conftest.$ac_objext'
20887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20888   (eval $ac_try) 2>&5
20889   ac_status=$?
20890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891   (exit $ac_status); }; }; then
20892   ac_cv_cxx_have_ext_hash_map=gnu
20893 else
20894   echo "$as_me: failed program was:" >&5
20895 sed 's/^/| /' conftest.$ac_ext >&5
20896
20897 ac_cv_cxx_have_ext_hash_map=no
20898 fi
20899 rm -f conftest.$ac_objext conftest.$ac_ext
20900   ac_ext=c
20901 ac_cpp='$CPP $CPPFLAGS'
20902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20905
20906
20907 fi
20908 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20909 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20910 if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20911
20912 cat >>confdefs.h <<\_ACEOF
20913 #define HAVE_STD_EXT_HASH_MAP
20914 _ACEOF
20915
20916 fi
20917 if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20918
20919 cat >>confdefs.h <<\_ACEOF
20920 #define HAVE_GNU_EXT_HASH_MAP
20921 _ACEOF
20922
20923 fi
20924
20925 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20926 echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20927 if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20928   echo $ECHO_N "(cached) $ECHO_C" >&6
20929 else
20930
20931
20932
20933   ac_ext=cc
20934 ac_cpp='$CXXCPP $CPPFLAGS'
20935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20938
20939   cat >conftest.$ac_ext <<_ACEOF
20940 #line $LINENO "configure"
20941 /* confdefs.h.  */
20942 _ACEOF
20943 cat confdefs.h >>conftest.$ac_ext
20944 cat >>conftest.$ac_ext <<_ACEOF
20945 /* end confdefs.h.  */
20946 #include <ext/hash_set>
20947 #ifdef HAVE_NAMESPACES
20948 using namespace std;
20949 #endif
20950 int
20951 main ()
20952 {
20953 hash_set<int> t; return 0;
20954   ;
20955   return 0;
20956 }
20957 _ACEOF
20958 rm -f conftest.$ac_objext
20959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20960   (eval $ac_compile) 2>&5
20961   ac_status=$?
20962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963   (exit $ac_status); } &&
20964          { ac_try='test -s conftest.$ac_objext'
20965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20966   (eval $ac_try) 2>&5
20967   ac_status=$?
20968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969   (exit $ac_status); }; }; then
20970   ac_cv_cxx_have_ext_hash_set=std
20971 else
20972   echo "$as_me: failed program was:" >&5
20973 sed 's/^/| /' conftest.$ac_ext >&5
20974
20975 ac_cv_cxx_have_ext_hash_set=no
20976 fi
20977 rm -f conftest.$ac_objext conftest.$ac_ext
20978   cat >conftest.$ac_ext <<_ACEOF
20979 #line $LINENO "configure"
20980 /* confdefs.h.  */
20981 _ACEOF
20982 cat confdefs.h >>conftest.$ac_ext
20983 cat >>conftest.$ac_ext <<_ACEOF
20984 /* end confdefs.h.  */
20985 #include <ext/hash_set>
20986 #ifdef HAVE_NAMESPACES
20987 using namespace __gnu_cxx;
20988 #endif
20989 int
20990 main ()
20991 {
20992 hash_set<int> t; return 0;
20993   ;
20994   return 0;
20995 }
20996 _ACEOF
20997 rm -f conftest.$ac_objext
20998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20999   (eval $ac_compile) 2>&5
21000   ac_status=$?
21001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002   (exit $ac_status); } &&
21003          { ac_try='test -s conftest.$ac_objext'
21004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21005   (eval $ac_try) 2>&5
21006   ac_status=$?
21007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008   (exit $ac_status); }; }; then
21009   ac_cv_cxx_have_ext_hash_set=gnu
21010 else
21011   echo "$as_me: failed program was:" >&5
21012 sed 's/^/| /' conftest.$ac_ext >&5
21013
21014 ac_cv_cxx_have_ext_hash_set=no
21015 fi
21016 rm -f conftest.$ac_objext conftest.$ac_ext
21017   ac_ext=c
21018 ac_cpp='$CPP $CPPFLAGS'
21019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21022
21023
21024 fi
21025 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
21026 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
21027 if test "$ac_cv_cxx_have_ext_hash_set" = std; then
21028
21029 cat >>confdefs.h <<\_ACEOF
21030 #define HAVE_STD_EXT_HASH_SET
21031 _ACEOF
21032
21033 fi
21034 if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
21035
21036 cat >>confdefs.h <<\_ACEOF
21037 #define HAVE_GNU_EXT_HASH_SET
21038 _ACEOF
21039
21040 fi
21041
21042 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21043 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21044 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21045   echo $ECHO_N "(cached) $ECHO_C" >&6
21046 else
21047
21048
21049
21050   ac_ext=cc
21051 ac_cpp='$CXXCPP $CPPFLAGS'
21052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21055
21056   cat >conftest.$ac_ext <<_ACEOF
21057 #line $LINENO "configure"
21058 /* confdefs.h.  */
21059 _ACEOF
21060 cat confdefs.h >>conftest.$ac_ext
21061 cat >>conftest.$ac_ext <<_ACEOF
21062 /* end confdefs.h.  */
21063 #include <ext/slist>
21064 #ifdef HAVE_NAMESPACES
21065 using namespace std;
21066 #endif
21067 int
21068 main ()
21069 {
21070 slist<int> s; return 0;
21071   ;
21072   return 0;
21073 }
21074 _ACEOF
21075 rm -f conftest.$ac_objext
21076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21077   (eval $ac_compile) 2>&5
21078   ac_status=$?
21079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080   (exit $ac_status); } &&
21081          { ac_try='test -s conftest.$ac_objext'
21082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21083   (eval $ac_try) 2>&5
21084   ac_status=$?
21085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086   (exit $ac_status); }; }; then
21087   ac_cv_cxx_have_ext_slist=std
21088 else
21089   echo "$as_me: failed program was:" >&5
21090 sed 's/^/| /' conftest.$ac_ext >&5
21091
21092 ac_cv_cxx_have_ext_slist=no
21093 fi
21094 rm -f conftest.$ac_objext conftest.$ac_ext
21095   cat >conftest.$ac_ext <<_ACEOF
21096 #line $LINENO "configure"
21097 /* confdefs.h.  */
21098 _ACEOF
21099 cat confdefs.h >>conftest.$ac_ext
21100 cat >>conftest.$ac_ext <<_ACEOF
21101 /* end confdefs.h.  */
21102 #include <ext/slist>
21103 #ifdef HAVE_NAMESPACES
21104 using namespace __gnu_cxx;
21105 #endif
21106 int
21107 main ()
21108 {
21109 slist<int> s; return 0;
21110   ;
21111   return 0;
21112 }
21113 _ACEOF
21114 rm -f conftest.$ac_objext
21115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21116   (eval $ac_compile) 2>&5
21117   ac_status=$?
21118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119   (exit $ac_status); } &&
21120          { ac_try='test -s conftest.$ac_objext'
21121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21122   (eval $ac_try) 2>&5
21123   ac_status=$?
21124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125   (exit $ac_status); }; }; then
21126   ac_cv_cxx_have_ext_slist=gnu
21127 else
21128   echo "$as_me: failed program was:" >&5
21129 sed 's/^/| /' conftest.$ac_ext >&5
21130
21131 ac_cv_cxx_have_ext_slist=no
21132 fi
21133 rm -f conftest.$ac_objext conftest.$ac_ext
21134
21135   ac_ext=c
21136 ac_cpp='$CPP $CPPFLAGS'
21137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21140
21141
21142 fi
21143 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21144 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21145 if test "$ac_cv_cxx_have_ext_slist" = std; then
21146
21147 cat >>confdefs.h <<\_ACEOF
21148 #define HAVE_EXT_SLIST std
21149 _ACEOF
21150
21151 fi
21152 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21153
21154 cat >>confdefs.h <<\_ACEOF
21155 #define HAVE_EXT_SLIST gnu
21156 _ACEOF
21157
21158 fi
21159
21160 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21161 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21162 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21163   echo $ECHO_N "(cached) $ECHO_C" >&6
21164 else
21165
21166
21167
21168   ac_ext=cc
21169 ac_cpp='$CXXCPP $CPPFLAGS'
21170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21173
21174   cat >conftest.$ac_ext <<_ACEOF
21175 #line $LINENO "configure"
21176 /* confdefs.h.  */
21177 _ACEOF
21178 cat confdefs.h >>conftest.$ac_ext
21179 cat >>conftest.$ac_ext <<_ACEOF
21180 /* end confdefs.h.  */
21181 #include <iterator>
21182 #ifdef HAVE_NAMESPACES
21183 using namespace std;
21184 #endif
21185 int
21186 main ()
21187 {
21188 iterator<int,int,int> t; return 0;
21189   ;
21190   return 0;
21191 }
21192 _ACEOF
21193 rm -f conftest.$ac_objext
21194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21195   (eval $ac_compile) 2>&5
21196   ac_status=$?
21197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198   (exit $ac_status); } &&
21199          { ac_try='test -s conftest.$ac_objext'
21200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21201   (eval $ac_try) 2>&5
21202   ac_status=$?
21203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204   (exit $ac_status); }; }; then
21205   ac_cv_cxx_have_std_iterator=yes
21206 else
21207   echo "$as_me: failed program was:" >&5
21208 sed 's/^/| /' conftest.$ac_ext >&5
21209
21210 ac_cv_cxx_have_std_iterator=no
21211 fi
21212 rm -f conftest.$ac_objext conftest.$ac_ext
21213   ac_ext=c
21214 ac_cpp='$CPP $CPPFLAGS'
21215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21218
21219
21220 fi
21221 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21222 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21223 if test "$ac_cv_cxx_have_std_iterator" = yes; then
21224
21225 cat >>confdefs.h <<\_ACEOF
21226 #define HAVE_STD_ITERATOR
21227 _ACEOF
21228
21229 fi
21230
21231 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21232 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21233 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21234   echo $ECHO_N "(cached) $ECHO_C" >&6
21235 else
21236
21237
21238
21239   ac_ext=cc
21240 ac_cpp='$CXXCPP $CPPFLAGS'
21241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21244
21245   cat >conftest.$ac_ext <<_ACEOF
21246 #line $LINENO "configure"
21247 /* confdefs.h.  */
21248 _ACEOF
21249 cat confdefs.h >>conftest.$ac_ext
21250 cat >>conftest.$ac_ext <<_ACEOF
21251 /* end confdefs.h.  */
21252 #include <iterator>
21253 #ifdef HAVE_NAMESPACES
21254 using namespace std;
21255 #endif
21256 int
21257 main ()
21258 {
21259 bidirectional_iterator<int,int> t; return 0;
21260   ;
21261   return 0;
21262 }
21263 _ACEOF
21264 rm -f conftest.$ac_objext
21265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21266   (eval $ac_compile) 2>&5
21267   ac_status=$?
21268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269   (exit $ac_status); } &&
21270          { ac_try='test -s conftest.$ac_objext'
21271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21272   (eval $ac_try) 2>&5
21273   ac_status=$?
21274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275   (exit $ac_status); }; }; then
21276   ac_cv_cxx_have_bi_iterator=yes
21277 else
21278   echo "$as_me: failed program was:" >&5
21279 sed 's/^/| /' conftest.$ac_ext >&5
21280
21281 ac_cv_cxx_have_bi_iterator=no
21282 fi
21283 rm -f conftest.$ac_objext conftest.$ac_ext
21284   ac_ext=c
21285 ac_cpp='$CPP $CPPFLAGS'
21286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21289
21290
21291 fi
21292 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21293 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21294 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21295
21296 cat >>confdefs.h <<\_ACEOF
21297 #define HAVE_BI_ITERATOR
21298 _ACEOF
21299
21300 fi
21301
21302 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21303 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21304 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21305   echo $ECHO_N "(cached) $ECHO_C" >&6
21306 else
21307
21308
21309
21310   ac_ext=cc
21311 ac_cpp='$CXXCPP $CPPFLAGS'
21312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21315
21316   cat >conftest.$ac_ext <<_ACEOF
21317 #line $LINENO "configure"
21318 /* confdefs.h.  */
21319 _ACEOF
21320 cat confdefs.h >>conftest.$ac_ext
21321 cat >>conftest.$ac_ext <<_ACEOF
21322 /* end confdefs.h.  */
21323 #include <iterator>
21324 #ifdef HAVE_NAMESPACES
21325 using namespace std;
21326 #endif
21327 int
21328 main ()
21329 {
21330 forward_iterator<int,int> t; return 0;
21331   ;
21332   return 0;
21333 }
21334 _ACEOF
21335 rm -f conftest.$ac_objext
21336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21337   (eval $ac_compile) 2>&5
21338   ac_status=$?
21339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340   (exit $ac_status); } &&
21341          { ac_try='test -s conftest.$ac_objext'
21342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21343   (eval $ac_try) 2>&5
21344   ac_status=$?
21345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346   (exit $ac_status); }; }; then
21347   ac_cv_cxx_have_fwd_iterator=yes
21348 else
21349   echo "$as_me: failed program was:" >&5
21350 sed 's/^/| /' conftest.$ac_ext >&5
21351
21352 ac_cv_cxx_have_fwd_iterator=no
21353 fi
21354 rm -f conftest.$ac_objext conftest.$ac_ext
21355   ac_ext=c
21356 ac_cpp='$CPP $CPPFLAGS'
21357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21360
21361
21362 fi
21363 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21364 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21365 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21366
21367 cat >>confdefs.h <<\_ACEOF
21368 #define HAVE_FWD_ITERATOR
21369 _ACEOF
21370
21371 fi
21372
21373
21374 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21375 # for constant arguments.  Useless!
21376 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21377 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21378 if test "${ac_cv_working_alloca_h+set}" = set; then
21379   echo $ECHO_N "(cached) $ECHO_C" >&6
21380 else
21381   cat >conftest.$ac_ext <<_ACEOF
21382 #line $LINENO "configure"
21383 /* confdefs.h.  */
21384 _ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h.  */
21388 #include <alloca.h>
21389 int
21390 main ()
21391 {
21392 char *p = (char *) alloca (2 * sizeof (int));
21393   ;
21394   return 0;
21395 }
21396 _ACEOF
21397 rm -f conftest.$ac_objext conftest$ac_exeext
21398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21399   (eval $ac_link) 2>&5
21400   ac_status=$?
21401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402   (exit $ac_status); } &&
21403          { ac_try='test -s conftest$ac_exeext'
21404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21405   (eval $ac_try) 2>&5
21406   ac_status=$?
21407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408   (exit $ac_status); }; }; then
21409   ac_cv_working_alloca_h=yes
21410 else
21411   echo "$as_me: failed program was:" >&5
21412 sed 's/^/| /' conftest.$ac_ext >&5
21413
21414 ac_cv_working_alloca_h=no
21415 fi
21416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21417 fi
21418 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21419 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21420 if test $ac_cv_working_alloca_h = yes; then
21421
21422 cat >>confdefs.h <<\_ACEOF
21423 #define HAVE_ALLOCA_H 1
21424 _ACEOF
21425
21426 fi
21427
21428 echo "$as_me:$LINENO: checking for alloca" >&5
21429 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21430 if test "${ac_cv_func_alloca_works+set}" = set; then
21431   echo $ECHO_N "(cached) $ECHO_C" >&6
21432 else
21433   cat >conftest.$ac_ext <<_ACEOF
21434 #line $LINENO "configure"
21435 /* confdefs.h.  */
21436 _ACEOF
21437 cat confdefs.h >>conftest.$ac_ext
21438 cat >>conftest.$ac_ext <<_ACEOF
21439 /* end confdefs.h.  */
21440 #ifdef __GNUC__
21441 # define alloca __builtin_alloca
21442 #else
21443 # ifdef _MSC_VER
21444 #  include <malloc.h>
21445 #  define alloca _alloca
21446 # else
21447 #  if HAVE_ALLOCA_H
21448 #   include <alloca.h>
21449 #  else
21450 #   ifdef _AIX
21451  #pragma alloca
21452 #   else
21453 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21454 char *alloca ();
21455 #    endif
21456 #   endif
21457 #  endif
21458 # endif
21459 #endif
21460
21461 int
21462 main ()
21463 {
21464 char *p = (char *) alloca (1);
21465   ;
21466   return 0;
21467 }
21468 _ACEOF
21469 rm -f conftest.$ac_objext conftest$ac_exeext
21470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21471   (eval $ac_link) 2>&5
21472   ac_status=$?
21473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474   (exit $ac_status); } &&
21475          { ac_try='test -s conftest$ac_exeext'
21476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21477   (eval $ac_try) 2>&5
21478   ac_status=$?
21479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480   (exit $ac_status); }; }; then
21481   ac_cv_func_alloca_works=yes
21482 else
21483   echo "$as_me: failed program was:" >&5
21484 sed 's/^/| /' conftest.$ac_ext >&5
21485
21486 ac_cv_func_alloca_works=no
21487 fi
21488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21489 fi
21490 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21491 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21492
21493 if test $ac_cv_func_alloca_works = yes; then
21494
21495 cat >>confdefs.h <<\_ACEOF
21496 #define HAVE_ALLOCA 1
21497 _ACEOF
21498
21499 else
21500   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21501 # that cause trouble.  Some versions do not even contain alloca or
21502 # contain a buggy version.  If you still want to use their alloca,
21503 # use ar to extract alloca.o from them instead of compiling alloca.c.
21504
21505 ALLOCA=alloca.$ac_objext
21506
21507 cat >>confdefs.h <<\_ACEOF
21508 #define C_ALLOCA 1
21509 _ACEOF
21510
21511
21512 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21513 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21514 if test "${ac_cv_os_cray+set}" = set; then
21515   echo $ECHO_N "(cached) $ECHO_C" >&6
21516 else
21517   cat >conftest.$ac_ext <<_ACEOF
21518 #line $LINENO "configure"
21519 /* confdefs.h.  */
21520 _ACEOF
21521 cat confdefs.h >>conftest.$ac_ext
21522 cat >>conftest.$ac_ext <<_ACEOF
21523 /* end confdefs.h.  */
21524 #if defined(CRAY) && ! defined(CRAY2)
21525 webecray
21526 #else
21527 wenotbecray
21528 #endif
21529
21530 _ACEOF
21531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21532   $EGREP "webecray" >/dev/null 2>&1; then
21533   ac_cv_os_cray=yes
21534 else
21535   ac_cv_os_cray=no
21536 fi
21537 rm -f conftest*
21538
21539 fi
21540 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21541 echo "${ECHO_T}$ac_cv_os_cray" >&6
21542 if test $ac_cv_os_cray = yes; then
21543   for ac_func in _getb67 GETB67 getb67; do
21544     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21545 echo "$as_me:$LINENO: checking for $ac_func" >&5
21546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21547 if eval "test \"\${$as_ac_var+set}\" = set"; then
21548   echo $ECHO_N "(cached) $ECHO_C" >&6
21549 else
21550   cat >conftest.$ac_ext <<_ACEOF
21551 #line $LINENO "configure"
21552 /* confdefs.h.  */
21553 _ACEOF
21554 cat confdefs.h >>conftest.$ac_ext
21555 cat >>conftest.$ac_ext <<_ACEOF
21556 /* end confdefs.h.  */
21557 /* System header to define __stub macros and hopefully few prototypes,
21558     which can conflict with char $ac_func (); below.
21559     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21560     <limits.h> exists even on freestanding compilers.  */
21561 #ifdef __STDC__
21562 # include <limits.h>
21563 #else
21564 # include <assert.h>
21565 #endif
21566 /* Override any gcc2 internal prototype to avoid an error.  */
21567 #ifdef __cplusplus
21568 extern "C"
21569 {
21570 #endif
21571 /* We use char because int might match the return type of a gcc2
21572    builtin and then its argument prototype would still apply.  */
21573 char $ac_func ();
21574 /* The GNU C library defines this for functions which it implements
21575     to always fail with ENOSYS.  Some functions are actually named
21576     something starting with __ and the normal name is an alias.  */
21577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21578 choke me
21579 #else
21580 char (*f) () = $ac_func;
21581 #endif
21582 #ifdef __cplusplus
21583 }
21584 #endif
21585
21586 int
21587 main ()
21588 {
21589 return f != $ac_func;
21590   ;
21591   return 0;
21592 }
21593 _ACEOF
21594 rm -f conftest.$ac_objext conftest$ac_exeext
21595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21596   (eval $ac_link) 2>&5
21597   ac_status=$?
21598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599   (exit $ac_status); } &&
21600          { ac_try='test -s conftest$ac_exeext'
21601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21602   (eval $ac_try) 2>&5
21603   ac_status=$?
21604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605   (exit $ac_status); }; }; then
21606   eval "$as_ac_var=yes"
21607 else
21608   echo "$as_me: failed program was:" >&5
21609 sed 's/^/| /' conftest.$ac_ext >&5
21610
21611 eval "$as_ac_var=no"
21612 fi
21613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21614 fi
21615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21616 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21617 if test `eval echo '${'$as_ac_var'}'` = yes; then
21618
21619 cat >>confdefs.h <<_ACEOF
21620 #define CRAY_STACKSEG_END $ac_func
21621 _ACEOF
21622
21623     break
21624 fi
21625
21626   done
21627 fi
21628
21629 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21630 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21631 if test "${ac_cv_c_stack_direction+set}" = set; then
21632   echo $ECHO_N "(cached) $ECHO_C" >&6
21633 else
21634   if test "$cross_compiling" = yes; then
21635   ac_cv_c_stack_direction=0
21636 else
21637   cat >conftest.$ac_ext <<_ACEOF
21638 #line $LINENO "configure"
21639 /* confdefs.h.  */
21640 _ACEOF
21641 cat confdefs.h >>conftest.$ac_ext
21642 cat >>conftest.$ac_ext <<_ACEOF
21643 /* end confdefs.h.  */
21644 int
21645 find_stack_direction ()
21646 {
21647   static char *addr = 0;
21648   auto char dummy;
21649   if (addr == 0)
21650     {
21651       addr = &dummy;
21652       return find_stack_direction ();
21653     }
21654   else
21655     return (&dummy > addr) ? 1 : -1;
21656 }
21657
21658 int
21659 main ()
21660 {
21661   exit (find_stack_direction () < 0);
21662 }
21663 _ACEOF
21664 rm -f conftest$ac_exeext
21665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21666   (eval $ac_link) 2>&5
21667   ac_status=$?
21668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21671   (eval $ac_try) 2>&5
21672   ac_status=$?
21673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674   (exit $ac_status); }; }; then
21675   ac_cv_c_stack_direction=1
21676 else
21677   echo "$as_me: program exited with status $ac_status" >&5
21678 echo "$as_me: failed program was:" >&5
21679 sed 's/^/| /' conftest.$ac_ext >&5
21680
21681 ( exit $ac_status )
21682 ac_cv_c_stack_direction=-1
21683 fi
21684 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21685 fi
21686 fi
21687 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21688 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21689
21690 cat >>confdefs.h <<_ACEOF
21691 #define STACK_DIRECTION $ac_cv_c_stack_direction
21692 _ACEOF
21693
21694
21695 fi
21696
21697 if test $ac_cv_c_compiler_gnu = yes; then
21698     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21699 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21700 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21701   echo $ECHO_N "(cached) $ECHO_C" >&6
21702 else
21703     ac_pattern="Autoconf.*'x'"
21704   cat >conftest.$ac_ext <<_ACEOF
21705 #line $LINENO "configure"
21706 /* confdefs.h.  */
21707 _ACEOF
21708 cat confdefs.h >>conftest.$ac_ext
21709 cat >>conftest.$ac_ext <<_ACEOF
21710 /* end confdefs.h.  */
21711 #include <sgtty.h>
21712 Autoconf TIOCGETP
21713 _ACEOF
21714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21715   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21716   ac_cv_prog_gcc_traditional=yes
21717 else
21718   ac_cv_prog_gcc_traditional=no
21719 fi
21720 rm -f conftest*
21721
21722
21723   if test $ac_cv_prog_gcc_traditional = no; then
21724     cat >conftest.$ac_ext <<_ACEOF
21725 #line $LINENO "configure"
21726 /* confdefs.h.  */
21727 _ACEOF
21728 cat confdefs.h >>conftest.$ac_ext
21729 cat >>conftest.$ac_ext <<_ACEOF
21730 /* end confdefs.h.  */
21731 #include <termio.h>
21732 Autoconf TCGETA
21733 _ACEOF
21734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21735   $EGREP "$ac_pattern" >/dev/null 2>&1; then
21736   ac_cv_prog_gcc_traditional=yes
21737 fi
21738 rm -f conftest*
21739
21740   fi
21741 fi
21742 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21743 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21744   if test $ac_cv_prog_gcc_traditional = yes; then
21745     CC="$CC -traditional"
21746   fi
21747 fi
21748
21749 echo "$as_me:$LINENO: checking for working memcmp" >&5
21750 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21751 if test "${ac_cv_func_memcmp_working+set}" = set; then
21752   echo $ECHO_N "(cached) $ECHO_C" >&6
21753 else
21754   if test "$cross_compiling" = yes; then
21755   ac_cv_func_memcmp_working=no
21756 else
21757   cat >conftest.$ac_ext <<_ACEOF
21758 #line $LINENO "configure"
21759 /* confdefs.h.  */
21760 _ACEOF
21761 cat confdefs.h >>conftest.$ac_ext
21762 cat >>conftest.$ac_ext <<_ACEOF
21763 /* end confdefs.h.  */
21764
21765 int
21766 main ()
21767 {
21768
21769   /* Some versions of memcmp are not 8-bit clean.  */
21770   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21771   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21772     exit (1);
21773
21774   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21775      or more and with at least one buffer not starting on a 4-byte boundary.
21776      William Lewis provided this test program.   */
21777   {
21778     char foo[21];
21779     char bar[21];
21780     int i;
21781     for (i = 0; i < 4; i++)
21782       {
21783         char *a = foo + i;
21784         char *b = bar + i;
21785         strcpy (a, "--------01111111");
21786         strcpy (b, "--------10000000");
21787         if (memcmp (a, b, 16) >= 0)
21788           exit (1);
21789       }
21790     exit (0);
21791   }
21792
21793   ;
21794   return 0;
21795 }
21796 _ACEOF
21797 rm -f conftest$ac_exeext
21798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21799   (eval $ac_link) 2>&5
21800   ac_status=$?
21801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21804   (eval $ac_try) 2>&5
21805   ac_status=$?
21806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807   (exit $ac_status); }; }; then
21808   ac_cv_func_memcmp_working=yes
21809 else
21810   echo "$as_me: program exited with status $ac_status" >&5
21811 echo "$as_me: failed program was:" >&5
21812 sed 's/^/| /' conftest.$ac_ext >&5
21813
21814 ( exit $ac_status )
21815 ac_cv_func_memcmp_working=no
21816 fi
21817 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21818 fi
21819 fi
21820 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21821 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21822 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21823
21824
21825
21826 for ac_header in stdlib.h unistd.h
21827 do
21828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21830   echo "$as_me:$LINENO: checking for $ac_header" >&5
21831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21833   echo $ECHO_N "(cached) $ECHO_C" >&6
21834 fi
21835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21837 else
21838   # Is the header compilable?
21839 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21840 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21841 cat >conftest.$ac_ext <<_ACEOF
21842 #line $LINENO "configure"
21843 /* confdefs.h.  */
21844 _ACEOF
21845 cat confdefs.h >>conftest.$ac_ext
21846 cat >>conftest.$ac_ext <<_ACEOF
21847 /* end confdefs.h.  */
21848 $ac_includes_default
21849 #include <$ac_header>
21850 _ACEOF
21851 rm -f conftest.$ac_objext
21852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21853   (eval $ac_compile) 2>&5
21854   ac_status=$?
21855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856   (exit $ac_status); } &&
21857          { ac_try='test -s conftest.$ac_objext'
21858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21859   (eval $ac_try) 2>&5
21860   ac_status=$?
21861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862   (exit $ac_status); }; }; then
21863   ac_header_compiler=yes
21864 else
21865   echo "$as_me: failed program was:" >&5
21866 sed 's/^/| /' conftest.$ac_ext >&5
21867
21868 ac_header_compiler=no
21869 fi
21870 rm -f conftest.$ac_objext conftest.$ac_ext
21871 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21872 echo "${ECHO_T}$ac_header_compiler" >&6
21873
21874 # Is the header present?
21875 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21877 cat >conftest.$ac_ext <<_ACEOF
21878 #line $LINENO "configure"
21879 /* confdefs.h.  */
21880 _ACEOF
21881 cat confdefs.h >>conftest.$ac_ext
21882 cat >>conftest.$ac_ext <<_ACEOF
21883 /* end confdefs.h.  */
21884 #include <$ac_header>
21885 _ACEOF
21886 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21887   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21888   ac_status=$?
21889   grep -v '^ *+' conftest.er1 >conftest.err
21890   rm -f conftest.er1
21891   cat conftest.err >&5
21892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893   (exit $ac_status); } >/dev/null; then
21894   if test -s conftest.err; then
21895     ac_cpp_err=$ac_c_preproc_warn_flag
21896   else
21897     ac_cpp_err=
21898   fi
21899 else
21900   ac_cpp_err=yes
21901 fi
21902 if test -z "$ac_cpp_err"; then
21903   ac_header_preproc=yes
21904 else
21905   echo "$as_me: failed program was:" >&5
21906 sed 's/^/| /' conftest.$ac_ext >&5
21907
21908   ac_header_preproc=no
21909 fi
21910 rm -f conftest.err conftest.$ac_ext
21911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21912 echo "${ECHO_T}$ac_header_preproc" >&6
21913
21914 # So?  What about this header?
21915 case $ac_header_compiler:$ac_header_preproc in
21916   yes:no )
21917     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21919     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21921     (
21922       cat <<\_ASBOX
21923 ## ------------------------------------ ##
21924 ## Report this to bug-autoconf@gnu.org. ##
21925 ## ------------------------------------ ##
21926 _ASBOX
21927     ) |
21928       sed "s/^/$as_me: WARNING:     /" >&2
21929     ;;
21930   no:yes )
21931     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21933     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21934 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21935     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21937     (
21938       cat <<\_ASBOX
21939 ## ------------------------------------ ##
21940 ## Report this to bug-autoconf@gnu.org. ##
21941 ## ------------------------------------ ##
21942 _ASBOX
21943     ) |
21944       sed "s/^/$as_me: WARNING:     /" >&2
21945     ;;
21946 esac
21947 echo "$as_me:$LINENO: checking for $ac_header" >&5
21948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21950   echo $ECHO_N "(cached) $ECHO_C" >&6
21951 else
21952   eval "$as_ac_Header=$ac_header_preproc"
21953 fi
21954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21955 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21956
21957 fi
21958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21959   cat >>confdefs.h <<_ACEOF
21960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21961 _ACEOF
21962
21963 fi
21964
21965 done
21966
21967
21968 for ac_func in getpagesize
21969 do
21970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21971 echo "$as_me:$LINENO: checking for $ac_func" >&5
21972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21973 if eval "test \"\${$as_ac_var+set}\" = set"; then
21974   echo $ECHO_N "(cached) $ECHO_C" >&6
21975 else
21976   cat >conftest.$ac_ext <<_ACEOF
21977 #line $LINENO "configure"
21978 /* confdefs.h.  */
21979 _ACEOF
21980 cat confdefs.h >>conftest.$ac_ext
21981 cat >>conftest.$ac_ext <<_ACEOF
21982 /* end confdefs.h.  */
21983 /* System header to define __stub macros and hopefully few prototypes,
21984     which can conflict with char $ac_func (); below.
21985     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21986     <limits.h> exists even on freestanding compilers.  */
21987 #ifdef __STDC__
21988 # include <limits.h>
21989 #else
21990 # include <assert.h>
21991 #endif
21992 /* Override any gcc2 internal prototype to avoid an error.  */
21993 #ifdef __cplusplus
21994 extern "C"
21995 {
21996 #endif
21997 /* We use char because int might match the return type of a gcc2
21998    builtin and then its argument prototype would still apply.  */
21999 char $ac_func ();
22000 /* The GNU C library defines this for functions which it implements
22001     to always fail with ENOSYS.  Some functions are actually named
22002     something starting with __ and the normal name is an alias.  */
22003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22004 choke me
22005 #else
22006 char (*f) () = $ac_func;
22007 #endif
22008 #ifdef __cplusplus
22009 }
22010 #endif
22011
22012 int
22013 main ()
22014 {
22015 return f != $ac_func;
22016   ;
22017   return 0;
22018 }
22019 _ACEOF
22020 rm -f conftest.$ac_objext conftest$ac_exeext
22021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22022   (eval $ac_link) 2>&5
22023   ac_status=$?
22024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025   (exit $ac_status); } &&
22026          { ac_try='test -s conftest$ac_exeext'
22027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22028   (eval $ac_try) 2>&5
22029   ac_status=$?
22030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031   (exit $ac_status); }; }; then
22032   eval "$as_ac_var=yes"
22033 else
22034   echo "$as_me: failed program was:" >&5
22035 sed 's/^/| /' conftest.$ac_ext >&5
22036
22037 eval "$as_ac_var=no"
22038 fi
22039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22040 fi
22041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22042 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22043 if test `eval echo '${'$as_ac_var'}'` = yes; then
22044   cat >>confdefs.h <<_ACEOF
22045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22046 _ACEOF
22047
22048 fi
22049 done
22050
22051 echo "$as_me:$LINENO: checking for working mmap" >&5
22052 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22053 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22054   echo $ECHO_N "(cached) $ECHO_C" >&6
22055 else
22056   if test "$cross_compiling" = yes; then
22057   ac_cv_func_mmap_fixed_mapped=no
22058 else
22059   cat >conftest.$ac_ext <<_ACEOF
22060 #line $LINENO "configure"
22061 /* confdefs.h.  */
22062 _ACEOF
22063 cat confdefs.h >>conftest.$ac_ext
22064 cat >>conftest.$ac_ext <<_ACEOF
22065 /* end confdefs.h.  */
22066 $ac_includes_default
22067 /* malloc might have been renamed as rpl_malloc. */
22068 #undef malloc
22069
22070 /* Thanks to Mike Haertel and Jim Avera for this test.
22071    Here is a matrix of mmap possibilities:
22072         mmap private not fixed
22073         mmap private fixed at somewhere currently unmapped
22074         mmap private fixed at somewhere already mapped
22075         mmap shared not fixed
22076         mmap shared fixed at somewhere currently unmapped
22077         mmap shared fixed at somewhere already mapped
22078    For private mappings, we should verify that changes cannot be read()
22079    back from the file, nor mmap's back from the file at a different
22080    address.  (There have been systems where private was not correctly
22081    implemented like the infamous i386 svr4.0, and systems where the
22082    VM page cache was not coherent with the file system buffer cache
22083    like early versions of FreeBSD and possibly contemporary NetBSD.)
22084    For shared mappings, we should conversely verify that changes get
22085    propagated back to all the places they're supposed to be.
22086
22087    Grep wants private fixed already mapped.
22088    The main things grep needs to know about mmap are:
22089    * does it exist and is it safe to write into the mmap'd area
22090    * how to use it (BSD variants)  */
22091
22092 #include <fcntl.h>
22093 #include <sys/mman.h>
22094
22095 #if !STDC_HEADERS && !HAVE_STDLIB_H
22096 char *malloc ();
22097 #endif
22098
22099 /* This mess was copied from the GNU getpagesize.h.  */
22100 #if !HAVE_GETPAGESIZE
22101 /* Assume that all systems that can run configure have sys/param.h.  */
22102 # if !HAVE_SYS_PARAM_H
22103 #  define HAVE_SYS_PARAM_H 1
22104 # endif
22105
22106 # ifdef _SC_PAGESIZE
22107 #  define getpagesize() sysconf(_SC_PAGESIZE)
22108 # else /* no _SC_PAGESIZE */
22109 #  if HAVE_SYS_PARAM_H
22110 #   include <sys/param.h>
22111 #   ifdef EXEC_PAGESIZE
22112 #    define getpagesize() EXEC_PAGESIZE
22113 #   else /* no EXEC_PAGESIZE */
22114 #    ifdef NBPG
22115 #     define getpagesize() NBPG * CLSIZE
22116 #     ifndef CLSIZE
22117 #      define CLSIZE 1
22118 #     endif /* no CLSIZE */
22119 #    else /* no NBPG */
22120 #     ifdef NBPC
22121 #      define getpagesize() NBPC
22122 #     else /* no NBPC */
22123 #      ifdef PAGESIZE
22124 #       define getpagesize() PAGESIZE
22125 #      endif /* PAGESIZE */
22126 #     endif /* no NBPC */
22127 #    endif /* no NBPG */
22128 #   endif /* no EXEC_PAGESIZE */
22129 #  else /* no HAVE_SYS_PARAM_H */
22130 #   define getpagesize() 8192   /* punt totally */
22131 #  endif /* no HAVE_SYS_PARAM_H */
22132 # endif /* no _SC_PAGESIZE */
22133
22134 #endif /* no HAVE_GETPAGESIZE */
22135
22136 int
22137 main ()
22138 {
22139   char *data, *data2, *data3;
22140   int i, pagesize;
22141   int fd;
22142
22143   pagesize = getpagesize ();
22144
22145   /* First, make a file with some known garbage in it. */
22146   data = (char *) malloc (pagesize);
22147   if (!data)
22148     exit (1);
22149   for (i = 0; i < pagesize; ++i)
22150     *(data + i) = rand ();
22151   umask (0);
22152   fd = creat ("conftest.mmap", 0600);
22153   if (fd < 0)
22154     exit (1);
22155   if (write (fd, data, pagesize) != pagesize)
22156     exit (1);
22157   close (fd);
22158
22159   /* Next, try to mmap the file at a fixed address which already has
22160      something else allocated at it.  If we can, also make sure that
22161      we see the same garbage.  */
22162   fd = open ("conftest.mmap", O_RDWR);
22163   if (fd < 0)
22164     exit (1);
22165   data2 = (char *) malloc (2 * pagesize);
22166   if (!data2)
22167     exit (1);
22168   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22169   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22170                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22171     exit (1);
22172   for (i = 0; i < pagesize; ++i)
22173     if (*(data + i) != *(data2 + i))
22174       exit (1);
22175
22176   /* Finally, make sure that changes to the mapped area do not
22177      percolate back to the file as seen by read().  (This is a bug on
22178      some variants of i386 svr4.0.)  */
22179   for (i = 0; i < pagesize; ++i)
22180     *(data2 + i) = *(data2 + i) + 1;
22181   data3 = (char *) malloc (pagesize);
22182   if (!data3)
22183     exit (1);
22184   if (read (fd, data3, pagesize) != pagesize)
22185     exit (1);
22186   for (i = 0; i < pagesize; ++i)
22187     if (*(data + i) != *(data3 + i))
22188       exit (1);
22189   close (fd);
22190   exit (0);
22191 }
22192 _ACEOF
22193 rm -f conftest$ac_exeext
22194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22195   (eval $ac_link) 2>&5
22196   ac_status=$?
22197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22198   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22200   (eval $ac_try) 2>&5
22201   ac_status=$?
22202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203   (exit $ac_status); }; }; then
22204   ac_cv_func_mmap_fixed_mapped=yes
22205 else
22206   echo "$as_me: program exited with status $ac_status" >&5
22207 echo "$as_me: failed program was:" >&5
22208 sed 's/^/| /' conftest.$ac_ext >&5
22209
22210 ( exit $ac_status )
22211 ac_cv_func_mmap_fixed_mapped=no
22212 fi
22213 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22214 fi
22215 fi
22216 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22217 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22218 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22219
22220 cat >>confdefs.h <<\_ACEOF
22221 #define HAVE_MMAP 1
22222 _ACEOF
22223
22224 fi
22225 rm -f conftest.mmap
22226
22227 echo "$as_me:$LINENO: checking for mmap of files" >&5
22228 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22229 if test "${ac_cv_func_mmap_file+set}" = set; then
22230   echo $ECHO_N "(cached) $ECHO_C" >&6
22231 else
22232
22233
22234   ac_ext=c
22235 ac_cpp='$CPP $CPPFLAGS'
22236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22239
22240   if test "$cross_compiling" = yes; then
22241   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22242 See \`config.log' for more details." >&5
22243 echo "$as_me: error: cannot run test program while cross compiling
22244 See \`config.log' for more details." >&2;}
22245    { (exit 1); exit 1; }; }
22246 else
22247   cat >conftest.$ac_ext <<_ACEOF
22248 #line $LINENO "configure"
22249 /* confdefs.h.  */
22250 _ACEOF
22251 cat confdefs.h >>conftest.$ac_ext
22252 cat >>conftest.$ac_ext <<_ACEOF
22253 /* end confdefs.h.  */
22254
22255 #ifdef HAVE_SYS_MMAN_H
22256 #include <sys/mman.h>
22257 #endif
22258
22259 #ifdef HAVE_SYS_TYPES_H
22260 #include <sys/types.h>
22261 #endif
22262
22263 #ifdef HAVE_FCNTL_H
22264 #include <fcntl.h>
22265 #endif
22266
22267   int fd;
22268   int main () {
22269   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22270 _ACEOF
22271 rm -f conftest$ac_exeext
22272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22273   (eval $ac_link) 2>&5
22274   ac_status=$?
22275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22278   (eval $ac_try) 2>&5
22279   ac_status=$?
22280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281   (exit $ac_status); }; }; then
22282   ac_cv_func_mmap_file=yes
22283 else
22284   echo "$as_me: program exited with status $ac_status" >&5
22285 echo "$as_me: failed program was:" >&5
22286 sed 's/^/| /' conftest.$ac_ext >&5
22287
22288 ( exit $ac_status )
22289 ac_cv_func_mmap_file=no
22290 fi
22291 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22292 fi
22293   ac_ext=c
22294 ac_cpp='$CPP $CPPFLAGS'
22295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22298
22299
22300 fi
22301 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22302 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22303 if test "$ac_cv_func_mmap_file" = yes; then
22304    cat >>confdefs.h <<\_ACEOF
22305 #define HAVE_MMAP_FILE 1
22306 _ACEOF
22307
22308    MMAP_FILE=yes
22309
22310 fi
22311
22312 if test ${ac_cv_func_mmap_file} = "no"
22313 then
22314         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22315 echo "$as_me: error: mmap() of files required but not found" >&2;}
22316    { (exit 1); exit 1; }; }
22317 fi
22318 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22319 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22320 if test "${ac_cv_header_mmap_anon+set}" = set; then
22321   echo $ECHO_N "(cached) $ECHO_C" >&6
22322 else
22323
22324
22325   ac_ext=c
22326 ac_cpp='$CPP $CPPFLAGS'
22327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22330
22331   cat >conftest.$ac_ext <<_ACEOF
22332 #line $LINENO "configure"
22333 /* confdefs.h.  */
22334 _ACEOF
22335 cat confdefs.h >>conftest.$ac_ext
22336 cat >>conftest.$ac_ext <<_ACEOF
22337 /* end confdefs.h.  */
22338 #include <sys/mman.h>
22339   #include <unistd.h>
22340   #include <fcntl.h>
22341 int
22342 main ()
22343 {
22344 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22345   ;
22346   return 0;
22347 }
22348 _ACEOF
22349 rm -f conftest.$ac_objext
22350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22351   (eval $ac_compile) 2>&5
22352   ac_status=$?
22353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354   (exit $ac_status); } &&
22355          { ac_try='test -s conftest.$ac_objext'
22356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22357   (eval $ac_try) 2>&5
22358   ac_status=$?
22359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360   (exit $ac_status); }; }; then
22361   ac_cv_header_mmap_anon=yes
22362 else
22363   echo "$as_me: failed program was:" >&5
22364 sed 's/^/| /' conftest.$ac_ext >&5
22365
22366 ac_cv_header_mmap_anon=no
22367 fi
22368 rm -f conftest.$ac_objext conftest.$ac_ext
22369   ac_ext=c
22370 ac_cpp='$CPP $CPPFLAGS'
22371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22374
22375
22376 fi
22377 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22378 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22379 if test "$ac_cv_header_mmap_anon" = yes; then
22380    cat >>confdefs.h <<\_ACEOF
22381 #define HAVE_MMAP_ANONYMOUS 1
22382 _ACEOF
22383
22384 fi
22385
22386 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22387 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22388 if test "${ac_cv_type_signal+set}" = set; then
22389   echo $ECHO_N "(cached) $ECHO_C" >&6
22390 else
22391   cat >conftest.$ac_ext <<_ACEOF
22392 #line $LINENO "configure"
22393 /* confdefs.h.  */
22394 _ACEOF
22395 cat confdefs.h >>conftest.$ac_ext
22396 cat >>conftest.$ac_ext <<_ACEOF
22397 /* end confdefs.h.  */
22398 #include <sys/types.h>
22399 #include <signal.h>
22400 #ifdef signal
22401 # undef signal
22402 #endif
22403 #ifdef __cplusplus
22404 extern "C" void (*signal (int, void (*)(int)))(int);
22405 #else
22406 void (*signal ()) ();
22407 #endif
22408
22409 int
22410 main ()
22411 {
22412 int i;
22413   ;
22414   return 0;
22415 }
22416 _ACEOF
22417 rm -f conftest.$ac_objext
22418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22419   (eval $ac_compile) 2>&5
22420   ac_status=$?
22421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422   (exit $ac_status); } &&
22423          { ac_try='test -s conftest.$ac_objext'
22424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22425   (eval $ac_try) 2>&5
22426   ac_status=$?
22427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428   (exit $ac_status); }; }; then
22429   ac_cv_type_signal=void
22430 else
22431   echo "$as_me: failed program was:" >&5
22432 sed 's/^/| /' conftest.$ac_ext >&5
22433
22434 ac_cv_type_signal=int
22435 fi
22436 rm -f conftest.$ac_objext conftest.$ac_ext
22437 fi
22438 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22439 echo "${ECHO_T}$ac_cv_type_signal" >&6
22440
22441 cat >>confdefs.h <<_ACEOF
22442 #define RETSIGTYPE $ac_cv_type_signal
22443 _ACEOF
22444
22445
22446
22447
22448
22449
22450
22451
22452
22453
22454
22455 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22456 do
22457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22458 echo "$as_me:$LINENO: checking for $ac_func" >&5
22459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22460 if eval "test \"\${$as_ac_var+set}\" = set"; then
22461   echo $ECHO_N "(cached) $ECHO_C" >&6
22462 else
22463   cat >conftest.$ac_ext <<_ACEOF
22464 #line $LINENO "configure"
22465 /* confdefs.h.  */
22466 _ACEOF
22467 cat confdefs.h >>conftest.$ac_ext
22468 cat >>conftest.$ac_ext <<_ACEOF
22469 /* end confdefs.h.  */
22470 /* System header to define __stub macros and hopefully few prototypes,
22471     which can conflict with char $ac_func (); below.
22472     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22473     <limits.h> exists even on freestanding compilers.  */
22474 #ifdef __STDC__
22475 # include <limits.h>
22476 #else
22477 # include <assert.h>
22478 #endif
22479 /* Override any gcc2 internal prototype to avoid an error.  */
22480 #ifdef __cplusplus
22481 extern "C"
22482 {
22483 #endif
22484 /* We use char because int might match the return type of a gcc2
22485    builtin and then its argument prototype would still apply.  */
22486 char $ac_func ();
22487 /* The GNU C library defines this for functions which it implements
22488     to always fail with ENOSYS.  Some functions are actually named
22489     something starting with __ and the normal name is an alias.  */
22490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22491 choke me
22492 #else
22493 char (*f) () = $ac_func;
22494 #endif
22495 #ifdef __cplusplus
22496 }
22497 #endif
22498
22499 int
22500 main ()
22501 {
22502 return f != $ac_func;
22503   ;
22504   return 0;
22505 }
22506 _ACEOF
22507 rm -f conftest.$ac_objext conftest$ac_exeext
22508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22509   (eval $ac_link) 2>&5
22510   ac_status=$?
22511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512   (exit $ac_status); } &&
22513          { ac_try='test -s conftest$ac_exeext'
22514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22515   (eval $ac_try) 2>&5
22516   ac_status=$?
22517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518   (exit $ac_status); }; }; then
22519   eval "$as_ac_var=yes"
22520 else
22521   echo "$as_me: failed program was:" >&5
22522 sed 's/^/| /' conftest.$ac_ext >&5
22523
22524 eval "$as_ac_var=no"
22525 fi
22526 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22527 fi
22528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22530 if test `eval echo '${'$as_ac_var'}'` = yes; then
22531   cat >>confdefs.h <<_ACEOF
22532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22533 _ACEOF
22534
22535 fi
22536 done
22537
22538
22539
22540 echo "$as_me:$LINENO: checking for mmap" >&5
22541 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22542 if test "${ac_cv_func_mmap+set}" = set; then
22543   echo $ECHO_N "(cached) $ECHO_C" >&6
22544 else
22545   cat >conftest.$ac_ext <<_ACEOF
22546 #line $LINENO "configure"
22547 /* confdefs.h.  */
22548 _ACEOF
22549 cat confdefs.h >>conftest.$ac_ext
22550 cat >>conftest.$ac_ext <<_ACEOF
22551 /* end confdefs.h.  */
22552 /* System header to define __stub macros and hopefully few prototypes,
22553     which can conflict with char mmap (); below.
22554     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22555     <limits.h> exists even on freestanding compilers.  */
22556 #ifdef __STDC__
22557 # include <limits.h>
22558 #else
22559 # include <assert.h>
22560 #endif
22561 /* Override any gcc2 internal prototype to avoid an error.  */
22562 #ifdef __cplusplus
22563 extern "C"
22564 {
22565 #endif
22566 /* We use char because int might match the return type of a gcc2
22567    builtin and then its argument prototype would still apply.  */
22568 char mmap ();
22569 /* The GNU C library defines this for functions which it implements
22570     to always fail with ENOSYS.  Some functions are actually named
22571     something starting with __ and the normal name is an alias.  */
22572 #if defined (__stub_mmap) || defined (__stub___mmap)
22573 choke me
22574 #else
22575 char (*f) () = mmap;
22576 #endif
22577 #ifdef __cplusplus
22578 }
22579 #endif
22580
22581 int
22582 main ()
22583 {
22584 return f != mmap;
22585   ;
22586   return 0;
22587 }
22588 _ACEOF
22589 rm -f conftest.$ac_objext conftest$ac_exeext
22590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22591   (eval $ac_link) 2>&5
22592   ac_status=$?
22593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594   (exit $ac_status); } &&
22595          { ac_try='test -s conftest$ac_exeext'
22596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22597   (eval $ac_try) 2>&5
22598   ac_status=$?
22599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600   (exit $ac_status); }; }; then
22601   ac_cv_func_mmap=yes
22602 else
22603   echo "$as_me: failed program was:" >&5
22604 sed 's/^/| /' conftest.$ac_ext >&5
22605
22606 ac_cv_func_mmap=no
22607 fi
22608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22609 fi
22610 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22611 echo "${ECHO_T}$ac_cv_func_mmap" >&6
22612 if test $ac_cv_func_mmap = yes; then
22613   :
22614 else
22615   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22616 echo "$as_me: error: Function mmap() required but not found" >&2;}
22617    { (exit 1); exit 1; }; }
22618 fi
22619
22620 echo "$as_me:$LINENO: checking for mprotect" >&5
22621 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22622 if test "${ac_cv_func_mprotect+set}" = set; then
22623   echo $ECHO_N "(cached) $ECHO_C" >&6
22624 else
22625   cat >conftest.$ac_ext <<_ACEOF
22626 #line $LINENO "configure"
22627 /* confdefs.h.  */
22628 _ACEOF
22629 cat confdefs.h >>conftest.$ac_ext
22630 cat >>conftest.$ac_ext <<_ACEOF
22631 /* end confdefs.h.  */
22632 /* System header to define __stub macros and hopefully few prototypes,
22633     which can conflict with char mprotect (); below.
22634     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22635     <limits.h> exists even on freestanding compilers.  */
22636 #ifdef __STDC__
22637 # include <limits.h>
22638 #else
22639 # include <assert.h>
22640 #endif
22641 /* Override any gcc2 internal prototype to avoid an error.  */
22642 #ifdef __cplusplus
22643 extern "C"
22644 {
22645 #endif
22646 /* We use char because int might match the return type of a gcc2
22647    builtin and then its argument prototype would still apply.  */
22648 char mprotect ();
22649 /* The GNU C library defines this for functions which it implements
22650     to always fail with ENOSYS.  Some functions are actually named
22651     something starting with __ and the normal name is an alias.  */
22652 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22653 choke me
22654 #else
22655 char (*f) () = mprotect;
22656 #endif
22657 #ifdef __cplusplus
22658 }
22659 #endif
22660
22661 int
22662 main ()
22663 {
22664 return f != mprotect;
22665   ;
22666   return 0;
22667 }
22668 _ACEOF
22669 rm -f conftest.$ac_objext conftest$ac_exeext
22670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22671   (eval $ac_link) 2>&5
22672   ac_status=$?
22673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674   (exit $ac_status); } &&
22675          { ac_try='test -s conftest$ac_exeext'
22676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22677   (eval $ac_try) 2>&5
22678   ac_status=$?
22679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680   (exit $ac_status); }; }; then
22681   ac_cv_func_mprotect=yes
22682 else
22683   echo "$as_me: failed program was:" >&5
22684 sed 's/^/| /' conftest.$ac_ext >&5
22685
22686 ac_cv_func_mprotect=no
22687 fi
22688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22689 fi
22690 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22691 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22692 if test $ac_cv_func_mprotect = yes; then
22693   :
22694 else
22695   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22696 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22697    { (exit 1); exit 1; }; }
22698 fi
22699
22700
22701
22702 # Check whether --enable-purify or --disable-purify was given.
22703 if test "${enable_purify+set}" = set; then
22704   enableval="$enable_purify"
22705
22706 else
22707   enableval="no"
22708 fi;
22709 if test ${enableval} = "no"
22710 then
22711         ENABLE_PURIFY=
22712
22713 else
22714         ENABLE_PURIFY=ENABLE_PURIFY=1
22715
22716 fi
22717
22718 # Check whether --enable-optimized or --disable-optimized was given.
22719 if test "${enable_optimized+set}" = set; then
22720   enableval="$enable_optimized"
22721
22722 else
22723   enableval=no
22724 fi;
22725 if test ${enableval} = "no"
22726 then
22727         ENABLE_OPTIMIZED=
22728
22729 else
22730         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22731
22732 fi
22733
22734 # Check whether --enable-spec or --disable-spec was given.
22735 if test "${enable_spec+set}" = set; then
22736   enableval="$enable_spec"
22737
22738 else
22739   enableval=no
22740 fi;
22741 if test ${enableval} = "no"
22742 then
22743         USE_SPEC=
22744
22745 else
22746         USE_SPEC=USE_SPEC=1
22747
22748 fi
22749
22750 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22751 if test "${enable_precompiled_bytecode+set}" = set; then
22752   enableval="$enable_precompiled_bytecode"
22753
22754 else
22755   enableval=no
22756 fi;
22757 if test ${enableval} = "no"
22758 then
22759         UPB=
22760
22761 else
22762         UPB=USE_PRECOMPILED_BYTECODE=1
22763
22764 fi
22765
22766
22767 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22768 if test "${enable_llc_diffs+set}" = set; then
22769   enableval="$enable_llc_diffs"
22770
22771 else
22772   enableval=yes
22773 fi;
22774 if test ${enableval} = "no"
22775 then
22776         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22777
22778 else
22779         DISABLE_LLC_DIFFS=
22780
22781 fi
22782
22783 # Check whether --enable-jit or --disable-jit was given.
22784 if test "${enable_jit+set}" = set; then
22785   enableval="$enable_jit"
22786
22787 else
22788   enableval=default
22789 fi;
22790
22791 if test ${enableval} = "no"
22792 then
22793         JIT=
22794
22795 else
22796         case $target in
22797                 *i*86*)
22798                         JIT=TARGET_HAS_JIT=1
22799
22800                         ;;
22801                 *sparc*)
22802                         JIT=TARGET_HAS_JIT=1
22803
22804                         ;;
22805                 *)
22806                         JIT=
22807
22808                         ;;
22809         esac
22810 fi
22811
22812
22813
22814 # Check whether --with-spec or --without-spec was given.
22815 if test "${with_spec+set}" = set; then
22816   withval="$with_spec"
22817   SPEC_ROOT=$withval
22818
22819 else
22820   SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22821
22822 fi;
22823
22824
22825 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22826 if test "${with_llvmgccdir+set}" = set; then
22827   withval="$with_llvmgccdir"
22828   LLVMGCCDIR=$withval
22829
22830 fi;
22831
22832
22833 # Check whether --with-bcrepos or --without-bcrepos was given.
22834 if test "${with_bcrepos+set}" = set; then
22835   withval="$with_bcrepos"
22836   BCR=$withval
22837
22838 else
22839   BCR=/home/vadve/lattner/LLVMPrograms
22840
22841 fi;
22842
22843
22844 # Check whether --with-papi or --without-papi was given.
22845 if test "${with_papi+set}" = set; then
22846   withval="$with_papi"
22847   PAPIDIR=$withval
22848
22849 else
22850   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22851
22852 fi;
22853
22854
22855 # Check whether --with-purify or --without-purify was given.
22856 if test "${with_purify+set}" = set; then
22857   withval="$with_purify"
22858   PURIFY=$withval
22859
22860 fi;
22861
22862
22863           ac_config_files="$ac_config_files Makefile.config"
22864 cat >confcache <<\_ACEOF
22865 # This file is a shell script that caches the results of configure
22866 # tests run on this system so they can be shared between configure
22867 # scripts and configure runs, see configure's option --config-cache.
22868 # It is not useful on other systems.  If it contains results you don't
22869 # want to keep, you may remove or edit it.
22870 #
22871 # config.status only pays attention to the cache file if you give it
22872 # the --recheck option to rerun configure.
22873 #
22874 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22875 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22876 # following values.
22877
22878 _ACEOF
22879
22880 # The following way of writing the cache mishandles newlines in values,
22881 # but we know of no workaround that is simple, portable, and efficient.
22882 # So, don't put newlines in cache variables' values.
22883 # Ultrix sh set writes to stderr and can't be redirected directly,
22884 # and sets the high bit in the cache file unless we assign to the vars.
22885 {
22886   (set) 2>&1 |
22887     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22888     *ac_space=\ *)
22889       # `set' does not quote correctly, so add quotes (double-quote
22890       # substitution turns \\\\ into \\, and sed turns \\ into \).
22891       sed -n \
22892         "s/'/'\\\\''/g;
22893           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22894       ;;
22895     *)
22896       # `set' quotes correctly as required by POSIX, so do not add quotes.
22897       sed -n \
22898         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22899       ;;
22900     esac;
22901 } |
22902   sed '
22903      t clear
22904      : clear
22905      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22906      t end
22907      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22908      : end' >>confcache
22909 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22910   if test -w $cache_file; then
22911     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22912     cat confcache >$cache_file
22913   else
22914     echo "not updating unwritable cache $cache_file"
22915   fi
22916 fi
22917 rm -f confcache
22918
22919 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22920 # Let make expand exec_prefix.
22921 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22922
22923 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22924 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22925 # trailing colons and then remove the whole line if VPATH becomes empty
22926 # (actually we leave an empty line to preserve line numbers).
22927 if test "x$srcdir" = x.; then
22928   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22929 s/:*\$(srcdir):*/:/;
22930 s/:*\${srcdir}:*/:/;
22931 s/:*@srcdir@:*/:/;
22932 s/^\([^=]*=[    ]*\):*/\1/;
22933 s/:*$//;
22934 s/^[^=]*=[      ]*$//;
22935 }'
22936 fi
22937
22938 DEFS=-DHAVE_CONFIG_H
22939
22940 ac_libobjs=
22941 ac_ltlibobjs=
22942 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22943   # 1. Remove the extension, and $U if already installed.
22944   ac_i=`echo "$ac_i" |
22945          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22946   # 2. Add them.
22947   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22948   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22949 done
22950 LIBOBJS=$ac_libobjs
22951
22952 LTLIBOBJS=$ac_ltlibobjs
22953
22954
22955
22956 : ${CONFIG_STATUS=./config.status}
22957 ac_clean_files_save=$ac_clean_files
22958 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22959 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22960 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22961 cat >$CONFIG_STATUS <<_ACEOF
22962 #! $SHELL
22963 # Generated by $as_me.
22964 # Run this file to recreate the current configuration.
22965 # Compiler output produced by configure, useful for debugging
22966 # configure, is in config.log if it exists.
22967
22968 debug=false
22969 ac_cs_recheck=false
22970 ac_cs_silent=false
22971 SHELL=\${CONFIG_SHELL-$SHELL}
22972 _ACEOF
22973
22974 cat >>$CONFIG_STATUS <<\_ACEOF
22975 ## --------------------- ##
22976 ## M4sh Initialization.  ##
22977 ## --------------------- ##
22978
22979 # Be Bourne compatible
22980 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22981   emulate sh
22982   NULLCMD=:
22983   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22984   # is contrary to our usage.  Disable this feature.
22985   alias -g '${1+"$@"}'='"$@"'
22986 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22987   set -o posix
22988 fi
22989
22990 # Support unset when possible.
22991 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22992   as_unset=unset
22993 else
22994   as_unset=false
22995 fi
22996
22997
22998 # Work around bugs in pre-3.0 UWIN ksh.
22999 $as_unset ENV MAIL MAILPATH
23000 PS1='$ '
23001 PS2='> '
23002 PS4='+ '
23003
23004 # NLS nuisances.
23005 for as_var in \
23006   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23007   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23008   LC_TELEPHONE LC_TIME
23009 do
23010   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23011     eval $as_var=C; export $as_var
23012   else
23013     $as_unset $as_var
23014   fi
23015 done
23016
23017 # Required to use basename.
23018 if expr a : '\(a\)' >/dev/null 2>&1; then
23019   as_expr=expr
23020 else
23021   as_expr=false
23022 fi
23023
23024 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23025   as_basename=basename
23026 else
23027   as_basename=false
23028 fi
23029
23030
23031 # Name of the executable.
23032 as_me=`$as_basename "$0" ||
23033 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23034          X"$0" : 'X\(//\)$' \| \
23035          X"$0" : 'X\(/\)$' \| \
23036          .     : '\(.\)' 2>/dev/null ||
23037 echo X/"$0" |
23038     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23039           /^X\/\(\/\/\)$/{ s//\1/; q; }
23040           /^X\/\(\/\).*/{ s//\1/; q; }
23041           s/.*/./; q'`
23042
23043
23044 # PATH needs CR, and LINENO needs CR and PATH.
23045 # Avoid depending upon Character Ranges.
23046 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23047 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23048 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23049 as_cr_digits='0123456789'
23050 as_cr_alnum=$as_cr_Letters$as_cr_digits
23051
23052 # The user is always right.
23053 if test "${PATH_SEPARATOR+set}" != set; then
23054   echo "#! /bin/sh" >conf$$.sh
23055   echo  "exit 0"   >>conf$$.sh
23056   chmod +x conf$$.sh
23057   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23058     PATH_SEPARATOR=';'
23059   else
23060     PATH_SEPARATOR=:
23061   fi
23062   rm -f conf$$.sh
23063 fi
23064
23065
23066   as_lineno_1=$LINENO
23067   as_lineno_2=$LINENO
23068   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23069   test "x$as_lineno_1" != "x$as_lineno_2" &&
23070   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23071   # Find who we are.  Look in the path if we contain no path at all
23072   # relative or not.
23073   case $0 in
23074     *[\\/]* ) as_myself=$0 ;;
23075     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23076 for as_dir in $PATH
23077 do
23078   IFS=$as_save_IFS
23079   test -z "$as_dir" && as_dir=.
23080   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23081 done
23082
23083        ;;
23084   esac
23085   # We did not find ourselves, most probably we were run as `sh COMMAND'
23086   # in which case we are not to be found in the path.
23087   if test "x$as_myself" = x; then
23088     as_myself=$0
23089   fi
23090   if test ! -f "$as_myself"; then
23091     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23092 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23093    { (exit 1); exit 1; }; }
23094   fi
23095   case $CONFIG_SHELL in
23096   '')
23097     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23098 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23099 do
23100   IFS=$as_save_IFS
23101   test -z "$as_dir" && as_dir=.
23102   for as_base in sh bash ksh sh5; do
23103          case $as_dir in
23104          /*)
23105            if ("$as_dir/$as_base" -c '
23106   as_lineno_1=$LINENO
23107   as_lineno_2=$LINENO
23108   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23109   test "x$as_lineno_1" != "x$as_lineno_2" &&
23110   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23111              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23112              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23113              CONFIG_SHELL=$as_dir/$as_base
23114              export CONFIG_SHELL
23115              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23116            fi;;
23117          esac
23118        done
23119 done
23120 ;;
23121   esac
23122
23123   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23124   # uniformly replaced by the line number.  The first 'sed' inserts a
23125   # line-number line before each line; the second 'sed' does the real
23126   # work.  The second script uses 'N' to pair each line-number line
23127   # with the numbered line, and appends trailing '-' during
23128   # substitution so that $LINENO is not a special case at line end.
23129   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23130   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23131   sed '=' <$as_myself |
23132     sed '
23133       N
23134       s,$,-,
23135       : loop
23136       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23137       t loop
23138       s,-$,,
23139       s,^['$as_cr_digits']*\n,,
23140     ' >$as_me.lineno &&
23141   chmod +x $as_me.lineno ||
23142     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23143 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23144    { (exit 1); exit 1; }; }
23145
23146   # Don't try to exec as it changes $[0], causing all sort of problems
23147   # (the dirname of $[0] is not the place where we might find the
23148   # original and so on.  Autoconf is especially sensible to this).
23149   . ./$as_me.lineno
23150   # Exit status is that of the last command.
23151   exit
23152 }
23153
23154
23155 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23156   *c*,-n*) ECHO_N= ECHO_C='
23157 ' ECHO_T='      ' ;;
23158   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23159   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23160 esac
23161
23162 if expr a : '\(a\)' >/dev/null 2>&1; then
23163   as_expr=expr
23164 else
23165   as_expr=false
23166 fi
23167
23168 rm -f conf$$ conf$$.exe conf$$.file
23169 echo >conf$$.file
23170 if ln -s conf$$.file conf$$ 2>/dev/null; then
23171   # We could just check for DJGPP; but this test a) works b) is more generic
23172   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23173   if test -f conf$$.exe; then
23174     # Don't use ln at all; we don't have any links
23175     as_ln_s='cp -p'
23176   else
23177     as_ln_s='ln -s'
23178   fi
23179 elif ln conf$$.file conf$$ 2>/dev/null; then
23180   as_ln_s=ln
23181 else
23182   as_ln_s='cp -p'
23183 fi
23184 rm -f conf$$ conf$$.exe conf$$.file
23185
23186 if mkdir -p . 2>/dev/null; then
23187   as_mkdir_p=:
23188 else
23189   as_mkdir_p=false
23190 fi
23191
23192 as_executable_p="test -f"
23193
23194 # Sed expression to map a string onto a valid CPP name.
23195 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23196
23197 # Sed expression to map a string onto a valid variable name.
23198 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23199
23200
23201 # IFS
23202 # We need space, tab and new line, in precisely that order.
23203 as_nl='
23204 '
23205 IFS="   $as_nl"
23206
23207 # CDPATH.
23208 $as_unset CDPATH
23209
23210 exec 6>&1
23211
23212 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23213 # report actual input values of CONFIG_FILES etc. instead of their
23214 # values after options handling.  Logging --version etc. is OK.
23215 exec 5>>config.log
23216 {
23217   echo
23218   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23219 ## Running $as_me. ##
23220 _ASBOX
23221 } >&5
23222 cat >&5 <<_CSEOF
23223
23224 This file was extended by [LLVM] $as_me [1.0], which was
23225 generated by GNU Autoconf 2.57.  Invocation command line was
23226
23227   CONFIG_FILES    = $CONFIG_FILES
23228   CONFIG_HEADERS  = $CONFIG_HEADERS
23229   CONFIG_LINKS    = $CONFIG_LINKS
23230   CONFIG_COMMANDS = $CONFIG_COMMANDS
23231   $ $0 $@
23232
23233 _CSEOF
23234 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23235 echo >&5
23236 _ACEOF
23237
23238 # Files that config.status was made for.
23239 if test -n "$ac_config_files"; then
23240   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23241 fi
23242
23243 if test -n "$ac_config_headers"; then
23244   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23245 fi
23246
23247 if test -n "$ac_config_links"; then
23248   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23249 fi
23250
23251 if test -n "$ac_config_commands"; then
23252   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23253 fi
23254
23255 cat >>$CONFIG_STATUS <<\_ACEOF
23256
23257 ac_cs_usage="\
23258 \`$as_me' instantiates files from templates according to the
23259 current configuration.
23260
23261 Usage: $0 [OPTIONS] [FILE]...
23262
23263   -h, --help       print this help, then exit
23264   -V, --version    print version number, then exit
23265   -q, --quiet      do not print progress messages
23266   -d, --debug      don't remove temporary files
23267       --recheck    update $as_me by reconfiguring in the same conditions
23268   --file=FILE[:TEMPLATE]
23269                    instantiate the configuration file FILE
23270   --header=FILE[:TEMPLATE]
23271                    instantiate the configuration header FILE
23272
23273 Configuration files:
23274 $config_files
23275
23276 Configuration headers:
23277 $config_headers
23278
23279 Configuration commands:
23280 $config_commands
23281
23282 Report bugs to <bug-autoconf@gnu.org>."
23283 _ACEOF
23284
23285 cat >>$CONFIG_STATUS <<_ACEOF
23286 ac_cs_version="\\
23287 [LLVM] config.status [1.0]
23288 configured by $0, generated by GNU Autoconf 2.57,
23289   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23290
23291 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23292 Free Software Foundation, Inc.
23293 This config.status script is free software; the Free Software Foundation
23294 gives unlimited permission to copy, distribute and modify it."
23295 srcdir=$srcdir
23296 INSTALL="$INSTALL"
23297 _ACEOF
23298
23299 cat >>$CONFIG_STATUS <<\_ACEOF
23300 # If no file are specified by the user, then we need to provide default
23301 # value.  By we need to know if files were specified by the user.
23302 ac_need_defaults=:
23303 while test $# != 0
23304 do
23305   case $1 in
23306   --*=*)
23307     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23308     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23309     ac_shift=:
23310     ;;
23311   -*)
23312     ac_option=$1
23313     ac_optarg=$2
23314     ac_shift=shift
23315     ;;
23316   *) # This is not an option, so the user has probably given explicit
23317      # arguments.
23318      ac_option=$1
23319      ac_need_defaults=false;;
23320   esac
23321
23322   case $ac_option in
23323   # Handling of the options.
23324 _ACEOF
23325 cat >>$CONFIG_STATUS <<\_ACEOF
23326   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23327     ac_cs_recheck=: ;;
23328   --version | --vers* | -V )
23329     echo "$ac_cs_version"; exit 0 ;;
23330   --he | --h)
23331     # Conflict between --help and --header
23332     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23333 Try \`$0 --help' for more information." >&5
23334 echo "$as_me: error: ambiguous option: $1
23335 Try \`$0 --help' for more information." >&2;}
23336    { (exit 1); exit 1; }; };;
23337   --help | --hel | -h )
23338     echo "$ac_cs_usage"; exit 0 ;;
23339   --debug | --d* | -d )
23340     debug=: ;;
23341   --file | --fil | --fi | --f )
23342     $ac_shift
23343     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23344     ac_need_defaults=false;;
23345   --header | --heade | --head | --hea )
23346     $ac_shift
23347     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23348     ac_need_defaults=false;;
23349   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23350   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23351     ac_cs_silent=: ;;
23352
23353   # This is an error.
23354   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23355 Try \`$0 --help' for more information." >&5
23356 echo "$as_me: error: unrecognized option: $1
23357 Try \`$0 --help' for more information." >&2;}
23358    { (exit 1); exit 1; }; } ;;
23359
23360   *) ac_config_targets="$ac_config_targets $1" ;;
23361
23362   esac
23363   shift
23364 done
23365
23366 ac_configure_extra_args=
23367
23368 if $ac_cs_silent; then
23369   exec 6>/dev/null
23370   ac_configure_extra_args="$ac_configure_extra_args --silent"
23371 fi
23372
23373 _ACEOF
23374 cat >>$CONFIG_STATUS <<_ACEOF
23375 if \$ac_cs_recheck; then
23376   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23377   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23378 fi
23379
23380 _ACEOF
23381
23382 cat >>$CONFIG_STATUS <<_ACEOF
23383 #
23384 # INIT-COMMANDS section.
23385 #
23386
23387 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23388 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23389 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23390 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23391 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23392 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23393 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23394 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23395 ${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23396 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23397 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23398 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23399 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23400 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23401 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23402 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23403 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
23404 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23405 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23406 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23407 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23408 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23409 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23410 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23411 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23412 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23413 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23414 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23415 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23416 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23417 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23418 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23419 ${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23420 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23421 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23422 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23423 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
23424 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
23425 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23426 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23427 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23428 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
23429 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
23430 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
23431 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23432 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
23433 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23434 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23435 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23436 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23437 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTestDB/QMTest/llvm.py`
23438 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23439 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23440 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23441 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23442 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23443 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23444 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23445 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23446 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23447 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23448 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23449 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23450 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23451 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23452 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23453 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23454 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23455 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23456 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23457 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23458 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23459 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23460 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23461 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23462 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23463 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23464 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23465 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23466 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23467 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23468 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23469 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23470 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23471 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23472 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23473 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23474 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23475 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23476 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
23477 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23478 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
23479 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23480 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23481 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23482 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23483 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23484 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23485 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23486 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23487 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23488 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23489 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23490 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23491 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23492 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23493 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23494 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23495 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23496 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23497 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23498 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23499 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23500 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23501 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23502 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
23503 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
23504 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23505 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23506 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23507 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23508 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23509 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
23510 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
23511 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
23512 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23513 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23514 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23515 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23516 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
23517 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23518 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23519 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23520 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23521 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23522 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23523 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23524 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23525 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
23526 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
23527 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
23528 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
23529 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
23530 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23531 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
23532 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/EH/Makefile`
23533 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/CompileFail/Makefile`
23534 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23535 ${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23536 ${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23537 ${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23538 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23539 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23540 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23541 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23542 ${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23543 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
23544 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
23545 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23546 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23547 ${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23548 ${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23549 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23550 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23551 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23552 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23553 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23554 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23555 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23556 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23557 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23558 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23559 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23560 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23561 ${srcdir}/autoconf/mkinstalldirs `dirname support/Makefile`
23562 ${srcdir}/autoconf/mkinstalldirs `dirname support/lib/Makefile`
23563 ${srcdir}/autoconf/mkinstalldirs `dirname support/lib/Support/Makefile`
23564 ${srcdir}/autoconf/mkinstalldirs `dirname support/tools/Makefile`
23565 ${srcdir}/autoconf/mkinstalldirs `dirname support/tools/Burg/Makefile`
23566 ${srcdir}/autoconf/mkinstalldirs `dirname support/tools/Burg/Doc/Makefile`
23567 ${srcdir}/autoconf/mkinstalldirs `dirname support/tools/TableGen/Makefile`
23568
23569 _ACEOF
23570
23571
23572
23573 cat >>$CONFIG_STATUS <<\_ACEOF
23574 for ac_config_target in $ac_config_targets
23575 do
23576   case "$ac_config_target" in
23577   # Handling of arguments.
23578   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23579   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23580   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23581   "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23582   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23583   "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23584   "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23585   "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23586   "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23587   "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23588   "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23589   "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23590   "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23591   "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23592   "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23593   "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23594   "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23595   "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
23596   "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23597   "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23598   "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23599   "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23600   "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23601   "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23602   "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23603   "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23604   "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23605   "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23606   "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23607   "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23608   "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23609   "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23610   "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23611   "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23612   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23613   "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23614   "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23615   "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
23616   "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
23617   "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23618   "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23619   "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23620   "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
23621   "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
23622   "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
23623   "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23624   "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
23625   "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23626   "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23627   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23628   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23629   "test/QMTestDB/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTestDB/QMTest/llvm.py" ;;
23630   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23631   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23632   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23633   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23634   "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23635   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23636   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23637   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23638   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23639   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23640   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23641   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23642   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23643   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23644   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23645   "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23646   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23647   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23648   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23649   "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23650   "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23651   "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23652   "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23653   "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23654   "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23655   "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23656   "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23657   "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23658   "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23659   "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23660   "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23661   "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23662   "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23663   "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23664   "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23665   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23666   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23667   "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23668   "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
23669   "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23670   "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
23671   "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23672   "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23673   "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23674   "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23675   "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23676   "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23677   "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23678   "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23679   "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23680   "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23681   "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23682   "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23683   "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23684   "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23685   "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23686   "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23687   "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23688   "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23689   "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23690   "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23691   "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23692   "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23693   "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23694   "test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ;;
23695   "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
23696   "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23697   "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23698   "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23699   "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23700   "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23701   "test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ;;
23702   "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
23703   "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
23704   "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23705   "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23706   "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23707   "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23708   "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
23709   "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23710   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23711   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23712   "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23713   "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23714   "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23715   "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23716   "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23717   "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
23718   "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
23719   "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
23720   "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
23721   "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
23722   "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
23723   "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
23724   "test/Programs/SingleSource/Regression/C++/EH/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/EH/Makefile" ;;
23725   "test/Programs/SingleSource/Regression/C++/CompileFail/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/CompileFail/Makefile" ;;
23726   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23727   "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23728   "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23729   "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23730   "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23731   "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23732   "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23733   "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
23734   "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23735   "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
23736   "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
23737   "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23738   "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
23739   "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23740   "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23741   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23742   "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23743   "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23744   "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23745   "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23746   "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23747   "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23748   "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23749   "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23750   "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23751   "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23752   "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
23753   "support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/Makefile" ;;
23754   "support/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/lib/Makefile" ;;
23755   "support/lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/lib/Support/Makefile" ;;
23756   "support/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/Makefile" ;;
23757   "support/tools/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/Burg/Makefile" ;;
23758   "support/tools/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/Burg/Doc/Makefile" ;;
23759   "support/tools/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/TableGen/Makefile" ;;
23760   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23761   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23762 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23763    { (exit 1); exit 1; }; };;
23764   esac
23765 done
23766
23767 # If the user did not use the arguments to specify the items to instantiate,
23768 # then the envvar interface is used.  Set only those that are not.
23769 # We use the long form for the default assignment because of an extremely
23770 # bizarre bug on SunOS 4.1.3.
23771 if $ac_need_defaults; then
23772   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23773   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23774   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23775 fi
23776
23777 # Have a temporary directory for convenience.  Make it in the build tree
23778 # simply because there is no reason to put it here, and in addition,
23779 # creating and moving files from /tmp can sometimes cause problems.
23780 # Create a temporary directory, and hook for its removal unless debugging.
23781 $debug ||
23782 {
23783   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23784   trap '{ (exit 1); exit 1; }' 1 2 13 15
23785 }
23786
23787 # Create a (secure) tmp directory for tmp files.
23788
23789 {
23790   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23791   test -n "$tmp" && test -d "$tmp"
23792 }  ||
23793 {
23794   tmp=./confstat$$-$RANDOM
23795   (umask 077 && mkdir $tmp)
23796 } ||
23797 {
23798    echo "$me: cannot create a temporary directory in ." >&2
23799    { (exit 1); exit 1; }
23800 }
23801
23802 _ACEOF
23803
23804 cat >>$CONFIG_STATUS <<_ACEOF
23805
23806 #
23807 # CONFIG_FILES section.
23808 #
23809
23810 # No need to generate the scripts if there are no CONFIG_FILES.
23811 # This happens for instance when ./config.status config.h
23812 if test -n "\$CONFIG_FILES"; then
23813   # Protect against being on the right side of a sed subst in config.status.
23814   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23815    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23816 s,@SHELL@,$SHELL,;t t
23817 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23818 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23819 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23820 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23821 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23822 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23823 s,@exec_prefix@,$exec_prefix,;t t
23824 s,@prefix@,$prefix,;t t
23825 s,@program_transform_name@,$program_transform_name,;t t
23826 s,@bindir@,$bindir,;t t
23827 s,@sbindir@,$sbindir,;t t
23828 s,@libexecdir@,$libexecdir,;t t
23829 s,@datadir@,$datadir,;t t
23830 s,@sysconfdir@,$sysconfdir,;t t
23831 s,@sharedstatedir@,$sharedstatedir,;t t
23832 s,@localstatedir@,$localstatedir,;t t
23833 s,@libdir@,$libdir,;t t
23834 s,@includedir@,$includedir,;t t
23835 s,@oldincludedir@,$oldincludedir,;t t
23836 s,@infodir@,$infodir,;t t
23837 s,@mandir@,$mandir,;t t
23838 s,@build_alias@,$build_alias,;t t
23839 s,@host_alias@,$host_alias,;t t
23840 s,@target_alias@,$target_alias,;t t
23841 s,@DEFS@,$DEFS,;t t
23842 s,@ECHO_C@,$ECHO_C,;t t
23843 s,@ECHO_N@,$ECHO_N,;t t
23844 s,@ECHO_T@,$ECHO_T,;t t
23845 s,@LIBS@,$LIBS,;t t
23846 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23847 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23848 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23849 s,@build@,$build,;t t
23850 s,@build_cpu@,$build_cpu,;t t
23851 s,@build_vendor@,$build_vendor,;t t
23852 s,@build_os@,$build_os,;t t
23853 s,@host@,$host,;t t
23854 s,@host_cpu@,$host_cpu,;t t
23855 s,@host_vendor@,$host_vendor,;t t
23856 s,@host_os@,$host_os,;t t
23857 s,@target@,$target,;t t
23858 s,@target_cpu@,$target_cpu,;t t
23859 s,@target_vendor@,$target_vendor,;t t
23860 s,@target_os@,$target_os,;t t
23861 s,@OS@,$OS,;t t
23862 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23863 s,@ARCH@,$ARCH,;t t
23864 s,@CXX@,$CXX,;t t
23865 s,@CXXFLAGS@,$CXXFLAGS,;t t
23866 s,@LDFLAGS@,$LDFLAGS,;t t
23867 s,@CPPFLAGS@,$CPPFLAGS,;t t
23868 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23869 s,@EXEEXT@,$EXEEXT,;t t
23870 s,@OBJEXT@,$OBJEXT,;t t
23871 s,@CC@,$CC,;t t
23872 s,@CFLAGS@,$CFLAGS,;t t
23873 s,@ac_ct_CC@,$ac_ct_CC,;t t
23874 s,@CPP@,$CPP,;t t
23875 s,@ifGNUmake@,$ifGNUmake,;t t
23876 s,@LEX@,$LEX,;t t
23877 s,@LEXLIB@,$LEXLIB,;t t
23878 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23879 s,@YACC@,$YACC,;t t
23880 s,@EGREP@,$EGREP,;t t
23881 s,@LN_S@,$LN_S,;t t
23882 s,@ECHO@,$ECHO,;t t
23883 s,@AR@,$AR,;t t
23884 s,@ac_ct_AR@,$ac_ct_AR,;t t
23885 s,@RANLIB@,$RANLIB,;t t
23886 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23887 s,@STRIP@,$STRIP,;t t
23888 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23889 s,@CXXCPP@,$CXXCPP,;t t
23890 s,@F77@,$F77,;t t
23891 s,@FFLAGS@,$FFLAGS,;t t
23892 s,@ac_ct_F77@,$ac_ct_F77,;t t
23893 s,@LIBTOOL@,$LIBTOOL,;t t
23894 s,@RPWD@,$RPWD,;t t
23895 s,@SED@,$SED,;t t
23896 s,@RM@,$RM,;t t
23897 s,@MKDIR@,$MKDIR,;t t
23898 s,@DATE@,$DATE,;t t
23899 s,@MV@,$MV,;t t
23900 s,@DOT@,$DOT,;t t
23901 s,@ETAGS@,$ETAGS,;t t
23902 s,@PURIFY@,$PURIFY,;t t
23903 s,@PYTHON@,$PYTHON,;t t
23904 s,@QMTEST@,$QMTEST,;t t
23905 s,@ALLOCA@,$ALLOCA,;t t
23906 s,@LIBOBJS@,$LIBOBJS,;t t
23907 s,@MMAP_FILE@,$MMAP_FILE,;t t
23908 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
23909 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23910 s,@USE_SPEC@,$USE_SPEC,;t t
23911 s,@UPB@,$UPB,;t t
23912 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23913 s,@JIT@,$JIT,;t t
23914 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23915 s,@BCR@,$BCR,;t t
23916 s,@PAPIDIR@,$PAPIDIR,;t t
23917 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23918 CEOF
23919
23920 _ACEOF
23921
23922   cat >>$CONFIG_STATUS <<\_ACEOF
23923   # Split the substitutions into bite-sized pieces for seds with
23924   # small command number limits, like on Digital OSF/1 and HP-UX.
23925   ac_max_sed_lines=48
23926   ac_sed_frag=1 # Number of current file.
23927   ac_beg=1 # First line for current file.
23928   ac_end=$ac_max_sed_lines # Line after last line for current file.
23929   ac_more_lines=:
23930   ac_sed_cmds=
23931   while $ac_more_lines; do
23932     if test $ac_beg -gt 1; then
23933       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23934     else
23935       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23936     fi
23937     if test ! -s $tmp/subs.frag; then
23938       ac_more_lines=false
23939     else
23940       # The purpose of the label and of the branching condition is to
23941       # speed up the sed processing (if there are no `@' at all, there
23942       # is no need to browse any of the substitutions).
23943       # These are the two extra sed commands mentioned above.
23944       (echo ':t
23945   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23946       if test -z "$ac_sed_cmds"; then
23947         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23948       else
23949         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23950       fi
23951       ac_sed_frag=`expr $ac_sed_frag + 1`
23952       ac_beg=$ac_end
23953       ac_end=`expr $ac_end + $ac_max_sed_lines`
23954     fi
23955   done
23956   if test -z "$ac_sed_cmds"; then
23957     ac_sed_cmds=cat
23958   fi
23959 fi # test -n "$CONFIG_FILES"
23960
23961 _ACEOF
23962 cat >>$CONFIG_STATUS <<\_ACEOF
23963 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23964   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23965   case $ac_file in
23966   - | *:- | *:-:* ) # input from stdin
23967         cat >$tmp/stdin
23968         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23969         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23970   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23971         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23972   * )   ac_file_in=$ac_file.in ;;
23973   esac
23974
23975   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23976   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23977 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23978          X"$ac_file" : 'X\(//\)[^/]' \| \
23979          X"$ac_file" : 'X\(//\)$' \| \
23980          X"$ac_file" : 'X\(/\)' \| \
23981          .     : '\(.\)' 2>/dev/null ||
23982 echo X"$ac_file" |
23983     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23984           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23985           /^X\(\/\/\)$/{ s//\1/; q; }
23986           /^X\(\/\).*/{ s//\1/; q; }
23987           s/.*/./; q'`
23988   { if $as_mkdir_p; then
23989     mkdir -p "$ac_dir"
23990   else
23991     as_dir="$ac_dir"
23992     as_dirs=
23993     while test ! -d "$as_dir"; do
23994       as_dirs="$as_dir $as_dirs"
23995       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23996 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23997          X"$as_dir" : 'X\(//\)[^/]' \| \
23998          X"$as_dir" : 'X\(//\)$' \| \
23999          X"$as_dir" : 'X\(/\)' \| \
24000          .     : '\(.\)' 2>/dev/null ||
24001 echo X"$as_dir" |
24002     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24003           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24004           /^X\(\/\/\)$/{ s//\1/; q; }
24005           /^X\(\/\).*/{ s//\1/; q; }
24006           s/.*/./; q'`
24007     done
24008     test ! -n "$as_dirs" || mkdir $as_dirs
24009   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24010 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24011    { (exit 1); exit 1; }; }; }
24012
24013   ac_builddir=.
24014
24015 if test "$ac_dir" != .; then
24016   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24017   # A "../" for each directory in $ac_dir_suffix.
24018   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24019 else
24020   ac_dir_suffix= ac_top_builddir=
24021 fi
24022
24023 case $srcdir in
24024   .)  # No --srcdir option.  We are building in place.
24025     ac_srcdir=.
24026     if test -z "$ac_top_builddir"; then
24027        ac_top_srcdir=.
24028     else
24029        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24030     fi ;;
24031   [\\/]* | ?:[\\/]* )  # Absolute path.
24032     ac_srcdir=$srcdir$ac_dir_suffix;
24033     ac_top_srcdir=$srcdir ;;
24034   *) # Relative path.
24035     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24036     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24037 esac
24038 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24039 # absolute.
24040 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24041 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24042 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24043 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24044
24045
24046   case $INSTALL in
24047   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24048   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24049   esac
24050
24051   if test x"$ac_file" != x-; then
24052     { echo "$as_me:$LINENO: creating $ac_file" >&5
24053 echo "$as_me: creating $ac_file" >&6;}
24054     rm -f "$ac_file"
24055   fi
24056   # Let's still pretend it is `configure' which instantiates (i.e., don't
24057   # use $as_me), people would be surprised to read:
24058   #    /* config.h.  Generated by config.status.  */
24059   if test x"$ac_file" = x-; then
24060     configure_input=
24061   else
24062     configure_input="$ac_file.  "
24063   fi
24064   configure_input=$configure_input"Generated from `echo $ac_file_in |
24065                                      sed 's,.*/,,'` by configure."
24066
24067   # First look for the input files in the build tree, otherwise in the
24068   # src tree.
24069   ac_file_inputs=`IFS=:
24070     for f in $ac_file_in; do
24071       case $f in
24072       -) echo $tmp/stdin ;;
24073       [\\/$]*)
24074          # Absolute (can't be DOS-style, as IFS=:)
24075          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24076 echo "$as_me: error: cannot find input file: $f" >&2;}
24077    { (exit 1); exit 1; }; }
24078          echo $f;;
24079       *) # Relative
24080          if test -f "$f"; then
24081            # Build tree
24082            echo $f
24083          elif test -f "$srcdir/$f"; then
24084            # Source tree
24085            echo $srcdir/$f
24086          else
24087            # /dev/null tree
24088            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24089 echo "$as_me: error: cannot find input file: $f" >&2;}
24090    { (exit 1); exit 1; }; }
24091          fi;;
24092       esac
24093     done` || { (exit 1); exit 1; }
24094 _ACEOF
24095 cat >>$CONFIG_STATUS <<_ACEOF
24096   sed "$ac_vpsub
24097 $extrasub
24098 _ACEOF
24099 cat >>$CONFIG_STATUS <<\_ACEOF
24100 :t
24101 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24102 s,@configure_input@,$configure_input,;t t
24103 s,@srcdir@,$ac_srcdir,;t t
24104 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24105 s,@top_srcdir@,$ac_top_srcdir,;t t
24106 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24107 s,@builddir@,$ac_builddir,;t t
24108 s,@abs_builddir@,$ac_abs_builddir,;t t
24109 s,@top_builddir@,$ac_top_builddir,;t t
24110 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24111 s,@INSTALL@,$ac_INSTALL,;t t
24112 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24113   rm -f $tmp/stdin
24114   if test x"$ac_file" != x-; then
24115     mv $tmp/out $ac_file
24116   else
24117     cat $tmp/out
24118     rm -f $tmp/out
24119   fi
24120
24121 done
24122 _ACEOF
24123 cat >>$CONFIG_STATUS <<\_ACEOF
24124
24125 #
24126 # CONFIG_HEADER section.
24127 #
24128
24129 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24130 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24131 #
24132 # ac_d sets the value in "#define NAME VALUE" lines.
24133 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24134 ac_dB='[        ].*$,\1#\2'
24135 ac_dC=' '
24136 ac_dD=',;t'
24137 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24138 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24139 ac_uB='$,\1#\2define\3'
24140 ac_uC=' '
24141 ac_uD=',;t'
24142
24143 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24144   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24145   case $ac_file in
24146   - | *:- | *:-:* ) # input from stdin
24147         cat >$tmp/stdin
24148         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24149         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24150   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24151         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24152   * )   ac_file_in=$ac_file.in ;;
24153   esac
24154
24155   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24156 echo "$as_me: creating $ac_file" >&6;}
24157
24158   # First look for the input files in the build tree, otherwise in the
24159   # src tree.
24160   ac_file_inputs=`IFS=:
24161     for f in $ac_file_in; do
24162       case $f in
24163       -) echo $tmp/stdin ;;
24164       [\\/$]*)
24165          # Absolute (can't be DOS-style, as IFS=:)
24166          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24167 echo "$as_me: error: cannot find input file: $f" >&2;}
24168    { (exit 1); exit 1; }; }
24169          echo $f;;
24170       *) # Relative
24171          if test -f "$f"; then
24172            # Build tree
24173            echo $f
24174          elif test -f "$srcdir/$f"; then
24175            # Source tree
24176            echo $srcdir/$f
24177          else
24178            # /dev/null tree
24179            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24180 echo "$as_me: error: cannot find input file: $f" >&2;}
24181    { (exit 1); exit 1; }; }
24182          fi;;
24183       esac
24184     done` || { (exit 1); exit 1; }
24185   # Remove the trailing spaces.
24186   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
24187
24188 _ACEOF
24189
24190 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24191 # `conftest.undefs', that substitutes the proper values into
24192 # config.h.in to produce config.h.  The first handles `#define'
24193 # templates, and the second `#undef' templates.
24194 # And first: Protect against being on the right side of a sed subst in
24195 # config.status.  Protect against being in an unquoted here document
24196 # in config.status.
24197 rm -f conftest.defines conftest.undefs
24198 # Using a here document instead of a string reduces the quoting nightmare.
24199 # Putting comments in sed scripts is not portable.
24200 #
24201 # `end' is used to avoid that the second main sed command (meant for
24202 # 0-ary CPP macros) applies to n-ary macro definitions.
24203 # See the Autoconf documentation for `clear'.
24204 cat >confdef2sed.sed <<\_ACEOF
24205 s/[\\&,]/\\&/g
24206 s,[\\$`],\\&,g
24207 t clear
24208 : clear
24209 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24210 t end
24211 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24212 : end
24213 _ACEOF
24214 # If some macros were called several times there might be several times
24215 # the same #defines, which is useless.  Nevertheless, we may not want to
24216 # sort them, since we want the *last* AC-DEFINE to be honored.
24217 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24218 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24219 rm -f confdef2sed.sed
24220
24221 # This sed command replaces #undef with comments.  This is necessary, for
24222 # example, in the case of _POSIX_SOURCE, which is predefined and required
24223 # on some systems where configure will not decide to define it.
24224 cat >>conftest.undefs <<\_ACEOF
24225 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24226 _ACEOF
24227
24228 # Break up conftest.defines because some shells have a limit on the size
24229 # of here documents, and old seds have small limits too (100 cmds).
24230 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24231 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24232 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24233 echo '  :' >>$CONFIG_STATUS
24234 rm -f conftest.tail
24235 while grep . conftest.defines >/dev/null
24236 do
24237   # Write a limited-size here document to $tmp/defines.sed.
24238   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24239   # Speed up: don't consider the non `#define' lines.
24240   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24241   # Work around the forget-to-reset-the-flag bug.
24242   echo 't clr' >>$CONFIG_STATUS
24243   echo ': clr' >>$CONFIG_STATUS
24244   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24245   echo 'CEOF
24246   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24247   rm -f $tmp/in
24248   mv $tmp/out $tmp/in
24249 ' >>$CONFIG_STATUS
24250   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24251   rm -f conftest.defines
24252   mv conftest.tail conftest.defines
24253 done
24254 rm -f conftest.defines
24255 echo '  fi # grep' >>$CONFIG_STATUS
24256 echo >>$CONFIG_STATUS
24257
24258 # Break up conftest.undefs because some shells have a limit on the size
24259 # of here documents, and old seds have small limits too (100 cmds).
24260 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24261 rm -f conftest.tail
24262 while grep . conftest.undefs >/dev/null
24263 do
24264   # Write a limited-size here document to $tmp/undefs.sed.
24265   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24266   # Speed up: don't consider the non `#undef'
24267   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24268   # Work around the forget-to-reset-the-flag bug.
24269   echo 't clr' >>$CONFIG_STATUS
24270   echo ': clr' >>$CONFIG_STATUS
24271   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24272   echo 'CEOF
24273   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24274   rm -f $tmp/in
24275   mv $tmp/out $tmp/in
24276 ' >>$CONFIG_STATUS
24277   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24278   rm -f conftest.undefs
24279   mv conftest.tail conftest.undefs
24280 done
24281 rm -f conftest.undefs
24282
24283 cat >>$CONFIG_STATUS <<\_ACEOF
24284   # Let's still pretend it is `configure' which instantiates (i.e., don't
24285   # use $as_me), people would be surprised to read:
24286   #    /* config.h.  Generated by config.status.  */
24287   if test x"$ac_file" = x-; then
24288     echo "/* Generated by configure.  */" >$tmp/config.h
24289   else
24290     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24291   fi
24292   cat $tmp/in >>$tmp/config.h
24293   rm -f $tmp/in
24294   if test x"$ac_file" != x-; then
24295     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24296       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24297 echo "$as_me: $ac_file is unchanged" >&6;}
24298     else
24299       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24300 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24301          X"$ac_file" : 'X\(//\)[^/]' \| \
24302          X"$ac_file" : 'X\(//\)$' \| \
24303          X"$ac_file" : 'X\(/\)' \| \
24304          .     : '\(.\)' 2>/dev/null ||
24305 echo X"$ac_file" |
24306     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24307           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24308           /^X\(\/\/\)$/{ s//\1/; q; }
24309           /^X\(\/\).*/{ s//\1/; q; }
24310           s/.*/./; q'`
24311       { if $as_mkdir_p; then
24312     mkdir -p "$ac_dir"
24313   else
24314     as_dir="$ac_dir"
24315     as_dirs=
24316     while test ! -d "$as_dir"; do
24317       as_dirs="$as_dir $as_dirs"
24318       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24319 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24320          X"$as_dir" : 'X\(//\)[^/]' \| \
24321          X"$as_dir" : 'X\(//\)$' \| \
24322          X"$as_dir" : 'X\(/\)' \| \
24323          .     : '\(.\)' 2>/dev/null ||
24324 echo X"$as_dir" |
24325     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24326           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24327           /^X\(\/\/\)$/{ s//\1/; q; }
24328           /^X\(\/\).*/{ s//\1/; q; }
24329           s/.*/./; q'`
24330     done
24331     test ! -n "$as_dirs" || mkdir $as_dirs
24332   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24333 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24334    { (exit 1); exit 1; }; }; }
24335
24336       rm -f $ac_file
24337       mv $tmp/config.h $ac_file
24338     fi
24339   else
24340     cat $tmp/config.h
24341     rm -f $tmp/config.h
24342   fi
24343 done
24344 _ACEOF
24345 cat >>$CONFIG_STATUS <<\_ACEOF
24346
24347 #
24348 # CONFIG_COMMANDS section.
24349 #
24350 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24351   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24352   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24353   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24354 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24355          X"$ac_dest" : 'X\(//\)[^/]' \| \
24356          X"$ac_dest" : 'X\(//\)$' \| \
24357          X"$ac_dest" : 'X\(/\)' \| \
24358          .     : '\(.\)' 2>/dev/null ||
24359 echo X"$ac_dest" |
24360     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24361           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24362           /^X\(\/\/\)$/{ s//\1/; q; }
24363           /^X\(\/\).*/{ s//\1/; q; }
24364           s/.*/./; q'`
24365   ac_builddir=.
24366
24367 if test "$ac_dir" != .; then
24368   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24369   # A "../" for each directory in $ac_dir_suffix.
24370   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24371 else
24372   ac_dir_suffix= ac_top_builddir=
24373 fi
24374
24375 case $srcdir in
24376   .)  # No --srcdir option.  We are building in place.
24377     ac_srcdir=.
24378     if test -z "$ac_top_builddir"; then
24379        ac_top_srcdir=.
24380     else
24381        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24382     fi ;;
24383   [\\/]* | ?:[\\/]* )  # Absolute path.
24384     ac_srcdir=$srcdir$ac_dir_suffix;
24385     ac_top_srcdir=$srcdir ;;
24386   *) # Relative path.
24387     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24388     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24389 esac
24390 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24391 # absolute.
24392 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24393 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24394 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24395 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24396
24397
24398   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24399 echo "$as_me: executing $ac_dest commands" >&6;}
24400   case $ac_dest in
24401     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24402     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24403     Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24404     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24405     lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24406     lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24407     lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24408     lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24409     lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24410     lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24411     lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24412     lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24413     lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24414     lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24415     lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24416     lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24417     lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
24418     lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24419     lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24420     lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24421     lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24422     lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24423     lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24424     lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24425     lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24426     lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24427     lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24428     lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24429     lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24430     lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24431     lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24432     lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24433     lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24434     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24435     runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24436     runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24437     runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
24438     runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
24439     runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24440     runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24441     runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24442     runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
24443     runtime/GCCLibraries/libtermcap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libtermcap/Makefile runtime/GCCLibraries/libtermcap/Makefile ;;
24444     runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
24445     runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24446     runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;;
24447     runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24448     runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24449     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24450     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24451     test/QMTestDB/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTestDB/QMTest/llvm.py test/QMTestDB/QMTest/llvm.py ;;
24452     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24453     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24454     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24455     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24456     test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24457     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24458     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24459     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24460     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24461     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24462     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24463     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24464     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24465     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24466     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24467     test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24468     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24469     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24470     test/Programs/External/SPEC/Makefile.spec ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec test/Programs/External/SPEC/Makefile.spec ;;
24471     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 ;;
24472     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 ;;
24473     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 ;;
24474     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 ;;
24475     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 ;;
24476     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 ;;
24477     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 ;;
24478     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 ;;
24479     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 ;;
24480     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 ;;
24481     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 ;;
24482     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 ;;
24483     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 ;;
24484     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 ;;
24485     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 ;;
24486     test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24487     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24488     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24489     test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24490     test/Programs/MultiSource/Applications/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Burg/Makefile test/Programs/MultiSource/Applications/Burg/Makefile ;;
24491     test/Programs/MultiSource/Applications/aha/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/aha/Makefile test/Programs/MultiSource/Applications/aha/Makefile ;;
24492     test/Programs/MultiSource/Applications/sgefa/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/sgefa/Makefile test/Programs/MultiSource/Applications/sgefa/Makefile ;;
24493     test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24494     test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile ;;
24495     test/Programs/MultiSource/Benchmarks/McCat/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/Makefile test/Programs/MultiSource/Benchmarks/McCat/Makefile ;;
24496     test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile ;;
24497     test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile ;;
24498     test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile ;;
24499     test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile ;;
24500     test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile ;;
24501     test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile ;;
24502     test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile ;;
24503     test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile ;;
24504     test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile ;;
24505     test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile ;;
24506     test/Programs/MultiSource/Benchmarks/Olden/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/Makefile test/Programs/MultiSource/Benchmarks/Olden/Makefile ;;
24507     test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile ;;
24508     test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile ;;
24509     test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile ;;
24510     test/Programs/MultiSource/Benchmarks/Olden/health/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/health/Makefile test/Programs/MultiSource/Benchmarks/Olden/health/Makefile ;;
24511     test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile ;;
24512     test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile ;;
24513     test/Programs/MultiSource/Benchmarks/Olden/power/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/power/Makefile test/Programs/MultiSource/Benchmarks/Olden/power/Makefile ;;
24514     test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile ;;
24515     test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile ;;
24516     test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile ;;
24517     test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile ;;
24518     test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile ;;
24519     test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile ;;
24520     test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile ;;
24521     test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile ;;
24522     test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile ;;
24523     test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile ;;
24524     test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile ;;
24525     test/Programs/MultiSource/Benchmarks/sim/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/sim/Makefile test/Programs/MultiSource/Benchmarks/sim/Makefile ;;
24526     test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24527     test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24528     test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24529     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 ;;
24530     test/Programs/NoSource/Povray31/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Povray31/Makefile test/Programs/NoSource/Povray31/Makefile ;;
24531     test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24532     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24533     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24534     test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24535     test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24536     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 ;;
24537     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 ;;
24538     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 ;;
24539     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 ;;
24540     test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
24541     test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
24542     test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ;;
24543     test/Programs/SingleSource/Regression/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/Makefile test/Programs/SingleSource/Regression/Makefile ;;
24544     test/Programs/SingleSource/Regression/C/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C/Makefile test/Programs/SingleSource/Regression/C/Makefile ;;
24545     test/Programs/SingleSource/Regression/C++/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/Makefile test/Programs/SingleSource/Regression/C++/Makefile ;;
24546     test/Programs/SingleSource/Regression/C++/EH/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/EH/Makefile test/Programs/SingleSource/Regression/C++/EH/Makefile ;;
24547     test/Programs/SingleSource/Regression/C++/CompileFail/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/CompileFail/Makefile test/Programs/SingleSource/Regression/C++/CompileFail/Makefile ;;
24548     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24549     tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24550     tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24551     tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24552     tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24553     tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24554     tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24555     tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24556     tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24557     tools/llvm-ar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-ar/Makefile tools/llvm-ar/Makefile ;;
24558     tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
24559     tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24560     tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
24561     tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24562     www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24563     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24564     projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24565     projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24566     projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24567     projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24568     projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24569     projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24570     projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24571     projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24572     projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24573     projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24574     projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24575     support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/Makefile support/Makefile ;;
24576     support/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/lib/Makefile support/lib/Makefile ;;
24577     support/lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/lib/Support/Makefile support/lib/Support/Makefile ;;
24578     support/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/Makefile support/tools/Makefile ;;
24579     support/tools/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/Burg/Makefile support/tools/Burg/Makefile ;;
24580     support/tools/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/Burg/Doc/Makefile support/tools/Burg/Doc/Makefile ;;
24581     support/tools/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/TableGen/Makefile support/tools/TableGen/Makefile ;;
24582   esac
24583 done
24584 _ACEOF
24585
24586 cat >>$CONFIG_STATUS <<\_ACEOF
24587
24588 { (exit 0); exit 0; }
24589 _ACEOF
24590 chmod +x $CONFIG_STATUS
24591 ac_clean_files=$ac_clean_files_save
24592
24593
24594 # configure is writing to config.log, and then calls config.status.
24595 # config.status does its own redirection, appending to config.log.
24596 # Unfortunately, on DOS this fails, as config.log is still kept open
24597 # by configure, so config.status won't be able to write to it; its
24598 # output is simply discarded.  So we exec the FD to /dev/null,
24599 # effectively closing config.log, so it can be properly (re)opened and
24600 # appended to by config.status.  When coming back to configure, we
24601 # need to make the FD available again.
24602 if test "$no_create" != yes; then
24603   ac_cs_success=:
24604   ac_config_status_args=
24605   test "$silent" = yes &&
24606     ac_config_status_args="$ac_config_status_args --quiet"
24607   exec 5>/dev/null
24608   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24609   exec 5>>config.log
24610   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24611   # would make configure fail if this is the last instruction.
24612   $ac_cs_success || { (exit 1); exit 1; }
24613 fi
24614