Regenerated with autoconf-2.57.
[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.1].
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.1]'
426 PACKAGE_STRING='[LLVM] [1.1]'
427 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
429 ac_subdirs_all="$ac_subdirs_all projects/${i}"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 #  include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 #  include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 #  include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 ac_unique_file=""Makefile.config.in""
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS ETAGSFLAGS PYTHON QMTEST HAVE_PTHREAD_MUTEX_LOCK INCLUDE_SYS_TYPES_H INCLUDE_INTTYPES_H ENDIAN HAVE_STD_EXT_HASH_MAP HAVE_GNU_EXT_HASH_MAP HAVE_GLOBAL_HASH_MAP HAVE_STD_EXT_HASH_SET HAVE_GNU_EXT_HASH_SET HAVE_GLOBAL_HASH_SET HAVE_STD_ITERATOR HAVE_BI_ITERATOR HAVE_FWD_ITERATOR ALLOCA MMAP_FILE ENABLE_OPTIMIZED SPEC_ROOT USE_SPEC SPEC95_ROOT USE_SPEC95 POVRAY_ROOT USE_POVRAY UPB DISABLE_LLC_DIFFS JIT LLVMCC1 LLVMCC1PLUS BCR PAPIDIR SHLIBEXT LIBOBJS LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CXX_set=${CXX+set}
910 ac_env_CXX_value=$CXX
911 ac_cv_env_CXX_set=${CXX+set}
912 ac_cv_env_CXX_value=$CXX
913 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
914 ac_env_CXXFLAGS_value=$CXXFLAGS
915 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CC_set=${CC+set}
926 ac_env_CC_value=$CC
927 ac_cv_env_CC_set=${CC+set}
928 ac_cv_env_CC_value=$CC
929 ac_env_CFLAGS_set=${CFLAGS+set}
930 ac_env_CFLAGS_value=$CFLAGS
931 ac_cv_env_CFLAGS_set=${CFLAGS+set}
932 ac_cv_env_CFLAGS_value=$CFLAGS
933 ac_env_CPP_set=${CPP+set}
934 ac_env_CPP_value=$CPP
935 ac_cv_env_CPP_set=${CPP+set}
936 ac_cv_env_CPP_value=$CPP
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
949
950 #
951 # Report the --help message.
952 #
953 if test "$ac_init_help" = "long"; then
954   # Omit some internal or obsolete options to make the list less imposing.
955   # This message is too long to be a string in the A/UX 3.1 sh.
956   cat <<_ACEOF
957 \`configure' configures [LLVM] [1.1] to adapt to many kinds of systems.
958
959 Usage: $0 [OPTION]... [VAR=VALUE]...
960
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964 Defaults for the options are specified in brackets.
965
966 Configuration:
967   -h, --help              display this help and exit
968       --help=short        display options specific to this package
969       --help=recursive    display the short help of all the included packages
970   -V, --version           display version information and exit
971   -q, --quiet, --silent   do not print \`checking...' messages
972       --cache-file=FILE   cache test results in FILE [disabled]
973   -C, --config-cache      alias for \`--cache-file=config.cache'
974   -n, --no-create         do not create output files
975       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977 _ACEOF
978
979   cat <<_ACEOF
980 Installation directories:
981   --prefix=PREFIX         install architecture-independent files in PREFIX
982                           [$ac_default_prefix]
983   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984                           [PREFIX]
985
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
990
991 For better control, use the options below.
992
993 Fine tuning of the installation directories:
994   --bindir=DIR           user executables [EPREFIX/bin]
995   --sbindir=DIR          system admin executables [EPREFIX/sbin]
996   --libexecdir=DIR       program executables [EPREFIX/libexec]
997   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001   --libdir=DIR           object code libraries [EPREFIX/lib]
1002   --includedir=DIR       C header files [PREFIX/include]
1003   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004   --infodir=DIR          info documentation [PREFIX/info]
1005   --mandir=DIR           man documentation [PREFIX/man]
1006 _ACEOF
1007
1008   cat <<\_ACEOF
1009
1010 System types:
1011   --build=BUILD     configure for building on BUILD [guessed]
1012   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1013   --target=TARGET   configure for building compilers for TARGET [HOST]
1014 _ACEOF
1015 fi
1016
1017 if test -n "$ac_init_help"; then
1018   case $ac_init_help in
1019      short | recursive ) echo "Configuration of [LLVM] [1.1]:";;
1020    esac
1021   cat <<\_ACEOF
1022
1023 Optional Features:
1024   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1025   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1026   --enable-shared[=PKGS]
1027                           build shared libraries [default=yes]
1028   --enable-static[=PKGS]
1029                           build static libraries [default=yes]
1030   --enable-fast-install[=PKGS]
1031                           optimize for fast installation [default=yes]
1032   --disable-libtool-lock  avoid locking (might break parallel builds)
1033   --enable-optimized      Compile with optimizations enabled (default is NO)
1034   --enable-spec2000       Compile SPEC 2000 benchmarks (default is NO)
1035   --enable-spec95         Compile SPEC 95 benchmarks (default is NO)
1036   --enable-povray         Compile Povray benchmark (default is NO)
1037   --enable-precompiled_bytecode
1038                           Use pre-compiled bytecode (default is NO)
1039   --enable-llc_diffs      Enable LLC Diffs when testing (default is YES)
1040   --enable-jit            Enable Just In Time Compiling (default is YES)
1041
1042 Optional Packages:
1043   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1044   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1045   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1046   --with-pic              try to use only PIC/non-PIC objects [default=use
1047                           both]
1048   --with-tags[=TAGS]
1049                           include additional configurations [automatic]
1050   --with-llvmgccdir       Location of LLVM GCC front-end
1051   --with-bcrepos          Location of Bytecode Repository
1052   --with-papi             Location of PAPI
1053
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.1]
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.1], 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 for i in `ls ${srcdir}/projects`
1523 do
1524   if test ${i} != "CVS"
1525   then
1526     if test -f ${srcdir}/projects/${i}/configure
1527     then
1528
1529
1530 subdirs="$subdirs projects/${i}"
1531
1532     fi
1533   fi
1534 done
1535
1536           ac_config_headers="$ac_config_headers include/Config/config.h"
1537
1538           ac_config_commands="$ac_config_commands Makefile"
1539
1540
1541           ac_config_commands="$ac_config_commands Makefile.common"
1542
1543
1544           ac_config_commands="$ac_config_commands lib/Makefile"
1545
1546
1547           ac_config_commands="$ac_config_commands runtime/Makefile"
1548
1549
1550           ac_config_commands="$ac_config_commands test/Makefile"
1551
1552
1553           ac_config_commands="$ac_config_commands test/Makefile.tests"
1554
1555
1556           ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1557
1558
1559           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1560
1561
1562           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1563
1564
1565           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1566
1567
1568           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1569
1570
1571           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1572
1573
1574           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1575
1576
1577           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1578
1579
1580           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1581
1582
1583           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1584
1585
1586           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1587
1588
1589           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1590
1591
1592           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1593
1594
1595           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1596
1597
1598           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1599
1600
1601           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1602
1603
1604           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1605
1606
1607           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1608
1609
1610           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1611
1612
1613           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1614
1615
1616           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1617
1618
1619           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1620
1621
1622           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1623
1624
1625           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1626
1627
1628           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1629
1630
1631           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1632
1633
1634           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1635
1636
1637           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1638
1639
1640           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1641
1642
1643           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1644
1645
1646           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1647
1648
1649           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1650
1651
1652           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1653
1654
1655           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1656
1657
1658           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1659
1660
1661           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1662
1663
1664           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1665
1666
1667           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1668
1669
1670           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1671
1672
1673           ac_config_commands="$ac_config_commands tools/Makefile"
1674
1675
1676           ac_config_commands="$ac_config_commands utils/Makefile"
1677
1678
1679           ac_config_commands="$ac_config_commands projects/Makefile"
1680
1681
1682
1683 # Find a good install program.  We prefer a C program (faster),
1684 # so one script is as good as another.  But avoid the broken or
1685 # incompatible versions:
1686 # SysV /etc/install, /usr/sbin/install
1687 # SunOS /usr/etc/install
1688 # IRIX /sbin/install
1689 # AIX /bin/install
1690 # AmigaOS /C/install, which installs bootblocks on floppy discs
1691 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1692 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1693 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1694 # ./install, which can be erroneously created by make from ./install.sh.
1695 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1696 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1697 if test -z "$INSTALL"; then
1698 if test "${ac_cv_path_install+set}" = set; then
1699   echo $ECHO_N "(cached) $ECHO_C" >&6
1700 else
1701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 for as_dir in $PATH
1703 do
1704   IFS=$as_save_IFS
1705   test -z "$as_dir" && as_dir=.
1706   # Account for people who put trailing slashes in PATH elements.
1707 case $as_dir/ in
1708   ./ | .// | /cC/* | \
1709   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1710   /usr/ucb/* ) ;;
1711   *)
1712     # OSF1 and SCO ODT 3.0 have their own names for install.
1713     # Don't use installbsd from OSF since it installs stuff as root
1714     # by default.
1715     for ac_prog in ginstall scoinst install; do
1716       for ac_exec_ext in '' $ac_executable_extensions; do
1717         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1718           if test $ac_prog = install &&
1719             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1720             # AIX install.  It has an incompatible calling convention.
1721             :
1722           elif test $ac_prog = install &&
1723             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1724             # program-specific install script used by HP pwplus--don't use.
1725             :
1726           else
1727             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1728             break 3
1729           fi
1730         fi
1731       done
1732     done
1733     ;;
1734 esac
1735 done
1736
1737
1738 fi
1739   if test "${ac_cv_path_install+set}" = set; then
1740     INSTALL=$ac_cv_path_install
1741   else
1742     # As a last resort, use the slow shell script.  We don't cache a
1743     # path for INSTALL within a source directory, because that will
1744     # break other packages using the cache if that directory is
1745     # removed, or if the path is relative.
1746     INSTALL=$ac_install_sh
1747   fi
1748 fi
1749 echo "$as_me:$LINENO: result: $INSTALL" >&5
1750 echo "${ECHO_T}$INSTALL" >&6
1751
1752 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1753 # It thinks the first close brace ends the variable substitution.
1754 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1755
1756 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1757
1758 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1759
1760
1761 # Make sure we can run config.sub.
1762 $ac_config_sub sun4 >/dev/null 2>&1 ||
1763   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1764 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1765    { (exit 1); exit 1; }; }
1766
1767 echo "$as_me:$LINENO: checking build system type" >&5
1768 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1769 if test "${ac_cv_build+set}" = set; then
1770   echo $ECHO_N "(cached) $ECHO_C" >&6
1771 else
1772   ac_cv_build_alias=$build_alias
1773 test -z "$ac_cv_build_alias" &&
1774   ac_cv_build_alias=`$ac_config_guess`
1775 test -z "$ac_cv_build_alias" &&
1776   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1777 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1778    { (exit 1); exit 1; }; }
1779 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1780   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1781 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1782    { (exit 1); exit 1; }; }
1783
1784 fi
1785 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1786 echo "${ECHO_T}$ac_cv_build" >&6
1787 build=$ac_cv_build
1788 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1789 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1790 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1791
1792
1793 echo "$as_me:$LINENO: checking host system type" >&5
1794 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1795 if test "${ac_cv_host+set}" = set; then
1796   echo $ECHO_N "(cached) $ECHO_C" >&6
1797 else
1798   ac_cv_host_alias=$host_alias
1799 test -z "$ac_cv_host_alias" &&
1800   ac_cv_host_alias=$ac_cv_build_alias
1801 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1802   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1803 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1804    { (exit 1); exit 1; }; }
1805
1806 fi
1807 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1808 echo "${ECHO_T}$ac_cv_host" >&6
1809 host=$ac_cv_host
1810 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1811 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1812 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1813
1814
1815 echo "$as_me:$LINENO: checking target system type" >&5
1816 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1817 if test "${ac_cv_target+set}" = set; then
1818   echo $ECHO_N "(cached) $ECHO_C" >&6
1819 else
1820   ac_cv_target_alias=$target_alias
1821 test "x$ac_cv_target_alias" = "x" &&
1822   ac_cv_target_alias=$ac_cv_host_alias
1823 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1824   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1825 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1826    { (exit 1); exit 1; }; }
1827
1828 fi
1829 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1830 echo "${ECHO_T}$ac_cv_target" >&6
1831 target=$ac_cv_target
1832 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1833 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1834 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1835
1836
1837 # The aliases save the names the user supplied, while $host etc.
1838 # will get canonicalized.
1839 test -n "$target_alias" &&
1840   test "$program_prefix$program_suffix$program_transform_name" = \
1841     NONENONEs,x,x, &&
1842   program_prefix=${target_alias}-
1843
1844 case $build in
1845         *-*-linux*)
1846              OS=Linux
1847
1848                          if test -d /home/vadve/lattner/local/x86/llvm-gcc
1849                          then
1850                            LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1851
1852                          fi
1853                  ;;
1854
1855         *-*-solaris*)
1856              OS=SunOS
1857
1858                          if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1859                          then
1860                    LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1861
1862                          fi
1863                  ;;
1864
1865         *-*-darwin*)
1866              OS=Darwin
1867
1868                  ;;
1869
1870         *)       OS=Unknown
1871
1872                  ;;
1873 esac
1874
1875 case $target in
1876         sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1877
1878                             ;;
1879 esac
1880
1881 case $target in
1882         i*86-*)           ARCH=x86
1883
1884                           ;;
1885         sparc*-*)         ARCH=Sparc
1886
1887                           ;;
1888         powerpc*-*)       ARCH=PowerPC
1889
1890                           ;;
1891         *)                ARCH=Unknown
1892
1893                           ;;
1894 esac
1895
1896 ac_ext=cc
1897 ac_cpp='$CXXCPP $CPPFLAGS'
1898 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1899 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1901 if test -n "$ac_tool_prefix"; then
1902   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1903   do
1904     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1905 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1906 echo "$as_me:$LINENO: checking for $ac_word" >&5
1907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1908 if test "${ac_cv_prog_CXX+set}" = set; then
1909   echo $ECHO_N "(cached) $ECHO_C" >&6
1910 else
1911   if test -n "$CXX"; then
1912   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1913 else
1914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915 for as_dir in $PATH
1916 do
1917   IFS=$as_save_IFS
1918   test -z "$as_dir" && as_dir=.
1919   for ac_exec_ext in '' $ac_executable_extensions; do
1920   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1921     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1923     break 2
1924   fi
1925 done
1926 done
1927
1928 fi
1929 fi
1930 CXX=$ac_cv_prog_CXX
1931 if test -n "$CXX"; then
1932   echo "$as_me:$LINENO: result: $CXX" >&5
1933 echo "${ECHO_T}$CXX" >&6
1934 else
1935   echo "$as_me:$LINENO: result: no" >&5
1936 echo "${ECHO_T}no" >&6
1937 fi
1938
1939     test -n "$CXX" && break
1940   done
1941 fi
1942 if test -z "$CXX"; then
1943   ac_ct_CXX=$CXX
1944   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1945 do
1946   # Extract the first word of "$ac_prog", so it can be a program name with args.
1947 set dummy $ac_prog; ac_word=$2
1948 echo "$as_me:$LINENO: checking for $ac_word" >&5
1949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1950 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1951   echo $ECHO_N "(cached) $ECHO_C" >&6
1952 else
1953   if test -n "$ac_ct_CXX"; then
1954   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1955 else
1956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957 for as_dir in $PATH
1958 do
1959   IFS=$as_save_IFS
1960   test -z "$as_dir" && as_dir=.
1961   for ac_exec_ext in '' $ac_executable_extensions; do
1962   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1963     ac_cv_prog_ac_ct_CXX="$ac_prog"
1964     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1965     break 2
1966   fi
1967 done
1968 done
1969
1970 fi
1971 fi
1972 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1973 if test -n "$ac_ct_CXX"; then
1974   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1975 echo "${ECHO_T}$ac_ct_CXX" >&6
1976 else
1977   echo "$as_me:$LINENO: result: no" >&5
1978 echo "${ECHO_T}no" >&6
1979 fi
1980
1981   test -n "$ac_ct_CXX" && break
1982 done
1983 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1984
1985   CXX=$ac_ct_CXX
1986 fi
1987
1988
1989 # Provide some information about the compiler.
1990 echo "$as_me:$LINENO:" \
1991      "checking for C++ compiler version" >&5
1992 ac_compiler=`set X $ac_compile; echo $2`
1993 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1994   (eval $ac_compiler --version </dev/null >&5) 2>&5
1995   ac_status=$?
1996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997   (exit $ac_status); }
1998 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1999   (eval $ac_compiler -v </dev/null >&5) 2>&5
2000   ac_status=$?
2001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002   (exit $ac_status); }
2003 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2004   (eval $ac_compiler -V </dev/null >&5) 2>&5
2005   ac_status=$?
2006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007   (exit $ac_status); }
2008
2009 cat >conftest.$ac_ext <<_ACEOF
2010 #line $LINENO "configure"
2011 /* confdefs.h.  */
2012 _ACEOF
2013 cat confdefs.h >>conftest.$ac_ext
2014 cat >>conftest.$ac_ext <<_ACEOF
2015 /* end confdefs.h.  */
2016
2017 int
2018 main ()
2019 {
2020
2021   ;
2022   return 0;
2023 }
2024 _ACEOF
2025 ac_clean_files_save=$ac_clean_files
2026 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2027 # Try to create an executable without -o first, disregard a.out.
2028 # It will help us diagnose broken compilers, and finding out an intuition
2029 # of exeext.
2030 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2031 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2032 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2033 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2034   (eval $ac_link_default) 2>&5
2035   ac_status=$?
2036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037   (exit $ac_status); }; then
2038   # Find the output, starting from the most likely.  This scheme is
2039 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2040 # resort.
2041
2042 # Be careful to initialize this variable, since it used to be cached.
2043 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2044 ac_cv_exeext=
2045 # b.out is created by i960 compilers.
2046 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2047 do
2048   test -f "$ac_file" || continue
2049   case $ac_file in
2050     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2051         ;;
2052     conftest.$ac_ext )
2053         # This is the source file.
2054         ;;
2055     [ab].out )
2056         # We found the default executable, but exeext='' is most
2057         # certainly right.
2058         break;;
2059     *.* )
2060         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2061         # FIXME: I believe we export ac_cv_exeext for Libtool,
2062         # but it would be cool to find out if it's true.  Does anybody
2063         # maintain Libtool? --akim.
2064         export ac_cv_exeext
2065         break;;
2066     * )
2067         break;;
2068   esac
2069 done
2070 else
2071   echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2073
2074 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2075 See \`config.log' for more details." >&5
2076 echo "$as_me: error: C++ compiler cannot create executables
2077 See \`config.log' for more details." >&2;}
2078    { (exit 77); exit 77; }; }
2079 fi
2080
2081 ac_exeext=$ac_cv_exeext
2082 echo "$as_me:$LINENO: result: $ac_file" >&5
2083 echo "${ECHO_T}$ac_file" >&6
2084
2085 # Check the compiler produces executables we can run.  If not, either
2086 # the compiler is broken, or we cross compile.
2087 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2088 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2089 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2090 # If not cross compiling, check that we can run a simple program.
2091 if test "$cross_compiling" != yes; then
2092   if { ac_try='./$ac_file'
2093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094   (eval $ac_try) 2>&5
2095   ac_status=$?
2096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097   (exit $ac_status); }; }; then
2098     cross_compiling=no
2099   else
2100     if test "$cross_compiling" = maybe; then
2101         cross_compiling=yes
2102     else
2103         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2104 If you meant to cross compile, use \`--host'.
2105 See \`config.log' for more details." >&5
2106 echo "$as_me: error: cannot run C++ compiled programs.
2107 If you meant to cross compile, use \`--host'.
2108 See \`config.log' for more details." >&2;}
2109    { (exit 1); exit 1; }; }
2110     fi
2111   fi
2112 fi
2113 echo "$as_me:$LINENO: result: yes" >&5
2114 echo "${ECHO_T}yes" >&6
2115
2116 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2117 ac_clean_files=$ac_clean_files_save
2118 # Check the compiler produces executables we can run.  If not, either
2119 # the compiler is broken, or we cross compile.
2120 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2121 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2122 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2123 echo "${ECHO_T}$cross_compiling" >&6
2124
2125 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2126 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2128   (eval $ac_link) 2>&5
2129   ac_status=$?
2130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131   (exit $ac_status); }; then
2132   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2133 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2134 # work properly (i.e., refer to `conftest.exe'), while it won't with
2135 # `rm'.
2136 for ac_file in conftest.exe conftest conftest.*; do
2137   test -f "$ac_file" || continue
2138   case $ac_file in
2139     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2140     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2141           export ac_cv_exeext
2142           break;;
2143     * ) break;;
2144   esac
2145 done
2146 else
2147   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2148 See \`config.log' for more details." >&5
2149 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2150 See \`config.log' for more details." >&2;}
2151    { (exit 1); exit 1; }; }
2152 fi
2153
2154 rm -f conftest$ac_cv_exeext
2155 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2156 echo "${ECHO_T}$ac_cv_exeext" >&6
2157
2158 rm -f conftest.$ac_ext
2159 EXEEXT=$ac_cv_exeext
2160 ac_exeext=$EXEEXT
2161 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2162 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2163 if test "${ac_cv_objext+set}" = set; then
2164   echo $ECHO_N "(cached) $ECHO_C" >&6
2165 else
2166   cat >conftest.$ac_ext <<_ACEOF
2167 #line $LINENO "configure"
2168 /* confdefs.h.  */
2169 _ACEOF
2170 cat confdefs.h >>conftest.$ac_ext
2171 cat >>conftest.$ac_ext <<_ACEOF
2172 /* end confdefs.h.  */
2173
2174 int
2175 main ()
2176 {
2177
2178   ;
2179   return 0;
2180 }
2181 _ACEOF
2182 rm -f conftest.o conftest.obj
2183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2184   (eval $ac_compile) 2>&5
2185   ac_status=$?
2186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187   (exit $ac_status); }; then
2188   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2189   case $ac_file in
2190     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2191     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2192        break;;
2193   esac
2194 done
2195 else
2196   echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2198
2199 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2200 See \`config.log' for more details." >&5
2201 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2202 See \`config.log' for more details." >&2;}
2203    { (exit 1); exit 1; }; }
2204 fi
2205
2206 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2207 fi
2208 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2209 echo "${ECHO_T}$ac_cv_objext" >&6
2210 OBJEXT=$ac_cv_objext
2211 ac_objext=$OBJEXT
2212 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2213 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2214 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2215   echo $ECHO_N "(cached) $ECHO_C" >&6
2216 else
2217   cat >conftest.$ac_ext <<_ACEOF
2218 #line $LINENO "configure"
2219 /* confdefs.h.  */
2220 _ACEOF
2221 cat confdefs.h >>conftest.$ac_ext
2222 cat >>conftest.$ac_ext <<_ACEOF
2223 /* end confdefs.h.  */
2224
2225 int
2226 main ()
2227 {
2228 #ifndef __GNUC__
2229        choke me
2230 #endif
2231
2232   ;
2233   return 0;
2234 }
2235 _ACEOF
2236 rm -f conftest.$ac_objext
2237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238   (eval $ac_compile) 2>&5
2239   ac_status=$?
2240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241   (exit $ac_status); } &&
2242          { ac_try='test -s conftest.$ac_objext'
2243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244   (eval $ac_try) 2>&5
2245   ac_status=$?
2246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247   (exit $ac_status); }; }; then
2248   ac_compiler_gnu=yes
2249 else
2250   echo "$as_me: failed program was:" >&5
2251 sed 's/^/| /' conftest.$ac_ext >&5
2252
2253 ac_compiler_gnu=no
2254 fi
2255 rm -f conftest.$ac_objext conftest.$ac_ext
2256 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2257
2258 fi
2259 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2260 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2261 GXX=`test $ac_compiler_gnu = yes && echo yes`
2262 ac_test_CXXFLAGS=${CXXFLAGS+set}
2263 ac_save_CXXFLAGS=$CXXFLAGS
2264 CXXFLAGS="-g"
2265 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2266 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2267 if test "${ac_cv_prog_cxx_g+set}" = set; then
2268   echo $ECHO_N "(cached) $ECHO_C" >&6
2269 else
2270   cat >conftest.$ac_ext <<_ACEOF
2271 #line $LINENO "configure"
2272 /* confdefs.h.  */
2273 _ACEOF
2274 cat confdefs.h >>conftest.$ac_ext
2275 cat >>conftest.$ac_ext <<_ACEOF
2276 /* end confdefs.h.  */
2277
2278 int
2279 main ()
2280 {
2281
2282   ;
2283   return 0;
2284 }
2285 _ACEOF
2286 rm -f conftest.$ac_objext
2287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2288   (eval $ac_compile) 2>&5
2289   ac_status=$?
2290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291   (exit $ac_status); } &&
2292          { ac_try='test -s conftest.$ac_objext'
2293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294   (eval $ac_try) 2>&5
2295   ac_status=$?
2296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297   (exit $ac_status); }; }; then
2298   ac_cv_prog_cxx_g=yes
2299 else
2300   echo "$as_me: failed program was:" >&5
2301 sed 's/^/| /' conftest.$ac_ext >&5
2302
2303 ac_cv_prog_cxx_g=no
2304 fi
2305 rm -f conftest.$ac_objext conftest.$ac_ext
2306 fi
2307 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2308 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2309 if test "$ac_test_CXXFLAGS" = set; then
2310   CXXFLAGS=$ac_save_CXXFLAGS
2311 elif test $ac_cv_prog_cxx_g = yes; then
2312   if test "$GXX" = yes; then
2313     CXXFLAGS="-g -O2"
2314   else
2315     CXXFLAGS="-g"
2316   fi
2317 else
2318   if test "$GXX" = yes; then
2319     CXXFLAGS="-O2"
2320   else
2321     CXXFLAGS=
2322   fi
2323 fi
2324 for ac_declaration in \
2325    ''\
2326    '#include <stdlib.h>' \
2327    'extern "C" void std::exit (int) throw (); using std::exit;' \
2328    'extern "C" void std::exit (int); using std::exit;' \
2329    'extern "C" void exit (int) throw ();' \
2330    'extern "C" void exit (int);' \
2331    'void exit (int);'
2332 do
2333   cat >conftest.$ac_ext <<_ACEOF
2334 #line $LINENO "configure"
2335 /* confdefs.h.  */
2336 _ACEOF
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h.  */
2340 #include <stdlib.h>
2341 $ac_declaration
2342 int
2343 main ()
2344 {
2345 exit (42);
2346   ;
2347   return 0;
2348 }
2349 _ACEOF
2350 rm -f conftest.$ac_objext
2351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352   (eval $ac_compile) 2>&5
2353   ac_status=$?
2354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355   (exit $ac_status); } &&
2356          { ac_try='test -s conftest.$ac_objext'
2357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358   (eval $ac_try) 2>&5
2359   ac_status=$?
2360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361   (exit $ac_status); }; }; then
2362   :
2363 else
2364   echo "$as_me: failed program was:" >&5
2365 sed 's/^/| /' conftest.$ac_ext >&5
2366
2367 continue
2368 fi
2369 rm -f conftest.$ac_objext conftest.$ac_ext
2370   cat >conftest.$ac_ext <<_ACEOF
2371 #line $LINENO "configure"
2372 /* confdefs.h.  */
2373 _ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h.  */
2377 $ac_declaration
2378 int
2379 main ()
2380 {
2381 exit (42);
2382   ;
2383   return 0;
2384 }
2385 _ACEOF
2386 rm -f conftest.$ac_objext
2387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2388   (eval $ac_compile) 2>&5
2389   ac_status=$?
2390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391   (exit $ac_status); } &&
2392          { ac_try='test -s conftest.$ac_objext'
2393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394   (eval $ac_try) 2>&5
2395   ac_status=$?
2396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397   (exit $ac_status); }; }; then
2398   break
2399 else
2400   echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2402
2403 fi
2404 rm -f conftest.$ac_objext conftest.$ac_ext
2405 done
2406 rm -f conftest*
2407 if test -n "$ac_declaration"; then
2408   echo '#ifdef __cplusplus' >>confdefs.h
2409   echo $ac_declaration      >>confdefs.h
2410   echo '#endif'             >>confdefs.h
2411 fi
2412
2413 ac_ext=c
2414 ac_cpp='$CPP $CPPFLAGS'
2415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2418
2419 ac_ext=c
2420 ac_cpp='$CPP $CPPFLAGS'
2421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2424 if test -n "$ac_tool_prefix"; then
2425   for ac_prog in gcc
2426   do
2427     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2428 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2429 echo "$as_me:$LINENO: checking for $ac_word" >&5
2430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2431 if test "${ac_cv_prog_CC+set}" = set; then
2432   echo $ECHO_N "(cached) $ECHO_C" >&6
2433 else
2434   if test -n "$CC"; then
2435   ac_cv_prog_CC="$CC" # Let the user override the test.
2436 else
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 for as_dir in $PATH
2439 do
2440   IFS=$as_save_IFS
2441   test -z "$as_dir" && as_dir=.
2442   for ac_exec_ext in '' $ac_executable_extensions; do
2443   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2444     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2446     break 2
2447   fi
2448 done
2449 done
2450
2451 fi
2452 fi
2453 CC=$ac_cv_prog_CC
2454 if test -n "$CC"; then
2455   echo "$as_me:$LINENO: result: $CC" >&5
2456 echo "${ECHO_T}$CC" >&6
2457 else
2458   echo "$as_me:$LINENO: result: no" >&5
2459 echo "${ECHO_T}no" >&6
2460 fi
2461
2462     test -n "$CC" && break
2463   done
2464 fi
2465 if test -z "$CC"; then
2466   ac_ct_CC=$CC
2467   for ac_prog in gcc
2468 do
2469   # Extract the first word of "$ac_prog", so it can be a program name with args.
2470 set dummy $ac_prog; ac_word=$2
2471 echo "$as_me:$LINENO: checking for $ac_word" >&5
2472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2473 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2474   echo $ECHO_N "(cached) $ECHO_C" >&6
2475 else
2476   if test -n "$ac_ct_CC"; then
2477   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2478 else
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 for as_dir in $PATH
2481 do
2482   IFS=$as_save_IFS
2483   test -z "$as_dir" && as_dir=.
2484   for ac_exec_ext in '' $ac_executable_extensions; do
2485   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2486     ac_cv_prog_ac_ct_CC="$ac_prog"
2487     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2488     break 2
2489   fi
2490 done
2491 done
2492
2493 fi
2494 fi
2495 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2496 if test -n "$ac_ct_CC"; then
2497   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2498 echo "${ECHO_T}$ac_ct_CC" >&6
2499 else
2500   echo "$as_me:$LINENO: result: no" >&5
2501 echo "${ECHO_T}no" >&6
2502 fi
2503
2504   test -n "$ac_ct_CC" && break
2505 done
2506
2507   CC=$ac_ct_CC
2508 fi
2509
2510
2511 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2512 See \`config.log' for more details." >&5
2513 echo "$as_me: error: no acceptable C compiler found in \$PATH
2514 See \`config.log' for more details." >&2;}
2515    { (exit 1); exit 1; }; }
2516
2517 # Provide some information about the compiler.
2518 echo "$as_me:$LINENO:" \
2519      "checking for C compiler version" >&5
2520 ac_compiler=`set X $ac_compile; echo $2`
2521 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2522   (eval $ac_compiler --version </dev/null >&5) 2>&5
2523   ac_status=$?
2524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525   (exit $ac_status); }
2526 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2527   (eval $ac_compiler -v </dev/null >&5) 2>&5
2528   ac_status=$?
2529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530   (exit $ac_status); }
2531 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2532   (eval $ac_compiler -V </dev/null >&5) 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }
2536
2537 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2538 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2539 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2540   echo $ECHO_N "(cached) $ECHO_C" >&6
2541 else
2542   cat >conftest.$ac_ext <<_ACEOF
2543 #line $LINENO "configure"
2544 /* confdefs.h.  */
2545 _ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h.  */
2549
2550 int
2551 main ()
2552 {
2553 #ifndef __GNUC__
2554        choke me
2555 #endif
2556
2557   ;
2558   return 0;
2559 }
2560 _ACEOF
2561 rm -f conftest.$ac_objext
2562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563   (eval $ac_compile) 2>&5
2564   ac_status=$?
2565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566   (exit $ac_status); } &&
2567          { ac_try='test -s conftest.$ac_objext'
2568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569   (eval $ac_try) 2>&5
2570   ac_status=$?
2571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572   (exit $ac_status); }; }; then
2573   ac_compiler_gnu=yes
2574 else
2575   echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2577
2578 ac_compiler_gnu=no
2579 fi
2580 rm -f conftest.$ac_objext conftest.$ac_ext
2581 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2582
2583 fi
2584 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2585 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2586 GCC=`test $ac_compiler_gnu = yes && echo yes`
2587 ac_test_CFLAGS=${CFLAGS+set}
2588 ac_save_CFLAGS=$CFLAGS
2589 CFLAGS="-g"
2590 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2591 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2592 if test "${ac_cv_prog_cc_g+set}" = set; then
2593   echo $ECHO_N "(cached) $ECHO_C" >&6
2594 else
2595   cat >conftest.$ac_ext <<_ACEOF
2596 #line $LINENO "configure"
2597 /* confdefs.h.  */
2598 _ACEOF
2599 cat confdefs.h >>conftest.$ac_ext
2600 cat >>conftest.$ac_ext <<_ACEOF
2601 /* end confdefs.h.  */
2602
2603 int
2604 main ()
2605 {
2606
2607   ;
2608   return 0;
2609 }
2610 _ACEOF
2611 rm -f conftest.$ac_objext
2612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613   (eval $ac_compile) 2>&5
2614   ac_status=$?
2615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616   (exit $ac_status); } &&
2617          { ac_try='test -s conftest.$ac_objext'
2618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619   (eval $ac_try) 2>&5
2620   ac_status=$?
2621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622   (exit $ac_status); }; }; then
2623   ac_cv_prog_cc_g=yes
2624 else
2625   echo "$as_me: failed program was:" >&5
2626 sed 's/^/| /' conftest.$ac_ext >&5
2627
2628 ac_cv_prog_cc_g=no
2629 fi
2630 rm -f conftest.$ac_objext conftest.$ac_ext
2631 fi
2632 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2633 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2634 if test "$ac_test_CFLAGS" = set; then
2635   CFLAGS=$ac_save_CFLAGS
2636 elif test $ac_cv_prog_cc_g = yes; then
2637   if test "$GCC" = yes; then
2638     CFLAGS="-g -O2"
2639   else
2640     CFLAGS="-g"
2641   fi
2642 else
2643   if test "$GCC" = yes; then
2644     CFLAGS="-O2"
2645   else
2646     CFLAGS=
2647   fi
2648 fi
2649 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2650 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2651 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2652   echo $ECHO_N "(cached) $ECHO_C" >&6
2653 else
2654   ac_cv_prog_cc_stdc=no
2655 ac_save_CC=$CC
2656 cat >conftest.$ac_ext <<_ACEOF
2657 #line $LINENO "configure"
2658 /* confdefs.h.  */
2659 _ACEOF
2660 cat confdefs.h >>conftest.$ac_ext
2661 cat >>conftest.$ac_ext <<_ACEOF
2662 /* end confdefs.h.  */
2663 #include <stdarg.h>
2664 #include <stdio.h>
2665 #include <sys/types.h>
2666 #include <sys/stat.h>
2667 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2668 struct buf { int x; };
2669 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2670 static char *e (p, i)
2671      char **p;
2672      int i;
2673 {
2674   return p[i];
2675 }
2676 static char *f (char * (*g) (char **, int), char **p, ...)
2677 {
2678   char *s;
2679   va_list v;
2680   va_start (v,p);
2681   s = g (p, va_arg (v,int));
2682   va_end (v);
2683   return s;
2684 }
2685 int test (int i, double x);
2686 struct s1 {int (*f) (int a);};
2687 struct s2 {int (*f) (double a);};
2688 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2689 int argc;
2690 char **argv;
2691 int
2692 main ()
2693 {
2694 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2695   ;
2696   return 0;
2697 }
2698 _ACEOF
2699 # Don't try gcc -ansi; that turns off useful extensions and
2700 # breaks some systems' header files.
2701 # AIX                   -qlanglvl=ansi
2702 # Ultrix and OSF/1      -std1
2703 # HP-UX 10.20 and later -Ae
2704 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2705 # SVR4                  -Xc -D__EXTENSIONS__
2706 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2707 do
2708   CC="$ac_save_CC $ac_arg"
2709   rm -f conftest.$ac_objext
2710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2711   (eval $ac_compile) 2>&5
2712   ac_status=$?
2713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714   (exit $ac_status); } &&
2715          { ac_try='test -s conftest.$ac_objext'
2716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717   (eval $ac_try) 2>&5
2718   ac_status=$?
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); }; }; then
2721   ac_cv_prog_cc_stdc=$ac_arg
2722 break
2723 else
2724   echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2726
2727 fi
2728 rm -f conftest.$ac_objext
2729 done
2730 rm -f conftest.$ac_ext conftest.$ac_objext
2731 CC=$ac_save_CC
2732
2733 fi
2734
2735 case "x$ac_cv_prog_cc_stdc" in
2736   x|xno)
2737     echo "$as_me:$LINENO: result: none needed" >&5
2738 echo "${ECHO_T}none needed" >&6 ;;
2739   *)
2740     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2741 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2742     CC="$CC $ac_cv_prog_cc_stdc" ;;
2743 esac
2744
2745 # Some people use a C++ compiler to compile C.  Since we use `exit',
2746 # in C++ we need to declare it.  In case someone uses the same compiler
2747 # for both compiling C and C++ we need to have the C++ compiler decide
2748 # the declaration of exit, since it's the most demanding environment.
2749 cat >conftest.$ac_ext <<_ACEOF
2750 #ifndef __cplusplus
2751   choke me
2752 #endif
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   for ac_declaration in \
2767    ''\
2768    '#include <stdlib.h>' \
2769    'extern "C" void std::exit (int) throw (); using std::exit;' \
2770    'extern "C" void std::exit (int); using std::exit;' \
2771    'extern "C" void exit (int) throw ();' \
2772    'extern "C" void exit (int);' \
2773    'void exit (int);'
2774 do
2775   cat >conftest.$ac_ext <<_ACEOF
2776 #line $LINENO "configure"
2777 /* confdefs.h.  */
2778 _ACEOF
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h.  */
2782 #include <stdlib.h>
2783 $ac_declaration
2784 int
2785 main ()
2786 {
2787 exit (42);
2788   ;
2789   return 0;
2790 }
2791 _ACEOF
2792 rm -f conftest.$ac_objext
2793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2794   (eval $ac_compile) 2>&5
2795   ac_status=$?
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); } &&
2798          { ac_try='test -s conftest.$ac_objext'
2799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800   (eval $ac_try) 2>&5
2801   ac_status=$?
2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803   (exit $ac_status); }; }; then
2804   :
2805 else
2806   echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.$ac_ext >&5
2808
2809 continue
2810 fi
2811 rm -f conftest.$ac_objext conftest.$ac_ext
2812   cat >conftest.$ac_ext <<_ACEOF
2813 #line $LINENO "configure"
2814 /* confdefs.h.  */
2815 _ACEOF
2816 cat confdefs.h >>conftest.$ac_ext
2817 cat >>conftest.$ac_ext <<_ACEOF
2818 /* end confdefs.h.  */
2819 $ac_declaration
2820 int
2821 main ()
2822 {
2823 exit (42);
2824   ;
2825   return 0;
2826 }
2827 _ACEOF
2828 rm -f conftest.$ac_objext
2829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830   (eval $ac_compile) 2>&5
2831   ac_status=$?
2832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833   (exit $ac_status); } &&
2834          { ac_try='test -s conftest.$ac_objext'
2835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836   (eval $ac_try) 2>&5
2837   ac_status=$?
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); }; }; then
2840   break
2841 else
2842   echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2844
2845 fi
2846 rm -f conftest.$ac_objext conftest.$ac_ext
2847 done
2848 rm -f conftest*
2849 if test -n "$ac_declaration"; then
2850   echo '#ifdef __cplusplus' >>confdefs.h
2851   echo $ac_declaration      >>confdefs.h
2852   echo '#endif'             >>confdefs.h
2853 fi
2854
2855 else
2856   echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2858
2859 fi
2860 rm -f conftest.$ac_objext conftest.$ac_ext
2861 ac_ext=c
2862 ac_cpp='$CPP $CPPFLAGS'
2863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2866
2867 ac_ext=c
2868 ac_cpp='$CPP $CPPFLAGS'
2869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2872 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2873 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2874 # On Suns, sometimes $CPP names a directory.
2875 if test -n "$CPP" && test -d "$CPP"; then
2876   CPP=
2877 fi
2878 if test -z "$CPP"; then
2879   if test "${ac_cv_prog_CPP+set}" = set; then
2880   echo $ECHO_N "(cached) $ECHO_C" >&6
2881 else
2882       # Double quotes because CPP needs to be expanded
2883     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2884     do
2885       ac_preproc_ok=false
2886 for ac_c_preproc_warn_flag in '' yes
2887 do
2888   # Use a header file that comes with gcc, so configuring glibc
2889   # with a fresh cross-compiler works.
2890   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2891   # <limits.h> exists even on freestanding compilers.
2892   # On the NeXT, cc -E runs the code through the compiler's parser,
2893   # not just through cpp. "Syntax error" is here to catch this case.
2894   cat >conftest.$ac_ext <<_ACEOF
2895 #line $LINENO "configure"
2896 /* confdefs.h.  */
2897 _ACEOF
2898 cat confdefs.h >>conftest.$ac_ext
2899 cat >>conftest.$ac_ext <<_ACEOF
2900 /* end confdefs.h.  */
2901 #ifdef __STDC__
2902 # include <limits.h>
2903 #else
2904 # include <assert.h>
2905 #endif
2906                      Syntax error
2907 _ACEOF
2908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2909   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2910   ac_status=$?
2911   grep -v '^ *+' conftest.er1 >conftest.err
2912   rm -f conftest.er1
2913   cat conftest.err >&5
2914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915   (exit $ac_status); } >/dev/null; then
2916   if test -s conftest.err; then
2917     ac_cpp_err=$ac_c_preproc_warn_flag
2918   else
2919     ac_cpp_err=
2920   fi
2921 else
2922   ac_cpp_err=yes
2923 fi
2924 if test -z "$ac_cpp_err"; then
2925   :
2926 else
2927   echo "$as_me: failed program was:" >&5
2928 sed 's/^/| /' conftest.$ac_ext >&5
2929
2930   # Broken: fails on valid input.
2931 continue
2932 fi
2933 rm -f conftest.err conftest.$ac_ext
2934
2935   # OK, works on sane cases.  Now check whether non-existent headers
2936   # can be detected and how.
2937   cat >conftest.$ac_ext <<_ACEOF
2938 #line $LINENO "configure"
2939 /* confdefs.h.  */
2940 _ACEOF
2941 cat confdefs.h >>conftest.$ac_ext
2942 cat >>conftest.$ac_ext <<_ACEOF
2943 /* end confdefs.h.  */
2944 #include <ac_nonexistent.h>
2945 _ACEOF
2946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2947   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2948   ac_status=$?
2949   grep -v '^ *+' conftest.er1 >conftest.err
2950   rm -f conftest.er1
2951   cat conftest.err >&5
2952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953   (exit $ac_status); } >/dev/null; then
2954   if test -s conftest.err; then
2955     ac_cpp_err=$ac_c_preproc_warn_flag
2956   else
2957     ac_cpp_err=
2958   fi
2959 else
2960   ac_cpp_err=yes
2961 fi
2962 if test -z "$ac_cpp_err"; then
2963   # Broken: success on invalid input.
2964 continue
2965 else
2966   echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2968
2969   # Passes both tests.
2970 ac_preproc_ok=:
2971 break
2972 fi
2973 rm -f conftest.err conftest.$ac_ext
2974
2975 done
2976 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2977 rm -f conftest.err conftest.$ac_ext
2978 if $ac_preproc_ok; then
2979   break
2980 fi
2981
2982     done
2983     ac_cv_prog_CPP=$CPP
2984
2985 fi
2986   CPP=$ac_cv_prog_CPP
2987 else
2988   ac_cv_prog_CPP=$CPP
2989 fi
2990 echo "$as_me:$LINENO: result: $CPP" >&5
2991 echo "${ECHO_T}$CPP" >&6
2992 ac_preproc_ok=false
2993 for ac_c_preproc_warn_flag in '' yes
2994 do
2995   # Use a header file that comes with gcc, so configuring glibc
2996   # with a fresh cross-compiler works.
2997   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2998   # <limits.h> exists even on freestanding compilers.
2999   # On the NeXT, cc -E runs the code through the compiler's parser,
3000   # not just through cpp. "Syntax error" is here to catch this case.
3001   cat >conftest.$ac_ext <<_ACEOF
3002 #line $LINENO "configure"
3003 /* confdefs.h.  */
3004 _ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h.  */
3008 #ifdef __STDC__
3009 # include <limits.h>
3010 #else
3011 # include <assert.h>
3012 #endif
3013                      Syntax error
3014 _ACEOF
3015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3016   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3017   ac_status=$?
3018   grep -v '^ *+' conftest.er1 >conftest.err
3019   rm -f conftest.er1
3020   cat conftest.err >&5
3021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022   (exit $ac_status); } >/dev/null; then
3023   if test -s conftest.err; then
3024     ac_cpp_err=$ac_c_preproc_warn_flag
3025   else
3026     ac_cpp_err=
3027   fi
3028 else
3029   ac_cpp_err=yes
3030 fi
3031 if test -z "$ac_cpp_err"; then
3032   :
3033 else
3034   echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3036
3037   # Broken: fails on valid input.
3038 continue
3039 fi
3040 rm -f conftest.err conftest.$ac_ext
3041
3042   # OK, works on sane cases.  Now check whether non-existent headers
3043   # can be detected and how.
3044   cat >conftest.$ac_ext <<_ACEOF
3045 #line $LINENO "configure"
3046 /* confdefs.h.  */
3047 _ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h.  */
3051 #include <ac_nonexistent.h>
3052 _ACEOF
3053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3054   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3055   ac_status=$?
3056   grep -v '^ *+' conftest.er1 >conftest.err
3057   rm -f conftest.er1
3058   cat conftest.err >&5
3059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060   (exit $ac_status); } >/dev/null; then
3061   if test -s conftest.err; then
3062     ac_cpp_err=$ac_c_preproc_warn_flag
3063   else
3064     ac_cpp_err=
3065   fi
3066 else
3067   ac_cpp_err=yes
3068 fi
3069 if test -z "$ac_cpp_err"; then
3070   # Broken: success on invalid input.
3071 continue
3072 else
3073   echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3075
3076   # Passes both tests.
3077 ac_preproc_ok=:
3078 break
3079 fi
3080 rm -f conftest.err conftest.$ac_ext
3081
3082 done
3083 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3084 rm -f conftest.err conftest.$ac_ext
3085 if $ac_preproc_ok; then
3086   :
3087 else
3088   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3089 See \`config.log' for more details." >&5
3090 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3091 See \`config.log' for more details." >&2;}
3092    { (exit 1); exit 1; }; }
3093 fi
3094
3095 ac_ext=c
3096 ac_cpp='$CPP $CPPFLAGS'
3097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3100
3101
3102 if test "$GCC" != "yes"
3103 then
3104         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3105 echo "$as_me: error: gcc required but not found" >&2;}
3106    { (exit 1); exit 1; }; }
3107 fi
3108 if test "$GXX" != "yes"
3109 then
3110         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3111 echo "$as_me: error: g++ required but not found" >&2;}
3112    { (exit 1); exit 1; }; }
3113 fi
3114
3115 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3116 if test "$gccmajor" -lt "3"
3117 then
3118         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3119 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3120    { (exit 1); exit 1; }; }
3121 fi
3122
3123  echo "$as_me:$LINENO: checking for GNU make" >&5
3124 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3125 if test "${_cv_gnu_make_command+set}" = set; then
3126   echo $ECHO_N "(cached) $ECHO_C" >&6
3127 else
3128   _cv_gnu_make_command='' ;
3129                 for a in "$MAKE" make gmake gnumake ; do
3130                         if test -z "$a" ; then continue ; fi ;
3131                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3132                                 _cv_gnu_make_command=$a ;
3133                                 break;
3134                         fi
3135                 done ;
3136
3137 fi
3138 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3139 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3140         if test  "x$_cv_gnu_make_command" != "x"  ; then
3141                 ifGNUmake='' ;
3142         else
3143                 ifGNUmake='#' ;
3144                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3145 echo "${ECHO_T}\"Not found\"" >&6;
3146         fi
3147
3148
3149 if test -z "$_cv_gnu_make_command"
3150 then
3151         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3152 echo "$as_me: error: GNU Make required but not found" >&2;}
3153    { (exit 1); exit 1; }; }
3154 fi
3155
3156
3157 echo "$as_me:$LINENO: checking " >&5
3158 echo $ECHO_N "checking ... $ECHO_C" >&6
3159 if test "${ac_cv_has_flex+set}" = set; then
3160   echo $ECHO_N "(cached) $ECHO_C" >&6
3161 else
3162   for ac_prog in flex lex
3163 do
3164   # Extract the first word of "$ac_prog", so it can be a program name with args.
3165 set dummy $ac_prog; ac_word=$2
3166 echo "$as_me:$LINENO: checking for $ac_word" >&5
3167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3168 if test "${ac_cv_prog_LEX+set}" = set; then
3169   echo $ECHO_N "(cached) $ECHO_C" >&6
3170 else
3171   if test -n "$LEX"; then
3172   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3173 else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3176 do
3177   IFS=$as_save_IFS
3178   test -z "$as_dir" && as_dir=.
3179   for ac_exec_ext in '' $ac_executable_extensions; do
3180   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181     ac_cv_prog_LEX="$ac_prog"
3182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3183     break 2
3184   fi
3185 done
3186 done
3187
3188 fi
3189 fi
3190 LEX=$ac_cv_prog_LEX
3191 if test -n "$LEX"; then
3192   echo "$as_me:$LINENO: result: $LEX" >&5
3193 echo "${ECHO_T}$LEX" >&6
3194 else
3195   echo "$as_me:$LINENO: result: no" >&5
3196 echo "${ECHO_T}no" >&6
3197 fi
3198
3199   test -n "$LEX" && break
3200 done
3201 test -n "$LEX" || LEX=":"
3202
3203 if test -z "$LEXLIB"
3204 then
3205   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3206 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3207 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3208   echo $ECHO_N "(cached) $ECHO_C" >&6
3209 else
3210   ac_check_lib_save_LIBS=$LIBS
3211 LIBS="-lfl  $LIBS"
3212 cat >conftest.$ac_ext <<_ACEOF
3213 #line $LINENO "configure"
3214 /* confdefs.h.  */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h.  */
3219
3220 /* Override any gcc2 internal prototype to avoid an error.  */
3221 #ifdef __cplusplus
3222 extern "C"
3223 #endif
3224 /* We use char because int might match the return type of a gcc2
3225    builtin and then its argument prototype would still apply.  */
3226 char yywrap ();
3227 int
3228 main ()
3229 {
3230 yywrap ();
3231   ;
3232   return 0;
3233 }
3234 _ACEOF
3235 rm -f conftest.$ac_objext conftest$ac_exeext
3236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3237   (eval $ac_link) 2>&5
3238   ac_status=$?
3239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240   (exit $ac_status); } &&
3241          { ac_try='test -s conftest$ac_exeext'
3242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243   (eval $ac_try) 2>&5
3244   ac_status=$?
3245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246   (exit $ac_status); }; }; then
3247   ac_cv_lib_fl_yywrap=yes
3248 else
3249   echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3251
3252 ac_cv_lib_fl_yywrap=no
3253 fi
3254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3255 LIBS=$ac_check_lib_save_LIBS
3256 fi
3257 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3258 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3259 if test $ac_cv_lib_fl_yywrap = yes; then
3260   LEXLIB="-lfl"
3261 else
3262   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3263 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3264 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3265   echo $ECHO_N "(cached) $ECHO_C" >&6
3266 else
3267   ac_check_lib_save_LIBS=$LIBS
3268 LIBS="-ll  $LIBS"
3269 cat >conftest.$ac_ext <<_ACEOF
3270 #line $LINENO "configure"
3271 /* confdefs.h.  */
3272 _ACEOF
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h.  */
3276
3277 /* Override any gcc2 internal prototype to avoid an error.  */
3278 #ifdef __cplusplus
3279 extern "C"
3280 #endif
3281 /* We use char because int might match the return type of a gcc2
3282    builtin and then its argument prototype would still apply.  */
3283 char yywrap ();
3284 int
3285 main ()
3286 {
3287 yywrap ();
3288   ;
3289   return 0;
3290 }
3291 _ACEOF
3292 rm -f conftest.$ac_objext conftest$ac_exeext
3293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3294   (eval $ac_link) 2>&5
3295   ac_status=$?
3296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297   (exit $ac_status); } &&
3298          { ac_try='test -s conftest$ac_exeext'
3299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300   (eval $ac_try) 2>&5
3301   ac_status=$?
3302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303   (exit $ac_status); }; }; then
3304   ac_cv_lib_l_yywrap=yes
3305 else
3306   echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3308
3309 ac_cv_lib_l_yywrap=no
3310 fi
3311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3312 LIBS=$ac_check_lib_save_LIBS
3313 fi
3314 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3315 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3316 if test $ac_cv_lib_l_yywrap = yes; then
3317   LEXLIB="-ll"
3318 fi
3319
3320 fi
3321
3322 fi
3323
3324 if test "x$LEX" != "x:"; then
3325   echo "$as_me:$LINENO: checking lex output file root" >&5
3326 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3327 if test "${ac_cv_prog_lex_root+set}" = set; then
3328   echo $ECHO_N "(cached) $ECHO_C" >&6
3329 else
3330   # The minimal lex program is just a single line: %%.  But some broken lexes
3331 # (Solaris, I think it was) want two %% lines, so accommodate them.
3332 cat >conftest.l <<_ACEOF
3333 %%
3334 %%
3335 _ACEOF
3336 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3337   (eval $LEX conftest.l) 2>&5
3338   ac_status=$?
3339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340   (exit $ac_status); }
3341 if test -f lex.yy.c; then
3342   ac_cv_prog_lex_root=lex.yy
3343 elif test -f lexyy.c; then
3344   ac_cv_prog_lex_root=lexyy
3345 else
3346   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3347 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3348    { (exit 1); exit 1; }; }
3349 fi
3350 fi
3351 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3352 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3353 rm -f conftest.l
3354 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3355
3356 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3357 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3358 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3359   echo $ECHO_N "(cached) $ECHO_C" >&6
3360 else
3361   # POSIX says lex can declare yytext either as a pointer or an array; the
3362 # default is implementation-dependent. Figure out which it is, since
3363 # not all implementations provide the %pointer and %array declarations.
3364 ac_cv_prog_lex_yytext_pointer=no
3365 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3366 ac_save_LIBS=$LIBS
3367 LIBS="$LIBS $LEXLIB"
3368 cat >conftest.$ac_ext <<_ACEOF
3369 `cat $LEX_OUTPUT_ROOT.c`
3370 _ACEOF
3371 rm -f conftest.$ac_objext conftest$ac_exeext
3372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3373   (eval $ac_link) 2>&5
3374   ac_status=$?
3375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376   (exit $ac_status); } &&
3377          { ac_try='test -s conftest$ac_exeext'
3378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379   (eval $ac_try) 2>&5
3380   ac_status=$?
3381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382   (exit $ac_status); }; }; then
3383   ac_cv_prog_lex_yytext_pointer=yes
3384 else
3385   echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3387
3388 fi
3389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3390 LIBS=$ac_save_LIBS
3391 rm -f "${LEX_OUTPUT_ROOT}.c"
3392
3393 fi
3394 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3395 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3396 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3397
3398 cat >>confdefs.h <<\_ACEOF
3399 #define YYTEXT_POINTER 1
3400 _ACEOF
3401
3402 fi
3403
3404 fi
3405
3406 fi
3407 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3408 echo "${ECHO_T}$ac_cv_has_flex" >&6
3409 if test "$LEX" != "flex"; then
3410   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3411 echo "$as_me: error: flex not found but required" >&2;}
3412    { (exit 1); exit 1; }; }
3413 fi
3414
3415 echo "$as_me:$LINENO: checking " >&5
3416 echo $ECHO_N "checking ... $ECHO_C" >&6
3417 if test "${ac_cv_has_bison+set}" = set; then
3418   echo $ECHO_N "(cached) $ECHO_C" >&6
3419 else
3420   for ac_prog in 'bison -y' byacc
3421 do
3422   # Extract the first word of "$ac_prog", so it can be a program name with args.
3423 set dummy $ac_prog; ac_word=$2
3424 echo "$as_me:$LINENO: checking for $ac_word" >&5
3425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3426 if test "${ac_cv_prog_YACC+set}" = set; then
3427   echo $ECHO_N "(cached) $ECHO_C" >&6
3428 else
3429   if test -n "$YACC"; then
3430   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3431 else
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 for as_dir in $PATH
3434 do
3435   IFS=$as_save_IFS
3436   test -z "$as_dir" && as_dir=.
3437   for ac_exec_ext in '' $ac_executable_extensions; do
3438   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3439     ac_cv_prog_YACC="$ac_prog"
3440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3441     break 2
3442   fi
3443 done
3444 done
3445
3446 fi
3447 fi
3448 YACC=$ac_cv_prog_YACC
3449 if test -n "$YACC"; then
3450   echo "$as_me:$LINENO: result: $YACC" >&5
3451 echo "${ECHO_T}$YACC" >&6
3452 else
3453   echo "$as_me:$LINENO: result: no" >&5
3454 echo "${ECHO_T}no" >&6
3455 fi
3456
3457   test -n "$YACC" && break
3458 done
3459 test -n "$YACC" || YACC="yacc"
3460
3461
3462 fi
3463 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3464 echo "${ECHO_T}$ac_cv_has_bison" >&6
3465 if test "$YACC" != "bison -y"; then
3466   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3467 echo "$as_me: error: bison not found but required" >&2;}
3468    { (exit 1); exit 1; }; }
3469 else
3470   BISON=bison
3471
3472 fi
3473
3474 # Check whether --enable-shared or --disable-shared was given.
3475 if test "${enable_shared+set}" = set; then
3476   enableval="$enable_shared"
3477   p=${PACKAGE-default}
3478     case $enableval in
3479     yes) enable_shared=yes ;;
3480     no) enable_shared=no ;;
3481     *)
3482       enable_shared=no
3483       # Look at the argument we got.  We use all the common list separators.
3484       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3485       for pkg in $enableval; do
3486         IFS="$lt_save_ifs"
3487         if test "X$pkg" = "X$p"; then
3488           enable_shared=yes
3489         fi
3490       done
3491       IFS="$lt_save_ifs"
3492       ;;
3493     esac
3494 else
3495   enable_shared=yes
3496 fi;
3497
3498 # Check whether --enable-static or --disable-static was given.
3499 if test "${enable_static+set}" = set; then
3500   enableval="$enable_static"
3501   p=${PACKAGE-default}
3502     case $enableval in
3503     yes) enable_static=yes ;;
3504     no) enable_static=no ;;
3505     *)
3506      enable_static=no
3507       # Look at the argument we got.  We use all the common list separators.
3508       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3509       for pkg in $enableval; do
3510         IFS="$lt_save_ifs"
3511         if test "X$pkg" = "X$p"; then
3512           enable_static=yes
3513         fi
3514       done
3515       IFS="$lt_save_ifs"
3516       ;;
3517     esac
3518 else
3519   enable_static=yes
3520 fi;
3521
3522 # Check whether --enable-fast-install or --disable-fast-install was given.
3523 if test "${enable_fast_install+set}" = set; then
3524   enableval="$enable_fast_install"
3525   p=${PACKAGE-default}
3526     case $enableval in
3527     yes) enable_fast_install=yes ;;
3528     no) enable_fast_install=no ;;
3529     *)
3530       enable_fast_install=no
3531       # Look at the argument we got.  We use all the common list separators.
3532       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3533       for pkg in $enableval; do
3534         IFS="$lt_save_ifs"
3535         if test "X$pkg" = "X$p"; then
3536           enable_fast_install=yes
3537         fi
3538       done
3539       IFS="$lt_save_ifs"
3540       ;;
3541     esac
3542 else
3543   enable_fast_install=yes
3544 fi;
3545
3546 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3547 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3548 if test "${lt_cv_path_SED+set}" = set; then
3549   echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551   # Loop through the user's path and test for sed and gsed.
3552 # Then use that list of sed's as ones to test for truncation.
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH
3555 do
3556   IFS=$as_save_IFS
3557   test -z "$as_dir" && as_dir=.
3558   for lt_ac_prog in sed gsed; do
3559     for ac_exec_ext in '' $ac_executable_extensions; do
3560       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3561         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3562       fi
3563     done
3564   done
3565 done
3566 lt_ac_max=0
3567 lt_ac_count=0
3568 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3569 # along with /bin/sed that truncates output.
3570 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3571   test ! -f $lt_ac_sed && break
3572   cat /dev/null > conftest.in
3573   lt_ac_count=0
3574   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3575   # Check for GNU sed and select it if it is found.
3576   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3577     lt_cv_path_SED=$lt_ac_sed
3578     break
3579   fi
3580   while true; do
3581     cat conftest.in conftest.in >conftest.tmp
3582     mv conftest.tmp conftest.in
3583     cp conftest.in conftest.nl
3584     echo >>conftest.nl
3585     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3586     cmp -s conftest.out conftest.nl || break
3587     # 10000 chars as input seems more than enough
3588     test $lt_ac_count -gt 10 && break
3589     lt_ac_count=`expr $lt_ac_count + 1`
3590     if test $lt_ac_count -gt $lt_ac_max; then
3591       lt_ac_max=$lt_ac_count
3592       lt_cv_path_SED=$lt_ac_sed
3593     fi
3594   done
3595 done
3596 SED=$lt_cv_path_SED
3597
3598 fi
3599
3600 echo "$as_me:$LINENO: result: $SED" >&5
3601 echo "${ECHO_T}$SED" >&6
3602
3603 echo "$as_me:$LINENO: checking for egrep" >&5
3604 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3605 if test "${ac_cv_prog_egrep+set}" = set; then
3606   echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3609     then ac_cv_prog_egrep='grep -E'
3610     else ac_cv_prog_egrep='egrep'
3611     fi
3612 fi
3613 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3614 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3615  EGREP=$ac_cv_prog_egrep
3616
3617
3618
3619 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3620 if test "${with_gnu_ld+set}" = set; then
3621   withval="$with_gnu_ld"
3622   test "$withval" = no || with_gnu_ld=yes
3623 else
3624   with_gnu_ld=no
3625 fi;
3626 ac_prog=ld
3627 if test "$GCC" = yes; then
3628   # Check if gcc -print-prog-name=ld gives a path.
3629   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3630 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3631   case $host in
3632   *-*-mingw*)
3633     # gcc leaves a trailing carriage return which upsets mingw
3634     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3635   *)
3636     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3637   esac
3638   case $ac_prog in
3639     # Accept absolute paths.
3640     [\\/]* | ?:[\\/]*)
3641       re_direlt='/[^/][^/]*/\.\./'
3642       # Canonicalize the path of ld
3643       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3644       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3645         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3646       done
3647       test -z "$LD" && LD="$ac_prog"
3648       ;;
3649   "")
3650     # If it fails, then pretend we aren't using GCC.
3651     ac_prog=ld
3652     ;;
3653   *)
3654     # If it is relative, then search for the first ld in PATH.
3655     with_gnu_ld=unknown
3656     ;;
3657   esac
3658 elif test "$with_gnu_ld" = yes; then
3659   echo "$as_me:$LINENO: checking for GNU ld" >&5
3660 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3661 else
3662   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3663 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3664 fi
3665 if test "${lt_cv_path_LD+set}" = set; then
3666   echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668   if test -z "$LD"; then
3669   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3670   for ac_dir in $PATH; do
3671     IFS="$lt_save_ifs"
3672     test -z "$ac_dir" && ac_dir=.
3673     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3674       lt_cv_path_LD="$ac_dir/$ac_prog"
3675       # Check to see if the program is GNU ld.  I'd rather use --version,
3676       # but apparently some GNU ld's only accept -v.
3677       # Break only if it was the GNU/non-GNU ld that we prefer.
3678       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3679       *GNU* | *'with BFD'*)
3680         test "$with_gnu_ld" != no && break
3681         ;;
3682       *)
3683         test "$with_gnu_ld" != yes && break
3684         ;;
3685       esac
3686     fi
3687   done
3688   IFS="$lt_save_ifs"
3689 else
3690   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3691 fi
3692 fi
3693
3694 LD="$lt_cv_path_LD"
3695 if test -n "$LD"; then
3696   echo "$as_me:$LINENO: result: $LD" >&5
3697 echo "${ECHO_T}$LD" >&6
3698 else
3699   echo "$as_me:$LINENO: result: no" >&5
3700 echo "${ECHO_T}no" >&6
3701 fi
3702 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3703 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3704    { (exit 1); exit 1; }; }
3705 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3706 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3707 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3708   echo $ECHO_N "(cached) $ECHO_C" >&6
3709 else
3710   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3711 case `"$LD" -v 2>&1 </dev/null` in
3712 *GNU* | *'with BFD'*)
3713   lt_cv_prog_gnu_ld=yes
3714   ;;
3715 *)
3716   lt_cv_prog_gnu_ld=no
3717   ;;
3718 esac
3719 fi
3720 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3721 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3722 with_gnu_ld=$lt_cv_prog_gnu_ld
3723
3724
3725 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3726 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3727 if test "${lt_cv_ld_reload_flag+set}" = set; then
3728   echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730   lt_cv_ld_reload_flag='-r'
3731 fi
3732 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3733 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3734 reload_flag=$lt_cv_ld_reload_flag
3735 case $reload_flag in
3736 "" | " "*) ;;
3737 *) reload_flag=" $reload_flag" ;;
3738 esac
3739 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3740
3741 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3742 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3743 if test "${lt_cv_path_NM+set}" = set; then
3744   echo $ECHO_N "(cached) $ECHO_C" >&6
3745 else
3746   if test -n "$NM"; then
3747   # Let the user override the test.
3748   lt_cv_path_NM="$NM"
3749 else
3750   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3751   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3752     IFS="$lt_save_ifs"
3753     test -z "$ac_dir" && ac_dir=.
3754     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3755     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3756       # Check to see if the nm accepts a BSD-compat flag.
3757       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3758       #   nm: unknown option "B" ignored
3759       # Tru64's nm complains that /dev/null is an invalid object file
3760       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3761       */dev/null* | *'Invalid file or object type'*)
3762         lt_cv_path_NM="$tmp_nm -B"
3763         break
3764         ;;
3765       *)
3766         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3767         */dev/null*)
3768           lt_cv_path_NM="$tmp_nm -p"
3769           break
3770           ;;
3771         *)
3772           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3773           continue # so that we can try to find one that supports BSD flags
3774           ;;
3775         esac
3776       esac
3777     fi
3778   done
3779   IFS="$lt_save_ifs"
3780   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3781 fi
3782 fi
3783 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3784 echo "${ECHO_T}$lt_cv_path_NM" >&6
3785 NM="$lt_cv_path_NM"
3786
3787 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3788 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3789 LN_S=$as_ln_s
3790 if test "$LN_S" = "ln -s"; then
3791   echo "$as_me:$LINENO: result: yes" >&5
3792 echo "${ECHO_T}yes" >&6
3793 else
3794   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3795 echo "${ECHO_T}no, using $LN_S" >&6
3796 fi
3797
3798 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3799 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3800 if test "${lt_cv_deplibs_check_method+set}" = set; then
3801   echo $ECHO_N "(cached) $ECHO_C" >&6
3802 else
3803   lt_cv_file_magic_cmd='$MAGIC_CMD'
3804 lt_cv_file_magic_test_file=
3805 lt_cv_deplibs_check_method='unknown'
3806 # Need to set the preceding variable on all platforms that support
3807 # interlibrary dependencies.
3808 # 'none' -- dependencies not supported.
3809 # `unknown' -- same as none, but documents that we really don't know.
3810 # 'pass_all' -- all dependencies passed with no checks.
3811 # 'test_compile' -- check by making test program.
3812 # 'file_magic [[regex]]' -- check by looking for files in library path
3813 # which responds to the $file_magic_cmd with a given extended regex.
3814 # If you have `file' or equivalent on your system and you're not sure
3815 # whether `pass_all' will *always* work, you probably want this one.
3816
3817 case $host_os in
3818 aix4* | aix5*)
3819   lt_cv_deplibs_check_method=pass_all
3820   ;;
3821
3822 beos*)
3823   lt_cv_deplibs_check_method=pass_all
3824   ;;
3825
3826 bsdi4*)
3827   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3828   lt_cv_file_magic_cmd='/usr/bin/file -L'
3829   lt_cv_file_magic_test_file=/shlib/libc.so
3830   ;;
3831
3832 cygwin* | mingw* | pw32*)
3833   # win32_libid is a shell function defined in ltmain.sh
3834   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3835   lt_cv_file_magic_cmd='win32_libid'
3836   ;;
3837
3838 darwin* | rhapsody*)
3839   # this will be overwritten by pass_all, but leave it in just in case
3840   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3841   lt_cv_file_magic_cmd='/usr/bin/file -L'
3842   case "$host_os" in
3843   rhapsody* | darwin1.[012])
3844     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3845     ;;
3846   *) # Darwin 1.3 on
3847     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3848     ;;
3849   esac
3850   lt_cv_deplibs_check_method=pass_all
3851   ;;
3852
3853 freebsd*)
3854   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3855     case $host_cpu in
3856     i*86 )
3857       # Not sure whether the presence of OpenBSD here was a mistake.
3858       # Let's accept both of them until this is cleared up.
3859       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3860       lt_cv_file_magic_cmd=/usr/bin/file
3861       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3862       ;;
3863     esac
3864   else
3865     lt_cv_deplibs_check_method=pass_all
3866   fi
3867   ;;
3868
3869 gnu*)
3870   lt_cv_deplibs_check_method=pass_all
3871   ;;
3872
3873 hpux10.20* | hpux11*)
3874   lt_cv_file_magic_cmd=/usr/bin/file
3875   case "$host_cpu" in
3876   ia64*)
3877     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3878     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3879     ;;
3880   hppa*64*)
3881     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]'
3882     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3883     ;;
3884   *)
3885     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3886     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3887     ;;
3888   esac
3889   ;;
3890
3891 irix5* | irix6* | nonstopux*)
3892   case $host_os in
3893   irix5* | nonstopux*)
3894     # this will be overridden with pass_all, but let us keep it just in case
3895     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3896     ;;
3897   *)
3898     case $LD in
3899     *-32|*"-32 ") libmagic=32-bit;;
3900     *-n32|*"-n32 ") libmagic=N32;;
3901     *-64|*"-64 ") libmagic=64-bit;;
3902     *) libmagic=never-match;;
3903     esac
3904     # this will be overridden with pass_all, but let us keep it just in case
3905     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3906     ;;
3907   esac
3908   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3909   lt_cv_deplibs_check_method=pass_all
3910   ;;
3911
3912 # This must be Linux ELF.
3913 linux*)
3914   case $host_cpu in
3915   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3916     lt_cv_deplibs_check_method=pass_all ;;
3917   *)
3918     # glibc up to 2.1.1 does not perform some relocations on ARM
3919     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3920   esac
3921   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3922   ;;
3923
3924 netbsd*)
3925   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3926     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3927   else
3928     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3929   fi
3930   ;;
3931
3932 newos6*)
3933   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3934   lt_cv_file_magic_cmd=/usr/bin/file
3935   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3936   ;;
3937
3938 nto-qnx)
3939   lt_cv_deplibs_check_method=unknown
3940   ;;
3941
3942 openbsd*)
3943   lt_cv_file_magic_cmd=/usr/bin/file
3944   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3945   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3946     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3947   else
3948     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3949   fi
3950   ;;
3951
3952 osf3* | osf4* | osf5*)
3953   # this will be overridden with pass_all, but let us keep it just in case
3954   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3955   lt_cv_file_magic_test_file=/shlib/libc.so
3956   lt_cv_deplibs_check_method=pass_all
3957   ;;
3958
3959 sco3.2v5*)
3960   lt_cv_deplibs_check_method=pass_all
3961   ;;
3962
3963 solaris*)
3964   lt_cv_deplibs_check_method=pass_all
3965   lt_cv_file_magic_test_file=/lib/libc.so
3966   ;;
3967
3968 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3969   case $host_vendor in
3970   motorola)
3971     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]'
3972     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3973     ;;
3974   ncr)
3975     lt_cv_deplibs_check_method=pass_all
3976     ;;
3977   sequent)
3978     lt_cv_file_magic_cmd='/bin/file'
3979     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3980     ;;
3981   sni)
3982     lt_cv_file_magic_cmd='/bin/file'
3983     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3984     lt_cv_file_magic_test_file=/lib/libc.so
3985     ;;
3986   siemens)
3987     lt_cv_deplibs_check_method=pass_all
3988     ;;
3989   esac
3990   ;;
3991
3992 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3993   lt_cv_deplibs_check_method=pass_all
3994   ;;
3995 esac
3996
3997 fi
3998 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3999 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4000 file_magic_cmd=$lt_cv_file_magic_cmd
4001 deplibs_check_method=$lt_cv_deplibs_check_method
4002 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4003
4004
4005
4006
4007 # If no C compiler was specified, use CC.
4008 LTCC=${LTCC-"$CC"}
4009
4010 # Allow CC to be a program name with arguments.
4011 compiler=$CC
4012
4013 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4014 if test "${enable_libtool_lock+set}" = set; then
4015   enableval="$enable_libtool_lock"
4016
4017 fi;
4018 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4019
4020 # Some flags need to be propagated to the compiler or linker for good
4021 # libtool support.
4022 case $host in
4023 ia64-*-hpux*)
4024   # Find out which ABI we are using.
4025   echo 'int i;' > conftest.$ac_ext
4026   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4027   (eval $ac_compile) 2>&5
4028   ac_status=$?
4029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030   (exit $ac_status); }; then
4031     case `/usr/bin/file conftest.$ac_objext` in
4032     *ELF-32*)
4033       HPUX_IA64_MODE="32"
4034       ;;
4035     *ELF-64*)
4036       HPUX_IA64_MODE="64"
4037       ;;
4038     esac
4039   fi
4040   rm -rf conftest*
4041   ;;
4042 *-*-irix6*)
4043   # Find out which ABI we are using.
4044   echo '#line 4044 "configure"' > conftest.$ac_ext
4045   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4046   (eval $ac_compile) 2>&5
4047   ac_status=$?
4048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049   (exit $ac_status); }; then
4050    if test "$lt_cv_prog_gnu_ld" = yes; then
4051     case `/usr/bin/file conftest.$ac_objext` in
4052     *32-bit*)
4053       LD="${LD-ld} -melf32bsmip"
4054       ;;
4055     *N32*)
4056       LD="${LD-ld} -melf32bmipn32"
4057       ;;
4058     *64-bit*)
4059       LD="${LD-ld} -melf64bmip"
4060       ;;
4061     esac
4062    else
4063     case `/usr/bin/file conftest.$ac_objext` in
4064     *32-bit*)
4065       LD="${LD-ld} -32"
4066       ;;
4067     *N32*)
4068       LD="${LD-ld} -n32"
4069       ;;
4070     *64-bit*)
4071       LD="${LD-ld} -64"
4072       ;;
4073     esac
4074    fi
4075   fi
4076   rm -rf conftest*
4077   ;;
4078
4079 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4080   # Find out which ABI we are using.
4081   echo 'int i;' > conftest.$ac_ext
4082   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4083   (eval $ac_compile) 2>&5
4084   ac_status=$?
4085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086   (exit $ac_status); }; then
4087     case "`/usr/bin/file conftest.o`" in
4088     *32-bit*)
4089       case $host in
4090         x86_64-*linux*)
4091           LD="${LD-ld} -m elf_i386"
4092           ;;
4093         ppc64-*linux*)
4094           LD="${LD-ld} -m elf32ppclinux"
4095           ;;
4096         s390x-*linux*)
4097           LD="${LD-ld} -m elf_s390"
4098           ;;
4099         sparc64-*linux*)
4100           LD="${LD-ld} -m elf32_sparc"
4101           ;;
4102       esac
4103       ;;
4104     *64-bit*)
4105       case $host in
4106         x86_64-*linux*)
4107           LD="${LD-ld} -m elf_x86_64"
4108           ;;
4109         ppc*-*linux*|powerpc*-*linux*)
4110           LD="${LD-ld} -m elf64ppc"
4111           ;;
4112         s390*-*linux*)
4113           LD="${LD-ld} -m elf64_s390"
4114           ;;
4115         sparc*-*linux*)
4116           LD="${LD-ld} -m elf64_sparc"
4117           ;;
4118       esac
4119       ;;
4120     esac
4121   fi
4122   rm -rf conftest*
4123   ;;
4124
4125 *-*-sco3.2v5*)
4126   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4127   SAVE_CFLAGS="$CFLAGS"
4128   CFLAGS="$CFLAGS -belf"
4129   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4130 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4131 if test "${lt_cv_cc_needs_belf+set}" = set; then
4132   echo $ECHO_N "(cached) $ECHO_C" >&6
4133 else
4134   ac_ext=c
4135 ac_cpp='$CPP $CPPFLAGS'
4136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139
4140      cat >conftest.$ac_ext <<_ACEOF
4141 #line $LINENO "configure"
4142 /* confdefs.h.  */
4143 _ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h.  */
4147
4148 int
4149 main ()
4150 {
4151
4152   ;
4153   return 0;
4154 }
4155 _ACEOF
4156 rm -f conftest.$ac_objext conftest$ac_exeext
4157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4158   (eval $ac_link) 2>&5
4159   ac_status=$?
4160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161   (exit $ac_status); } &&
4162          { ac_try='test -s conftest$ac_exeext'
4163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164   (eval $ac_try) 2>&5
4165   ac_status=$?
4166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167   (exit $ac_status); }; }; then
4168   lt_cv_cc_needs_belf=yes
4169 else
4170   echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4172
4173 lt_cv_cc_needs_belf=no
4174 fi
4175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4176      ac_ext=c
4177 ac_cpp='$CPP $CPPFLAGS'
4178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4181
4182 fi
4183 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4184 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4185   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4186     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4187     CFLAGS="$SAVE_CFLAGS"
4188   fi
4189   ;;
4190
4191 esac
4192
4193 need_locks="$enable_libtool_lock"
4194
4195
4196
4197 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4198 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4199 if test "${ac_cv_header_stdc+set}" = set; then
4200   echo $ECHO_N "(cached) $ECHO_C" >&6
4201 else
4202   cat >conftest.$ac_ext <<_ACEOF
4203 #line $LINENO "configure"
4204 /* confdefs.h.  */
4205 _ACEOF
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>conftest.$ac_ext <<_ACEOF
4208 /* end confdefs.h.  */
4209 #include <stdlib.h>
4210 #include <stdarg.h>
4211 #include <string.h>
4212 #include <float.h>
4213
4214 int
4215 main ()
4216 {
4217
4218   ;
4219   return 0;
4220 }
4221 _ACEOF
4222 rm -f conftest.$ac_objext
4223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4224   (eval $ac_compile) 2>&5
4225   ac_status=$?
4226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227   (exit $ac_status); } &&
4228          { ac_try='test -s conftest.$ac_objext'
4229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230   (eval $ac_try) 2>&5
4231   ac_status=$?
4232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233   (exit $ac_status); }; }; then
4234   ac_cv_header_stdc=yes
4235 else
4236   echo "$as_me: failed program was:" >&5
4237 sed 's/^/| /' conftest.$ac_ext >&5
4238
4239 ac_cv_header_stdc=no
4240 fi
4241 rm -f conftest.$ac_objext conftest.$ac_ext
4242
4243 if test $ac_cv_header_stdc = yes; then
4244   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4245   cat >conftest.$ac_ext <<_ACEOF
4246 #line $LINENO "configure"
4247 /* confdefs.h.  */
4248 _ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h.  */
4252 #include <string.h>
4253
4254 _ACEOF
4255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4256   $EGREP "memchr" >/dev/null 2>&1; then
4257   :
4258 else
4259   ac_cv_header_stdc=no
4260 fi
4261 rm -f conftest*
4262
4263 fi
4264
4265 if test $ac_cv_header_stdc = yes; then
4266   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4267   cat >conftest.$ac_ext <<_ACEOF
4268 #line $LINENO "configure"
4269 /* confdefs.h.  */
4270 _ACEOF
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h.  */
4274 #include <stdlib.h>
4275
4276 _ACEOF
4277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4278   $EGREP "free" >/dev/null 2>&1; then
4279   :
4280 else
4281   ac_cv_header_stdc=no
4282 fi
4283 rm -f conftest*
4284
4285 fi
4286
4287 if test $ac_cv_header_stdc = yes; then
4288   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4289   if test "$cross_compiling" = yes; then
4290   :
4291 else
4292   cat >conftest.$ac_ext <<_ACEOF
4293 #line $LINENO "configure"
4294 /* confdefs.h.  */
4295 _ACEOF
4296 cat confdefs.h >>conftest.$ac_ext
4297 cat >>conftest.$ac_ext <<_ACEOF
4298 /* end confdefs.h.  */
4299 #include <ctype.h>
4300 #if ((' ' & 0x0FF) == 0x020)
4301 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4302 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4303 #else
4304 # define ISLOWER(c) \
4305                    (('a' <= (c) && (c) <= 'i') \
4306                      || ('j' <= (c) && (c) <= 'r') \
4307                      || ('s' <= (c) && (c) <= 'z'))
4308 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4309 #endif
4310
4311 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4312 int
4313 main ()
4314 {
4315   int i;
4316   for (i = 0; i < 256; i++)
4317     if (XOR (islower (i), ISLOWER (i))
4318         || toupper (i) != TOUPPER (i))
4319       exit(2);
4320   exit (0);
4321 }
4322 _ACEOF
4323 rm -f conftest$ac_exeext
4324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4325   (eval $ac_link) 2>&5
4326   ac_status=$?
4327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4330   (eval $ac_try) 2>&5
4331   ac_status=$?
4332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333   (exit $ac_status); }; }; then
4334   :
4335 else
4336   echo "$as_me: program exited with status $ac_status" >&5
4337 echo "$as_me: failed program was:" >&5
4338 sed 's/^/| /' conftest.$ac_ext >&5
4339
4340 ( exit $ac_status )
4341 ac_cv_header_stdc=no
4342 fi
4343 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4344 fi
4345 fi
4346 fi
4347 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4348 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4349 if test $ac_cv_header_stdc = yes; then
4350
4351 cat >>confdefs.h <<\_ACEOF
4352 #define STDC_HEADERS 1
4353 _ACEOF
4354
4355 fi
4356
4357 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4368                   inttypes.h stdint.h unistd.h
4369 do
4370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4371 echo "$as_me:$LINENO: checking for $ac_header" >&5
4372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4374   echo $ECHO_N "(cached) $ECHO_C" >&6
4375 else
4376   cat >conftest.$ac_ext <<_ACEOF
4377 #line $LINENO "configure"
4378 /* confdefs.h.  */
4379 _ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h.  */
4383 $ac_includes_default
4384
4385 #include <$ac_header>
4386 _ACEOF
4387 rm -f conftest.$ac_objext
4388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4389   (eval $ac_compile) 2>&5
4390   ac_status=$?
4391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392   (exit $ac_status); } &&
4393          { ac_try='test -s conftest.$ac_objext'
4394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395   (eval $ac_try) 2>&5
4396   ac_status=$?
4397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398   (exit $ac_status); }; }; then
4399   eval "$as_ac_Header=yes"
4400 else
4401   echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4403
4404 eval "$as_ac_Header=no"
4405 fi
4406 rm -f conftest.$ac_objext conftest.$ac_ext
4407 fi
4408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4411   cat >>confdefs.h <<_ACEOF
4412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4413 _ACEOF
4414
4415 fi
4416
4417 done
4418
4419
4420
4421 for ac_header in dlfcn.h
4422 do
4423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4425   echo "$as_me:$LINENO: checking for $ac_header" >&5
4426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4428   echo $ECHO_N "(cached) $ECHO_C" >&6
4429 fi
4430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4432 else
4433   # Is the header compilable?
4434 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4435 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4436 cat >conftest.$ac_ext <<_ACEOF
4437 #line $LINENO "configure"
4438 /* confdefs.h.  */
4439 _ACEOF
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h.  */
4443 $ac_includes_default
4444 #include <$ac_header>
4445 _ACEOF
4446 rm -f conftest.$ac_objext
4447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4448   (eval $ac_compile) 2>&5
4449   ac_status=$?
4450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451   (exit $ac_status); } &&
4452          { ac_try='test -s conftest.$ac_objext'
4453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454   (eval $ac_try) 2>&5
4455   ac_status=$?
4456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457   (exit $ac_status); }; }; then
4458   ac_header_compiler=yes
4459 else
4460   echo "$as_me: failed program was:" >&5
4461 sed 's/^/| /' conftest.$ac_ext >&5
4462
4463 ac_header_compiler=no
4464 fi
4465 rm -f conftest.$ac_objext conftest.$ac_ext
4466 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4467 echo "${ECHO_T}$ac_header_compiler" >&6
4468
4469 # Is the header present?
4470 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4472 cat >conftest.$ac_ext <<_ACEOF
4473 #line $LINENO "configure"
4474 /* confdefs.h.  */
4475 _ACEOF
4476 cat confdefs.h >>conftest.$ac_ext
4477 cat >>conftest.$ac_ext <<_ACEOF
4478 /* end confdefs.h.  */
4479 #include <$ac_header>
4480 _ACEOF
4481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4482   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4483   ac_status=$?
4484   grep -v '^ *+' conftest.er1 >conftest.err
4485   rm -f conftest.er1
4486   cat conftest.err >&5
4487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488   (exit $ac_status); } >/dev/null; then
4489   if test -s conftest.err; then
4490     ac_cpp_err=$ac_c_preproc_warn_flag
4491   else
4492     ac_cpp_err=
4493   fi
4494 else
4495   ac_cpp_err=yes
4496 fi
4497 if test -z "$ac_cpp_err"; then
4498   ac_header_preproc=yes
4499 else
4500   echo "$as_me: failed program was:" >&5
4501 sed 's/^/| /' conftest.$ac_ext >&5
4502
4503   ac_header_preproc=no
4504 fi
4505 rm -f conftest.err conftest.$ac_ext
4506 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4507 echo "${ECHO_T}$ac_header_preproc" >&6
4508
4509 # So?  What about this header?
4510 case $ac_header_compiler:$ac_header_preproc in
4511   yes:no )
4512     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4514     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4515 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4516     (
4517       cat <<\_ASBOX
4518 ## ------------------------------------ ##
4519 ## Report this to bug-autoconf@gnu.org. ##
4520 ## ------------------------------------ ##
4521 _ASBOX
4522     ) |
4523       sed "s/^/$as_me: WARNING:     /" >&2
4524     ;;
4525   no:yes )
4526     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4528     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4529 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4530     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4532     (
4533       cat <<\_ASBOX
4534 ## ------------------------------------ ##
4535 ## Report this to bug-autoconf@gnu.org. ##
4536 ## ------------------------------------ ##
4537 _ASBOX
4538     ) |
4539       sed "s/^/$as_me: WARNING:     /" >&2
4540     ;;
4541 esac
4542 echo "$as_me:$LINENO: checking for $ac_header" >&5
4543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4545   echo $ECHO_N "(cached) $ECHO_C" >&6
4546 else
4547   eval "$as_ac_Header=$ac_header_preproc"
4548 fi
4549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4551
4552 fi
4553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4554   cat >>confdefs.h <<_ACEOF
4555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4556 _ACEOF
4557
4558 fi
4559
4560 done
4561
4562 ac_ext=cc
4563 ac_cpp='$CXXCPP $CPPFLAGS'
4564 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4565 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4566 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4567 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4568 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4569 if test -z "$CXXCPP"; then
4570   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4571   echo $ECHO_N "(cached) $ECHO_C" >&6
4572 else
4573       # Double quotes because CXXCPP needs to be expanded
4574     for CXXCPP in "$CXX -E" "/lib/cpp"
4575     do
4576       ac_preproc_ok=false
4577 for ac_cxx_preproc_warn_flag in '' yes
4578 do
4579   # Use a header file that comes with gcc, so configuring glibc
4580   # with a fresh cross-compiler works.
4581   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4582   # <limits.h> exists even on freestanding compilers.
4583   # On the NeXT, cc -E runs the code through the compiler's parser,
4584   # not just through cpp. "Syntax error" is here to catch this case.
4585   cat >conftest.$ac_ext <<_ACEOF
4586 #line $LINENO "configure"
4587 /* confdefs.h.  */
4588 _ACEOF
4589 cat confdefs.h >>conftest.$ac_ext
4590 cat >>conftest.$ac_ext <<_ACEOF
4591 /* end confdefs.h.  */
4592 #ifdef __STDC__
4593 # include <limits.h>
4594 #else
4595 # include <assert.h>
4596 #endif
4597                      Syntax error
4598 _ACEOF
4599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4600   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4601   ac_status=$?
4602   grep -v '^ *+' conftest.er1 >conftest.err
4603   rm -f conftest.er1
4604   cat conftest.err >&5
4605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606   (exit $ac_status); } >/dev/null; then
4607   if test -s conftest.err; then
4608     ac_cpp_err=$ac_cxx_preproc_warn_flag
4609   else
4610     ac_cpp_err=
4611   fi
4612 else
4613   ac_cpp_err=yes
4614 fi
4615 if test -z "$ac_cpp_err"; then
4616   :
4617 else
4618   echo "$as_me: failed program was:" >&5
4619 sed 's/^/| /' conftest.$ac_ext >&5
4620
4621   # Broken: fails on valid input.
4622 continue
4623 fi
4624 rm -f conftest.err conftest.$ac_ext
4625
4626   # OK, works on sane cases.  Now check whether non-existent headers
4627   # can be detected and how.
4628   cat >conftest.$ac_ext <<_ACEOF
4629 #line $LINENO "configure"
4630 /* confdefs.h.  */
4631 _ACEOF
4632 cat confdefs.h >>conftest.$ac_ext
4633 cat >>conftest.$ac_ext <<_ACEOF
4634 /* end confdefs.h.  */
4635 #include <ac_nonexistent.h>
4636 _ACEOF
4637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4638   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4639   ac_status=$?
4640   grep -v '^ *+' conftest.er1 >conftest.err
4641   rm -f conftest.er1
4642   cat conftest.err >&5
4643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644   (exit $ac_status); } >/dev/null; then
4645   if test -s conftest.err; then
4646     ac_cpp_err=$ac_cxx_preproc_warn_flag
4647   else
4648     ac_cpp_err=
4649   fi
4650 else
4651   ac_cpp_err=yes
4652 fi
4653 if test -z "$ac_cpp_err"; then
4654   # Broken: success on invalid input.
4655 continue
4656 else
4657   echo "$as_me: failed program was:" >&5
4658 sed 's/^/| /' conftest.$ac_ext >&5
4659
4660   # Passes both tests.
4661 ac_preproc_ok=:
4662 break
4663 fi
4664 rm -f conftest.err conftest.$ac_ext
4665
4666 done
4667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4668 rm -f conftest.err conftest.$ac_ext
4669 if $ac_preproc_ok; then
4670   break
4671 fi
4672
4673     done
4674     ac_cv_prog_CXXCPP=$CXXCPP
4675
4676 fi
4677   CXXCPP=$ac_cv_prog_CXXCPP
4678 else
4679   ac_cv_prog_CXXCPP=$CXXCPP
4680 fi
4681 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4682 echo "${ECHO_T}$CXXCPP" >&6
4683 ac_preproc_ok=false
4684 for ac_cxx_preproc_warn_flag in '' yes
4685 do
4686   # Use a header file that comes with gcc, so configuring glibc
4687   # with a fresh cross-compiler works.
4688   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4689   # <limits.h> exists even on freestanding compilers.
4690   # On the NeXT, cc -E runs the code through the compiler's parser,
4691   # not just through cpp. "Syntax error" is here to catch this case.
4692   cat >conftest.$ac_ext <<_ACEOF
4693 #line $LINENO "configure"
4694 /* confdefs.h.  */
4695 _ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h.  */
4699 #ifdef __STDC__
4700 # include <limits.h>
4701 #else
4702 # include <assert.h>
4703 #endif
4704                      Syntax error
4705 _ACEOF
4706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4707   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4708   ac_status=$?
4709   grep -v '^ *+' conftest.er1 >conftest.err
4710   rm -f conftest.er1
4711   cat conftest.err >&5
4712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713   (exit $ac_status); } >/dev/null; then
4714   if test -s conftest.err; then
4715     ac_cpp_err=$ac_cxx_preproc_warn_flag
4716   else
4717     ac_cpp_err=
4718   fi
4719 else
4720   ac_cpp_err=yes
4721 fi
4722 if test -z "$ac_cpp_err"; then
4723   :
4724 else
4725   echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4727
4728   # Broken: fails on valid input.
4729 continue
4730 fi
4731 rm -f conftest.err conftest.$ac_ext
4732
4733   # OK, works on sane cases.  Now check whether non-existent headers
4734   # can be detected and how.
4735   cat >conftest.$ac_ext <<_ACEOF
4736 #line $LINENO "configure"
4737 /* confdefs.h.  */
4738 _ACEOF
4739 cat confdefs.h >>conftest.$ac_ext
4740 cat >>conftest.$ac_ext <<_ACEOF
4741 /* end confdefs.h.  */
4742 #include <ac_nonexistent.h>
4743 _ACEOF
4744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4745   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4746   ac_status=$?
4747   grep -v '^ *+' conftest.er1 >conftest.err
4748   rm -f conftest.er1
4749   cat conftest.err >&5
4750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751   (exit $ac_status); } >/dev/null; then
4752   if test -s conftest.err; then
4753     ac_cpp_err=$ac_cxx_preproc_warn_flag
4754   else
4755     ac_cpp_err=
4756   fi
4757 else
4758   ac_cpp_err=yes
4759 fi
4760 if test -z "$ac_cpp_err"; then
4761   # Broken: success on invalid input.
4762 continue
4763 else
4764   echo "$as_me: failed program was:" >&5
4765 sed 's/^/| /' conftest.$ac_ext >&5
4766
4767   # Passes both tests.
4768 ac_preproc_ok=:
4769 break
4770 fi
4771 rm -f conftest.err conftest.$ac_ext
4772
4773 done
4774 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4775 rm -f conftest.err conftest.$ac_ext
4776 if $ac_preproc_ok; then
4777   :
4778 else
4779   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4780 See \`config.log' for more details." >&5
4781 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4782 See \`config.log' for more details." >&2;}
4783    { (exit 1); exit 1; }; }
4784 fi
4785
4786 ac_ext=cc
4787 ac_cpp='$CXXCPP $CPPFLAGS'
4788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4791
4792
4793 ac_ext=f
4794 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4795 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4797 if test -n "$ac_tool_prefix"; then
4798   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4799   do
4800     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4802 echo "$as_me:$LINENO: checking for $ac_word" >&5
4803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4804 if test "${ac_cv_prog_F77+set}" = set; then
4805   echo $ECHO_N "(cached) $ECHO_C" >&6
4806 else
4807   if test -n "$F77"; then
4808   ac_cv_prog_F77="$F77" # Let the user override the test.
4809 else
4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 for as_dir in $PATH
4812 do
4813   IFS=$as_save_IFS
4814   test -z "$as_dir" && as_dir=.
4815   for ac_exec_ext in '' $ac_executable_extensions; do
4816   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4817     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4819     break 2
4820   fi
4821 done
4822 done
4823
4824 fi
4825 fi
4826 F77=$ac_cv_prog_F77
4827 if test -n "$F77"; then
4828   echo "$as_me:$LINENO: result: $F77" >&5
4829 echo "${ECHO_T}$F77" >&6
4830 else
4831   echo "$as_me:$LINENO: result: no" >&5
4832 echo "${ECHO_T}no" >&6
4833 fi
4834
4835     test -n "$F77" && break
4836   done
4837 fi
4838 if test -z "$F77"; then
4839   ac_ct_F77=$F77
4840   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4841 do
4842   # Extract the first word of "$ac_prog", so it can be a program name with args.
4843 set dummy $ac_prog; ac_word=$2
4844 echo "$as_me:$LINENO: checking for $ac_word" >&5
4845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4846 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4847   echo $ECHO_N "(cached) $ECHO_C" >&6
4848 else
4849   if test -n "$ac_ct_F77"; then
4850   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4851 else
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 for as_dir in $PATH
4854 do
4855   IFS=$as_save_IFS
4856   test -z "$as_dir" && as_dir=.
4857   for ac_exec_ext in '' $ac_executable_extensions; do
4858   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4859     ac_cv_prog_ac_ct_F77="$ac_prog"
4860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4861     break 2
4862   fi
4863 done
4864 done
4865
4866 fi
4867 fi
4868 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4869 if test -n "$ac_ct_F77"; then
4870   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4871 echo "${ECHO_T}$ac_ct_F77" >&6
4872 else
4873   echo "$as_me:$LINENO: result: no" >&5
4874 echo "${ECHO_T}no" >&6
4875 fi
4876
4877   test -n "$ac_ct_F77" && break
4878 done
4879
4880   F77=$ac_ct_F77
4881 fi
4882
4883
4884 # Provide some information about the compiler.
4885 echo "$as_me:4885:" \
4886      "checking for Fortran 77 compiler version" >&5
4887 ac_compiler=`set X $ac_compile; echo $2`
4888 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4889   (eval $ac_compiler --version </dev/null >&5) 2>&5
4890   ac_status=$?
4891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892   (exit $ac_status); }
4893 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4894   (eval $ac_compiler -v </dev/null >&5) 2>&5
4895   ac_status=$?
4896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897   (exit $ac_status); }
4898 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4899   (eval $ac_compiler -V </dev/null >&5) 2>&5
4900   ac_status=$?
4901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902   (exit $ac_status); }
4903
4904 # If we don't use `.F' as extension, the preprocessor is not run on the
4905 # input file.
4906 ac_save_ext=$ac_ext
4907 ac_ext=F
4908 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4909 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4910 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4911   echo $ECHO_N "(cached) $ECHO_C" >&6
4912 else
4913   cat >conftest.$ac_ext <<_ACEOF
4914       program main
4915 #ifndef __GNUC__
4916        choke me
4917 #endif
4918
4919       end
4920 _ACEOF
4921 rm -f conftest.$ac_objext
4922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4923   (eval $ac_compile) 2>&5
4924   ac_status=$?
4925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926   (exit $ac_status); } &&
4927          { ac_try='test -s conftest.$ac_objext'
4928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929   (eval $ac_try) 2>&5
4930   ac_status=$?
4931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932   (exit $ac_status); }; }; then
4933   ac_compiler_gnu=yes
4934 else
4935   echo "$as_me: failed program was:" >&5
4936 sed 's/^/| /' conftest.$ac_ext >&5
4937
4938 ac_compiler_gnu=no
4939 fi
4940 rm -f conftest.$ac_objext conftest.$ac_ext
4941 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4942
4943 fi
4944 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4945 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4946 ac_ext=$ac_save_ext
4947 G77=`test $ac_compiler_gnu = yes && echo yes`
4948 ac_test_FFLAGS=${FFLAGS+set}
4949 ac_save_FFLAGS=$FFLAGS
4950 FFLAGS=
4951 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4952 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4953 if test "${ac_cv_prog_f77_g+set}" = set; then
4954   echo $ECHO_N "(cached) $ECHO_C" >&6
4955 else
4956   FFLAGS=-g
4957 cat >conftest.$ac_ext <<_ACEOF
4958       program main
4959
4960       end
4961 _ACEOF
4962 rm -f conftest.$ac_objext
4963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4964   (eval $ac_compile) 2>&5
4965   ac_status=$?
4966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967   (exit $ac_status); } &&
4968          { ac_try='test -s conftest.$ac_objext'
4969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970   (eval $ac_try) 2>&5
4971   ac_status=$?
4972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973   (exit $ac_status); }; }; then
4974   ac_cv_prog_f77_g=yes
4975 else
4976   echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4978
4979 ac_cv_prog_f77_g=no
4980 fi
4981 rm -f conftest.$ac_objext conftest.$ac_ext
4982
4983 fi
4984 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4985 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4986 if test "$ac_test_FFLAGS" = set; then
4987   FFLAGS=$ac_save_FFLAGS
4988 elif test $ac_cv_prog_f77_g = yes; then
4989   if test "$G77" = yes; then
4990     FFLAGS="-g -O2"
4991   else
4992     FFLAGS="-g"
4993   fi
4994 else
4995   if test "$G77" = yes; then
4996     FFLAGS="-O2"
4997   else
4998     FFLAGS=
4999   fi
5000 fi
5001 ac_ext=c
5002 ac_cpp='$CPP $CPPFLAGS'
5003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5006
5007
5008
5009 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5010
5011 # find the maximum length of command line arguments
5012 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5013 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5014 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5015   echo $ECHO_N "(cached) $ECHO_C" >&6
5016 else
5017     i=0
5018   testring="ABCD"
5019
5020   case $build_os in
5021   msdosdjgpp*)
5022     # On DJGPP, this test can blow up pretty badly due to problems in libc
5023     # (any single argument exceeding 2000 bytes causes a buffer overrun
5024     # during glob expansion).  Even if it were fixed, the result of this
5025     # check would be larger than it should be.
5026     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5027     ;;
5028
5029   gnu*)
5030     # Under GNU Hurd, this test is not required because there is
5031     # no limit to the length of command line arguments.
5032     # Libtool will interpret -1 as no limit whatsoever
5033     lt_cv_sys_max_cmd_len=-1;
5034     ;;
5035
5036   cygwin* | mingw*)
5037     # On Win9x/ME, this test blows up -- it succeeds, but takes
5038     # about 5 minutes as the teststring grows exponentially.
5039     # Worse, since 9x/ME are not pre-emptively multitasking,
5040     # you end up with a "frozen" computer, even though with patience
5041     # the test eventually succeeds (with a max line length of 256k).
5042     # Instead, let's just punt: use the minimum linelength reported by
5043     # all of the supported platforms: 8192 (on NT/2K/XP).
5044     lt_cv_sys_max_cmd_len=8192;
5045     ;;
5046
5047  *)
5048     # If test is not a shell built-in, we'll probably end up computing a
5049     # maximum length that is only half of the actual maximum length, but
5050     # we can't tell.
5051     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5052                = "XX$testring") >/dev/null 2>&1 &&
5053             new_result=`expr "X$testring" : ".*" 2>&1` &&
5054             lt_cv_sys_max_cmd_len=$new_result &&
5055             test $i != 17 # 1/2 MB should be enough
5056     do
5057       i=`expr $i + 1`
5058       testring=$testring$testring
5059     done
5060     testring=
5061     # Add a significant safety factor because C++ compilers can tack on massive
5062     # amounts of additional arguments before passing them to the linker.
5063     # It appears as though 1/2 is a usable value.
5064     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5065     ;;
5066   esac
5067
5068 fi
5069
5070 if test -n $lt_cv_sys_max_cmd_len ; then
5071   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5072 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5073 else
5074   echo "$as_me:$LINENO: result: none" >&5
5075 echo "${ECHO_T}none" >&6
5076 fi
5077
5078
5079
5080
5081 # Check for command to grab the raw symbol name followed by C symbol from nm.
5082 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5083 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5084 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5085   echo $ECHO_N "(cached) $ECHO_C" >&6
5086 else
5087
5088 # These are sane defaults that work on at least a few old systems.
5089 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5090
5091 # Character class describing NM global symbol codes.
5092 symcode='[BCDEGRST]'
5093
5094 # Regexp to match symbols that can be accessed directly from C.
5095 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5096
5097 # Transform the above into a raw symbol and a C symbol.
5098 symxfrm='\1 \2\3 \3'
5099
5100 # Transform an extracted symbol line into a proper C declaration
5101 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5102
5103 # Transform an extracted symbol line into symbol name and symbol address
5104 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'"
5105
5106 # Define system-specific variables.
5107 case $host_os in
5108 aix*)
5109   symcode='[BCDT]'
5110   ;;
5111 cygwin* | mingw* | pw32*)
5112   symcode='[ABCDGISTW]'
5113   ;;
5114 hpux*) # Its linker distinguishes data from code symbols
5115   if test "$host_cpu" = ia64; then
5116     symcode='[ABCDEGRST]'
5117   fi
5118   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5119   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'"
5120   ;;
5121 irix* | nonstopux*)
5122   symcode='[BCDEGRST]'
5123   ;;
5124 osf*)
5125   symcode='[BCDEGQRST]'
5126   ;;
5127 solaris* | sysv5*)
5128   symcode='[BDT]'
5129   ;;
5130 sysv4)
5131   symcode='[DFNSTU]'
5132   ;;
5133 esac
5134
5135 # Handle CRLF in mingw tool chain
5136 opt_cr=
5137 case $build_os in
5138 mingw*)
5139   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5140   ;;
5141 esac
5142
5143 # If we're using GNU nm, then use its standard symbol codes.
5144 case `$NM -V 2>&1` in
5145 *GNU* | *'with BFD'*)
5146   symcode='[ABCDGISTW]' ;;
5147 esac
5148
5149 # Try without a prefix undercore, then with it.
5150 for ac_symprfx in "" "_"; do
5151
5152   # Write the raw and C identifiers.
5153   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5154
5155   # Check to see that the pipe works correctly.
5156   pipe_works=no
5157
5158   rm -f conftest*
5159   cat > conftest.$ac_ext <<EOF
5160 #ifdef __cplusplus
5161 extern "C" {
5162 #endif
5163 char nm_test_var;
5164 void nm_test_func(){}
5165 #ifdef __cplusplus
5166 }
5167 #endif
5168 int main(){nm_test_var='a';nm_test_func();return(0);}
5169 EOF
5170
5171   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5172   (eval $ac_compile) 2>&5
5173   ac_status=$?
5174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175   (exit $ac_status); }; then
5176     # Now try to grab the symbols.
5177     nlist=conftest.nm
5178     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5179   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5180   ac_status=$?
5181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182   (exit $ac_status); } && test -s "$nlist"; then
5183       # Try sorting and uniquifying the output.
5184       if sort "$nlist" | uniq > "$nlist"T; then
5185         mv -f "$nlist"T "$nlist"
5186       else
5187         rm -f "$nlist"T
5188       fi
5189
5190       # Make sure that we snagged all the symbols we need.
5191       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5192         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5193           cat <<EOF > conftest.$ac_ext
5194 #ifdef __cplusplus
5195 extern "C" {
5196 #endif
5197
5198 EOF
5199           # Now generate the symbol file.
5200           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5201
5202           cat <<EOF >> conftest.$ac_ext
5203 #if defined (__STDC__) && __STDC__
5204 # define lt_ptr_t void *
5205 #else
5206 # define lt_ptr_t char *
5207 # define const
5208 #endif
5209
5210 /* The mapping between symbol names and symbols. */
5211 const struct {
5212   const char *name;
5213   lt_ptr_t address;
5214 }
5215 lt_preloaded_symbols[] =
5216 {
5217 EOF
5218           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5219           cat <<\EOF >> conftest.$ac_ext
5220   {0, (lt_ptr_t) 0}
5221 };
5222
5223 #ifdef __cplusplus
5224 }
5225 #endif
5226 EOF
5227           # Now try linking the two files.
5228           mv conftest.$ac_objext conftstm.$ac_objext
5229           lt_save_LIBS="$LIBS"
5230           lt_save_CFLAGS="$CFLAGS"
5231           LIBS="conftstm.$ac_objext"
5232           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5233           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5234   (eval $ac_link) 2>&5
5235   ac_status=$?
5236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5238             pipe_works=yes
5239           fi
5240           LIBS="$lt_save_LIBS"
5241           CFLAGS="$lt_save_CFLAGS"
5242         else
5243           echo "cannot find nm_test_func in $nlist" >&5
5244         fi
5245       else
5246         echo "cannot find nm_test_var in $nlist" >&5
5247       fi
5248     else
5249       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5250     fi
5251   else
5252     echo "$progname: failed program was:" >&5
5253     cat conftest.$ac_ext >&5
5254   fi
5255   rm -f conftest* conftst*
5256
5257   # Do not use the global_symbol_pipe unless it works.
5258   if test "$pipe_works" = yes; then
5259     break
5260   else
5261     lt_cv_sys_global_symbol_pipe=
5262   fi
5263 done
5264
5265 fi
5266
5267 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5268   lt_cv_sys_global_symbol_to_cdecl=
5269 fi
5270 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5271   echo "$as_me:$LINENO: result: failed" >&5
5272 echo "${ECHO_T}failed" >&6
5273 else
5274   echo "$as_me:$LINENO: result: ok" >&5
5275 echo "${ECHO_T}ok" >&6
5276 fi
5277
5278 echo "$as_me:$LINENO: checking for objdir" >&5
5279 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5280 if test "${lt_cv_objdir+set}" = set; then
5281   echo $ECHO_N "(cached) $ECHO_C" >&6
5282 else
5283   rm -f .libs 2>/dev/null
5284 mkdir .libs 2>/dev/null
5285 if test -d .libs; then
5286   lt_cv_objdir=.libs
5287 else
5288   # MS-DOS does not allow filenames that begin with a dot.
5289   lt_cv_objdir=_libs
5290 fi
5291 rmdir .libs 2>/dev/null
5292 fi
5293 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5294 echo "${ECHO_T}$lt_cv_objdir" >&6
5295 objdir=$lt_cv_objdir
5296
5297
5298
5299
5300
5301 case $host_os in
5302 aix3*)
5303   # AIX sometimes has problems with the GCC collect2 program.  For some
5304   # reason, if we set the COLLECT_NAMES environment variable, the problems
5305   # vanish in a puff of smoke.
5306   if test "X${COLLECT_NAMES+set}" != Xset; then
5307     COLLECT_NAMES=
5308     export COLLECT_NAMES
5309   fi
5310   ;;
5311 esac
5312
5313 # Sed substitution that helps us do robust quoting.  It backslashifies
5314 # metacharacters that are still active within double-quoted strings.
5315 Xsed='sed -e s/^X//'
5316 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5317
5318 # Same as above, but do not quote variable references.
5319 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5320
5321 # Sed substitution to delay expansion of an escaped shell variable in a
5322 # double_quote_subst'ed string.
5323 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5324
5325 # Sed substitution to avoid accidental globbing in evaled expressions
5326 no_glob_subst='s/\*/\\\*/g'
5327
5328 # Constants:
5329 rm="rm -f"
5330
5331 # Global variables:
5332 default_ofile=mklib
5333 can_build_shared=yes
5334
5335 # All known linkers require a `.a' archive for static linking (except M$VC,
5336 # which needs '.lib').
5337 libext=a
5338 ltmain="$ac_aux_dir/ltmain.sh"
5339 ofile="$default_ofile"
5340 with_gnu_ld="$lt_cv_prog_gnu_ld"
5341
5342 if test -n "$ac_tool_prefix"; then
5343   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5344 set dummy ${ac_tool_prefix}ar; ac_word=$2
5345 echo "$as_me:$LINENO: checking for $ac_word" >&5
5346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5347 if test "${ac_cv_prog_AR+set}" = set; then
5348   echo $ECHO_N "(cached) $ECHO_C" >&6
5349 else
5350   if test -n "$AR"; then
5351   ac_cv_prog_AR="$AR" # Let the user override the test.
5352 else
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 for as_dir in $PATH
5355 do
5356   IFS=$as_save_IFS
5357   test -z "$as_dir" && as_dir=.
5358   for ac_exec_ext in '' $ac_executable_extensions; do
5359   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5360     ac_cv_prog_AR="${ac_tool_prefix}ar"
5361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5362     break 2
5363   fi
5364 done
5365 done
5366
5367 fi
5368 fi
5369 AR=$ac_cv_prog_AR
5370 if test -n "$AR"; then
5371   echo "$as_me:$LINENO: result: $AR" >&5
5372 echo "${ECHO_T}$AR" >&6
5373 else
5374   echo "$as_me:$LINENO: result: no" >&5
5375 echo "${ECHO_T}no" >&6
5376 fi
5377
5378 fi
5379 if test -z "$ac_cv_prog_AR"; then
5380   ac_ct_AR=$AR
5381   # Extract the first word of "ar", so it can be a program name with args.
5382 set dummy ar; ac_word=$2
5383 echo "$as_me:$LINENO: checking for $ac_word" >&5
5384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5385 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5386   echo $ECHO_N "(cached) $ECHO_C" >&6
5387 else
5388   if test -n "$ac_ct_AR"; then
5389   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5390 else
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 for as_dir in $PATH
5393 do
5394   IFS=$as_save_IFS
5395   test -z "$as_dir" && as_dir=.
5396   for ac_exec_ext in '' $ac_executable_extensions; do
5397   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5398     ac_cv_prog_ac_ct_AR="ar"
5399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5400     break 2
5401   fi
5402 done
5403 done
5404
5405   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5406 fi
5407 fi
5408 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5409 if test -n "$ac_ct_AR"; then
5410   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5411 echo "${ECHO_T}$ac_ct_AR" >&6
5412 else
5413   echo "$as_me:$LINENO: result: no" >&5
5414 echo "${ECHO_T}no" >&6
5415 fi
5416
5417   AR=$ac_ct_AR
5418 else
5419   AR="$ac_cv_prog_AR"
5420 fi
5421
5422 if test -n "$ac_tool_prefix"; then
5423   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5424 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5425 echo "$as_me:$LINENO: checking for $ac_word" >&5
5426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5427 if test "${ac_cv_prog_RANLIB+set}" = set; then
5428   echo $ECHO_N "(cached) $ECHO_C" >&6
5429 else
5430   if test -n "$RANLIB"; then
5431   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5432 else
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 for as_dir in $PATH
5435 do
5436   IFS=$as_save_IFS
5437   test -z "$as_dir" && as_dir=.
5438   for ac_exec_ext in '' $ac_executable_extensions; do
5439   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5442     break 2
5443   fi
5444 done
5445 done
5446
5447 fi
5448 fi
5449 RANLIB=$ac_cv_prog_RANLIB
5450 if test -n "$RANLIB"; then
5451   echo "$as_me:$LINENO: result: $RANLIB" >&5
5452 echo "${ECHO_T}$RANLIB" >&6
5453 else
5454   echo "$as_me:$LINENO: result: no" >&5
5455 echo "${ECHO_T}no" >&6
5456 fi
5457
5458 fi
5459 if test -z "$ac_cv_prog_RANLIB"; then
5460   ac_ct_RANLIB=$RANLIB
5461   # Extract the first word of "ranlib", so it can be a program name with args.
5462 set dummy ranlib; ac_word=$2
5463 echo "$as_me:$LINENO: checking for $ac_word" >&5
5464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5465 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5466   echo $ECHO_N "(cached) $ECHO_C" >&6
5467 else
5468   if test -n "$ac_ct_RANLIB"; then
5469   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5470 else
5471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472 for as_dir in $PATH
5473 do
5474   IFS=$as_save_IFS
5475   test -z "$as_dir" && as_dir=.
5476   for ac_exec_ext in '' $ac_executable_extensions; do
5477   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5478     ac_cv_prog_ac_ct_RANLIB="ranlib"
5479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5480     break 2
5481   fi
5482 done
5483 done
5484
5485   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5486 fi
5487 fi
5488 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5489 if test -n "$ac_ct_RANLIB"; then
5490   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5491 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5492 else
5493   echo "$as_me:$LINENO: result: no" >&5
5494 echo "${ECHO_T}no" >&6
5495 fi
5496
5497   RANLIB=$ac_ct_RANLIB
5498 else
5499   RANLIB="$ac_cv_prog_RANLIB"
5500 fi
5501
5502 if test -n "$ac_tool_prefix"; then
5503   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5504 set dummy ${ac_tool_prefix}strip; ac_word=$2
5505 echo "$as_me:$LINENO: checking for $ac_word" >&5
5506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5507 if test "${ac_cv_prog_STRIP+set}" = set; then
5508   echo $ECHO_N "(cached) $ECHO_C" >&6
5509 else
5510   if test -n "$STRIP"; then
5511   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5512 else
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH
5515 do
5516   IFS=$as_save_IFS
5517   test -z "$as_dir" && as_dir=.
5518   for ac_exec_ext in '' $ac_executable_extensions; do
5519   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5522     break 2
5523   fi
5524 done
5525 done
5526
5527 fi
5528 fi
5529 STRIP=$ac_cv_prog_STRIP
5530 if test -n "$STRIP"; then
5531   echo "$as_me:$LINENO: result: $STRIP" >&5
5532 echo "${ECHO_T}$STRIP" >&6
5533 else
5534   echo "$as_me:$LINENO: result: no" >&5
5535 echo "${ECHO_T}no" >&6
5536 fi
5537
5538 fi
5539 if test -z "$ac_cv_prog_STRIP"; then
5540   ac_ct_STRIP=$STRIP
5541   # Extract the first word of "strip", so it can be a program name with args.
5542 set dummy strip; ac_word=$2
5543 echo "$as_me:$LINENO: checking for $ac_word" >&5
5544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5545 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5546   echo $ECHO_N "(cached) $ECHO_C" >&6
5547 else
5548   if test -n "$ac_ct_STRIP"; then
5549   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5550 else
5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552 for as_dir in $PATH
5553 do
5554   IFS=$as_save_IFS
5555   test -z "$as_dir" && as_dir=.
5556   for ac_exec_ext in '' $ac_executable_extensions; do
5557   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5558     ac_cv_prog_ac_ct_STRIP="strip"
5559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5560     break 2
5561   fi
5562 done
5563 done
5564
5565   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5566 fi
5567 fi
5568 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5569 if test -n "$ac_ct_STRIP"; then
5570   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5571 echo "${ECHO_T}$ac_ct_STRIP" >&6
5572 else
5573   echo "$as_me:$LINENO: result: no" >&5
5574 echo "${ECHO_T}no" >&6
5575 fi
5576
5577   STRIP=$ac_ct_STRIP
5578 else
5579   STRIP="$ac_cv_prog_STRIP"
5580 fi
5581
5582
5583 old_CC="$CC"
5584 old_CFLAGS="$CFLAGS"
5585
5586 # Set sane defaults for various variables
5587 test -z "$AR" && AR=ar
5588 test -z "$AR_FLAGS" && AR_FLAGS=cru
5589 test -z "$AS" && AS=as
5590 test -z "$CC" && CC=cc
5591 test -z "$LTCC" && LTCC=$CC
5592 test -z "$DLLTOOL" && DLLTOOL=dlltool
5593 test -z "$LD" && LD=ld
5594 test -z "$LN_S" && LN_S="ln -s"
5595 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5596 test -z "$NM" && NM=nm
5597 test -z "$SED" && SED=sed
5598 test -z "$OBJDUMP" && OBJDUMP=objdump
5599 test -z "$RANLIB" && RANLIB=:
5600 test -z "$STRIP" && STRIP=:
5601 test -z "$ac_objext" && ac_objext=o
5602
5603 # Determine commands to create old-style static archives.
5604 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5605 old_postinstall_cmds='chmod 644 $oldlib'
5606 old_postuninstall_cmds=
5607
5608 if test -n "$RANLIB"; then
5609   case $host_os in
5610   openbsd*)
5611     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5612     ;;
5613   *)
5614     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5615     ;;
5616   esac
5617   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5618 fi
5619
5620 # Only perform the check for file, if the check method requires it
5621 case $deplibs_check_method in
5622 file_magic*)
5623   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5624     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5625 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5626 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5627   echo $ECHO_N "(cached) $ECHO_C" >&6
5628 else
5629   case $MAGIC_CMD in
5630 [\\/*] |  ?:[\\/]*)
5631   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5632   ;;
5633 *)
5634   lt_save_MAGIC_CMD="$MAGIC_CMD"
5635   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5636   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5637   for ac_dir in $ac_dummy; do
5638     IFS="$lt_save_ifs"
5639     test -z "$ac_dir" && ac_dir=.
5640     if test -f $ac_dir/${ac_tool_prefix}file; then
5641       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5642       if test -n "$file_magic_test_file"; then
5643         case $deplibs_check_method in
5644         "file_magic "*)
5645           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5646           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5647           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5648             $EGREP "$file_magic_regex" > /dev/null; then
5649             :
5650           else
5651             cat <<EOF 1>&2
5652
5653 *** Warning: the command libtool uses to detect shared libraries,
5654 *** $file_magic_cmd, produces output that libtool cannot recognize.
5655 *** The result is that libtool may fail to recognize shared libraries
5656 *** as such.  This will affect the creation of libtool libraries that
5657 *** depend on shared libraries, but programs linked with such libtool
5658 *** libraries will work regardless of this problem.  Nevertheless, you
5659 *** may want to report the problem to your system manager and/or to
5660 *** bug-libtool@gnu.org
5661
5662 EOF
5663           fi ;;
5664         esac
5665       fi
5666       break
5667     fi
5668   done
5669   IFS="$lt_save_ifs"
5670   MAGIC_CMD="$lt_save_MAGIC_CMD"
5671   ;;
5672 esac
5673 fi
5674
5675 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5676 if test -n "$MAGIC_CMD"; then
5677   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5678 echo "${ECHO_T}$MAGIC_CMD" >&6
5679 else
5680   echo "$as_me:$LINENO: result: no" >&5
5681 echo "${ECHO_T}no" >&6
5682 fi
5683
5684 if test -z "$lt_cv_path_MAGIC_CMD"; then
5685   if test -n "$ac_tool_prefix"; then
5686     echo "$as_me:$LINENO: checking for file" >&5
5687 echo $ECHO_N "checking for file... $ECHO_C" >&6
5688 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5689   echo $ECHO_N "(cached) $ECHO_C" >&6
5690 else
5691   case $MAGIC_CMD in
5692 [\\/*] |  ?:[\\/]*)
5693   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5694   ;;
5695 *)
5696   lt_save_MAGIC_CMD="$MAGIC_CMD"
5697   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5698   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5699   for ac_dir in $ac_dummy; do
5700     IFS="$lt_save_ifs"
5701     test -z "$ac_dir" && ac_dir=.
5702     if test -f $ac_dir/file; then
5703       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5704       if test -n "$file_magic_test_file"; then
5705         case $deplibs_check_method in
5706         "file_magic "*)
5707           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5708           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5709           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5710             $EGREP "$file_magic_regex" > /dev/null; then
5711             :
5712           else
5713             cat <<EOF 1>&2
5714
5715 *** Warning: the command libtool uses to detect shared libraries,
5716 *** $file_magic_cmd, produces output that libtool cannot recognize.
5717 *** The result is that libtool may fail to recognize shared libraries
5718 *** as such.  This will affect the creation of libtool libraries that
5719 *** depend on shared libraries, but programs linked with such libtool
5720 *** libraries will work regardless of this problem.  Nevertheless, you
5721 *** may want to report the problem to your system manager and/or to
5722 *** bug-libtool@gnu.org
5723
5724 EOF
5725           fi ;;
5726         esac
5727       fi
5728       break
5729     fi
5730   done
5731   IFS="$lt_save_ifs"
5732   MAGIC_CMD="$lt_save_MAGIC_CMD"
5733   ;;
5734 esac
5735 fi
5736
5737 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5738 if test -n "$MAGIC_CMD"; then
5739   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5740 echo "${ECHO_T}$MAGIC_CMD" >&6
5741 else
5742   echo "$as_me:$LINENO: result: no" >&5
5743 echo "${ECHO_T}no" >&6
5744 fi
5745
5746   else
5747     MAGIC_CMD=:
5748   fi
5749 fi
5750
5751   fi
5752   ;;
5753 esac
5754
5755 enable_dlopen=no
5756 enable_win32_dll=no
5757
5758 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5759 if test "${enable_libtool_lock+set}" = set; then
5760   enableval="$enable_libtool_lock"
5761
5762 fi;
5763 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5764
5765
5766 # Check whether --with-pic or --without-pic was given.
5767 if test "${with_pic+set}" = set; then
5768   withval="$with_pic"
5769   pic_mode="$withval"
5770 else
5771   pic_mode=default
5772 fi;
5773 test -z "$pic_mode" && pic_mode=default
5774
5775 # Use C for the default configuration in the libtool script
5776 tagname=
5777 lt_save_CC="$CC"
5778 ac_ext=c
5779 ac_cpp='$CPP $CPPFLAGS'
5780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5783
5784
5785 # Source file extension for C test sources.
5786 ac_ext=c
5787
5788 # Object file extension for compiled C test sources.
5789 objext=o
5790 objext=$objext
5791
5792 # Code to be used in simple compile tests
5793 lt_simple_compile_test_code="int some_variable = 0;\n"
5794
5795 # Code to be used in simple link tests
5796 lt_simple_link_test_code='int main(){return(0);}\n'
5797
5798
5799 # If no C compiler was specified, use CC.
5800 LTCC=${LTCC-"$CC"}
5801
5802 # Allow CC to be a program name with arguments.
5803 compiler=$CC
5804
5805
5806 #
5807 # Check for any special shared library compilation flags.
5808 #
5809 lt_prog_cc_shlib=
5810 if test "$GCC" = no; then
5811   case $host_os in
5812   sco3.2v5*)
5813     lt_prog_cc_shlib='-belf'
5814     ;;
5815   esac
5816 fi
5817 if test -n "$lt_prog_cc_shlib"; then
5818   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5819 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5820   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5821   else
5822     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5823 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5824     lt_cv_prog_cc_can_build_shared=no
5825   fi
5826 fi
5827
5828
5829 #
5830 # Check to make sure the static flag actually works.
5831 #
5832 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5833 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5834 if test "${lt_prog_compiler_static_works+set}" = set; then
5835   echo $ECHO_N "(cached) $ECHO_C" >&6
5836 else
5837   lt_prog_compiler_static_works=no
5838    save_LDFLAGS="$LDFLAGS"
5839    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5840    printf "$lt_simple_link_test_code" > conftest.$ac_ext
5841    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5842      # The compiler can only warn and ignore the option if not recognized
5843      # So say no if there are warnings
5844      if test -s conftest.err; then
5845        # Append any errors to the config.log.
5846        cat conftest.err 1>&5
5847      else
5848        lt_prog_compiler_static_works=yes
5849      fi
5850    fi
5851    $rm conftest*
5852    LDFLAGS="$save_LDFLAGS"
5853
5854 fi
5855 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5856 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5857
5858 if test x"$lt_prog_compiler_static_works" = xyes; then
5859     :
5860 else
5861     lt_prog_compiler_static=
5862 fi
5863
5864
5865
5866
5867 lt_prog_compiler_no_builtin_flag=
5868
5869 if test "$GCC" = yes; then
5870   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5871
5872   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5873 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5874 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5875   echo $ECHO_N "(cached) $ECHO_C" >&6
5876 else
5877   lt_cv_prog_compiler_rtti_exceptions=no
5878   ac_outfile=conftest.$ac_objext
5879    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5880    lt_compiler_flag="-fno-rtti -fno-exceptions"
5881    # Insert the option either (1) after the last *FLAGS variable, or
5882    # (2) before a word containing "conftest.", or (3) at the end.
5883    # Note that $ac_compile itself does not contain backslashes and begins
5884    # with a dollar sign (not a hyphen), so the echo should work correctly.
5885    # The option is referenced via a variable to avoid confusing sed.
5886    lt_compile=`echo "$ac_compile" | $SED \
5887    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5888    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5889    -e 's:$: $lt_compiler_flag:'`
5890    (eval echo "\"\$as_me:5890: $lt_compile\"" >&5)
5891    (eval "$lt_compile" 2>conftest.err)
5892    ac_status=$?
5893    cat conftest.err >&5
5894    echo "$as_me:5894: \$? = $ac_status" >&5
5895    if (exit $ac_status) && test -s "$ac_outfile"; then
5896      # The compiler can only warn and ignore the option if not recognized
5897      # So say no if there are warnings
5898      if test ! -s conftest.err; then
5899        lt_cv_prog_compiler_rtti_exceptions=yes
5900      fi
5901    fi
5902    $rm conftest*
5903
5904 fi
5905 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5906 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5907
5908 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5909     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5910 else
5911     :
5912 fi
5913
5914 fi
5915
5916 lt_prog_compiler_wl=
5917 lt_prog_compiler_pic=
5918 lt_prog_compiler_static=
5919
5920 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5921 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5922
5923   if test "$GCC" = yes; then
5924     lt_prog_compiler_wl='-Wl,'
5925     lt_prog_compiler_static='-static'
5926
5927     case $host_os in
5928       aix*)
5929       # All AIX code is PIC.
5930       if test "$host_cpu" = ia64; then
5931         # AIX 5 now supports IA64 processor
5932         lt_prog_compiler_static='-Bstatic'
5933       fi
5934       ;;
5935
5936     amigaos*)
5937       # FIXME: we need at least 68020 code to build shared libraries, but
5938       # adding the `-m68020' flag to GCC prevents building anything better,
5939       # like `-m68040'.
5940       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5941       ;;
5942
5943     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5944       # PIC is the default for these OSes.
5945       ;;
5946
5947     mingw* | pw32* | os2*)
5948       # This hack is so that the source file can tell whether it is being
5949       # built for inclusion in a dll (and should export symbols for example).
5950       lt_prog_compiler_pic='-DDLL_EXPORT'
5951       ;;
5952
5953     darwin* | rhapsody*)
5954       # PIC is the default on this platform
5955       # Common symbols not allowed in MH_DYLIB files
5956       lt_prog_compiler_pic='-fno-common'
5957       ;;
5958
5959     msdosdjgpp*)
5960       # Just because we use GCC doesn't mean we suddenly get shared libraries
5961       # on systems that don't support them.
5962       lt_prog_compiler_can_build_shared=no
5963       enable_shared=no
5964       ;;
5965
5966     sysv4*MP*)
5967       if test -d /usr/nec; then
5968         lt_prog_compiler_pic=-Kconform_pic
5969       fi
5970       ;;
5971
5972     hpux*)
5973       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5974       # not for PA HP-UX.
5975       case "$host_cpu" in
5976       hppa*64*|ia64*)
5977         # +Z the default
5978         ;;
5979       *)
5980         lt_prog_compiler_pic='-fPIC'
5981         ;;
5982       esac
5983       ;;
5984
5985     *)
5986       lt_prog_compiler_pic='-fPIC'
5987       ;;
5988     esac
5989   else
5990     # PORTME Check for flag to pass linker flags through the system compiler.
5991     case $host_os in
5992     aix*)
5993       lt_prog_compiler_wl='-Wl,'
5994       if test "$host_cpu" = ia64; then
5995         # AIX 5 now supports IA64 processor
5996         lt_prog_compiler_static='-Bstatic'
5997       else
5998         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5999       fi
6000       ;;
6001
6002     mingw* | pw32* | os2*)
6003       # This hack is so that the source file can tell whether it is being
6004       # built for inclusion in a dll (and should export symbols for example).
6005       lt_prog_compiler_pic='-DDLL_EXPORT'
6006       ;;
6007
6008     hpux9* | hpux10* | hpux11*)
6009       lt_prog_compiler_wl='-Wl,'
6010       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6011       # not for PA HP-UX.
6012       case "$host_cpu" in
6013       hppa*64*|ia64*)
6014         # +Z the default
6015         ;;
6016       *)
6017         lt_prog_compiler_pic='+Z'
6018         ;;
6019       esac
6020       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6021       lt_prog_compiler_static='${wl}-a ${wl}archive'
6022       ;;
6023
6024     irix5* | irix6* | nonstopux*)
6025       lt_prog_compiler_wl='-Wl,'
6026       # PIC (with -KPIC) is the default.
6027       lt_prog_compiler_static='-non_shared'
6028       ;;
6029
6030     newsos6)
6031       lt_prog_compiler_pic='-KPIC'
6032       lt_prog_compiler_static='-Bstatic'
6033       ;;
6034
6035     linux*)
6036       case $CC in
6037       icc|ecc)
6038         lt_prog_compiler_wl='-Wl,'
6039         lt_prog_compiler_pic='-KPIC'
6040         lt_prog_compiler_static='-static'
6041         ;;
6042       ccc)
6043         lt_prog_compiler_wl='-Wl,'
6044         # All Alpha code is PIC.
6045         lt_prog_compiler_static='-non_shared'
6046         ;;
6047       esac
6048       ;;
6049
6050     osf3* | osf4* | osf5*)
6051       lt_prog_compiler_wl='-Wl,'
6052       # All OSF/1 code is PIC.
6053       lt_prog_compiler_static='-non_shared'
6054       ;;
6055
6056     sco3.2v5*)
6057       lt_prog_compiler_pic='-Kpic'
6058       lt_prog_compiler_static='-dn'
6059       ;;
6060
6061     solaris*)
6062       lt_prog_compiler_wl='-Wl,'
6063       lt_prog_compiler_pic='-KPIC'
6064       lt_prog_compiler_static='-Bstatic'
6065       ;;
6066
6067     sunos4*)
6068       lt_prog_compiler_wl='-Qoption ld '
6069       lt_prog_compiler_pic='-PIC'
6070       lt_prog_compiler_static='-Bstatic'
6071       ;;
6072
6073     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6074       lt_prog_compiler_wl='-Wl,'
6075       lt_prog_compiler_pic='-KPIC'
6076       lt_prog_compiler_static='-Bstatic'
6077       ;;
6078
6079     sysv4*MP*)
6080       if test -d /usr/nec ;then
6081         lt_prog_compiler_pic='-Kconform_pic'
6082         lt_prog_compiler_static='-Bstatic'
6083       fi
6084       ;;
6085
6086     uts4*)
6087       lt_prog_compiler_pic='-pic'
6088       lt_prog_compiler_static='-Bstatic'
6089       ;;
6090
6091     *)
6092       lt_prog_compiler_can_build_shared=no
6093       ;;
6094     esac
6095   fi
6096
6097 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6098 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6099
6100 #
6101 # Check to make sure the PIC flag actually works.
6102 #
6103 if test -n "$lt_prog_compiler_pic"; then
6104   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6105 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6106 if test "${lt_prog_compiler_pic_works+set}" = set; then
6107   echo $ECHO_N "(cached) $ECHO_C" >&6
6108 else
6109   lt_prog_compiler_pic_works=no
6110   ac_outfile=conftest.$ac_objext
6111    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6112    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6113    # Insert the option either (1) after the last *FLAGS variable, or
6114    # (2) before a word containing "conftest.", or (3) at the end.
6115    # Note that $ac_compile itself does not contain backslashes and begins
6116    # with a dollar sign (not a hyphen), so the echo should work correctly.
6117    # The option is referenced via a variable to avoid confusing sed.
6118    lt_compile=`echo "$ac_compile" | $SED \
6119    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6120    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6121    -e 's:$: $lt_compiler_flag:'`
6122    (eval echo "\"\$as_me:6122: $lt_compile\"" >&5)
6123    (eval "$lt_compile" 2>conftest.err)
6124    ac_status=$?
6125    cat conftest.err >&5
6126    echo "$as_me:6126: \$? = $ac_status" >&5
6127    if (exit $ac_status) && test -s "$ac_outfile"; then
6128      # The compiler can only warn and ignore the option if not recognized
6129      # So say no if there are warnings
6130      if test ! -s conftest.err; then
6131        lt_prog_compiler_pic_works=yes
6132      fi
6133    fi
6134    $rm conftest*
6135
6136 fi
6137 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6138 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6139
6140 if test x"$lt_prog_compiler_pic_works" = xyes; then
6141     case $lt_prog_compiler_pic in
6142      "" | " "*) ;;
6143      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6144      esac
6145 else
6146     lt_prog_compiler_pic=
6147      lt_prog_compiler_can_build_shared=no
6148 fi
6149
6150 fi
6151 case "$host_os" in
6152   # For platforms which do not support PIC, -DPIC is meaningless:
6153   *djgpp*)
6154     lt_prog_compiler_pic=
6155     ;;
6156   *)
6157     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6158     ;;
6159 esac
6160
6161 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6162 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6163 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6164   echo $ECHO_N "(cached) $ECHO_C" >&6
6165 else
6166   lt_cv_prog_compiler_c_o=no
6167    $rm -r conftest 2>/dev/null
6168    mkdir conftest
6169    cd conftest
6170    mkdir out
6171    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6172
6173    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6174    # that will create temporary files in the current directory regardless of
6175    # the output directory.  Thus, making CWD read-only will cause this test
6176    # to fail, enabling locking or at least warning the user not to do parallel
6177    # builds.
6178    chmod -w .
6179
6180    lt_compiler_flag="-o out/conftest2.$ac_objext"
6181    # Insert the option either (1) after the last *FLAGS variable, or
6182    # (2) before a word containing "conftest.", or (3) at the end.
6183    # Note that $ac_compile itself does not contain backslashes and begins
6184    # with a dollar sign (not a hyphen), so the echo should work correctly.
6185    lt_compile=`echo "$ac_compile" | $SED \
6186    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6187    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6188    -e 's:$: $lt_compiler_flag:'`
6189    (eval echo "\"\$as_me:6189: $lt_compile\"" >&5)
6190    (eval "$lt_compile" 2>out/conftest.err)
6191    ac_status=$?
6192    cat out/conftest.err >&5
6193    echo "$as_me:6193: \$? = $ac_status" >&5
6194    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6195    then
6196      # The compiler can only warn and ignore the option if not recognized
6197      # So say no if there are warnings
6198      if test ! -s out/conftest.err; then
6199        lt_cv_prog_compiler_c_o=yes
6200      fi
6201    fi
6202    chmod u+w .
6203    $rm conftest* out/*
6204    rmdir out
6205    cd ..
6206    rmdir conftest
6207    $rm conftest*
6208
6209 fi
6210 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6211 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6212
6213
6214 hard_links="nottested"
6215 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6216   # do not overwrite the value of need_locks provided by the user
6217   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6218 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6219   hard_links=yes
6220   $rm conftest*
6221   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6222   touch conftest.a
6223   ln conftest.a conftest.b 2>&5 || hard_links=no
6224   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6225   echo "$as_me:$LINENO: result: $hard_links" >&5
6226 echo "${ECHO_T}$hard_links" >&6
6227   if test "$hard_links" = no; then
6228     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6229 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6230     need_locks=warn
6231   fi
6232 else
6233   need_locks=no
6234 fi
6235
6236 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6237 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6238
6239   runpath_var=
6240   allow_undefined_flag=
6241   enable_shared_with_static_runtimes=no
6242   archive_cmds=
6243   archive_expsym_cmds=
6244   old_archive_From_new_cmds=
6245   old_archive_from_expsyms_cmds=
6246   export_dynamic_flag_spec=
6247   whole_archive_flag_spec=
6248   thread_safe_flag_spec=
6249   hardcode_libdir_flag_spec=
6250   hardcode_libdir_flag_spec_ld=
6251   hardcode_libdir_separator=
6252   hardcode_direct=no
6253   hardcode_minus_L=no
6254   hardcode_shlibpath_var=unsupported
6255   link_all_deplibs=unknown
6256   hardcode_automatic=no
6257   module_cmds=
6258   module_expsym_cmds=
6259   always_export_symbols=no
6260   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6261   # include_expsyms should be a list of space-separated symbols to be *always*
6262   # included in the symbol list
6263   include_expsyms=
6264   # exclude_expsyms can be an extended regexp of symbols to exclude
6265   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6266   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6267   # as well as any symbol that contains `d'.
6268   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6269   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6270   # platforms (ab)use it in PIC code, but their linkers get confused if
6271   # the symbol is explicitly referenced.  Since portable code cannot
6272   # rely on this symbol name, it's probably fine to never include it in
6273   # preloaded symbol tables.
6274   extract_expsyms_cmds=
6275
6276   case $host_os in
6277   cygwin* | mingw* | pw32*)
6278     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6279     # When not using gcc, we currently assume that we are using
6280     # Microsoft Visual C++.
6281     if test "$GCC" != yes; then
6282       with_gnu_ld=no
6283     fi
6284     ;;
6285   openbsd*)
6286     with_gnu_ld=no
6287     ;;
6288   esac
6289
6290   ld_shlibs=yes
6291   if test "$with_gnu_ld" = yes; then
6292     # If archive_cmds runs LD, not CC, wlarc should be empty
6293     wlarc='${wl}'
6294
6295     # See if GNU ld supports shared libraries.
6296     case $host_os in
6297     aix3* | aix4* | aix5*)
6298       # On AIX/PPC, the GNU linker is very broken
6299       if test "$host_cpu" != ia64; then
6300         ld_shlibs=no
6301         cat <<EOF 1>&2
6302
6303 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6304 *** to be unable to reliably create shared libraries on AIX.
6305 *** Therefore, libtool is disabling shared libraries support.  If you
6306 *** really care for shared libraries, you may want to modify your PATH
6307 *** so that a non-GNU linker is found, and then restart.
6308
6309 EOF
6310       fi
6311       ;;
6312
6313     amigaos*)
6314       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)'
6315       hardcode_libdir_flag_spec='-L$libdir'
6316       hardcode_minus_L=yes
6317
6318       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6319       # that the semantics of dynamic libraries on AmigaOS, at least up
6320       # to version 4, is to share data among multiple programs linked
6321       # with the same dynamic library.  Since this doesn't match the
6322       # behavior of shared libraries on other platforms, we can't use
6323       # them.
6324       ld_shlibs=no
6325       ;;
6326
6327     beos*)
6328       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6329         allow_undefined_flag=unsupported
6330         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6331         # support --undefined.  This deserves some investigation.  FIXME
6332         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6333       else
6334         ld_shlibs=no
6335       fi
6336       ;;
6337
6338     cygwin* | mingw* | pw32*)
6339       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6340       # as there is no search path for DLLs.
6341       hardcode_libdir_flag_spec='-L$libdir'
6342       allow_undefined_flag=unsupported
6343       always_export_symbols=no
6344       enable_shared_with_static_runtimes=yes
6345       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6346
6347       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6348         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6349         # If the export-symbols file already is a .def file (1st line
6350         # is EXPORTS), use it as is; otherwise, prepend...
6351         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6352           cp $export_symbols $output_objdir/$soname.def;
6353         else
6354           echo EXPORTS > $output_objdir/$soname.def;
6355           cat $export_symbols >> $output_objdir/$soname.def;
6356         fi~
6357         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6358       else
6359         ld_shlibs=no
6360       fi
6361       ;;
6362
6363     netbsd*)
6364       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6365         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6366         wlarc=
6367       else
6368         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6369         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6370       fi
6371       ;;
6372
6373     solaris* | sysv5*)
6374       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6375         ld_shlibs=no
6376         cat <<EOF 1>&2
6377
6378 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6379 *** create shared libraries on Solaris systems.  Therefore, libtool
6380 *** is disabling shared libraries support.  We urge you to upgrade GNU
6381 *** binutils to release 2.9.1 or newer.  Another option is to modify
6382 *** your PATH or compiler configuration so that the native linker is
6383 *** used, and then restart.
6384
6385 EOF
6386       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6387         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6388         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6389       else
6390         ld_shlibs=no
6391       fi
6392       ;;
6393
6394     sunos4*)
6395       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6396       wlarc=
6397       hardcode_direct=yes
6398       hardcode_shlibpath_var=no
6399       ;;
6400
6401     *)
6402       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6403         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6404         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6405       else
6406         ld_shlibs=no
6407       fi
6408       ;;
6409     esac
6410
6411     if test "$ld_shlibs" = yes; then
6412       runpath_var=LD_RUN_PATH
6413       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6414       export_dynamic_flag_spec='${wl}--export-dynamic'
6415       # ancient GNU ld didn't support --whole-archive et. al.
6416       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6417         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6418       else
6419         whole_archive_flag_spec=
6420       fi
6421     fi
6422   else
6423     # PORTME fill in a description of your system's linker (not GNU ld)
6424     case $host_os in
6425     aix3*)
6426       allow_undefined_flag=unsupported
6427       always_export_symbols=yes
6428       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'
6429       # Note: this linker hardcodes the directories in LIBPATH if there
6430       # are no directories specified by -L.
6431       hardcode_minus_L=yes
6432       if test "$GCC" = yes && test -z "$link_static_flag"; then
6433         # Neither direct hardcoding nor static linking is supported with a
6434         # broken collect2.
6435         hardcode_direct=unsupported
6436       fi
6437       ;;
6438
6439     aix4* | aix5*)
6440       if test "$host_cpu" = ia64; then
6441         # On IA64, the linker does run time linking by default, so we don't
6442         # have to do anything special.
6443         aix_use_runtimelinking=no
6444         exp_sym_flag='-Bexport'
6445         no_entry_flag=""
6446       else
6447         # If we're using GNU nm, then we don't want the "-C" option.
6448         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6449         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6450           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'
6451         else
6452           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'
6453         fi
6454         aix_use_runtimelinking=no
6455
6456         # Test if we are trying to use run time linking or normal
6457         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6458         # need to do runtime linking.
6459         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6460           for ld_flag in $LDFLAGS; do
6461           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6462             aix_use_runtimelinking=yes
6463             break
6464           fi
6465           done
6466         esac
6467
6468         exp_sym_flag='-bexport'
6469         no_entry_flag='-bnoentry'
6470       fi
6471
6472       # When large executables or shared objects are built, AIX ld can
6473       # have problems creating the table of contents.  If linking a library
6474       # or program results in "error TOC overflow" add -mminimal-toc to
6475       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6476       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6477
6478       archive_cmds=''
6479       hardcode_direct=yes
6480       hardcode_libdir_separator=':'
6481       link_all_deplibs=yes
6482
6483       if test "$GCC" = yes; then
6484         case $host_os in aix4.012|aix4.012.*)
6485         # We only want to do this on AIX 4.2 and lower, the check
6486         # below for broken collect2 doesn't work under 4.3+
6487           collect2name=`${CC} -print-prog-name=collect2`
6488           if test -f "$collect2name" && \
6489            strings "$collect2name" | grep resolve_lib_name >/dev/null
6490           then
6491           # We have reworked collect2
6492           hardcode_direct=yes
6493           else
6494           # We have old collect2
6495           hardcode_direct=unsupported
6496           # It fails to find uninstalled libraries when the uninstalled
6497           # path is not listed in the libpath.  Setting hardcode_minus_L
6498           # to unsupported forces relinking
6499           hardcode_minus_L=yes
6500           hardcode_libdir_flag_spec='-L$libdir'
6501           hardcode_libdir_separator=
6502           fi
6503         esac
6504         shared_flag='-shared'
6505       else
6506         # not using gcc
6507         if test "$host_cpu" = ia64; then
6508         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6509         # chokes on -Wl,-G. The following line is correct:
6510           shared_flag='-G'
6511         else
6512         if test "$aix_use_runtimelinking" = yes; then
6513             shared_flag='${wl}-G'
6514           else
6515             shared_flag='${wl}-bM:SRE'
6516         fi
6517         fi
6518       fi
6519
6520       # It seems that -bexpall does not export symbols beginning with
6521       # underscore (_), so it is better to generate a list of symbols to export.
6522       always_export_symbols=yes
6523       if test "$aix_use_runtimelinking" = yes; then
6524         # Warning - without using the other runtime loading flags (-brtl),
6525         # -berok will link without error, but may produce a broken library.
6526         allow_undefined_flag='-berok'
6527        # Determine the default libpath from the value encoded in an empty executable.
6528        cat >conftest.$ac_ext <<_ACEOF
6529 #line $LINENO "configure"
6530 /* confdefs.h.  */
6531 _ACEOF
6532 cat confdefs.h >>conftest.$ac_ext
6533 cat >>conftest.$ac_ext <<_ACEOF
6534 /* end confdefs.h.  */
6535
6536 int
6537 main ()
6538 {
6539
6540   ;
6541   return 0;
6542 }
6543 _ACEOF
6544 rm -f conftest.$ac_objext conftest$ac_exeext
6545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6546   (eval $ac_link) 2>&5
6547   ac_status=$?
6548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549   (exit $ac_status); } &&
6550          { ac_try='test -s conftest$ac_exeext'
6551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552   (eval $ac_try) 2>&5
6553   ac_status=$?
6554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555   (exit $ac_status); }; }; then
6556
6557 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6558 }'`
6559 # Check for a 64-bit object if we didn't find anything.
6560 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; }
6561 }'`; fi
6562 else
6563   echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.$ac_ext >&5
6565
6566 fi
6567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6568 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6569
6570        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6571         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"
6572        else
6573         if test "$host_cpu" = ia64; then
6574           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6575           allow_undefined_flag="-z nodefs"
6576           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"
6577         else
6578          # Determine the default libpath from the value encoded in an empty executable.
6579          cat >conftest.$ac_ext <<_ACEOF
6580 #line $LINENO "configure"
6581 /* confdefs.h.  */
6582 _ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h.  */
6586
6587 int
6588 main ()
6589 {
6590
6591   ;
6592   return 0;
6593 }
6594 _ACEOF
6595 rm -f conftest.$ac_objext conftest$ac_exeext
6596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6597   (eval $ac_link) 2>&5
6598   ac_status=$?
6599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600   (exit $ac_status); } &&
6601          { ac_try='test -s conftest$ac_exeext'
6602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603   (eval $ac_try) 2>&5
6604   ac_status=$?
6605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606   (exit $ac_status); }; }; then
6607
6608 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6609 }'`
6610 # Check for a 64-bit object if we didn't find anything.
6611 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; }
6612 }'`; fi
6613 else
6614   echo "$as_me: failed program was:" >&5
6615 sed 's/^/| /' conftest.$ac_ext >&5
6616
6617 fi
6618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6619 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6620
6621          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6622           # Warning - without using the other run time loading flags,
6623           # -berok will link without error, but may produce a broken library.
6624           no_undefined_flag=' ${wl}-bernotok'
6625           allow_undefined_flag=' ${wl}-berok'
6626           # -bexpall does not export symbols beginning with underscore (_)
6627           always_export_symbols=yes
6628           # Exported symbols can be pulled into shared objects from archives
6629           whole_archive_flag_spec=' '
6630           archive_cmds_need_lc=yes
6631           # This is similar to how AIX traditionally builds it's shared libraries.
6632           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'
6633         fi
6634       fi
6635       ;;
6636
6637     amigaos*)
6638       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)'
6639       hardcode_libdir_flag_spec='-L$libdir'
6640       hardcode_minus_L=yes
6641       # see comment about different semantics on the GNU ld section
6642       ld_shlibs=no
6643       ;;
6644
6645     bsdi4*)
6646       export_dynamic_flag_spec=-rdynamic
6647       ;;
6648
6649     cygwin* | mingw* | pw32*)
6650       # When not using gcc, we currently assume that we are using
6651       # Microsoft Visual C++.
6652       # hardcode_libdir_flag_spec is actually meaningless, as there is
6653       # no search path for DLLs.
6654       hardcode_libdir_flag_spec=' '
6655       allow_undefined_flag=unsupported
6656       # Tell ltmain to make .lib files, not .a files.
6657       libext=lib
6658       # Tell ltmain to make .dll files, not .so files.
6659       shrext=".dll"
6660       # FIXME: Setting linknames here is a bad hack.
6661       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6662       # The linker will automatically build a .lib file if we build a DLL.
6663       old_archive_From_new_cmds='true'
6664       # FIXME: Should let the user specify the lib program.
6665       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6666       fix_srcfile_path='`cygpath -w "$srcfile"`'
6667       enable_shared_with_static_runtimes=yes
6668       ;;
6669
6670     darwin* | rhapsody*)
6671     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6672       archive_cmds_need_lc=no
6673       case "$host_os" in
6674       rhapsody* | darwin1.[012])
6675         allow_undefined_flag='-undefined suppress'
6676         ;;
6677       *) # Darwin 1.3 on
6678         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6679         ;;
6680       esac
6681       # FIXME: Relying on posixy $() will cause problems for
6682       #        cross-compilation, but unfortunately the echo tests do not
6683       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6684       #        `"' quotes if we put them in here... so don't!
6685         lt_int_apple_cc_single_mod=no
6686         output_verbose_link_cmd='echo'
6687         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6688           lt_int_apple_cc_single_mod=yes
6689         fi
6690         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6691           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6692         else
6693         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'
6694       fi
6695       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6696       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6697         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6698           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}'
6699         else
6700           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}'
6701         fi
6702           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}'
6703       hardcode_direct=no
6704       hardcode_automatic=yes
6705       hardcode_shlibpath_var=unsupported
6706       whole_archive_flag_spec='-all_load $convenience'
6707       link_all_deplibs=yes
6708     fi
6709       ;;
6710
6711     dgux*)
6712       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6713       hardcode_libdir_flag_spec='-L$libdir'
6714       hardcode_shlibpath_var=no
6715       ;;
6716
6717     freebsd1*)
6718       ld_shlibs=no
6719       ;;
6720
6721     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6722     # support.  Future versions do this automatically, but an explicit c++rt0.o
6723     # does not break anything, and helps significantly (at the cost of a little
6724     # extra space).
6725     freebsd2.2*)
6726       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6727       hardcode_libdir_flag_spec='-R$libdir'
6728       hardcode_direct=yes
6729       hardcode_shlibpath_var=no
6730       ;;
6731
6732     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6733     freebsd2*)
6734       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6735       hardcode_direct=yes
6736       hardcode_minus_L=yes
6737       hardcode_shlibpath_var=no
6738       ;;
6739
6740     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6741     freebsd*)
6742       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6743       hardcode_libdir_flag_spec='-R$libdir'
6744       hardcode_direct=yes
6745       hardcode_shlibpath_var=no
6746       ;;
6747
6748     hpux9*)
6749       if test "$GCC" = yes; then
6750         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'
6751       else
6752         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'
6753       fi
6754       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6755       hardcode_libdir_separator=:
6756       hardcode_direct=yes
6757
6758       # hardcode_minus_L: Not really in the search PATH,
6759       # but as the default location of the library.
6760       hardcode_minus_L=yes
6761       export_dynamic_flag_spec='${wl}-E'
6762       ;;
6763
6764     hpux10* | hpux11*)
6765       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6766         case "$host_cpu" in
6767         hppa*64*|ia64*)
6768           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6769           ;;
6770         *)
6771           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6772           ;;
6773         esac
6774       else
6775         case "$host_cpu" in
6776         hppa*64*|ia64*)
6777           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6778           ;;
6779         *)
6780           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6781           ;;
6782         esac
6783       fi
6784       if test "$with_gnu_ld" = no; then
6785         case "$host_cpu" in
6786         hppa*64*)
6787           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6788           hardcode_libdir_flag_spec_ld='+b $libdir'
6789           hardcode_libdir_separator=:
6790           hardcode_direct=no
6791           hardcode_shlibpath_var=no
6792           ;;
6793         ia64*)
6794           hardcode_libdir_flag_spec='-L$libdir'
6795           hardcode_direct=no
6796           hardcode_shlibpath_var=no
6797
6798           # hardcode_minus_L: Not really in the search PATH,
6799           # but as the default location of the library.
6800           hardcode_minus_L=yes
6801           ;;
6802         *)
6803           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6804           hardcode_libdir_separator=:
6805           hardcode_direct=yes
6806           export_dynamic_flag_spec='${wl}-E'
6807
6808           # hardcode_minus_L: Not really in the search PATH,
6809           # but as the default location of the library.
6810           hardcode_minus_L=yes
6811           ;;
6812         esac
6813       fi
6814       ;;
6815
6816     irix5* | irix6* | nonstopux*)
6817       if test "$GCC" = yes; then
6818         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'
6819       else
6820         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'
6821         hardcode_libdir_flag_spec_ld='-rpath $libdir'
6822       fi
6823       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6824       hardcode_libdir_separator=:
6825       link_all_deplibs=yes
6826       ;;
6827
6828     netbsd*)
6829       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6830         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6831       else
6832         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6833       fi
6834       hardcode_libdir_flag_spec='-R$libdir'
6835       hardcode_direct=yes
6836       hardcode_shlibpath_var=no
6837       ;;
6838
6839     newsos6)
6840       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6841       hardcode_direct=yes
6842       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6843       hardcode_libdir_separator=:
6844       hardcode_shlibpath_var=no
6845       ;;
6846
6847     openbsd*)
6848       hardcode_direct=yes
6849       hardcode_shlibpath_var=no
6850       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6851         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6852         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6853         export_dynamic_flag_spec='${wl}-E'
6854       else
6855        case $host_os in
6856          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6857            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6858            hardcode_libdir_flag_spec='-R$libdir'
6859            ;;
6860          *)
6861            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6862            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6863            ;;
6864        esac
6865       fi
6866       ;;
6867
6868     os2*)
6869       hardcode_libdir_flag_spec='-L$libdir'
6870       hardcode_minus_L=yes
6871       allow_undefined_flag=unsupported
6872       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'
6873       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6874       ;;
6875
6876     osf3*)
6877       if test "$GCC" = yes; then
6878         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6879         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'
6880       else
6881         allow_undefined_flag=' -expect_unresolved \*'
6882         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'
6883       fi
6884       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6885       hardcode_libdir_separator=:
6886       ;;
6887
6888     osf4* | osf5*)      # as osf3* with the addition of -msym flag
6889       if test "$GCC" = yes; then
6890         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6891         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'
6892         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6893       else
6894         allow_undefined_flag=' -expect_unresolved \*'
6895         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'
6896         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6897         $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'
6898
6899         # Both c and cxx compiler support -rpath directly
6900         hardcode_libdir_flag_spec='-rpath $libdir'
6901       fi
6902       hardcode_libdir_separator=:
6903       ;;
6904
6905     sco3.2v5*)
6906       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6907       hardcode_shlibpath_var=no
6908       export_dynamic_flag_spec='${wl}-Bexport'
6909       runpath_var=LD_RUN_PATH
6910       hardcode_runpath_var=yes
6911       ;;
6912
6913     solaris*)
6914       no_undefined_flag=' -z text'
6915       if test "$GCC" = yes; then
6916         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6917         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6918           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6919       else
6920         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6921         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6922         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6923       fi
6924       hardcode_libdir_flag_spec='-R$libdir'
6925       hardcode_shlibpath_var=no
6926       case $host_os in
6927       solaris2.[0-5] | solaris2.[0-5].*) ;;
6928       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6929         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6930       esac
6931       link_all_deplibs=yes
6932       ;;
6933
6934     sunos4*)
6935       if test "x$host_vendor" = xsequent; then
6936         # Use $CC to link under sequent, because it throws in some extra .o
6937         # files that make .init and .fini sections work.
6938         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6939       else
6940         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6941       fi
6942       hardcode_libdir_flag_spec='-L$libdir'
6943       hardcode_direct=yes
6944       hardcode_minus_L=yes
6945       hardcode_shlibpath_var=no
6946       ;;
6947
6948     sysv4)
6949       case $host_vendor in
6950         sni)
6951           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6952           hardcode_direct=yes # is this really true???
6953         ;;
6954         siemens)
6955           ## LD is ld it makes a PLAMLIB
6956           ## CC just makes a GrossModule.
6957           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6958           reload_cmds='$CC -r -o $output$reload_objs'
6959           hardcode_direct=no
6960         ;;
6961         motorola)
6962           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6963           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6964         ;;
6965       esac
6966       runpath_var='LD_RUN_PATH'
6967       hardcode_shlibpath_var=no
6968       ;;
6969
6970     sysv4.3*)
6971       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6972       hardcode_shlibpath_var=no
6973       export_dynamic_flag_spec='-Bexport'
6974       ;;
6975
6976     sysv4*MP*)
6977       if test -d /usr/nec; then
6978         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6979         hardcode_shlibpath_var=no
6980         runpath_var=LD_RUN_PATH
6981         hardcode_runpath_var=yes
6982         ld_shlibs=yes
6983       fi
6984       ;;
6985
6986     sysv4.2uw2*)
6987       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6988       hardcode_direct=yes
6989       hardcode_minus_L=no
6990       hardcode_shlibpath_var=no
6991       hardcode_runpath_var=yes
6992       runpath_var=LD_RUN_PATH
6993       ;;
6994
6995    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
6996       no_undefined_flag='${wl}-z ${wl}text'
6997       if test "$GCC" = yes; then
6998         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6999       else
7000         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7001       fi
7002       runpath_var='LD_RUN_PATH'
7003       hardcode_shlibpath_var=no
7004       ;;
7005
7006     sysv5*)
7007       no_undefined_flag=' -z text'
7008       # $CC -shared without GNU ld will not create a library from C++
7009       # object files and a static libstdc++, better avoid it by now
7010       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7011       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7012                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7013       hardcode_libdir_flag_spec=
7014       hardcode_shlibpath_var=no
7015       runpath_var='LD_RUN_PATH'
7016       ;;
7017
7018     uts4*)
7019       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7020       hardcode_libdir_flag_spec='-L$libdir'
7021       hardcode_shlibpath_var=no
7022       ;;
7023
7024     *)
7025       ld_shlibs=no
7026       ;;
7027     esac
7028   fi
7029
7030 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7031 echo "${ECHO_T}$ld_shlibs" >&6
7032 test "$ld_shlibs" = no && can_build_shared=no
7033
7034 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7035 if test "$GCC" = yes; then
7036   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7037 fi
7038
7039 #
7040 # Do we need to explicitly link libc?
7041 #
7042 case "x$archive_cmds_need_lc" in
7043 x|xyes)
7044   # Assume -lc should be added
7045   archive_cmds_need_lc=yes
7046
7047   if test "$enable_shared" = yes && test "$GCC" = yes; then
7048     case $archive_cmds in
7049     *'~'*)
7050       # FIXME: we may have to deal with multi-command sequences.
7051       ;;
7052     '$CC '*)
7053       # Test whether the compiler implicitly links with -lc since on some
7054       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7055       # to ld, don't add -lc before -lgcc.
7056       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7057 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7058       $rm conftest*
7059       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7060
7061       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7062   (eval $ac_compile) 2>&5
7063   ac_status=$?
7064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065   (exit $ac_status); } 2>conftest.err; then
7066         soname=conftest
7067         lib=conftest
7068         libobjs=conftest.$ac_objext
7069         deplibs=
7070         wl=$lt_prog_compiler_wl
7071         compiler_flags=-v
7072         linker_flags=-v
7073         verstring=
7074         output_objdir=.
7075         libname=conftest
7076         lt_save_allow_undefined_flag=$allow_undefined_flag
7077         allow_undefined_flag=
7078         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7079   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7080   ac_status=$?
7081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082   (exit $ac_status); }
7083         then
7084           archive_cmds_need_lc=no
7085         else
7086           archive_cmds_need_lc=yes
7087         fi
7088         allow_undefined_flag=$lt_save_allow_undefined_flag
7089       else
7090         cat conftest.err 1>&5
7091       fi
7092       $rm conftest*
7093       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7094 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7095       ;;
7096     esac
7097   fi
7098   ;;
7099 esac
7100
7101 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7102 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7103 hardcode_action=
7104 if test -n "$hardcode_libdir_flag_spec" || \
7105    test -n "$runpath_var " || \
7106    test "X$hardcode_automatic"="Xyes" ; then
7107
7108   # We can hardcode non-existant directories.
7109   if test "$hardcode_direct" != no &&
7110      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7111      # have to relink, otherwise we might link with an installed library
7112      # when we should be linking with a yet-to-be-installed one
7113      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7114      test "$hardcode_minus_L" != no; then
7115     # Linking always hardcodes the temporary library directory.
7116     hardcode_action=relink
7117   else
7118     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7119     hardcode_action=immediate
7120   fi
7121 else
7122   # We cannot hardcode anything, or else we can only hardcode existing
7123   # directories.
7124   hardcode_action=unsupported
7125 fi
7126 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7127 echo "${ECHO_T}$hardcode_action" >&6
7128
7129 if test "$hardcode_action" = relink; then
7130   # Fast installation is not supported
7131   enable_fast_install=no
7132 elif test "$shlibpath_overrides_runpath" = yes ||
7133      test "$enable_shared" = no; then
7134   # Fast installation is not necessary
7135   enable_fast_install=needless
7136 fi
7137
7138 striplib=
7139 old_striplib=
7140 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7141 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7142 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7143   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7144   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7145   echo "$as_me:$LINENO: result: yes" >&5
7146 echo "${ECHO_T}yes" >&6
7147 else
7148 # FIXME - insert some real tests, host_os isn't really good enough
7149   case $host_os in
7150    darwin*)
7151        if test -n "$STRIP" ; then
7152          striplib="$STRIP -x"
7153          echo "$as_me:$LINENO: result: yes" >&5
7154 echo "${ECHO_T}yes" >&6
7155        else
7156   echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6
7158 fi
7159        ;;
7160    *)
7161   echo "$as_me:$LINENO: result: no" >&5
7162 echo "${ECHO_T}no" >&6
7163     ;;
7164   esac
7165 fi
7166
7167 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7168 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7169 library_names_spec=
7170 libname_spec='lib$name'
7171 soname_spec=
7172 shrext=".so"
7173 postinstall_cmds=
7174 postuninstall_cmds=
7175 finish_cmds=
7176 finish_eval=
7177 shlibpath_var=
7178 shlibpath_overrides_runpath=unknown
7179 version_type=none
7180 dynamic_linker="$host_os ld.so"
7181 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7182 if test "$GCC" = yes; then
7183   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7184   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7185     # if the path contains ";" then we assume it to be the separator
7186     # otherwise default to the standard path separator (i.e. ":") - it is
7187     # assumed that no part of a normal pathname contains ";" but that should
7188     # okay in the real world where ";" in dirpaths is itself problematic.
7189     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7190   else
7191     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7192   fi
7193 else
7194   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7195 fi
7196 need_lib_prefix=unknown
7197 hardcode_into_libs=no
7198
7199 # when you set need_version to no, make sure it does not cause -set_version
7200 # flags to be left without arguments
7201 need_version=unknown
7202
7203 case $host_os in
7204 aix3*)
7205   version_type=linux
7206   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7207   shlibpath_var=LIBPATH
7208
7209   # AIX 3 has no versioning support, so we append a major version to the name.
7210   soname_spec='${libname}${release}${shared_ext}$major'
7211   ;;
7212
7213 aix4* | aix5*)
7214   version_type=linux
7215   need_lib_prefix=no
7216   need_version=no
7217   hardcode_into_libs=yes
7218   if test "$host_cpu" = ia64; then
7219     # AIX 5 supports IA64
7220     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7221     shlibpath_var=LD_LIBRARY_PATH
7222   else
7223     # With GCC up to 2.95.x, collect2 would create an import file
7224     # for dependence libraries.  The import file would start with
7225     # the line `#! .'.  This would cause the generated library to
7226     # depend on `.', always an invalid library.  This was fixed in
7227     # development snapshots of GCC prior to 3.0.
7228     case $host_os in
7229       aix4 | aix4.[01] | aix4.[01].*)
7230       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7231            echo ' yes '
7232            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7233         :
7234       else
7235         can_build_shared=no
7236       fi
7237       ;;
7238     esac
7239     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7240     # soname into executable. Probably we can add versioning support to
7241     # collect2, so additional links can be useful in future.
7242     if test "$aix_use_runtimelinking" = yes; then
7243       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7244       # instead of lib<name>.a to let people know that these are not
7245       # typical AIX shared libraries.
7246       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7247     else
7248       # We preserve .a as extension for shared libraries through AIX4.2
7249       # and later when we are not doing run time linking.
7250       library_names_spec='${libname}${release}.a $libname.a'
7251       soname_spec='${libname}${release}${shared_ext}$major'
7252     fi
7253     shlibpath_var=LIBPATH
7254   fi
7255   ;;
7256
7257 amigaos*)
7258   library_names_spec='$libname.ixlibrary $libname.a'
7259   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7260   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'
7261   ;;
7262
7263 beos*)
7264   library_names_spec='${libname}${shared_ext}'
7265   dynamic_linker="$host_os ld.so"
7266   shlibpath_var=LIBRARY_PATH
7267   ;;
7268
7269 bsdi4*)
7270   version_type=linux
7271   need_version=no
7272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7273   soname_spec='${libname}${release}${shared_ext}$major'
7274   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7275   shlibpath_var=LD_LIBRARY_PATH
7276   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7277   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7278   # the default ld.so.conf also contains /usr/contrib/lib and
7279   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7280   # libtool to hard-code these into programs
7281   ;;
7282
7283 cygwin* | mingw* | pw32*)
7284   version_type=windows
7285   shrext=".dll"
7286   need_version=no
7287   need_lib_prefix=no
7288
7289   case $GCC,$host_os in
7290   yes,cygwin* | yes,mingw* | yes,pw32*)
7291     library_names_spec='$libname.dll.a'
7292     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7293     postinstall_cmds='base_file=`basename \${file}`~
7294       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7295       dldir=$destdir/`dirname \$dlpath`~
7296       test -d \$dldir || mkdir -p \$dldir~
7297       $install_prog $dir/$dlname \$dldir/$dlname'
7298     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7299       dlpath=$dir/\$dldll~
7300        $rm \$dlpath'
7301     shlibpath_overrides_runpath=yes
7302
7303     case $host_os in
7304     cygwin*)
7305       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7306       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7307       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7308       ;;
7309     mingw*)
7310       # MinGW DLLs use traditional 'lib' prefix
7311       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7312       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7313       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7314         # It is most probably a Windows format PATH printed by
7315         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7316         # path with ; separators, and with drive letters. We can handle the
7317         # drive letters (cygwin fileutils understands them), so leave them,
7318         # especially as we might pass files found there to a mingw objdump,
7319         # which wouldn't understand a cygwinified path. Ahh.
7320         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7321       else
7322         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7323       fi
7324       ;;
7325     pw32*)
7326       # pw32 DLLs use 'pw' prefix rather than 'lib'
7327       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7328       ;;
7329     esac
7330     ;;
7331
7332   *)
7333     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7334     ;;
7335   esac
7336   dynamic_linker='Win32 ld.exe'
7337   # FIXME: first we should search . and the directory the executable is in
7338   shlibpath_var=PATH
7339   ;;
7340
7341 darwin* | rhapsody*)
7342   dynamic_linker="$host_os dyld"
7343   version_type=darwin
7344   need_lib_prefix=no
7345   need_version=no
7346   # FIXME: Relying on posixy $() will cause problems for
7347   #        cross-compilation, but unfortunately the echo tests do not
7348   #        yet detect zsh echo's removal of \ escapes.
7349   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7350   soname_spec='${libname}${release}${major}$shared_ext'
7351   shlibpath_overrides_runpath=yes
7352   shlibpath_var=DYLD_LIBRARY_PATH
7353   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7354   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7355   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7356   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"`
7357   fi
7358   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7359   ;;
7360
7361 dgux*)
7362   version_type=linux
7363   need_lib_prefix=no
7364   need_version=no
7365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7366   soname_spec='${libname}${release}${shared_ext}$major'
7367   shlibpath_var=LD_LIBRARY_PATH
7368   ;;
7369
7370 freebsd1*)
7371   dynamic_linker=no
7372   ;;
7373
7374 freebsd*)
7375   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7376   version_type=freebsd-$objformat
7377   case $version_type in
7378     freebsd-elf*)
7379       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7380       need_version=no
7381       need_lib_prefix=no
7382       ;;
7383     freebsd-*)
7384       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7385       need_version=yes
7386       ;;
7387   esac
7388   shlibpath_var=LD_LIBRARY_PATH
7389   case $host_os in
7390   freebsd2*)
7391     shlibpath_overrides_runpath=yes
7392     ;;
7393   freebsd3.01* | freebsdelf3.01*)
7394     shlibpath_overrides_runpath=yes
7395     hardcode_into_libs=yes
7396     ;;
7397   *) # from 3.2 on
7398     shlibpath_overrides_runpath=no
7399     hardcode_into_libs=yes
7400     ;;
7401   esac
7402   ;;
7403
7404 gnu*)
7405   version_type=linux
7406   need_lib_prefix=no
7407   need_version=no
7408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7409   soname_spec='${libname}${release}${shared_ext}$major'
7410   shlibpath_var=LD_LIBRARY_PATH
7411   hardcode_into_libs=yes
7412   ;;
7413
7414 hpux9* | hpux10* | hpux11*)
7415   # Give a soname corresponding to the major version so that dld.sl refuses to
7416   # link against other versions.
7417   version_type=sunos
7418   need_lib_prefix=no
7419   need_version=no
7420   case "$host_cpu" in
7421   ia64*)
7422     shrext='.so'
7423     hardcode_into_libs=yes
7424     dynamic_linker="$host_os dld.so"
7425     shlibpath_var=LD_LIBRARY_PATH
7426     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7427     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7428     soname_spec='${libname}${release}${shared_ext}$major'
7429     if test "X$HPUX_IA64_MODE" = X32; then
7430       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7431     else
7432       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7433     fi
7434     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7435     ;;
7436    hppa*64*)
7437      shrext='.sl'
7438      hardcode_into_libs=yes
7439      dynamic_linker="$host_os dld.sl"
7440      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7441      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7442      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7443      soname_spec='${libname}${release}${shared_ext}$major'
7444      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7445      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7446      ;;
7447    *)
7448     shrext='.sl'
7449     dynamic_linker="$host_os dld.sl"
7450     shlibpath_var=SHLIB_PATH
7451     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7452     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7453     soname_spec='${libname}${release}${shared_ext}$major'
7454     ;;
7455   esac
7456   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7457   postinstall_cmds='chmod 555 $lib'
7458   ;;
7459
7460 irix5* | irix6* | nonstopux*)
7461   case $host_os in
7462     nonstopux*) version_type=nonstopux ;;
7463     *)
7464         if test "$lt_cv_prog_gnu_ld" = yes; then
7465                 version_type=linux
7466         else
7467                 version_type=irix
7468         fi ;;
7469   esac
7470   need_lib_prefix=no
7471   need_version=no
7472   soname_spec='${libname}${release}${shared_ext}$major'
7473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7474   case $host_os in
7475   irix5* | nonstopux*)
7476     libsuff= shlibsuff=
7477     ;;
7478   *)
7479     case $LD in # libtool.m4 will add one of these switches to LD
7480     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7481       libsuff= shlibsuff= libmagic=32-bit;;
7482     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7483       libsuff=32 shlibsuff=N32 libmagic=N32;;
7484     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7485       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7486     *) libsuff= shlibsuff= libmagic=never-match;;
7487     esac
7488     ;;
7489   esac
7490   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7491   shlibpath_overrides_runpath=no
7492   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7493   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7494   hardcode_into_libs=yes
7495   ;;
7496
7497 # No shared lib support for Linux oldld, aout, or coff.
7498 linux*oldld* | linux*aout* | linux*coff*)
7499   dynamic_linker=no
7500   ;;
7501
7502 # This must be Linux ELF.
7503 linux*)
7504   version_type=linux
7505   need_lib_prefix=no
7506   need_version=no
7507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7508   soname_spec='${libname}${release}${shared_ext}$major'
7509   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7510   shlibpath_var=LD_LIBRARY_PATH
7511   shlibpath_overrides_runpath=no
7512   # This implies no fast_install, which is unacceptable.
7513   # Some rework will be needed to allow for fast_install
7514   # before this can be enabled.
7515   hardcode_into_libs=yes
7516
7517   # We used to test for /lib/ld.so.1 and disable shared libraries on
7518   # powerpc, because MkLinux only supported shared libraries with the
7519   # GNU dynamic linker.  Since this was broken with cross compilers,
7520   # most powerpc-linux boxes support dynamic linking these days and
7521   # people can always --disable-shared, the test was removed, and we
7522   # assume the GNU/Linux dynamic linker is in use.
7523   dynamic_linker='GNU/Linux ld.so'
7524   ;;
7525
7526 netbsd*)
7527   version_type=sunos
7528   need_lib_prefix=no
7529   need_version=no
7530   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7531     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7532     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7533     dynamic_linker='NetBSD (a.out) ld.so'
7534   else
7535     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7536     soname_spec='${libname}${release}${shared_ext}$major'
7537     dynamic_linker='NetBSD ld.elf_so'
7538   fi
7539   shlibpath_var=LD_LIBRARY_PATH
7540   shlibpath_overrides_runpath=yes
7541   hardcode_into_libs=yes
7542   ;;
7543
7544 newsos6)
7545   version_type=linux
7546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7547   shlibpath_var=LD_LIBRARY_PATH
7548   shlibpath_overrides_runpath=yes
7549   ;;
7550
7551 nto-qnx)
7552   version_type=linux
7553   need_lib_prefix=no
7554   need_version=no
7555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7556   soname_spec='${libname}${release}${shared_ext}$major'
7557   shlibpath_var=LD_LIBRARY_PATH
7558   shlibpath_overrides_runpath=yes
7559   ;;
7560
7561 openbsd*)
7562   version_type=sunos
7563   need_lib_prefix=no
7564   need_version=no
7565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7566   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7567   shlibpath_var=LD_LIBRARY_PATH
7568   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7569     case $host_os in
7570       openbsd2.[89] | openbsd2.[89].*)
7571         shlibpath_overrides_runpath=no
7572         ;;
7573       *)
7574         shlibpath_overrides_runpath=yes
7575         ;;
7576       esac
7577   else
7578     shlibpath_overrides_runpath=yes
7579   fi
7580   ;;
7581
7582 os2*)
7583   libname_spec='$name'
7584   shrext=".dll"
7585   need_lib_prefix=no
7586   library_names_spec='$libname${shared_ext} $libname.a'
7587   dynamic_linker='OS/2 ld.exe'
7588   shlibpath_var=LIBPATH
7589   ;;
7590
7591 osf3* | osf4* | osf5*)
7592   version_type=osf
7593   need_lib_prefix=no
7594   need_version=no
7595   soname_spec='${libname}${release}${shared_ext}$major'
7596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7597   shlibpath_var=LD_LIBRARY_PATH
7598   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7599   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7600   ;;
7601
7602 sco3.2v5*)
7603   version_type=osf
7604   soname_spec='${libname}${release}${shared_ext}$major'
7605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7606   shlibpath_var=LD_LIBRARY_PATH
7607   ;;
7608
7609 solaris*)
7610   version_type=linux
7611   need_lib_prefix=no
7612   need_version=no
7613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7614   soname_spec='${libname}${release}${shared_ext}$major'
7615   shlibpath_var=LD_LIBRARY_PATH
7616   shlibpath_overrides_runpath=yes
7617   hardcode_into_libs=yes
7618   # ldd complains unless libraries are executable
7619   postinstall_cmds='chmod +x $lib'
7620   ;;
7621
7622 sunos4*)
7623   version_type=sunos
7624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7625   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7626   shlibpath_var=LD_LIBRARY_PATH
7627   shlibpath_overrides_runpath=yes
7628   if test "$with_gnu_ld" = yes; then
7629     need_lib_prefix=no
7630   fi
7631   need_version=yes
7632   ;;
7633
7634 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7635   version_type=linux
7636   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7637   soname_spec='${libname}${release}${shared_ext}$major'
7638   shlibpath_var=LD_LIBRARY_PATH
7639   case $host_vendor in
7640     sni)
7641       shlibpath_overrides_runpath=no
7642       need_lib_prefix=no
7643       export_dynamic_flag_spec='${wl}-Blargedynsym'
7644       runpath_var=LD_RUN_PATH
7645       ;;
7646     siemens)
7647       need_lib_prefix=no
7648       ;;
7649     motorola)
7650       need_lib_prefix=no
7651       need_version=no
7652       shlibpath_overrides_runpath=no
7653       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7654       ;;
7655   esac
7656   ;;
7657
7658 sysv4*MP*)
7659   if test -d /usr/nec ;then
7660     version_type=linux
7661     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7662     soname_spec='$libname${shared_ext}.$major'
7663     shlibpath_var=LD_LIBRARY_PATH
7664   fi
7665   ;;
7666
7667 uts4*)
7668   version_type=linux
7669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7670   soname_spec='${libname}${release}${shared_ext}$major'
7671   shlibpath_var=LD_LIBRARY_PATH
7672   ;;
7673
7674 *)
7675   dynamic_linker=no
7676   ;;
7677 esac
7678 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7679 echo "${ECHO_T}$dynamic_linker" >&6
7680 test "$dynamic_linker" = no && can_build_shared=no
7681
7682 if test "x$enable_dlopen" != xyes; then
7683   enable_dlopen=unknown
7684   enable_dlopen_self=unknown
7685   enable_dlopen_self_static=unknown
7686 else
7687   lt_cv_dlopen=no
7688   lt_cv_dlopen_libs=
7689
7690   case $host_os in
7691   beos*)
7692     lt_cv_dlopen="load_add_on"
7693     lt_cv_dlopen_libs=
7694     lt_cv_dlopen_self=yes
7695     ;;
7696
7697   mingw* | pw32*)
7698     lt_cv_dlopen="LoadLibrary"
7699     lt_cv_dlopen_libs=
7700    ;;
7701
7702   cygwin*)
7703     lt_cv_dlopen="dlopen"
7704     lt_cv_dlopen_libs=
7705    ;;
7706
7707   darwin*)
7708   # if libdl is installed we need to link against it
7709     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7710 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7711 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7712   echo $ECHO_N "(cached) $ECHO_C" >&6
7713 else
7714   ac_check_lib_save_LIBS=$LIBS
7715 LIBS="-ldl  $LIBS"
7716 cat >conftest.$ac_ext <<_ACEOF
7717 #line $LINENO "configure"
7718 /* confdefs.h.  */
7719 _ACEOF
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h.  */
7723
7724 /* Override any gcc2 internal prototype to avoid an error.  */
7725 #ifdef __cplusplus
7726 extern "C"
7727 #endif
7728 /* We use char because int might match the return type of a gcc2
7729    builtin and then its argument prototype would still apply.  */
7730 char dlopen ();
7731 int
7732 main ()
7733 {
7734 dlopen ();
7735   ;
7736   return 0;
7737 }
7738 _ACEOF
7739 rm -f conftest.$ac_objext conftest$ac_exeext
7740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7741   (eval $ac_link) 2>&5
7742   ac_status=$?
7743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744   (exit $ac_status); } &&
7745          { ac_try='test -s conftest$ac_exeext'
7746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7747   (eval $ac_try) 2>&5
7748   ac_status=$?
7749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750   (exit $ac_status); }; }; then
7751   ac_cv_lib_dl_dlopen=yes
7752 else
7753   echo "$as_me: failed program was:" >&5
7754 sed 's/^/| /' conftest.$ac_ext >&5
7755
7756 ac_cv_lib_dl_dlopen=no
7757 fi
7758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7759 LIBS=$ac_check_lib_save_LIBS
7760 fi
7761 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7762 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7763 if test $ac_cv_lib_dl_dlopen = yes; then
7764   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7765 else
7766
7767     lt_cv_dlopen="dyld"
7768     lt_cv_dlopen_libs=
7769     lt_cv_dlopen_self=yes
7770
7771 fi
7772
7773    ;;
7774
7775   *)
7776     echo "$as_me:$LINENO: checking for shl_load" >&5
7777 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7778 if test "${ac_cv_func_shl_load+set}" = set; then
7779   echo $ECHO_N "(cached) $ECHO_C" >&6
7780 else
7781   cat >conftest.$ac_ext <<_ACEOF
7782 #line $LINENO "configure"
7783 /* confdefs.h.  */
7784 _ACEOF
7785 cat confdefs.h >>conftest.$ac_ext
7786 cat >>conftest.$ac_ext <<_ACEOF
7787 /* end confdefs.h.  */
7788 /* System header to define __stub macros and hopefully few prototypes,
7789     which can conflict with char shl_load (); below.
7790     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7791     <limits.h> exists even on freestanding compilers.  */
7792 #ifdef __STDC__
7793 # include <limits.h>
7794 #else
7795 # include <assert.h>
7796 #endif
7797 /* Override any gcc2 internal prototype to avoid an error.  */
7798 #ifdef __cplusplus
7799 extern "C"
7800 {
7801 #endif
7802 /* We use char because int might match the return type of a gcc2
7803    builtin and then its argument prototype would still apply.  */
7804 char shl_load ();
7805 /* The GNU C library defines this for functions which it implements
7806     to always fail with ENOSYS.  Some functions are actually named
7807     something starting with __ and the normal name is an alias.  */
7808 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7809 choke me
7810 #else
7811 char (*f) () = shl_load;
7812 #endif
7813 #ifdef __cplusplus
7814 }
7815 #endif
7816
7817 int
7818 main ()
7819 {
7820 return f != shl_load;
7821   ;
7822   return 0;
7823 }
7824 _ACEOF
7825 rm -f conftest.$ac_objext conftest$ac_exeext
7826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7827   (eval $ac_link) 2>&5
7828   ac_status=$?
7829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830   (exit $ac_status); } &&
7831          { ac_try='test -s conftest$ac_exeext'
7832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7833   (eval $ac_try) 2>&5
7834   ac_status=$?
7835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836   (exit $ac_status); }; }; then
7837   ac_cv_func_shl_load=yes
7838 else
7839   echo "$as_me: failed program was:" >&5
7840 sed 's/^/| /' conftest.$ac_ext >&5
7841
7842 ac_cv_func_shl_load=no
7843 fi
7844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7845 fi
7846 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7847 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7848 if test $ac_cv_func_shl_load = yes; then
7849   lt_cv_dlopen="shl_load"
7850 else
7851   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7852 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7853 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7854   echo $ECHO_N "(cached) $ECHO_C" >&6
7855 else
7856   ac_check_lib_save_LIBS=$LIBS
7857 LIBS="-ldld  $LIBS"
7858 cat >conftest.$ac_ext <<_ACEOF
7859 #line $LINENO "configure"
7860 /* confdefs.h.  */
7861 _ACEOF
7862 cat confdefs.h >>conftest.$ac_ext
7863 cat >>conftest.$ac_ext <<_ACEOF
7864 /* end confdefs.h.  */
7865
7866 /* Override any gcc2 internal prototype to avoid an error.  */
7867 #ifdef __cplusplus
7868 extern "C"
7869 #endif
7870 /* We use char because int might match the return type of a gcc2
7871    builtin and then its argument prototype would still apply.  */
7872 char shl_load ();
7873 int
7874 main ()
7875 {
7876 shl_load ();
7877   ;
7878   return 0;
7879 }
7880 _ACEOF
7881 rm -f conftest.$ac_objext conftest$ac_exeext
7882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7883   (eval $ac_link) 2>&5
7884   ac_status=$?
7885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886   (exit $ac_status); } &&
7887          { ac_try='test -s conftest$ac_exeext'
7888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889   (eval $ac_try) 2>&5
7890   ac_status=$?
7891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892   (exit $ac_status); }; }; then
7893   ac_cv_lib_dld_shl_load=yes
7894 else
7895   echo "$as_me: failed program was:" >&5
7896 sed 's/^/| /' conftest.$ac_ext >&5
7897
7898 ac_cv_lib_dld_shl_load=no
7899 fi
7900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7901 LIBS=$ac_check_lib_save_LIBS
7902 fi
7903 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7904 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7905 if test $ac_cv_lib_dld_shl_load = yes; then
7906   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7907 else
7908   echo "$as_me:$LINENO: checking for dlopen" >&5
7909 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7910 if test "${ac_cv_func_dlopen+set}" = set; then
7911   echo $ECHO_N "(cached) $ECHO_C" >&6
7912 else
7913   cat >conftest.$ac_ext <<_ACEOF
7914 #line $LINENO "configure"
7915 /* confdefs.h.  */
7916 _ACEOF
7917 cat confdefs.h >>conftest.$ac_ext
7918 cat >>conftest.$ac_ext <<_ACEOF
7919 /* end confdefs.h.  */
7920 /* System header to define __stub macros and hopefully few prototypes,
7921     which can conflict with char dlopen (); below.
7922     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7923     <limits.h> exists even on freestanding compilers.  */
7924 #ifdef __STDC__
7925 # include <limits.h>
7926 #else
7927 # include <assert.h>
7928 #endif
7929 /* Override any gcc2 internal prototype to avoid an error.  */
7930 #ifdef __cplusplus
7931 extern "C"
7932 {
7933 #endif
7934 /* We use char because int might match the return type of a gcc2
7935    builtin and then its argument prototype would still apply.  */
7936 char dlopen ();
7937 /* The GNU C library defines this for functions which it implements
7938     to always fail with ENOSYS.  Some functions are actually named
7939     something starting with __ and the normal name is an alias.  */
7940 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7941 choke me
7942 #else
7943 char (*f) () = dlopen;
7944 #endif
7945 #ifdef __cplusplus
7946 }
7947 #endif
7948
7949 int
7950 main ()
7951 {
7952 return f != dlopen;
7953   ;
7954   return 0;
7955 }
7956 _ACEOF
7957 rm -f conftest.$ac_objext conftest$ac_exeext
7958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7959   (eval $ac_link) 2>&5
7960   ac_status=$?
7961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962   (exit $ac_status); } &&
7963          { ac_try='test -s conftest$ac_exeext'
7964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965   (eval $ac_try) 2>&5
7966   ac_status=$?
7967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968   (exit $ac_status); }; }; then
7969   ac_cv_func_dlopen=yes
7970 else
7971   echo "$as_me: failed program was:" >&5
7972 sed 's/^/| /' conftest.$ac_ext >&5
7973
7974 ac_cv_func_dlopen=no
7975 fi
7976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7977 fi
7978 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7979 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7980 if test $ac_cv_func_dlopen = yes; then
7981   lt_cv_dlopen="dlopen"
7982 else
7983   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7984 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7985 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7986   echo $ECHO_N "(cached) $ECHO_C" >&6
7987 else
7988   ac_check_lib_save_LIBS=$LIBS
7989 LIBS="-ldl  $LIBS"
7990 cat >conftest.$ac_ext <<_ACEOF
7991 #line $LINENO "configure"
7992 /* confdefs.h.  */
7993 _ACEOF
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h.  */
7997
7998 /* Override any gcc2 internal prototype to avoid an error.  */
7999 #ifdef __cplusplus
8000 extern "C"
8001 #endif
8002 /* We use char because int might match the return type of a gcc2
8003    builtin and then its argument prototype would still apply.  */
8004 char dlopen ();
8005 int
8006 main ()
8007 {
8008 dlopen ();
8009   ;
8010   return 0;
8011 }
8012 _ACEOF
8013 rm -f conftest.$ac_objext conftest$ac_exeext
8014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8015   (eval $ac_link) 2>&5
8016   ac_status=$?
8017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018   (exit $ac_status); } &&
8019          { ac_try='test -s conftest$ac_exeext'
8020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8021   (eval $ac_try) 2>&5
8022   ac_status=$?
8023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024   (exit $ac_status); }; }; then
8025   ac_cv_lib_dl_dlopen=yes
8026 else
8027   echo "$as_me: failed program was:" >&5
8028 sed 's/^/| /' conftest.$ac_ext >&5
8029
8030 ac_cv_lib_dl_dlopen=no
8031 fi
8032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8033 LIBS=$ac_check_lib_save_LIBS
8034 fi
8035 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8036 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8037 if test $ac_cv_lib_dl_dlopen = yes; then
8038   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8039 else
8040   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8041 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8042 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8043   echo $ECHO_N "(cached) $ECHO_C" >&6
8044 else
8045   ac_check_lib_save_LIBS=$LIBS
8046 LIBS="-lsvld  $LIBS"
8047 cat >conftest.$ac_ext <<_ACEOF
8048 #line $LINENO "configure"
8049 /* confdefs.h.  */
8050 _ACEOF
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h.  */
8054
8055 /* Override any gcc2 internal prototype to avoid an error.  */
8056 #ifdef __cplusplus
8057 extern "C"
8058 #endif
8059 /* We use char because int might match the return type of a gcc2
8060    builtin and then its argument prototype would still apply.  */
8061 char dlopen ();
8062 int
8063 main ()
8064 {
8065 dlopen ();
8066   ;
8067   return 0;
8068 }
8069 _ACEOF
8070 rm -f conftest.$ac_objext conftest$ac_exeext
8071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8072   (eval $ac_link) 2>&5
8073   ac_status=$?
8074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075   (exit $ac_status); } &&
8076          { ac_try='test -s conftest$ac_exeext'
8077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8078   (eval $ac_try) 2>&5
8079   ac_status=$?
8080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081   (exit $ac_status); }; }; then
8082   ac_cv_lib_svld_dlopen=yes
8083 else
8084   echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8086
8087 ac_cv_lib_svld_dlopen=no
8088 fi
8089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8090 LIBS=$ac_check_lib_save_LIBS
8091 fi
8092 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8093 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8094 if test $ac_cv_lib_svld_dlopen = yes; then
8095   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8096 else
8097   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8098 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8099 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8100   echo $ECHO_N "(cached) $ECHO_C" >&6
8101 else
8102   ac_check_lib_save_LIBS=$LIBS
8103 LIBS="-ldld  $LIBS"
8104 cat >conftest.$ac_ext <<_ACEOF
8105 #line $LINENO "configure"
8106 /* confdefs.h.  */
8107 _ACEOF
8108 cat confdefs.h >>conftest.$ac_ext
8109 cat >>conftest.$ac_ext <<_ACEOF
8110 /* end confdefs.h.  */
8111
8112 /* Override any gcc2 internal prototype to avoid an error.  */
8113 #ifdef __cplusplus
8114 extern "C"
8115 #endif
8116 /* We use char because int might match the return type of a gcc2
8117    builtin and then its argument prototype would still apply.  */
8118 char dld_link ();
8119 int
8120 main ()
8121 {
8122 dld_link ();
8123   ;
8124   return 0;
8125 }
8126 _ACEOF
8127 rm -f conftest.$ac_objext conftest$ac_exeext
8128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8129   (eval $ac_link) 2>&5
8130   ac_status=$?
8131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132   (exit $ac_status); } &&
8133          { ac_try='test -s conftest$ac_exeext'
8134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8135   (eval $ac_try) 2>&5
8136   ac_status=$?
8137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138   (exit $ac_status); }; }; then
8139   ac_cv_lib_dld_dld_link=yes
8140 else
8141   echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.$ac_ext >&5
8143
8144 ac_cv_lib_dld_dld_link=no
8145 fi
8146 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8147 LIBS=$ac_check_lib_save_LIBS
8148 fi
8149 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8150 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8151 if test $ac_cv_lib_dld_dld_link = yes; then
8152   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8153 fi
8154
8155
8156 fi
8157
8158
8159 fi
8160
8161
8162 fi
8163
8164
8165 fi
8166
8167
8168 fi
8169
8170     ;;
8171   esac
8172
8173   if test "x$lt_cv_dlopen" != xno; then
8174     enable_dlopen=yes
8175   else
8176     enable_dlopen=no
8177   fi
8178
8179   case $lt_cv_dlopen in
8180   dlopen)
8181     save_CPPFLAGS="$CPPFLAGS"
8182     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8183
8184     save_LDFLAGS="$LDFLAGS"
8185     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8186
8187     save_LIBS="$LIBS"
8188     LIBS="$lt_cv_dlopen_libs $LIBS"
8189
8190     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8191 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8192 if test "${lt_cv_dlopen_self+set}" = set; then
8193   echo $ECHO_N "(cached) $ECHO_C" >&6
8194 else
8195           if test "$cross_compiling" = yes; then :
8196   lt_cv_dlopen_self=cross
8197 else
8198   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8199   lt_status=$lt_dlunknown
8200   cat > conftest.$ac_ext <<EOF
8201 #line 8201 "configure"
8202 #include "confdefs.h"
8203
8204 #if HAVE_DLFCN_H
8205 #include <dlfcn.h>
8206 #endif
8207
8208 #include <stdio.h>
8209
8210 #ifdef RTLD_GLOBAL
8211 #  define LT_DLGLOBAL           RTLD_GLOBAL
8212 #else
8213 #  ifdef DL_GLOBAL
8214 #    define LT_DLGLOBAL         DL_GLOBAL
8215 #  else
8216 #    define LT_DLGLOBAL         0
8217 #  endif
8218 #endif
8219
8220 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8221    find out it does not work in some platform. */
8222 #ifndef LT_DLLAZY_OR_NOW
8223 #  ifdef RTLD_LAZY
8224 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8225 #  else
8226 #    ifdef DL_LAZY
8227 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8228 #    else
8229 #      ifdef RTLD_NOW
8230 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8231 #      else
8232 #        ifdef DL_NOW
8233 #          define LT_DLLAZY_OR_NOW      DL_NOW
8234 #        else
8235 #          define LT_DLLAZY_OR_NOW      0
8236 #        endif
8237 #      endif
8238 #    endif
8239 #  endif
8240 #endif
8241
8242 #ifdef __cplusplus
8243 extern "C" void exit (int);
8244 #endif
8245
8246 void fnord() { int i=42;}
8247 int main ()
8248 {
8249   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8250   int status = $lt_dlunknown;
8251
8252   if (self)
8253     {
8254       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8255       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8256       /* dlclose (self); */
8257     }
8258
8259     exit (status);
8260 }
8261 EOF
8262   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8263   (eval $ac_link) 2>&5
8264   ac_status=$?
8265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8267     (./conftest; exit; ) 2>/dev/null
8268     lt_status=$?
8269     case x$lt_status in
8270       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8271       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8272       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8273     esac
8274   else :
8275     # compilation failed
8276     lt_cv_dlopen_self=no
8277   fi
8278 fi
8279 rm -fr conftest*
8280
8281
8282 fi
8283 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8284 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8285
8286     if test "x$lt_cv_dlopen_self" = xyes; then
8287       LDFLAGS="$LDFLAGS $link_static_flag"
8288       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8289 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8290 if test "${lt_cv_dlopen_self_static+set}" = set; then
8291   echo $ECHO_N "(cached) $ECHO_C" >&6
8292 else
8293           if test "$cross_compiling" = yes; then :
8294   lt_cv_dlopen_self_static=cross
8295 else
8296   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8297   lt_status=$lt_dlunknown
8298   cat > conftest.$ac_ext <<EOF
8299 #line 8299 "configure"
8300 #include "confdefs.h"
8301
8302 #if HAVE_DLFCN_H
8303 #include <dlfcn.h>
8304 #endif
8305
8306 #include <stdio.h>
8307
8308 #ifdef RTLD_GLOBAL
8309 #  define LT_DLGLOBAL           RTLD_GLOBAL
8310 #else
8311 #  ifdef DL_GLOBAL
8312 #    define LT_DLGLOBAL         DL_GLOBAL
8313 #  else
8314 #    define LT_DLGLOBAL         0
8315 #  endif
8316 #endif
8317
8318 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8319    find out it does not work in some platform. */
8320 #ifndef LT_DLLAZY_OR_NOW
8321 #  ifdef RTLD_LAZY
8322 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8323 #  else
8324 #    ifdef DL_LAZY
8325 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8326 #    else
8327 #      ifdef RTLD_NOW
8328 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8329 #      else
8330 #        ifdef DL_NOW
8331 #          define LT_DLLAZY_OR_NOW      DL_NOW
8332 #        else
8333 #          define LT_DLLAZY_OR_NOW      0
8334 #        endif
8335 #      endif
8336 #    endif
8337 #  endif
8338 #endif
8339
8340 #ifdef __cplusplus
8341 extern "C" void exit (int);
8342 #endif
8343
8344 void fnord() { int i=42;}
8345 int main ()
8346 {
8347   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8348   int status = $lt_dlunknown;
8349
8350   if (self)
8351     {
8352       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8353       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8354       /* dlclose (self); */
8355     }
8356
8357     exit (status);
8358 }
8359 EOF
8360   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8361   (eval $ac_link) 2>&5
8362   ac_status=$?
8363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8365     (./conftest; exit; ) 2>/dev/null
8366     lt_status=$?
8367     case x$lt_status in
8368       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8369       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8370       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8371     esac
8372   else :
8373     # compilation failed
8374     lt_cv_dlopen_self_static=no
8375   fi
8376 fi
8377 rm -fr conftest*
8378
8379
8380 fi
8381 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8382 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8383     fi
8384
8385     CPPFLAGS="$save_CPPFLAGS"
8386     LDFLAGS="$save_LDFLAGS"
8387     LIBS="$save_LIBS"
8388     ;;
8389   esac
8390
8391   case $lt_cv_dlopen_self in
8392   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8393   *) enable_dlopen_self=unknown ;;
8394   esac
8395
8396   case $lt_cv_dlopen_self_static in
8397   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8398   *) enable_dlopen_self_static=unknown ;;
8399   esac
8400 fi
8401
8402
8403 # Report which librarie types wil actually be built
8404 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8405 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8406 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8407 echo "${ECHO_T}$can_build_shared" >&6
8408
8409 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8410 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8411 test "$can_build_shared" = "no" && enable_shared=no
8412
8413 # On AIX, shared libraries and static libraries use the same namespace, and
8414 # are all built from PIC.
8415 case "$host_os" in
8416 aix3*)
8417   test "$enable_shared" = yes && enable_static=no
8418   if test -n "$RANLIB"; then
8419     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8420     postinstall_cmds='$RANLIB $lib'
8421   fi
8422   ;;
8423
8424 aix4*)
8425   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8426     test "$enable_shared" = yes && enable_static=no
8427   fi
8428   ;;
8429   darwin* | rhapsody*)
8430   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8431     archive_cmds_need_lc=no
8432     case "$host_os" in
8433     rhapsody* | darwin1.[012])
8434       allow_undefined_flag='-undefined suppress'
8435       ;;
8436     *) # Darwin 1.3 on
8437       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8438       ;;
8439     esac
8440     # FIXME: Relying on posixy $() will cause problems for
8441     #        cross-compilation, but unfortunately the echo tests do not
8442     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8443     #          `"' quotes if we put them in here... so don't!
8444                 output_verbose_link_cmd='echo'
8445     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8446     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8447     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8448                   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}'
8449                   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}'
8450     hardcode_direct=no
8451     hardcode_automatic=yes
8452     hardcode_shlibpath_var=unsupported
8453     whole_archive_flag_spec='-all_load $convenience'
8454     link_all_deplibs=yes
8455     fi
8456     ;;
8457 esac
8458 echo "$as_me:$LINENO: result: $enable_shared" >&5
8459 echo "${ECHO_T}$enable_shared" >&6
8460
8461 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8462 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8463 # Make sure either enable_shared or enable_static is yes.
8464 test "$enable_shared" = yes || enable_static=yes
8465 echo "$as_me:$LINENO: result: $enable_static" >&5
8466 echo "${ECHO_T}$enable_static" >&6
8467
8468 # The else clause should only fire when bootstrapping the
8469 # libtool distribution, otherwise you forgot to ship ltmain.sh
8470 # with your package, and you will get complaints that there are
8471 # no rules to generate ltmain.sh.
8472 if test -f "$ltmain"; then
8473   # See if we are running on zsh, and set the options which allow our commands through
8474   # without removal of \ escapes.
8475   if test -n "${ZSH_VERSION+set}" ; then
8476     setopt NO_GLOB_SUBST
8477   fi
8478   # Now quote all the things that may contain metacharacters while being
8479   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8480   # variables and quote the copies for generation of the libtool script.
8481   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8482     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8483     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8484     deplibs_check_method reload_flag reload_cmds need_locks \
8485     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8486     lt_cv_sys_global_symbol_to_c_name_address \
8487     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8488     old_postinstall_cmds old_postuninstall_cmds \
8489     compiler \
8490     CC \
8491     LD \
8492     lt_prog_compiler_wl \
8493     lt_prog_compiler_pic \
8494     lt_prog_compiler_static \
8495     lt_prog_compiler_no_builtin_flag \
8496     export_dynamic_flag_spec \
8497     thread_safe_flag_spec \
8498     whole_archive_flag_spec \
8499     enable_shared_with_static_runtimes \
8500     old_archive_cmds \
8501     old_archive_from_new_cmds \
8502     predep_objects \
8503     postdep_objects \
8504     predeps \
8505     postdeps \
8506     compiler_lib_search_path \
8507     archive_cmds \
8508     archive_expsym_cmds \
8509     postinstall_cmds \
8510     postuninstall_cmds \
8511     old_archive_from_expsyms_cmds \
8512     allow_undefined_flag \
8513     no_undefined_flag \
8514     export_symbols_cmds \
8515     hardcode_libdir_flag_spec \
8516     hardcode_libdir_flag_spec_ld \
8517     hardcode_libdir_separator \
8518     hardcode_automatic \
8519     module_cmds \
8520     module_expsym_cmds \
8521     lt_cv_prog_compiler_c_o \
8522     exclude_expsyms \
8523     include_expsyms; do
8524
8525     case $var in
8526     old_archive_cmds | \
8527     old_archive_from_new_cmds | \
8528     archive_cmds | \
8529     archive_expsym_cmds | \
8530     module_cmds | \
8531     module_expsym_cmds | \
8532     old_archive_from_expsyms_cmds | \
8533     export_symbols_cmds | \
8534     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8535     postinstall_cmds | postuninstall_cmds | \
8536     old_postinstall_cmds | old_postuninstall_cmds | \
8537     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8538       # Double-quote double-evaled strings.
8539       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8540       ;;
8541     *)
8542       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8543       ;;
8544     esac
8545   done
8546
8547   case $lt_echo in
8548   *'\$0 --fallback-echo"')
8549     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8550     ;;
8551   esac
8552
8553 cfgfile="${ofile}T"
8554   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8555   $rm -f "$cfgfile"
8556   { echo "$as_me:$LINENO: creating $ofile" >&5
8557 echo "$as_me: creating $ofile" >&6;}
8558
8559   cat <<__EOF__ >> "$cfgfile"
8560 #! $SHELL
8561
8562 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8563 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8564 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8565 #
8566 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8567 # Free Software Foundation, Inc.
8568 #
8569 # This file is part of GNU Libtool:
8570 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8571 #
8572 # This program is free software; you can redistribute it and/or modify
8573 # it under the terms of the GNU General Public License as published by
8574 # the Free Software Foundation; either version 2 of the License, or
8575 # (at your option) any later version.
8576 #
8577 # This program is distributed in the hope that it will be useful, but
8578 # WITHOUT ANY WARRANTY; without even the implied warranty of
8579 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8580 # General Public License for more details.
8581 #
8582 # You should have received a copy of the GNU General Public License
8583 # along with this program; if not, write to the Free Software
8584 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8585 #
8586 # As a special exception to the GNU General Public License, if you
8587 # distribute this file as part of a program that contains a
8588 # configuration script generated by Autoconf, you may include it under
8589 # the same distribution terms that you use for the rest of that program.
8590
8591 # A sed program that does not truncate output.
8592 SED=$lt_SED
8593
8594 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8595 Xsed="$SED -e s/^X//"
8596
8597 # The HP-UX ksh and POSIX shell print the target directory to stdout
8598 # if CDPATH is set.
8599 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8600
8601 # The names of the tagged configurations supported by this script.
8602 available_tags=
8603
8604 # ### BEGIN LIBTOOL CONFIG
8605
8606 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8607
8608 # Shell to use when invoking shell scripts.
8609 SHELL=$lt_SHELL
8610
8611 # Whether or not to build shared libraries.
8612 build_libtool_libs=$enable_shared
8613
8614 # Whether or not to build static libraries.
8615 build_old_libs=$enable_static
8616
8617 # Whether or not to add -lc for building shared libraries.
8618 build_libtool_need_lc=$archive_cmds_need_lc
8619
8620 # Whether or not to disallow shared libs when runtime libs are static
8621 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8622
8623 # Whether or not to optimize for fast installation.
8624 fast_install=$enable_fast_install
8625
8626 # The host system.
8627 host_alias=$host_alias
8628 host=$host
8629
8630 # An echo program that does not interpret backslashes.
8631 echo=$lt_echo
8632
8633 # The archiver.
8634 AR=$lt_AR
8635 AR_FLAGS=$lt_AR_FLAGS
8636
8637 # A C compiler.
8638 LTCC=$lt_LTCC
8639
8640 # A language-specific compiler.
8641 CC=$lt_compiler
8642
8643 # Is the compiler the GNU C compiler?
8644 with_gcc=$GCC
8645
8646 # An ERE matcher.
8647 EGREP=$lt_EGREP
8648
8649 # The linker used to build libraries.
8650 LD=$lt_LD
8651
8652 # Whether we need hard or soft links.
8653 LN_S=$lt_LN_S
8654
8655 # A BSD-compatible nm program.
8656 NM=$lt_NM
8657
8658 # A symbol stripping program
8659 STRIP=$STRIP
8660
8661 # Used to examine libraries when file_magic_cmd begins "file"
8662 MAGIC_CMD=$MAGIC_CMD
8663
8664 # Used on cygwin: DLL creation program.
8665 DLLTOOL="$DLLTOOL"
8666
8667 # Used on cygwin: object dumper.
8668 OBJDUMP="$OBJDUMP"
8669
8670 # Used on cygwin: assembler.
8671 AS="$AS"
8672
8673 # The name of the directory that contains temporary libtool files.
8674 objdir=$objdir
8675
8676 # How to create reloadable object files.
8677 reload_flag=$lt_reload_flag
8678 reload_cmds=$lt_reload_cmds
8679
8680 # How to pass a linker flag through the compiler.
8681 wl=$lt_lt_prog_compiler_wl
8682
8683 # Object file suffix (normally "o").
8684 objext="$ac_objext"
8685
8686 # Old archive suffix (normally "a").
8687 libext="$libext"
8688
8689 # Shared library suffix (normally ".so").
8690 shrext='$shrext'
8691
8692 # Executable file suffix (normally "").
8693 exeext="$exeext"
8694
8695 # Additional compiler flags for building library objects.
8696 pic_flag=$lt_lt_prog_compiler_pic
8697 pic_mode=$pic_mode
8698
8699 # What is the maximum length of a command?
8700 max_cmd_len=$lt_cv_sys_max_cmd_len
8701
8702 # Does compiler simultaneously support -c and -o options?
8703 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8704
8705 # Must we lock files when doing compilation ?
8706 need_locks=$lt_need_locks
8707
8708 # Do we need the lib prefix for modules?
8709 need_lib_prefix=$need_lib_prefix
8710
8711 # Do we need a version for libraries?
8712 need_version=$need_version
8713
8714 # Whether dlopen is supported.
8715 dlopen_support=$enable_dlopen
8716
8717 # Whether dlopen of programs is supported.
8718 dlopen_self=$enable_dlopen_self
8719
8720 # Whether dlopen of statically linked programs is supported.
8721 dlopen_self_static=$enable_dlopen_self_static
8722
8723 # Compiler flag to prevent dynamic linking.
8724 link_static_flag=$lt_lt_prog_compiler_static
8725
8726 # Compiler flag to turn off builtin functions.
8727 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8728
8729 # Compiler flag to allow reflexive dlopens.
8730 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8731
8732 # Compiler flag to generate shared objects directly from archives.
8733 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8734
8735 # Compiler flag to generate thread-safe objects.
8736 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8737
8738 # Library versioning type.
8739 version_type=$version_type
8740
8741 # Format of library name prefix.
8742 libname_spec=$lt_libname_spec
8743
8744 # List of archive names.  First name is the real one, the rest are links.
8745 # The last name is the one that the linker finds with -lNAME.
8746 library_names_spec=$lt_library_names_spec
8747
8748 # The coded name of the library, if different from the real name.
8749 soname_spec=$lt_soname_spec
8750
8751 # Commands used to build and install an old-style archive.
8752 RANLIB=$lt_RANLIB
8753 old_archive_cmds=$lt_old_archive_cmds
8754 old_postinstall_cmds=$lt_old_postinstall_cmds
8755 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8756
8757 # Create an old-style archive from a shared archive.
8758 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8759
8760 # Create a temporary old-style archive to link instead of a shared archive.
8761 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8762
8763 # Commands used to build and install a shared archive.
8764 archive_cmds=$lt_archive_cmds
8765 archive_expsym_cmds=$lt_archive_expsym_cmds
8766 postinstall_cmds=$lt_postinstall_cmds
8767 postuninstall_cmds=$lt_postuninstall_cmds
8768
8769 # Commands used to build a loadable module (assumed same as above if empty)
8770 module_cmds=$lt_module_cmds
8771 module_expsym_cmds=$lt_module_expsym_cmds
8772
8773 # Commands to strip libraries.
8774 old_striplib=$lt_old_striplib
8775 striplib=$lt_striplib
8776
8777 # Dependencies to place before the objects being linked to create a
8778 # shared library.
8779 predep_objects=$lt_predep_objects
8780
8781 # Dependencies to place after the objects being linked to create a
8782 # shared library.
8783 postdep_objects=$lt_postdep_objects
8784
8785 # Dependencies to place before the objects being linked to create a
8786 # shared library.
8787 predeps=$lt_predeps
8788
8789 # Dependencies to place after the objects being linked to create a
8790 # shared library.
8791 postdeps=$lt_postdeps
8792
8793 # The library search path used internally by the compiler when linking
8794 # a shared library.
8795 compiler_lib_search_path=$lt_compiler_lib_search_path
8796
8797 # Method to check whether dependent libraries are shared objects.
8798 deplibs_check_method=$lt_deplibs_check_method
8799
8800 # Command to use when deplibs_check_method == file_magic.
8801 file_magic_cmd=$lt_file_magic_cmd
8802
8803 # Flag that allows shared libraries with undefined symbols to be built.
8804 allow_undefined_flag=$lt_allow_undefined_flag
8805
8806 # Flag that forces no undefined symbols.
8807 no_undefined_flag=$lt_no_undefined_flag
8808
8809 # Commands used to finish a libtool library installation in a directory.
8810 finish_cmds=$lt_finish_cmds
8811
8812 # Same as above, but a single script fragment to be evaled but not shown.
8813 finish_eval=$lt_finish_eval
8814
8815 # Take the output of nm and produce a listing of raw symbols and C names.
8816 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8817
8818 # Transform the output of nm in a proper C declaration
8819 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8820
8821 # Transform the output of nm in a C name address pair
8822 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8823
8824 # This is the shared library runtime path variable.
8825 runpath_var=$runpath_var
8826
8827 # This is the shared library path variable.
8828 shlibpath_var=$shlibpath_var
8829
8830 # Is shlibpath searched before the hard-coded library search path?
8831 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8832
8833 # How to hardcode a shared library path into an executable.
8834 hardcode_action=$hardcode_action
8835
8836 # Whether we should hardcode library paths into libraries.
8837 hardcode_into_libs=$hardcode_into_libs
8838
8839 # Flag to hardcode \$libdir into a binary during linking.
8840 # This must work even if \$libdir does not exist.
8841 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8842
8843 # If ld is used when linking, flag to hardcode \$libdir into
8844 # a binary during linking. This must work even if \$libdir does
8845 # not exist.
8846 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8847
8848 # Whether we need a single -rpath flag with a separated argument.
8849 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8850
8851 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8852 # resulting binary.
8853 hardcode_direct=$hardcode_direct
8854
8855 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8856 # resulting binary.
8857 hardcode_minus_L=$hardcode_minus_L
8858
8859 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8860 # the resulting binary.
8861 hardcode_shlibpath_var=$hardcode_shlibpath_var
8862
8863 # Set to yes if building a shared library automatically hardcodes DIR into the library
8864 # and all subsequent libraries and executables linked against it.
8865 hardcode_automatic=$hardcode_automatic
8866
8867 # Variables whose values should be saved in libtool wrapper scripts and
8868 # restored at relink time.
8869 variables_saved_for_relink="$variables_saved_for_relink"
8870
8871 # Whether libtool must link a program against all its dependency libraries.
8872 link_all_deplibs=$link_all_deplibs
8873
8874 # Compile-time system search path for libraries
8875 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8876
8877 # Run-time system search path for libraries
8878 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8879
8880 # Fix the shell variable \$srcfile for the compiler.
8881 fix_srcfile_path="$fix_srcfile_path"
8882
8883 # Set to yes if exported symbols are required.
8884 always_export_symbols=$always_export_symbols
8885
8886 # The commands to list exported symbols.
8887 export_symbols_cmds=$lt_export_symbols_cmds
8888
8889 # The commands to extract the exported symbol list from a shared archive.
8890 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8891
8892 # Symbols that should not be listed in the preloaded symbols.
8893 exclude_expsyms=$lt_exclude_expsyms
8894
8895 # Symbols that must always be exported.
8896 include_expsyms=$lt_include_expsyms
8897
8898 # ### END LIBTOOL CONFIG
8899
8900 __EOF__
8901
8902
8903   case $host_os in
8904   aix3*)
8905     cat <<\EOF >> "$cfgfile"
8906
8907 # AIX sometimes has problems with the GCC collect2 program.  For some
8908 # reason, if we set the COLLECT_NAMES environment variable, the problems
8909 # vanish in a puff of smoke.
8910 if test "X${COLLECT_NAMES+set}" != Xset; then
8911   COLLECT_NAMES=
8912   export COLLECT_NAMES
8913 fi
8914 EOF
8915     ;;
8916   esac
8917
8918   # We use sed instead of cat because bash on DJGPP gets confused if
8919   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8920   # text mode, it properly converts lines to CR/LF.  This bash problem
8921   # is reportedly fixed, but why not run on old versions too?
8922   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8923
8924   mv -f "$cfgfile" "$ofile" || \
8925     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8926   chmod +x "$ofile"
8927
8928 else
8929   # If there is no Makefile yet, we rely on a make rule to execute
8930   # `config.status --recheck' to rerun these tests and create the
8931   # libtool script then.
8932   test -f Makefile && make "$ltmain"
8933 fi
8934
8935
8936 ac_ext=c
8937 ac_cpp='$CPP $CPPFLAGS'
8938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8941
8942 CC="$lt_save_CC"
8943
8944
8945 # Check whether --with-tags or --without-tags was given.
8946 if test "${with_tags+set}" = set; then
8947   withval="$with_tags"
8948   tagnames="$withval"
8949 fi;
8950
8951 if test -f "$ltmain" && test -n "$tagnames"; then
8952   if test ! -f "${ofile}"; then
8953     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8954 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8955   fi
8956
8957   if test -z "$LTCC"; then
8958     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8959     if test -z "$LTCC"; then
8960       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8961 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8962     else
8963       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8964 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8965     fi
8966   fi
8967
8968   # Extract list of available tagged configurations in $ofile.
8969   # Note that this assumes the entire list is on one line.
8970   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8971
8972   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8973   for tagname in $tagnames; do
8974     IFS="$lt_save_ifs"
8975     # Check whether tagname contains only valid characters
8976     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8977     "") ;;
8978     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8979 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8980    { (exit 1); exit 1; }; }
8981         ;;
8982     esac
8983
8984     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8985     then
8986       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8987 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8988    { (exit 1); exit 1; }; }
8989     fi
8990
8991     # Update the list of available tags.
8992     if test -n "$tagname"; then
8993       echo appending configuration tag \"$tagname\" to $ofile
8994
8995       case $tagname in
8996       CXX)
8997         if test -n "$CXX" && test "X$CXX" != "Xno"; then
8998           ac_ext=cc
8999 ac_cpp='$CXXCPP $CPPFLAGS'
9000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9003
9004
9005
9006
9007 archive_cmds_need_lc_CXX=no
9008 allow_undefined_flag_CXX=
9009 always_export_symbols_CXX=no
9010 archive_expsym_cmds_CXX=
9011 export_dynamic_flag_spec_CXX=
9012 hardcode_direct_CXX=no
9013 hardcode_libdir_flag_spec_CXX=
9014 hardcode_libdir_flag_spec_ld_CXX=
9015 hardcode_libdir_separator_CXX=
9016 hardcode_minus_L_CXX=no
9017 hardcode_automatic_CXX=no
9018 module_cmds_CXX=
9019 module_expsym_cmds_CXX=
9020 link_all_deplibs_CXX=unknown
9021 old_archive_cmds_CXX=$old_archive_cmds
9022 no_undefined_flag_CXX=
9023 whole_archive_flag_spec_CXX=
9024 enable_shared_with_static_runtimes_CXX=no
9025
9026 # Dependencies to place before and after the object being linked:
9027 predep_objects_CXX=
9028 postdep_objects_CXX=
9029 predeps_CXX=
9030 postdeps_CXX=
9031 compiler_lib_search_path_CXX=
9032
9033 # Source file extension for C++ test sources.
9034 ac_ext=cc
9035
9036 # Object file extension for compiled C++ test sources.
9037 objext=o
9038 objext_CXX=$objext
9039
9040 # Code to be used in simple compile tests
9041 lt_simple_compile_test_code="int some_variable = 0;\n"
9042
9043 # Code to be used in simple link tests
9044 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9045
9046 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9047
9048 # If no C compiler was specified, use CC.
9049 LTCC=${LTCC-"$CC"}
9050
9051 # Allow CC to be a program name with arguments.
9052 compiler=$CC
9053
9054
9055 # Allow CC to be a program name with arguments.
9056 lt_save_CC=$CC
9057 lt_save_LD=$LD
9058 lt_save_GCC=$GCC
9059 GCC=$GXX
9060 lt_save_with_gnu_ld=$with_gnu_ld
9061 lt_save_path_LD=$lt_cv_path_LD
9062 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9063   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9064 else
9065   unset lt_cv_prog_gnu_ld
9066 fi
9067 if test -n "${lt_cv_path_LDCXX+set}"; then
9068   lt_cv_path_LD=$lt_cv_path_LDCXX
9069 else
9070   unset lt_cv_path_LD
9071 fi
9072 test -z "${LDCXX+set}" || LD=$LDCXX
9073 CC=${CXX-"c++"}
9074 compiler=$CC
9075 compiler_CXX=$CC
9076 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9077
9078 # We don't want -fno-exception wen compiling C++ code, so set the
9079 # no_builtin_flag separately
9080 if test "$GXX" = yes; then
9081   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9082 else
9083   lt_prog_compiler_no_builtin_flag_CXX=
9084 fi
9085
9086 if test "$GXX" = yes; then
9087   # Set up default GNU C++ configuration
9088
9089
9090 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9091 if test "${with_gnu_ld+set}" = set; then
9092   withval="$with_gnu_ld"
9093   test "$withval" = no || with_gnu_ld=yes
9094 else
9095   with_gnu_ld=no
9096 fi;
9097 ac_prog=ld
9098 if test "$GCC" = yes; then
9099   # Check if gcc -print-prog-name=ld gives a path.
9100   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9101 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9102   case $host in
9103   *-*-mingw*)
9104     # gcc leaves a trailing carriage return which upsets mingw
9105     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9106   *)
9107     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9108   esac
9109   case $ac_prog in
9110     # Accept absolute paths.
9111     [\\/]* | ?:[\\/]*)
9112       re_direlt='/[^/][^/]*/\.\./'
9113       # Canonicalize the path of ld
9114       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9115       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9116         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9117       done
9118       test -z "$LD" && LD="$ac_prog"
9119       ;;
9120   "")
9121     # If it fails, then pretend we aren't using GCC.
9122     ac_prog=ld
9123     ;;
9124   *)
9125     # If it is relative, then search for the first ld in PATH.
9126     with_gnu_ld=unknown
9127     ;;
9128   esac
9129 elif test "$with_gnu_ld" = yes; then
9130   echo "$as_me:$LINENO: checking for GNU ld" >&5
9131 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9132 else
9133   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9134 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9135 fi
9136 if test "${lt_cv_path_LD+set}" = set; then
9137   echo $ECHO_N "(cached) $ECHO_C" >&6
9138 else
9139   if test -z "$LD"; then
9140   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9141   for ac_dir in $PATH; do
9142     IFS="$lt_save_ifs"
9143     test -z "$ac_dir" && ac_dir=.
9144     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9145       lt_cv_path_LD="$ac_dir/$ac_prog"
9146       # Check to see if the program is GNU ld.  I'd rather use --version,
9147       # but apparently some GNU ld's only accept -v.
9148       # Break only if it was the GNU/non-GNU ld that we prefer.
9149       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9150       *GNU* | *'with BFD'*)
9151         test "$with_gnu_ld" != no && break
9152         ;;
9153       *)
9154         test "$with_gnu_ld" != yes && break
9155         ;;
9156       esac
9157     fi
9158   done
9159   IFS="$lt_save_ifs"
9160 else
9161   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9162 fi
9163 fi
9164
9165 LD="$lt_cv_path_LD"
9166 if test -n "$LD"; then
9167   echo "$as_me:$LINENO: result: $LD" >&5
9168 echo "${ECHO_T}$LD" >&6
9169 else
9170   echo "$as_me:$LINENO: result: no" >&5
9171 echo "${ECHO_T}no" >&6
9172 fi
9173 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9174 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9175    { (exit 1); exit 1; }; }
9176 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9177 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9178 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9179   echo $ECHO_N "(cached) $ECHO_C" >&6
9180 else
9181   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9182 case `"$LD" -v 2>&1 </dev/null` in
9183 *GNU* | *'with BFD'*)
9184   lt_cv_prog_gnu_ld=yes
9185   ;;
9186 *)
9187   lt_cv_prog_gnu_ld=no
9188   ;;
9189 esac
9190 fi
9191 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9192 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9193 with_gnu_ld=$lt_cv_prog_gnu_ld
9194
9195
9196
9197   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9198   # archiving commands below assume that GNU ld is being used.
9199   if test "$with_gnu_ld" = yes; then
9200     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9201     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'
9202
9203     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9204     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9205
9206     # If archive_cmds runs LD, not CC, wlarc should be empty
9207     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9208     #     investigate it a little bit more. (MM)
9209     wlarc='${wl}'
9210
9211     # ancient GNU ld didn't support --whole-archive et. al.
9212     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9213         grep 'no-whole-archive' > /dev/null; then
9214       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9215     else
9216       whole_archive_flag_spec_CXX=
9217     fi
9218   else
9219     with_gnu_ld=no
9220     wlarc=
9221
9222     # A generic and very simple default shared library creation
9223     # command for GNU C++ for the case where it uses the native
9224     # linker, instead of GNU ld.  If possible, this setting should
9225     # overridden to take advantage of the native linker features on
9226     # the platform it is being used on.
9227     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9228   fi
9229
9230   # Commands to make compiler produce verbose output that lists
9231   # what "hidden" libraries, object files and flags are used when
9232   # linking a shared library.
9233   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9234
9235 else
9236   GXX=no
9237   with_gnu_ld=no
9238   wlarc=
9239 fi
9240
9241 # PORTME: fill in a description of your system's C++ link characteristics
9242 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9243 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9244 ld_shlibs_CXX=yes
9245 case $host_os in
9246   aix3*)
9247     # FIXME: insert proper C++ library support
9248     ld_shlibs_CXX=no
9249     ;;
9250   aix4* | aix5*)
9251     if test "$host_cpu" = ia64; then
9252       # On IA64, the linker does run time linking by default, so we don't
9253       # have to do anything special.
9254       aix_use_runtimelinking=no
9255       exp_sym_flag='-Bexport'
9256       no_entry_flag=""
9257     else
9258       aix_use_runtimelinking=no
9259
9260       # Test if we are trying to use run time linking or normal
9261       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9262       # need to do runtime linking.
9263       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9264         for ld_flag in $LDFLAGS; do
9265           case $ld_flag in
9266           *-brtl*)
9267             aix_use_runtimelinking=yes
9268             break
9269             ;;
9270           esac
9271         done
9272       esac
9273
9274       exp_sym_flag='-bexport'
9275       no_entry_flag='-bnoentry'
9276     fi
9277
9278     # When large executables or shared objects are built, AIX ld can
9279     # have problems creating the table of contents.  If linking a library
9280     # or program results in "error TOC overflow" add -mminimal-toc to
9281     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9282     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9283
9284     archive_cmds_CXX=''
9285     hardcode_direct_CXX=yes
9286     hardcode_libdir_separator_CXX=':'
9287     link_all_deplibs_CXX=yes
9288
9289     if test "$GXX" = yes; then
9290       case $host_os in aix4.012|aix4.012.*)
9291       # We only want to do this on AIX 4.2 and lower, the check
9292       # below for broken collect2 doesn't work under 4.3+
9293         collect2name=`${CC} -print-prog-name=collect2`
9294         if test -f "$collect2name" && \
9295            strings "$collect2name" | grep resolve_lib_name >/dev/null
9296         then
9297           # We have reworked collect2
9298           hardcode_direct_CXX=yes
9299         else
9300           # We have old collect2
9301           hardcode_direct_CXX=unsupported
9302           # It fails to find uninstalled libraries when the uninstalled
9303           # path is not listed in the libpath.  Setting hardcode_minus_L
9304           # to unsupported forces relinking
9305           hardcode_minus_L_CXX=yes
9306           hardcode_libdir_flag_spec_CXX='-L$libdir'
9307           hardcode_libdir_separator_CXX=
9308         fi
9309       esac
9310       shared_flag='-shared'
9311     else
9312       # not using gcc
9313       if test "$host_cpu" = ia64; then
9314         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9315         # chokes on -Wl,-G. The following line is correct:
9316         shared_flag='-G'
9317       else
9318         if test "$aix_use_runtimelinking" = yes; then
9319           shared_flag='${wl}-G'
9320         else
9321           shared_flag='${wl}-bM:SRE'
9322         fi
9323       fi
9324     fi
9325
9326     # It seems that -bexpall does not export symbols beginning with
9327     # underscore (_), so it is better to generate a list of symbols to export.
9328     always_export_symbols_CXX=yes
9329     if test "$aix_use_runtimelinking" = yes; then
9330       # Warning - without using the other runtime loading flags (-brtl),
9331       # -berok will link without error, but may produce a broken library.
9332       allow_undefined_flag_CXX='-berok'
9333       # Determine the default libpath from the value encoded in an empty executable.
9334       cat >conftest.$ac_ext <<_ACEOF
9335 #line $LINENO "configure"
9336 /* confdefs.h.  */
9337 _ACEOF
9338 cat confdefs.h >>conftest.$ac_ext
9339 cat >>conftest.$ac_ext <<_ACEOF
9340 /* end confdefs.h.  */
9341
9342 int
9343 main ()
9344 {
9345
9346   ;
9347   return 0;
9348 }
9349 _ACEOF
9350 rm -f conftest.$ac_objext conftest$ac_exeext
9351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9352   (eval $ac_link) 2>&5
9353   ac_status=$?
9354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355   (exit $ac_status); } &&
9356          { ac_try='test -s conftest$ac_exeext'
9357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358   (eval $ac_try) 2>&5
9359   ac_status=$?
9360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361   (exit $ac_status); }; }; then
9362
9363 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9364 }'`
9365 # Check for a 64-bit object if we didn't find anything.
9366 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; }
9367 }'`; fi
9368 else
9369   echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9371
9372 fi
9373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9374 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9375
9376       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9377
9378       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"
9379      else
9380       if test "$host_cpu" = ia64; then
9381         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9382         allow_undefined_flag_CXX="-z nodefs"
9383         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"
9384       else
9385         # Determine the default libpath from the value encoded in an empty executable.
9386         cat >conftest.$ac_ext <<_ACEOF
9387 #line $LINENO "configure"
9388 /* confdefs.h.  */
9389 _ACEOF
9390 cat confdefs.h >>conftest.$ac_ext
9391 cat >>conftest.$ac_ext <<_ACEOF
9392 /* end confdefs.h.  */
9393
9394 int
9395 main ()
9396 {
9397
9398   ;
9399   return 0;
9400 }
9401 _ACEOF
9402 rm -f conftest.$ac_objext conftest$ac_exeext
9403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9404   (eval $ac_link) 2>&5
9405   ac_status=$?
9406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407   (exit $ac_status); } &&
9408          { ac_try='test -s conftest$ac_exeext'
9409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410   (eval $ac_try) 2>&5
9411   ac_status=$?
9412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413   (exit $ac_status); }; }; then
9414
9415 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9416 }'`
9417 # Check for a 64-bit object if we didn't find anything.
9418 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; }
9419 }'`; fi
9420 else
9421   echo "$as_me: failed program was:" >&5
9422 sed 's/^/| /' conftest.$ac_ext >&5
9423
9424 fi
9425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9426 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9427
9428         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9429         # Warning - without using the other run time loading flags,
9430         # -berok will link without error, but may produce a broken library.
9431         no_undefined_flag_CXX=' ${wl}-bernotok'
9432         allow_undefined_flag_CXX=' ${wl}-berok'
9433         # -bexpall does not export symbols beginning with underscore (_)
9434         always_export_symbols_CXX=yes
9435         # Exported symbols can be pulled into shared objects from archives
9436         whole_archive_flag_spec_CXX=' '
9437         archive_cmds_need_lc_CXX=yes
9438         # This is similar to how AIX traditionally builds it's shared libraries.
9439         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'
9440       fi
9441     fi
9442     ;;
9443   chorus*)
9444     case $cc_basename in
9445       *)
9446         # FIXME: insert proper C++ library support
9447         ld_shlibs_CXX=no
9448         ;;
9449     esac
9450     ;;
9451
9452   cygwin* | mingw* | pw32*)
9453     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9454     # as there is no search path for DLLs.
9455     hardcode_libdir_flag_spec_CXX='-L$libdir'
9456     allow_undefined_flag_CXX=unsupported
9457     always_export_symbols_CXX=no
9458     enable_shared_with_static_runtimes_CXX=yes
9459
9460     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9461       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'
9462       # If the export-symbols file already is a .def file (1st line
9463       # is EXPORTS), use it as is; otherwise, prepend...
9464       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9465         cp $export_symbols $output_objdir/$soname.def;
9466       else
9467         echo EXPORTS > $output_objdir/$soname.def;
9468         cat $export_symbols >> $output_objdir/$soname.def;
9469       fi~
9470       $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'
9471     else
9472       ld_shlibs_CXX=no
9473     fi
9474   ;;
9475
9476   darwin* | rhapsody*)
9477    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9478     archive_cmds_need_lc_CXX=no
9479     case "$host_os" in
9480     rhapsody* | darwin1.[012])
9481       allow_undefined_flag_CXX='-undefined suppress'
9482       ;;
9483     *) # Darwin 1.3 on
9484       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9485       ;;
9486     esac
9487         lt_int_apple_cc_single_mod=no
9488         output_verbose_link_cmd='echo'
9489         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9490           lt_int_apple_cc_single_mod=yes
9491         fi
9492         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9493           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9494         else
9495         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'
9496       fi
9497       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9498
9499     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9500       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9501         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}'
9502       else
9503         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}'
9504       fi
9505         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}'
9506     hardcode_direct_CXX=no
9507     hardcode_automatic_CXX=yes
9508     hardcode_shlibpath_var_CXX=unsupported
9509     whole_archive_flag_spec_CXX='-all_load $convenience'
9510     link_all_deplibs_CXX=yes
9511    fi
9512     ;;
9513
9514   dgux*)
9515     case $cc_basename in
9516       ec++)
9517         # FIXME: insert proper C++ library support
9518         ld_shlibs_CXX=no
9519         ;;
9520       ghcx)
9521         # Green Hills C++ Compiler
9522         # FIXME: insert proper C++ library support
9523         ld_shlibs_CXX=no
9524         ;;
9525       *)
9526         # FIXME: insert proper C++ library support
9527         ld_shlibs_CXX=no
9528         ;;
9529     esac
9530     ;;
9531   freebsd12*)
9532     # C++ shared libraries reported to be fairly broken before switch to ELF
9533     ld_shlibs_CXX=no
9534     ;;
9535   freebsd-elf*)
9536     archive_cmds_need_lc_CXX=no
9537     ;;
9538   freebsd*)
9539     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9540     # conventions
9541     ld_shlibs_CXX=yes
9542     ;;
9543   gnu*)
9544     ;;
9545   hpux9*)
9546     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9547     hardcode_libdir_separator_CXX=:
9548     export_dynamic_flag_spec_CXX='${wl}-E'
9549     hardcode_direct_CXX=yes
9550     hardcode_minus_L_CXX=yes # Not in the search PATH,
9551                                 # but as the default
9552                                 # location of the library.
9553
9554     case $cc_basename in
9555     CC)
9556       # FIXME: insert proper C++ library support
9557       ld_shlibs_CXX=no
9558       ;;
9559     aCC)
9560       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'
9561       # Commands to make compiler produce verbose output that lists
9562       # what "hidden" libraries, object files and flags are used when
9563       # linking a shared library.
9564       #
9565       # There doesn't appear to be a way to prevent this compiler from
9566       # explicitly linking system object files so we need to strip them
9567       # from the output so that they don't get included in the library
9568       # dependencies.
9569       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'
9570       ;;
9571     *)
9572       if test "$GXX" = yes; then
9573         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'
9574       else
9575         # FIXME: insert proper C++ library support
9576         ld_shlibs_CXX=no
9577       fi
9578       ;;
9579     esac
9580     ;;
9581   hpux10*|hpux11*)
9582     if test $with_gnu_ld = no; then
9583       case "$host_cpu" in
9584       hppa*64*)
9585         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9586         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9587         hardcode_libdir_separator_CXX=:
9588         ;;
9589       ia64*)
9590         hardcode_libdir_flag_spec_CXX='-L$libdir'
9591         ;;
9592       *)
9593         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9594         hardcode_libdir_separator_CXX=:
9595         export_dynamic_flag_spec_CXX='${wl}-E'
9596         ;;
9597       esac
9598     fi
9599     case "$host_cpu" in
9600     hppa*64*)
9601       hardcode_direct_CXX=no
9602       hardcode_shlibpath_var_CXX=no
9603       ;;
9604     ia64*)
9605       hardcode_direct_CXX=no
9606       hardcode_shlibpath_var_CXX=no
9607       hardcode_minus_L_CXX=yes # Not in the search PATH,
9608                                               # but as the default
9609                                               # location of the library.
9610       ;;
9611     *)
9612       hardcode_direct_CXX=yes
9613       hardcode_minus_L_CXX=yes # Not in the search PATH,
9614                                               # but as the default
9615                                               # location of the library.
9616       ;;
9617     esac
9618
9619     case $cc_basename in
9620       CC)
9621         # FIXME: insert proper C++ library support
9622         ld_shlibs_CXX=no
9623         ;;
9624       aCC)
9625         case "$host_cpu" in
9626         hppa*64*|ia64*)
9627           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9628           ;;
9629         *)
9630           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9631           ;;
9632         esac
9633         # Commands to make compiler produce verbose output that lists
9634         # what "hidden" libraries, object files and flags are used when
9635         # linking a shared library.
9636         #
9637         # There doesn't appear to be a way to prevent this compiler from
9638         # explicitly linking system object files so we need to strip them
9639         # from the output so that they don't get included in the library
9640         # dependencies.
9641         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'
9642         ;;
9643       *)
9644         if test "$GXX" = yes; then
9645           if test $with_gnu_ld = no; then
9646             case "$host_cpu" in
9647             ia64*|hppa*64*)
9648               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9649               ;;
9650             *)
9651               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'
9652               ;;
9653             esac
9654           fi
9655         else
9656           # FIXME: insert proper C++ library support
9657           ld_shlibs_CXX=no
9658         fi
9659         ;;
9660     esac
9661     ;;
9662   irix5* | irix6*)
9663     case $cc_basename in
9664       CC)
9665         # SGI C++
9666         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'
9667
9668         # Archives containing C++ object files must be created using
9669         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9670         # necessary to make sure instantiated templates are included
9671         # in the archive.
9672         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9673         ;;
9674       *)
9675         if test "$GXX" = yes; then
9676           if test "$with_gnu_ld" = no; then
9677             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'
9678           else
9679             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'
9680           fi
9681         fi
9682         link_all_deplibs_CXX=yes
9683         ;;
9684     esac
9685     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9686     hardcode_libdir_separator_CXX=:
9687     ;;
9688   linux*)
9689     case $cc_basename in
9690       KCC)
9691         # Kuck and Associates, Inc. (KAI) C++ Compiler
9692
9693         # KCC will only create a shared library if the output file
9694         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9695         # to its proper name (with version) after linking.
9696         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'
9697         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'
9698         # Commands to make compiler produce verbose output that lists
9699         # what "hidden" libraries, object files and flags are used when
9700         # linking a shared library.
9701         #
9702         # There doesn't appear to be a way to prevent this compiler from
9703         # explicitly linking system object files so we need to strip them
9704         # from the output so that they don't get included in the library
9705         # dependencies.
9706         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'
9707
9708         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9709         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9710
9711         # Archives containing C++ object files must be created using
9712         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9713         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9714         ;;
9715       icpc)
9716         # Intel C++
9717         with_gnu_ld=yes
9718         archive_cmds_need_lc_CXX=no
9719         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9720         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'
9721         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9722         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9723         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9724         ;;
9725       cxx)
9726         # Compaq C++
9727         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9728         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'
9729
9730         runpath_var=LD_RUN_PATH
9731         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9732         hardcode_libdir_separator_CXX=:
9733
9734         # Commands to make compiler produce verbose output that lists
9735         # what "hidden" libraries, object files and flags are used when
9736         # linking a shared library.
9737         #
9738         # There doesn't appear to be a way to prevent this compiler from
9739         # explicitly linking system object files so we need to strip them
9740         # from the output so that they don't get included in the library
9741         # dependencies.
9742         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'
9743         ;;
9744     esac
9745     ;;
9746   lynxos*)
9747     # FIXME: insert proper C++ library support
9748     ld_shlibs_CXX=no
9749     ;;
9750   m88k*)
9751     # FIXME: insert proper C++ library support
9752     ld_shlibs_CXX=no
9753     ;;
9754   mvs*)
9755     case $cc_basename in
9756       cxx)
9757         # FIXME: insert proper C++ library support
9758         ld_shlibs_CXX=no
9759         ;;
9760       *)
9761         # FIXME: insert proper C++ library support
9762         ld_shlibs_CXX=no
9763         ;;
9764     esac
9765     ;;
9766   netbsd*)
9767     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9768       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9769       wlarc=
9770       hardcode_libdir_flag_spec_CXX='-R$libdir'
9771       hardcode_direct_CXX=yes
9772       hardcode_shlibpath_var_CXX=no
9773     fi
9774     # Workaround some broken pre-1.5 toolchains
9775     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9776     ;;
9777   osf3*)
9778     case $cc_basename in
9779       KCC)
9780         # Kuck and Associates, Inc. (KAI) C++ Compiler
9781
9782         # KCC will only create a shared library if the output file
9783         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9784         # to its proper name (with version) after linking.
9785         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'
9786
9787         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9788         hardcode_libdir_separator_CXX=:
9789
9790         # Archives containing C++ object files must be created using
9791         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9792         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9793
9794         ;;
9795       RCC)
9796         # Rational C++ 2.4.1
9797         # FIXME: insert proper C++ library support
9798         ld_shlibs_CXX=no
9799         ;;
9800       cxx)
9801         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9802         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'
9803
9804         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9805         hardcode_libdir_separator_CXX=:
9806
9807         # Commands to make compiler produce verbose output that lists
9808         # what "hidden" libraries, object files and flags are used when
9809         # linking a shared library.
9810         #
9811         # There doesn't appear to be a way to prevent this compiler from
9812         # explicitly linking system object files so we need to strip them
9813         # from the output so that they don't get included in the library
9814         # dependencies.
9815         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'
9816         ;;
9817       *)
9818         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9819           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9820           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'
9821
9822           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9823           hardcode_libdir_separator_CXX=:
9824
9825           # Commands to make compiler produce verbose output that lists
9826           # what "hidden" libraries, object files and flags are used when
9827           # linking a shared library.
9828           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9829
9830         else
9831           # FIXME: insert proper C++ library support
9832           ld_shlibs_CXX=no
9833         fi
9834         ;;
9835     esac
9836     ;;
9837   osf4* | osf5*)
9838     case $cc_basename in
9839       KCC)
9840         # Kuck and Associates, Inc. (KAI) C++ Compiler
9841
9842         # KCC will only create a shared library if the output file
9843         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9844         # to its proper name (with version) after linking.
9845         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'
9846
9847         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9848         hardcode_libdir_separator_CXX=:
9849
9850         # Archives containing C++ object files must be created using
9851         # the KAI C++ compiler.
9852         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9853         ;;
9854       RCC)
9855         # Rational C++ 2.4.1
9856         # FIXME: insert proper C++ library support
9857         ld_shlibs_CXX=no
9858         ;;
9859       cxx)
9860         allow_undefined_flag_CXX=' -expect_unresolved \*'
9861         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'
9862         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9863           echo "-hidden">> $lib.exp~
9864           $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~
9865           $rm $lib.exp'
9866
9867         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9868         hardcode_libdir_separator_CXX=:
9869
9870         # Commands to make compiler produce verbose output that lists
9871         # what "hidden" libraries, object files and flags are used when
9872         # linking a shared library.
9873         #
9874         # There doesn't appear to be a way to prevent this compiler from
9875         # explicitly linking system object files so we need to strip them
9876         # from the output so that they don't get included in the library
9877         # dependencies.
9878         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'
9879         ;;
9880       *)
9881         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9882           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9883          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'
9884
9885           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9886           hardcode_libdir_separator_CXX=:
9887
9888           # Commands to make compiler produce verbose output that lists
9889           # what "hidden" libraries, object files and flags are used when
9890           # linking a shared library.
9891           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9892
9893         else
9894           # FIXME: insert proper C++ library support
9895           ld_shlibs_CXX=no
9896         fi
9897         ;;
9898     esac
9899     ;;
9900   psos*)
9901     # FIXME: insert proper C++ library support
9902     ld_shlibs_CXX=no
9903     ;;
9904   sco*)
9905     archive_cmds_need_lc_CXX=no
9906     case $cc_basename in
9907       CC)
9908         # FIXME: insert proper C++ library support
9909         ld_shlibs_CXX=no
9910         ;;
9911       *)
9912         # FIXME: insert proper C++ library support
9913         ld_shlibs_CXX=no
9914         ;;
9915     esac
9916     ;;
9917   sunos4*)
9918     case $cc_basename in
9919       CC)
9920         # Sun C++ 4.x
9921         # FIXME: insert proper C++ library support
9922         ld_shlibs_CXX=no
9923         ;;
9924       lcc)
9925         # Lucid
9926         # FIXME: insert proper C++ library support
9927         ld_shlibs_CXX=no
9928         ;;
9929       *)
9930         # FIXME: insert proper C++ library support
9931         ld_shlibs_CXX=no
9932         ;;
9933     esac
9934     ;;
9935   solaris*)
9936     case $cc_basename in
9937       CC)
9938         # Sun C++ 4.2, 5.x and Centerline C++
9939         no_undefined_flag_CXX=' -zdefs'
9940         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9941         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9942         $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'
9943
9944         hardcode_libdir_flag_spec_CXX='-R$libdir'
9945         hardcode_shlibpath_var_CXX=no
9946         case $host_os in
9947           solaris2.0-5 | solaris2.0-5.*) ;;
9948           *)
9949             # The C++ compiler is used as linker so we must use $wl
9950             # flag to pass the commands to the underlying system
9951             # linker.
9952             # Supported since Solaris 2.6 (maybe 2.5.1?)
9953             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9954             ;;
9955         esac
9956         link_all_deplibs_CXX=yes
9957
9958         # Commands to make compiler produce verbose output that lists
9959         # what "hidden" libraries, object files and flags are used when
9960         # linking a shared library.
9961         #
9962         # There doesn't appear to be a way to prevent this compiler from
9963         # explicitly linking system object files so we need to strip them
9964         # from the output so that they don't get included in the library
9965         # dependencies.
9966         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'
9967
9968         # Archives containing C++ object files must be created using
9969         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
9970         # necessary to make sure instantiated templates are included
9971         # in the archive.
9972         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9973         ;;
9974       gcx)
9975         # Green Hills C++ Compiler
9976         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9977
9978         # The C++ compiler must be used to create the archive.
9979         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9980         ;;
9981       *)
9982         # GNU C++ compiler with Solaris linker
9983         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9984           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9985           if $CC --version | grep -v '^2\.7' > /dev/null; then
9986             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9987             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9988                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9989
9990             # Commands to make compiler produce verbose output that lists
9991             # what "hidden" libraries, object files and flags are used when
9992             # linking a shared library.
9993             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9994           else
9995             # g++ 2.7 appears to require `-G' NOT `-shared' on this
9996             # platform.
9997             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9998             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9999                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10000
10001             # Commands to make compiler produce verbose output that lists
10002             # what "hidden" libraries, object files and flags are used when
10003             # linking a shared library.
10004             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10005           fi
10006
10007           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10008         fi
10009         ;;
10010     esac
10011     ;;
10012   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10013     archive_cmds_need_lc_CXX=no
10014     ;;
10015   tandem*)
10016     case $cc_basename in
10017       NCC)
10018         # NonStop-UX NCC 3.20
10019         # FIXME: insert proper C++ library support
10020         ld_shlibs_CXX=no
10021         ;;
10022       *)
10023         # FIXME: insert proper C++ library support
10024         ld_shlibs_CXX=no
10025         ;;
10026     esac
10027     ;;
10028   vxworks*)
10029     # FIXME: insert proper C++ library support
10030     ld_shlibs_CXX=no
10031     ;;
10032   *)
10033     # FIXME: insert proper C++ library support
10034     ld_shlibs_CXX=no
10035     ;;
10036 esac
10037 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10038 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10039 test "$ld_shlibs_CXX" = no && can_build_shared=no
10040
10041 GCC_CXX="$GXX"
10042 LD_CXX="$LD"
10043
10044
10045 cat > conftest.$ac_ext <<EOF
10046 class Foo
10047 {
10048 public:
10049   Foo (void) { a = 0; }
10050 private:
10051   int a;
10052 };
10053 EOF
10054
10055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10056   (eval $ac_compile) 2>&5
10057   ac_status=$?
10058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059   (exit $ac_status); }; then
10060   # Parse the compiler output and extract the necessary
10061   # objects, libraries and library flags.
10062
10063   # Sentinel used to keep track of whether or not we are before
10064   # the conftest object file.
10065   pre_test_object_deps_done=no
10066
10067   # The `*' in the case matches for architectures that use `case' in
10068   # $output_verbose_cmd can trigger glob expansion during the loop
10069   # eval without this substitution.
10070   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10071
10072   for p in `eval $output_verbose_link_cmd`; do
10073     case $p in
10074
10075     -L* | -R* | -l*)
10076        # Some compilers place space between "-{L,R}" and the path.
10077        # Remove the space.
10078        if test $p = "-L" \
10079           || test $p = "-R"; then
10080          prev=$p
10081          continue
10082        else
10083          prev=
10084        fi
10085
10086        if test "$pre_test_object_deps_done" = no; then
10087          case $p in
10088          -L* | -R*)
10089            # Internal compiler library paths should come after those
10090            # provided the user.  The postdeps already come after the
10091            # user supplied libs so there is no need to process them.
10092            if test -z "$compiler_lib_search_path_CXX"; then
10093              compiler_lib_search_path_CXX="${prev}${p}"
10094            else
10095              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10096            fi
10097            ;;
10098          # The "-l" case would never come before the object being
10099          # linked, so don't bother handling this case.
10100          esac
10101        else
10102          if test -z "$postdeps_CXX"; then
10103            postdeps_CXX="${prev}${p}"
10104          else
10105            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10106          fi
10107        fi
10108        ;;
10109
10110     *.$objext)
10111        # This assumes that the test object file only shows up
10112        # once in the compiler output.
10113        if test "$p" = "conftest.$objext"; then
10114          pre_test_object_deps_done=yes
10115          continue
10116        fi
10117
10118        if test "$pre_test_object_deps_done" = no; then
10119          if test -z "$predep_objects_CXX"; then
10120            predep_objects_CXX="$p"
10121          else
10122            predep_objects_CXX="$predep_objects_CXX $p"
10123          fi
10124        else
10125          if test -z "$postdep_objects_CXX"; then
10126            postdep_objects_CXX="$p"
10127          else
10128            postdep_objects_CXX="$postdep_objects_CXX $p"
10129          fi
10130        fi
10131        ;;
10132
10133     *) ;; # Ignore the rest.
10134
10135     esac
10136   done
10137
10138   # Clean up.
10139   rm -f a.out a.exe
10140 else
10141   echo "libtool.m4: error: problem compiling CXX test program"
10142 fi
10143
10144 $rm -f confest.$objext
10145
10146 case " $postdeps_CXX " in
10147 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10148 esac
10149
10150 lt_prog_compiler_wl_CXX=
10151 lt_prog_compiler_pic_CXX=
10152 lt_prog_compiler_static_CXX=
10153
10154 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10155 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10156
10157   # C++ specific cases for pic, static, wl, etc.
10158   if test "$GXX" = yes; then
10159     lt_prog_compiler_wl_CXX='-Wl,'
10160     lt_prog_compiler_static_CXX='-static'
10161
10162     case $host_os in
10163     aix*)
10164       # All AIX code is PIC.
10165       if test "$host_cpu" = ia64; then
10166         # AIX 5 now supports IA64 processor
10167         lt_prog_compiler_static_CXX='-Bstatic'
10168       fi
10169       ;;
10170     amigaos*)
10171       # FIXME: we need at least 68020 code to build shared libraries, but
10172       # adding the `-m68020' flag to GCC prevents building anything better,
10173       # like `-m68040'.
10174       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10175       ;;
10176     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10177       # PIC is the default for these OSes.
10178       ;;
10179     mingw* | os2* | pw32*)
10180       # This hack is so that the source file can tell whether it is being
10181       # built for inclusion in a dll (and should export symbols for example).
10182       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10183       ;;
10184     darwin* | rhapsody*)
10185       # PIC is the default on this platform
10186       # Common symbols not allowed in MH_DYLIB files
10187       lt_prog_compiler_pic_CXX='-fno-common'
10188       ;;
10189     *djgpp*)
10190       # DJGPP does not support shared libraries at all
10191       lt_prog_compiler_pic_CXX=
10192       ;;
10193     sysv4*MP*)
10194       if test -d /usr/nec; then
10195         lt_prog_compiler_pic_CXX=-Kconform_pic
10196       fi
10197       ;;
10198     hpux*)
10199       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10200       # not for PA HP-UX.
10201       case "$host_cpu" in
10202       hppa*64*|ia64*)
10203         ;;
10204       *)
10205         lt_prog_compiler_pic_CXX='-fPIC'
10206         ;;
10207       esac
10208       ;;
10209     *)
10210       lt_prog_compiler_pic_CXX='-fPIC'
10211       ;;
10212     esac
10213   else
10214     case $host_os in
10215       aix4* | aix5*)
10216         # All AIX code is PIC.
10217         if test "$host_cpu" = ia64; then
10218           # AIX 5 now supports IA64 processor
10219           lt_prog_compiler_static_CXX='-Bstatic'
10220         else
10221           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10222         fi
10223         ;;
10224       chorus*)
10225         case $cc_basename in
10226         cxch68)
10227           # Green Hills C++ Compiler
10228           # _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"
10229           ;;
10230         esac
10231         ;;
10232       dgux*)
10233         case $cc_basename in
10234           ec++)
10235             lt_prog_compiler_pic_CXX='-KPIC'
10236             ;;
10237           ghcx)
10238             # Green Hills C++ Compiler
10239             lt_prog_compiler_pic_CXX='-pic'
10240             ;;
10241           *)
10242             ;;
10243         esac
10244         ;;
10245       freebsd*)
10246         # FreeBSD uses GNU C++
10247         ;;
10248       hpux9* | hpux10* | hpux11*)
10249         case $cc_basename in
10250           CC)
10251             lt_prog_compiler_wl_CXX='-Wl,'
10252             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10253             if test "$host_cpu" != ia64; then
10254               lt_prog_compiler_pic_CXX='+Z'
10255             fi
10256             ;;
10257           aCC)
10258             lt_prog_compiler_wl_CXX='-Wl,'
10259             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10260             case "$host_cpu" in
10261             hppa*64*|ia64*)
10262               # +Z the default
10263               ;;
10264             *)
10265               lt_prog_compiler_pic_CXX='+Z'
10266               ;;
10267             esac
10268             ;;
10269           *)
10270             ;;
10271         esac
10272         ;;
10273       irix5* | irix6* | nonstopux*)
10274         case $cc_basename in
10275           CC)
10276             lt_prog_compiler_wl_CXX='-Wl,'
10277             lt_prog_compiler_static_CXX='-non_shared'
10278             # CC pic flag -KPIC is the default.
10279             ;;
10280           *)
10281             ;;
10282         esac
10283         ;;
10284       linux*)
10285         case $cc_basename in
10286           KCC)
10287             # KAI C++ Compiler
10288             lt_prog_compiler_wl_CXX='--backend -Wl,'
10289             lt_prog_compiler_pic_CXX='-fPIC'
10290             ;;
10291           icpc)
10292             # Intel C++
10293             lt_prog_compiler_wl_CXX='-Wl,'
10294             lt_prog_compiler_pic_CXX='-KPIC'
10295             lt_prog_compiler_static_CXX='-static'
10296             ;;
10297           cxx)
10298             # Compaq C++
10299             # Make sure the PIC flag is empty.  It appears that all Alpha
10300             # Linux and Compaq Tru64 Unix objects are PIC.
10301             lt_prog_compiler_pic_CXX=
10302             lt_prog_compiler_static_CXX='-non_shared'
10303             ;;
10304           *)
10305             ;;
10306         esac
10307         ;;
10308       lynxos*)
10309         ;;
10310       m88k*)
10311         ;;
10312       mvs*)
10313         case $cc_basename in
10314           cxx)
10315             lt_prog_compiler_pic_CXX='-W c,exportall'
10316             ;;
10317           *)
10318             ;;
10319         esac
10320         ;;
10321       netbsd*)
10322         ;;
10323       osf3* | osf4* | osf5*)
10324         case $cc_basename in
10325           KCC)
10326             lt_prog_compiler_wl_CXX='--backend -Wl,'
10327             ;;
10328           RCC)
10329             # Rational C++ 2.4.1
10330             lt_prog_compiler_pic_CXX='-pic'
10331             ;;
10332           cxx)
10333             # Digital/Compaq C++
10334             lt_prog_compiler_wl_CXX='-Wl,'
10335             # Make sure the PIC flag is empty.  It appears that all Alpha
10336             # Linux and Compaq Tru64 Unix objects are PIC.
10337             lt_prog_compiler_pic_CXX=
10338             lt_prog_compiler_static_CXX='-non_shared'
10339             ;;
10340           *)
10341             ;;
10342         esac
10343         ;;
10344       psos*)
10345         ;;
10346       sco*)
10347         case $cc_basename in
10348           CC)
10349             lt_prog_compiler_pic_CXX='-fPIC'
10350             ;;
10351           *)
10352             ;;
10353         esac
10354         ;;
10355       solaris*)
10356         case $cc_basename in
10357           CC)
10358             # Sun C++ 4.2, 5.x and Centerline C++
10359             lt_prog_compiler_pic_CXX='-KPIC'
10360             lt_prog_compiler_static_CXX='-Bstatic'
10361             lt_prog_compiler_wl_CXX='-Qoption ld '
10362             ;;
10363           gcx)
10364             # Green Hills C++ Compiler
10365             lt_prog_compiler_pic_CXX='-PIC'
10366             ;;
10367           *)
10368             ;;
10369         esac
10370         ;;
10371       sunos4*)
10372         case $cc_basename in
10373           CC)
10374             # Sun C++ 4.x
10375             lt_prog_compiler_pic_CXX='-pic'
10376             lt_prog_compiler_static_CXX='-Bstatic'
10377             ;;
10378           lcc)
10379             # Lucid
10380             lt_prog_compiler_pic_CXX='-pic'
10381             ;;
10382           *)
10383             ;;
10384         esac
10385         ;;
10386       tandem*)
10387         case $cc_basename in
10388           NCC)
10389             # NonStop-UX NCC 3.20
10390             lt_prog_compiler_pic_CXX='-KPIC'
10391             ;;
10392           *)
10393             ;;
10394         esac
10395         ;;
10396       unixware*)
10397         ;;
10398       vxworks*)
10399         ;;
10400       *)
10401         lt_prog_compiler_can_build_shared_CXX=no
10402         ;;
10403     esac
10404   fi
10405
10406 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10407 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10408
10409 #
10410 # Check to make sure the PIC flag actually works.
10411 #
10412 if test -n "$lt_prog_compiler_pic_CXX"; then
10413   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10414 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10415 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10416   echo $ECHO_N "(cached) $ECHO_C" >&6
10417 else
10418   lt_prog_compiler_pic_works_CXX=no
10419   ac_outfile=conftest.$ac_objext
10420    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10421    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10422    # Insert the option either (1) after the last *FLAGS variable, or
10423    # (2) before a word containing "conftest.", or (3) at the end.
10424    # Note that $ac_compile itself does not contain backslashes and begins
10425    # with a dollar sign (not a hyphen), so the echo should work correctly.
10426    # The option is referenced via a variable to avoid confusing sed.
10427    lt_compile=`echo "$ac_compile" | $SED \
10428    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10429    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10430    -e 's:$: $lt_compiler_flag:'`
10431    (eval echo "\"\$as_me:10431: $lt_compile\"" >&5)
10432    (eval "$lt_compile" 2>conftest.err)
10433    ac_status=$?
10434    cat conftest.err >&5
10435    echo "$as_me:10435: \$? = $ac_status" >&5
10436    if (exit $ac_status) && test -s "$ac_outfile"; then
10437      # The compiler can only warn and ignore the option if not recognized
10438      # So say no if there are warnings
10439      if test ! -s conftest.err; then
10440        lt_prog_compiler_pic_works_CXX=yes
10441      fi
10442    fi
10443    $rm conftest*
10444
10445 fi
10446 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10447 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10448
10449 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10450     case $lt_prog_compiler_pic_CXX in
10451      "" | " "*) ;;
10452      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10453      esac
10454 else
10455     lt_prog_compiler_pic_CXX=
10456      lt_prog_compiler_can_build_shared_CXX=no
10457 fi
10458
10459 fi
10460 case "$host_os" in
10461   # For platforms which do not support PIC, -DPIC is meaningless:
10462   *djgpp*)
10463     lt_prog_compiler_pic_CXX=
10464     ;;
10465   *)
10466     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10467     ;;
10468 esac
10469
10470 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10471 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10472 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10473   echo $ECHO_N "(cached) $ECHO_C" >&6
10474 else
10475   lt_cv_prog_compiler_c_o_CXX=no
10476    $rm -r conftest 2>/dev/null
10477    mkdir conftest
10478    cd conftest
10479    mkdir out
10480    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10481
10482    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10483    # that will create temporary files in the current directory regardless of
10484    # the output directory.  Thus, making CWD read-only will cause this test
10485    # to fail, enabling locking or at least warning the user not to do parallel
10486    # builds.
10487    chmod -w .
10488
10489    lt_compiler_flag="-o out/conftest2.$ac_objext"
10490    # Insert the option either (1) after the last *FLAGS variable, or
10491    # (2) before a word containing "conftest.", or (3) at the end.
10492    # Note that $ac_compile itself does not contain backslashes and begins
10493    # with a dollar sign (not a hyphen), so the echo should work correctly.
10494    lt_compile=`echo "$ac_compile" | $SED \
10495    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10496    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10497    -e 's:$: $lt_compiler_flag:'`
10498    (eval echo "\"\$as_me:10498: $lt_compile\"" >&5)
10499    (eval "$lt_compile" 2>out/conftest.err)
10500    ac_status=$?
10501    cat out/conftest.err >&5
10502    echo "$as_me:10502: \$? = $ac_status" >&5
10503    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10504    then
10505      # The compiler can only warn and ignore the option if not recognized
10506      # So say no if there are warnings
10507      if test ! -s out/conftest.err; then
10508        lt_cv_prog_compiler_c_o_CXX=yes
10509      fi
10510    fi
10511    chmod u+w .
10512    $rm conftest* out/*
10513    rmdir out
10514    cd ..
10515    rmdir conftest
10516    $rm conftest*
10517
10518 fi
10519 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10520 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10521
10522
10523 hard_links="nottested"
10524 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10525   # do not overwrite the value of need_locks provided by the user
10526   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10527 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10528   hard_links=yes
10529   $rm conftest*
10530   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10531   touch conftest.a
10532   ln conftest.a conftest.b 2>&5 || hard_links=no
10533   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10534   echo "$as_me:$LINENO: result: $hard_links" >&5
10535 echo "${ECHO_T}$hard_links" >&6
10536   if test "$hard_links" = no; then
10537     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10538 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10539     need_locks=warn
10540   fi
10541 else
10542   need_locks=no
10543 fi
10544
10545 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10546 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10547
10548   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10549   case $host_os in
10550   aix4* | aix5*)
10551     # If we're using GNU nm, then we don't want the "-C" option.
10552     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10553     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10554       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'
10555     else
10556       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'
10557     fi
10558     ;;
10559   pw32*)
10560     export_symbols_cmds_CXX="$ltdll_cmds"
10561   ;;
10562   cygwin* | mingw*)
10563     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10564   ;;
10565   *)
10566     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10567   ;;
10568   esac
10569
10570 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10571 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10572 test "$ld_shlibs_CXX" = no && can_build_shared=no
10573
10574 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10575 if test "$GCC" = yes; then
10576   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10577 fi
10578
10579 #
10580 # Do we need to explicitly link libc?
10581 #
10582 case "x$archive_cmds_need_lc_CXX" in
10583 x|xyes)
10584   # Assume -lc should be added
10585   archive_cmds_need_lc_CXX=yes
10586
10587   if test "$enable_shared" = yes && test "$GCC" = yes; then
10588     case $archive_cmds_CXX in
10589     *'~'*)
10590       # FIXME: we may have to deal with multi-command sequences.
10591       ;;
10592     '$CC '*)
10593       # Test whether the compiler implicitly links with -lc since on some
10594       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10595       # to ld, don't add -lc before -lgcc.
10596       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10597 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10598       $rm conftest*
10599       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10600
10601       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10602   (eval $ac_compile) 2>&5
10603   ac_status=$?
10604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605   (exit $ac_status); } 2>conftest.err; then
10606         soname=conftest
10607         lib=conftest
10608         libobjs=conftest.$ac_objext
10609         deplibs=
10610         wl=$lt_prog_compiler_wl_CXX
10611         compiler_flags=-v
10612         linker_flags=-v
10613         verstring=
10614         output_objdir=.
10615         libname=conftest
10616         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10617         allow_undefined_flag_CXX=
10618         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10619   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10620   ac_status=$?
10621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622   (exit $ac_status); }
10623         then
10624           archive_cmds_need_lc_CXX=no
10625         else
10626           archive_cmds_need_lc_CXX=yes
10627         fi
10628         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10629       else
10630         cat conftest.err 1>&5
10631       fi
10632       $rm conftest*
10633       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10634 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10635       ;;
10636     esac
10637   fi
10638   ;;
10639 esac
10640
10641 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10642 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10643 hardcode_action_CXX=
10644 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10645    test -n "$runpath_var CXX" || \
10646    test "X$hardcode_automatic_CXX"="Xyes" ; then
10647
10648   # We can hardcode non-existant directories.
10649   if test "$hardcode_direct_CXX" != no &&
10650      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10651      # have to relink, otherwise we might link with an installed library
10652      # when we should be linking with a yet-to-be-installed one
10653      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10654      test "$hardcode_minus_L_CXX" != no; then
10655     # Linking always hardcodes the temporary library directory.
10656     hardcode_action_CXX=relink
10657   else
10658     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10659     hardcode_action_CXX=immediate
10660   fi
10661 else
10662   # We cannot hardcode anything, or else we can only hardcode existing
10663   # directories.
10664   hardcode_action_CXX=unsupported
10665 fi
10666 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10667 echo "${ECHO_T}$hardcode_action_CXX" >&6
10668
10669 if test "$hardcode_action_CXX" = relink; then
10670   # Fast installation is not supported
10671   enable_fast_install=no
10672 elif test "$shlibpath_overrides_runpath" = yes ||
10673      test "$enable_shared" = no; then
10674   # Fast installation is not necessary
10675   enable_fast_install=needless
10676 fi
10677
10678 striplib=
10679 old_striplib=
10680 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10681 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10682 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10683   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10684   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10685   echo "$as_me:$LINENO: result: yes" >&5
10686 echo "${ECHO_T}yes" >&6
10687 else
10688 # FIXME - insert some real tests, host_os isn't really good enough
10689   case $host_os in
10690    darwin*)
10691        if test -n "$STRIP" ; then
10692          striplib="$STRIP -x"
10693          echo "$as_me:$LINENO: result: yes" >&5
10694 echo "${ECHO_T}yes" >&6
10695        else
10696   echo "$as_me:$LINENO: result: no" >&5
10697 echo "${ECHO_T}no" >&6
10698 fi
10699        ;;
10700    *)
10701   echo "$as_me:$LINENO: result: no" >&5
10702 echo "${ECHO_T}no" >&6
10703     ;;
10704   esac
10705 fi
10706
10707 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10708 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10709 library_names_spec=
10710 libname_spec='lib$name'
10711 soname_spec=
10712 shrext=".so"
10713 postinstall_cmds=
10714 postuninstall_cmds=
10715 finish_cmds=
10716 finish_eval=
10717 shlibpath_var=
10718 shlibpath_overrides_runpath=unknown
10719 version_type=none
10720 dynamic_linker="$host_os ld.so"
10721 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10722 if test "$GCC" = yes; then
10723   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10724   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10725     # if the path contains ";" then we assume it to be the separator
10726     # otherwise default to the standard path separator (i.e. ":") - it is
10727     # assumed that no part of a normal pathname contains ";" but that should
10728     # okay in the real world where ";" in dirpaths is itself problematic.
10729     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10730   else
10731     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10732   fi
10733 else
10734   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10735 fi
10736 need_lib_prefix=unknown
10737 hardcode_into_libs=no
10738
10739 # when you set need_version to no, make sure it does not cause -set_version
10740 # flags to be left without arguments
10741 need_version=unknown
10742
10743 case $host_os in
10744 aix3*)
10745   version_type=linux
10746   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10747   shlibpath_var=LIBPATH
10748
10749   # AIX 3 has no versioning support, so we append a major version to the name.
10750   soname_spec='${libname}${release}${shared_ext}$major'
10751   ;;
10752
10753 aix4* | aix5*)
10754   version_type=linux
10755   need_lib_prefix=no
10756   need_version=no
10757   hardcode_into_libs=yes
10758   if test "$host_cpu" = ia64; then
10759     # AIX 5 supports IA64
10760     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10761     shlibpath_var=LD_LIBRARY_PATH
10762   else
10763     # With GCC up to 2.95.x, collect2 would create an import file
10764     # for dependence libraries.  The import file would start with
10765     # the line `#! .'.  This would cause the generated library to
10766     # depend on `.', always an invalid library.  This was fixed in
10767     # development snapshots of GCC prior to 3.0.
10768     case $host_os in
10769       aix4 | aix4.[01] | aix4.[01].*)
10770       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10771            echo ' yes '
10772            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10773         :
10774       else
10775         can_build_shared=no
10776       fi
10777       ;;
10778     esac
10779     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10780     # soname into executable. Probably we can add versioning support to
10781     # collect2, so additional links can be useful in future.
10782     if test "$aix_use_runtimelinking" = yes; then
10783       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10784       # instead of lib<name>.a to let people know that these are not
10785       # typical AIX shared libraries.
10786       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10787     else
10788       # We preserve .a as extension for shared libraries through AIX4.2
10789       # and later when we are not doing run time linking.
10790       library_names_spec='${libname}${release}.a $libname.a'
10791       soname_spec='${libname}${release}${shared_ext}$major'
10792     fi
10793     shlibpath_var=LIBPATH
10794   fi
10795   ;;
10796
10797 amigaos*)
10798   library_names_spec='$libname.ixlibrary $libname.a'
10799   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10800   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'
10801   ;;
10802
10803 beos*)
10804   library_names_spec='${libname}${shared_ext}'
10805   dynamic_linker="$host_os ld.so"
10806   shlibpath_var=LIBRARY_PATH
10807   ;;
10808
10809 bsdi4*)
10810   version_type=linux
10811   need_version=no
10812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10813   soname_spec='${libname}${release}${shared_ext}$major'
10814   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10815   shlibpath_var=LD_LIBRARY_PATH
10816   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10817   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10818   # the default ld.so.conf also contains /usr/contrib/lib and
10819   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10820   # libtool to hard-code these into programs
10821   ;;
10822
10823 cygwin* | mingw* | pw32*)
10824   version_type=windows
10825   shrext=".dll"
10826   need_version=no
10827   need_lib_prefix=no
10828
10829   case $GCC,$host_os in
10830   yes,cygwin* | yes,mingw* | yes,pw32*)
10831     library_names_spec='$libname.dll.a'
10832     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10833     postinstall_cmds='base_file=`basename \${file}`~
10834       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10835       dldir=$destdir/`dirname \$dlpath`~
10836       test -d \$dldir || mkdir -p \$dldir~
10837       $install_prog $dir/$dlname \$dldir/$dlname'
10838     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10839       dlpath=$dir/\$dldll~
10840        $rm \$dlpath'
10841     shlibpath_overrides_runpath=yes
10842
10843     case $host_os in
10844     cygwin*)
10845       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10846       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10847       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10848       ;;
10849     mingw*)
10850       # MinGW DLLs use traditional 'lib' prefix
10851       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10852       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10853       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10854         # It is most probably a Windows format PATH printed by
10855         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10856         # path with ; separators, and with drive letters. We can handle the
10857         # drive letters (cygwin fileutils understands them), so leave them,
10858         # especially as we might pass files found there to a mingw objdump,
10859         # which wouldn't understand a cygwinified path. Ahh.
10860         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10861       else
10862         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10863       fi
10864       ;;
10865     pw32*)
10866       # pw32 DLLs use 'pw' prefix rather than 'lib'
10867       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10868       ;;
10869     esac
10870     ;;
10871
10872   *)
10873     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10874     ;;
10875   esac
10876   dynamic_linker='Win32 ld.exe'
10877   # FIXME: first we should search . and the directory the executable is in
10878   shlibpath_var=PATH
10879   ;;
10880
10881 darwin* | rhapsody*)
10882   dynamic_linker="$host_os dyld"
10883   version_type=darwin
10884   need_lib_prefix=no
10885   need_version=no
10886   # FIXME: Relying on posixy $() will cause problems for
10887   #        cross-compilation, but unfortunately the echo tests do not
10888   #        yet detect zsh echo's removal of \ escapes.
10889   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10890   soname_spec='${libname}${release}${major}$shared_ext'
10891   shlibpath_overrides_runpath=yes
10892   shlibpath_var=DYLD_LIBRARY_PATH
10893   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10894   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10895   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10896   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"`
10897   fi
10898   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10899   ;;
10900
10901 dgux*)
10902   version_type=linux
10903   need_lib_prefix=no
10904   need_version=no
10905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10906   soname_spec='${libname}${release}${shared_ext}$major'
10907   shlibpath_var=LD_LIBRARY_PATH
10908   ;;
10909
10910 freebsd1*)
10911   dynamic_linker=no
10912   ;;
10913
10914 freebsd*)
10915   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10916   version_type=freebsd-$objformat
10917   case $version_type in
10918     freebsd-elf*)
10919       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10920       need_version=no
10921       need_lib_prefix=no
10922       ;;
10923     freebsd-*)
10924       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10925       need_version=yes
10926       ;;
10927   esac
10928   shlibpath_var=LD_LIBRARY_PATH
10929   case $host_os in
10930   freebsd2*)
10931     shlibpath_overrides_runpath=yes
10932     ;;
10933   freebsd3.01* | freebsdelf3.01*)
10934     shlibpath_overrides_runpath=yes
10935     hardcode_into_libs=yes
10936     ;;
10937   *) # from 3.2 on
10938     shlibpath_overrides_runpath=no
10939     hardcode_into_libs=yes
10940     ;;
10941   esac
10942   ;;
10943
10944 gnu*)
10945   version_type=linux
10946   need_lib_prefix=no
10947   need_version=no
10948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10949   soname_spec='${libname}${release}${shared_ext}$major'
10950   shlibpath_var=LD_LIBRARY_PATH
10951   hardcode_into_libs=yes
10952   ;;
10953
10954 hpux9* | hpux10* | hpux11*)
10955   # Give a soname corresponding to the major version so that dld.sl refuses to
10956   # link against other versions.
10957   version_type=sunos
10958   need_lib_prefix=no
10959   need_version=no
10960   case "$host_cpu" in
10961   ia64*)
10962     shrext='.so'
10963     hardcode_into_libs=yes
10964     dynamic_linker="$host_os dld.so"
10965     shlibpath_var=LD_LIBRARY_PATH
10966     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10967     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10968     soname_spec='${libname}${release}${shared_ext}$major'
10969     if test "X$HPUX_IA64_MODE" = X32; then
10970       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10971     else
10972       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10973     fi
10974     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10975     ;;
10976    hppa*64*)
10977      shrext='.sl'
10978      hardcode_into_libs=yes
10979      dynamic_linker="$host_os dld.sl"
10980      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10981      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10982      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10983      soname_spec='${libname}${release}${shared_ext}$major'
10984      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10985      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10986      ;;
10987    *)
10988     shrext='.sl'
10989     dynamic_linker="$host_os dld.sl"
10990     shlibpath_var=SHLIB_PATH
10991     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10992     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10993     soname_spec='${libname}${release}${shared_ext}$major'
10994     ;;
10995   esac
10996   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10997   postinstall_cmds='chmod 555 $lib'
10998   ;;
10999
11000 irix5* | irix6* | nonstopux*)
11001   case $host_os in
11002     nonstopux*) version_type=nonstopux ;;
11003     *)
11004         if test "$lt_cv_prog_gnu_ld" = yes; then
11005                 version_type=linux
11006         else
11007                 version_type=irix
11008         fi ;;
11009   esac
11010   need_lib_prefix=no
11011   need_version=no
11012   soname_spec='${libname}${release}${shared_ext}$major'
11013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11014   case $host_os in
11015   irix5* | nonstopux*)
11016     libsuff= shlibsuff=
11017     ;;
11018   *)
11019     case $LD in # libtool.m4 will add one of these switches to LD
11020     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11021       libsuff= shlibsuff= libmagic=32-bit;;
11022     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11023       libsuff=32 shlibsuff=N32 libmagic=N32;;
11024     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11025       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11026     *) libsuff= shlibsuff= libmagic=never-match;;
11027     esac
11028     ;;
11029   esac
11030   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11031   shlibpath_overrides_runpath=no
11032   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11033   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11034   hardcode_into_libs=yes
11035   ;;
11036
11037 # No shared lib support for Linux oldld, aout, or coff.
11038 linux*oldld* | linux*aout* | linux*coff*)
11039   dynamic_linker=no
11040   ;;
11041
11042 # This must be Linux ELF.
11043 linux*)
11044   version_type=linux
11045   need_lib_prefix=no
11046   need_version=no
11047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11048   soname_spec='${libname}${release}${shared_ext}$major'
11049   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11050   shlibpath_var=LD_LIBRARY_PATH
11051   shlibpath_overrides_runpath=no
11052   # This implies no fast_install, which is unacceptable.
11053   # Some rework will be needed to allow for fast_install
11054   # before this can be enabled.
11055   hardcode_into_libs=yes
11056
11057   # We used to test for /lib/ld.so.1 and disable shared libraries on
11058   # powerpc, because MkLinux only supported shared libraries with the
11059   # GNU dynamic linker.  Since this was broken with cross compilers,
11060   # most powerpc-linux boxes support dynamic linking these days and
11061   # people can always --disable-shared, the test was removed, and we
11062   # assume the GNU/Linux dynamic linker is in use.
11063   dynamic_linker='GNU/Linux ld.so'
11064   ;;
11065
11066 netbsd*)
11067   version_type=sunos
11068   need_lib_prefix=no
11069   need_version=no
11070   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11071     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11072     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11073     dynamic_linker='NetBSD (a.out) ld.so'
11074   else
11075     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11076     soname_spec='${libname}${release}${shared_ext}$major'
11077     dynamic_linker='NetBSD ld.elf_so'
11078   fi
11079   shlibpath_var=LD_LIBRARY_PATH
11080   shlibpath_overrides_runpath=yes
11081   hardcode_into_libs=yes
11082   ;;
11083
11084 newsos6)
11085   version_type=linux
11086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11087   shlibpath_var=LD_LIBRARY_PATH
11088   shlibpath_overrides_runpath=yes
11089   ;;
11090
11091 nto-qnx)
11092   version_type=linux
11093   need_lib_prefix=no
11094   need_version=no
11095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11096   soname_spec='${libname}${release}${shared_ext}$major'
11097   shlibpath_var=LD_LIBRARY_PATH
11098   shlibpath_overrides_runpath=yes
11099   ;;
11100
11101 openbsd*)
11102   version_type=sunos
11103   need_lib_prefix=no
11104   need_version=no
11105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11106   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11107   shlibpath_var=LD_LIBRARY_PATH
11108   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11109     case $host_os in
11110       openbsd2.[89] | openbsd2.[89].*)
11111         shlibpath_overrides_runpath=no
11112         ;;
11113       *)
11114         shlibpath_overrides_runpath=yes
11115         ;;
11116       esac
11117   else
11118     shlibpath_overrides_runpath=yes
11119   fi
11120   ;;
11121
11122 os2*)
11123   libname_spec='$name'
11124   shrext=".dll"
11125   need_lib_prefix=no
11126   library_names_spec='$libname${shared_ext} $libname.a'
11127   dynamic_linker='OS/2 ld.exe'
11128   shlibpath_var=LIBPATH
11129   ;;
11130
11131 osf3* | osf4* | osf5*)
11132   version_type=osf
11133   need_lib_prefix=no
11134   need_version=no
11135   soname_spec='${libname}${release}${shared_ext}$major'
11136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11137   shlibpath_var=LD_LIBRARY_PATH
11138   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11139   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11140   ;;
11141
11142 sco3.2v5*)
11143   version_type=osf
11144   soname_spec='${libname}${release}${shared_ext}$major'
11145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11146   shlibpath_var=LD_LIBRARY_PATH
11147   ;;
11148
11149 solaris*)
11150   version_type=linux
11151   need_lib_prefix=no
11152   need_version=no
11153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11154   soname_spec='${libname}${release}${shared_ext}$major'
11155   shlibpath_var=LD_LIBRARY_PATH
11156   shlibpath_overrides_runpath=yes
11157   hardcode_into_libs=yes
11158   # ldd complains unless libraries are executable
11159   postinstall_cmds='chmod +x $lib'
11160   ;;
11161
11162 sunos4*)
11163   version_type=sunos
11164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11165   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11166   shlibpath_var=LD_LIBRARY_PATH
11167   shlibpath_overrides_runpath=yes
11168   if test "$with_gnu_ld" = yes; then
11169     need_lib_prefix=no
11170   fi
11171   need_version=yes
11172   ;;
11173
11174 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11175   version_type=linux
11176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11177   soname_spec='${libname}${release}${shared_ext}$major'
11178   shlibpath_var=LD_LIBRARY_PATH
11179   case $host_vendor in
11180     sni)
11181       shlibpath_overrides_runpath=no
11182       need_lib_prefix=no
11183       export_dynamic_flag_spec='${wl}-Blargedynsym'
11184       runpath_var=LD_RUN_PATH
11185       ;;
11186     siemens)
11187       need_lib_prefix=no
11188       ;;
11189     motorola)
11190       need_lib_prefix=no
11191       need_version=no
11192       shlibpath_overrides_runpath=no
11193       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11194       ;;
11195   esac
11196   ;;
11197
11198 sysv4*MP*)
11199   if test -d /usr/nec ;then
11200     version_type=linux
11201     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11202     soname_spec='$libname${shared_ext}.$major'
11203     shlibpath_var=LD_LIBRARY_PATH
11204   fi
11205   ;;
11206
11207 uts4*)
11208   version_type=linux
11209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11210   soname_spec='${libname}${release}${shared_ext}$major'
11211   shlibpath_var=LD_LIBRARY_PATH
11212   ;;
11213
11214 *)
11215   dynamic_linker=no
11216   ;;
11217 esac
11218 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11219 echo "${ECHO_T}$dynamic_linker" >&6
11220 test "$dynamic_linker" = no && can_build_shared=no
11221
11222 if test "x$enable_dlopen" != xyes; then
11223   enable_dlopen=unknown
11224   enable_dlopen_self=unknown
11225   enable_dlopen_self_static=unknown
11226 else
11227   lt_cv_dlopen=no
11228   lt_cv_dlopen_libs=
11229
11230   case $host_os in
11231   beos*)
11232     lt_cv_dlopen="load_add_on"
11233     lt_cv_dlopen_libs=
11234     lt_cv_dlopen_self=yes
11235     ;;
11236
11237   mingw* | pw32*)
11238     lt_cv_dlopen="LoadLibrary"
11239     lt_cv_dlopen_libs=
11240    ;;
11241
11242   cygwin*)
11243     lt_cv_dlopen="dlopen"
11244     lt_cv_dlopen_libs=
11245    ;;
11246
11247   darwin*)
11248   # if libdl is installed we need to link against it
11249     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11250 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11251 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11252   echo $ECHO_N "(cached) $ECHO_C" >&6
11253 else
11254   ac_check_lib_save_LIBS=$LIBS
11255 LIBS="-ldl  $LIBS"
11256 cat >conftest.$ac_ext <<_ACEOF
11257 #line $LINENO "configure"
11258 /* confdefs.h.  */
11259 _ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h.  */
11263
11264 /* Override any gcc2 internal prototype to avoid an error.  */
11265 #ifdef __cplusplus
11266 extern "C"
11267 #endif
11268 /* We use char because int might match the return type of a gcc2
11269    builtin and then its argument prototype would still apply.  */
11270 char dlopen ();
11271 int
11272 main ()
11273 {
11274 dlopen ();
11275   ;
11276   return 0;
11277 }
11278 _ACEOF
11279 rm -f conftest.$ac_objext conftest$ac_exeext
11280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11281   (eval $ac_link) 2>&5
11282   ac_status=$?
11283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284   (exit $ac_status); } &&
11285          { ac_try='test -s conftest$ac_exeext'
11286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11287   (eval $ac_try) 2>&5
11288   ac_status=$?
11289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290   (exit $ac_status); }; }; then
11291   ac_cv_lib_dl_dlopen=yes
11292 else
11293   echo "$as_me: failed program was:" >&5
11294 sed 's/^/| /' conftest.$ac_ext >&5
11295
11296 ac_cv_lib_dl_dlopen=no
11297 fi
11298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11299 LIBS=$ac_check_lib_save_LIBS
11300 fi
11301 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11302 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11303 if test $ac_cv_lib_dl_dlopen = yes; then
11304   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11305 else
11306
11307     lt_cv_dlopen="dyld"
11308     lt_cv_dlopen_libs=
11309     lt_cv_dlopen_self=yes
11310
11311 fi
11312
11313    ;;
11314
11315   *)
11316     echo "$as_me:$LINENO: checking for shl_load" >&5
11317 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11318 if test "${ac_cv_func_shl_load+set}" = set; then
11319   echo $ECHO_N "(cached) $ECHO_C" >&6
11320 else
11321   cat >conftest.$ac_ext <<_ACEOF
11322 #line $LINENO "configure"
11323 /* confdefs.h.  */
11324 _ACEOF
11325 cat confdefs.h >>conftest.$ac_ext
11326 cat >>conftest.$ac_ext <<_ACEOF
11327 /* end confdefs.h.  */
11328 /* System header to define __stub macros and hopefully few prototypes,
11329     which can conflict with char shl_load (); below.
11330     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11331     <limits.h> exists even on freestanding compilers.  */
11332 #ifdef __STDC__
11333 # include <limits.h>
11334 #else
11335 # include <assert.h>
11336 #endif
11337 /* Override any gcc2 internal prototype to avoid an error.  */
11338 #ifdef __cplusplus
11339 extern "C"
11340 {
11341 #endif
11342 /* We use char because int might match the return type of a gcc2
11343    builtin and then its argument prototype would still apply.  */
11344 char shl_load ();
11345 /* The GNU C library defines this for functions which it implements
11346     to always fail with ENOSYS.  Some functions are actually named
11347     something starting with __ and the normal name is an alias.  */
11348 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11349 choke me
11350 #else
11351 char (*f) () = shl_load;
11352 #endif
11353 #ifdef __cplusplus
11354 }
11355 #endif
11356
11357 int
11358 main ()
11359 {
11360 return f != shl_load;
11361   ;
11362   return 0;
11363 }
11364 _ACEOF
11365 rm -f conftest.$ac_objext conftest$ac_exeext
11366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11367   (eval $ac_link) 2>&5
11368   ac_status=$?
11369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370   (exit $ac_status); } &&
11371          { ac_try='test -s conftest$ac_exeext'
11372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11373   (eval $ac_try) 2>&5
11374   ac_status=$?
11375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376   (exit $ac_status); }; }; then
11377   ac_cv_func_shl_load=yes
11378 else
11379   echo "$as_me: failed program was:" >&5
11380 sed 's/^/| /' conftest.$ac_ext >&5
11381
11382 ac_cv_func_shl_load=no
11383 fi
11384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11385 fi
11386 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11387 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11388 if test $ac_cv_func_shl_load = yes; then
11389   lt_cv_dlopen="shl_load"
11390 else
11391   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11392 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11393 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11394   echo $ECHO_N "(cached) $ECHO_C" >&6
11395 else
11396   ac_check_lib_save_LIBS=$LIBS
11397 LIBS="-ldld  $LIBS"
11398 cat >conftest.$ac_ext <<_ACEOF
11399 #line $LINENO "configure"
11400 /* confdefs.h.  */
11401 _ACEOF
11402 cat confdefs.h >>conftest.$ac_ext
11403 cat >>conftest.$ac_ext <<_ACEOF
11404 /* end confdefs.h.  */
11405
11406 /* Override any gcc2 internal prototype to avoid an error.  */
11407 #ifdef __cplusplus
11408 extern "C"
11409 #endif
11410 /* We use char because int might match the return type of a gcc2
11411    builtin and then its argument prototype would still apply.  */
11412 char shl_load ();
11413 int
11414 main ()
11415 {
11416 shl_load ();
11417   ;
11418   return 0;
11419 }
11420 _ACEOF
11421 rm -f conftest.$ac_objext conftest$ac_exeext
11422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11423   (eval $ac_link) 2>&5
11424   ac_status=$?
11425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426   (exit $ac_status); } &&
11427          { ac_try='test -s conftest$ac_exeext'
11428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11429   (eval $ac_try) 2>&5
11430   ac_status=$?
11431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432   (exit $ac_status); }; }; then
11433   ac_cv_lib_dld_shl_load=yes
11434 else
11435   echo "$as_me: failed program was:" >&5
11436 sed 's/^/| /' conftest.$ac_ext >&5
11437
11438 ac_cv_lib_dld_shl_load=no
11439 fi
11440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11441 LIBS=$ac_check_lib_save_LIBS
11442 fi
11443 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11444 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11445 if test $ac_cv_lib_dld_shl_load = yes; then
11446   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11447 else
11448   echo "$as_me:$LINENO: checking for dlopen" >&5
11449 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11450 if test "${ac_cv_func_dlopen+set}" = set; then
11451   echo $ECHO_N "(cached) $ECHO_C" >&6
11452 else
11453   cat >conftest.$ac_ext <<_ACEOF
11454 #line $LINENO "configure"
11455 /* confdefs.h.  */
11456 _ACEOF
11457 cat confdefs.h >>conftest.$ac_ext
11458 cat >>conftest.$ac_ext <<_ACEOF
11459 /* end confdefs.h.  */
11460 /* System header to define __stub macros and hopefully few prototypes,
11461     which can conflict with char dlopen (); below.
11462     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11463     <limits.h> exists even on freestanding compilers.  */
11464 #ifdef __STDC__
11465 # include <limits.h>
11466 #else
11467 # include <assert.h>
11468 #endif
11469 /* Override any gcc2 internal prototype to avoid an error.  */
11470 #ifdef __cplusplus
11471 extern "C"
11472 {
11473 #endif
11474 /* We use char because int might match the return type of a gcc2
11475    builtin and then its argument prototype would still apply.  */
11476 char dlopen ();
11477 /* The GNU C library defines this for functions which it implements
11478     to always fail with ENOSYS.  Some functions are actually named
11479     something starting with __ and the normal name is an alias.  */
11480 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11481 choke me
11482 #else
11483 char (*f) () = dlopen;
11484 #endif
11485 #ifdef __cplusplus
11486 }
11487 #endif
11488
11489 int
11490 main ()
11491 {
11492 return f != dlopen;
11493   ;
11494   return 0;
11495 }
11496 _ACEOF
11497 rm -f conftest.$ac_objext conftest$ac_exeext
11498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11499   (eval $ac_link) 2>&5
11500   ac_status=$?
11501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502   (exit $ac_status); } &&
11503          { ac_try='test -s conftest$ac_exeext'
11504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505   (eval $ac_try) 2>&5
11506   ac_status=$?
11507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508   (exit $ac_status); }; }; then
11509   ac_cv_func_dlopen=yes
11510 else
11511   echo "$as_me: failed program was:" >&5
11512 sed 's/^/| /' conftest.$ac_ext >&5
11513
11514 ac_cv_func_dlopen=no
11515 fi
11516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11517 fi
11518 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11519 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11520 if test $ac_cv_func_dlopen = yes; then
11521   lt_cv_dlopen="dlopen"
11522 else
11523   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11524 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11525 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11526   echo $ECHO_N "(cached) $ECHO_C" >&6
11527 else
11528   ac_check_lib_save_LIBS=$LIBS
11529 LIBS="-ldl  $LIBS"
11530 cat >conftest.$ac_ext <<_ACEOF
11531 #line $LINENO "configure"
11532 /* confdefs.h.  */
11533 _ACEOF
11534 cat confdefs.h >>conftest.$ac_ext
11535 cat >>conftest.$ac_ext <<_ACEOF
11536 /* end confdefs.h.  */
11537
11538 /* Override any gcc2 internal prototype to avoid an error.  */
11539 #ifdef __cplusplus
11540 extern "C"
11541 #endif
11542 /* We use char because int might match the return type of a gcc2
11543    builtin and then its argument prototype would still apply.  */
11544 char dlopen ();
11545 int
11546 main ()
11547 {
11548 dlopen ();
11549   ;
11550   return 0;
11551 }
11552 _ACEOF
11553 rm -f conftest.$ac_objext conftest$ac_exeext
11554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11555   (eval $ac_link) 2>&5
11556   ac_status=$?
11557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558   (exit $ac_status); } &&
11559          { ac_try='test -s conftest$ac_exeext'
11560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561   (eval $ac_try) 2>&5
11562   ac_status=$?
11563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564   (exit $ac_status); }; }; then
11565   ac_cv_lib_dl_dlopen=yes
11566 else
11567   echo "$as_me: failed program was:" >&5
11568 sed 's/^/| /' conftest.$ac_ext >&5
11569
11570 ac_cv_lib_dl_dlopen=no
11571 fi
11572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11573 LIBS=$ac_check_lib_save_LIBS
11574 fi
11575 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11576 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11577 if test $ac_cv_lib_dl_dlopen = yes; then
11578   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11579 else
11580   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11581 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11582 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11583   echo $ECHO_N "(cached) $ECHO_C" >&6
11584 else
11585   ac_check_lib_save_LIBS=$LIBS
11586 LIBS="-lsvld  $LIBS"
11587 cat >conftest.$ac_ext <<_ACEOF
11588 #line $LINENO "configure"
11589 /* confdefs.h.  */
11590 _ACEOF
11591 cat confdefs.h >>conftest.$ac_ext
11592 cat >>conftest.$ac_ext <<_ACEOF
11593 /* end confdefs.h.  */
11594
11595 /* Override any gcc2 internal prototype to avoid an error.  */
11596 #ifdef __cplusplus
11597 extern "C"
11598 #endif
11599 /* We use char because int might match the return type of a gcc2
11600    builtin and then its argument prototype would still apply.  */
11601 char dlopen ();
11602 int
11603 main ()
11604 {
11605 dlopen ();
11606   ;
11607   return 0;
11608 }
11609 _ACEOF
11610 rm -f conftest.$ac_objext conftest$ac_exeext
11611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11612   (eval $ac_link) 2>&5
11613   ac_status=$?
11614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615   (exit $ac_status); } &&
11616          { ac_try='test -s conftest$ac_exeext'
11617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618   (eval $ac_try) 2>&5
11619   ac_status=$?
11620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621   (exit $ac_status); }; }; then
11622   ac_cv_lib_svld_dlopen=yes
11623 else
11624   echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11626
11627 ac_cv_lib_svld_dlopen=no
11628 fi
11629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11630 LIBS=$ac_check_lib_save_LIBS
11631 fi
11632 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11633 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11634 if test $ac_cv_lib_svld_dlopen = yes; then
11635   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11636 else
11637   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11638 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11639 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11640   echo $ECHO_N "(cached) $ECHO_C" >&6
11641 else
11642   ac_check_lib_save_LIBS=$LIBS
11643 LIBS="-ldld  $LIBS"
11644 cat >conftest.$ac_ext <<_ACEOF
11645 #line $LINENO "configure"
11646 /* confdefs.h.  */
11647 _ACEOF
11648 cat confdefs.h >>conftest.$ac_ext
11649 cat >>conftest.$ac_ext <<_ACEOF
11650 /* end confdefs.h.  */
11651
11652 /* Override any gcc2 internal prototype to avoid an error.  */
11653 #ifdef __cplusplus
11654 extern "C"
11655 #endif
11656 /* We use char because int might match the return type of a gcc2
11657    builtin and then its argument prototype would still apply.  */
11658 char dld_link ();
11659 int
11660 main ()
11661 {
11662 dld_link ();
11663   ;
11664   return 0;
11665 }
11666 _ACEOF
11667 rm -f conftest.$ac_objext conftest$ac_exeext
11668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11669   (eval $ac_link) 2>&5
11670   ac_status=$?
11671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672   (exit $ac_status); } &&
11673          { ac_try='test -s conftest$ac_exeext'
11674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675   (eval $ac_try) 2>&5
11676   ac_status=$?
11677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678   (exit $ac_status); }; }; then
11679   ac_cv_lib_dld_dld_link=yes
11680 else
11681   echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11683
11684 ac_cv_lib_dld_dld_link=no
11685 fi
11686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11687 LIBS=$ac_check_lib_save_LIBS
11688 fi
11689 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11690 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11691 if test $ac_cv_lib_dld_dld_link = yes; then
11692   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11693 fi
11694
11695
11696 fi
11697
11698
11699 fi
11700
11701
11702 fi
11703
11704
11705 fi
11706
11707
11708 fi
11709
11710     ;;
11711   esac
11712
11713   if test "x$lt_cv_dlopen" != xno; then
11714     enable_dlopen=yes
11715   else
11716     enable_dlopen=no
11717   fi
11718
11719   case $lt_cv_dlopen in
11720   dlopen)
11721     save_CPPFLAGS="$CPPFLAGS"
11722     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11723
11724     save_LDFLAGS="$LDFLAGS"
11725     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11726
11727     save_LIBS="$LIBS"
11728     LIBS="$lt_cv_dlopen_libs $LIBS"
11729
11730     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11731 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11732 if test "${lt_cv_dlopen_self+set}" = set; then
11733   echo $ECHO_N "(cached) $ECHO_C" >&6
11734 else
11735           if test "$cross_compiling" = yes; then :
11736   lt_cv_dlopen_self=cross
11737 else
11738   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11739   lt_status=$lt_dlunknown
11740   cat > conftest.$ac_ext <<EOF
11741 #line 11741 "configure"
11742 #include "confdefs.h"
11743
11744 #if HAVE_DLFCN_H
11745 #include <dlfcn.h>
11746 #endif
11747
11748 #include <stdio.h>
11749
11750 #ifdef RTLD_GLOBAL
11751 #  define LT_DLGLOBAL           RTLD_GLOBAL
11752 #else
11753 #  ifdef DL_GLOBAL
11754 #    define LT_DLGLOBAL         DL_GLOBAL
11755 #  else
11756 #    define LT_DLGLOBAL         0
11757 #  endif
11758 #endif
11759
11760 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11761    find out it does not work in some platform. */
11762 #ifndef LT_DLLAZY_OR_NOW
11763 #  ifdef RTLD_LAZY
11764 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11765 #  else
11766 #    ifdef DL_LAZY
11767 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11768 #    else
11769 #      ifdef RTLD_NOW
11770 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11771 #      else
11772 #        ifdef DL_NOW
11773 #          define LT_DLLAZY_OR_NOW      DL_NOW
11774 #        else
11775 #          define LT_DLLAZY_OR_NOW      0
11776 #        endif
11777 #      endif
11778 #    endif
11779 #  endif
11780 #endif
11781
11782 #ifdef __cplusplus
11783 extern "C" void exit (int);
11784 #endif
11785
11786 void fnord() { int i=42;}
11787 int main ()
11788 {
11789   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11790   int status = $lt_dlunknown;
11791
11792   if (self)
11793     {
11794       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11795       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11796       /* dlclose (self); */
11797     }
11798
11799     exit (status);
11800 }
11801 EOF
11802   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11803   (eval $ac_link) 2>&5
11804   ac_status=$?
11805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11807     (./conftest; exit; ) 2>/dev/null
11808     lt_status=$?
11809     case x$lt_status in
11810       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11811       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11812       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11813     esac
11814   else :
11815     # compilation failed
11816     lt_cv_dlopen_self=no
11817   fi
11818 fi
11819 rm -fr conftest*
11820
11821
11822 fi
11823 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11824 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11825
11826     if test "x$lt_cv_dlopen_self" = xyes; then
11827       LDFLAGS="$LDFLAGS $link_static_flag"
11828       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11829 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11830 if test "${lt_cv_dlopen_self_static+set}" = set; then
11831   echo $ECHO_N "(cached) $ECHO_C" >&6
11832 else
11833           if test "$cross_compiling" = yes; then :
11834   lt_cv_dlopen_self_static=cross
11835 else
11836   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11837   lt_status=$lt_dlunknown
11838   cat > conftest.$ac_ext <<EOF
11839 #line 11839 "configure"
11840 #include "confdefs.h"
11841
11842 #if HAVE_DLFCN_H
11843 #include <dlfcn.h>
11844 #endif
11845
11846 #include <stdio.h>
11847
11848 #ifdef RTLD_GLOBAL
11849 #  define LT_DLGLOBAL           RTLD_GLOBAL
11850 #else
11851 #  ifdef DL_GLOBAL
11852 #    define LT_DLGLOBAL         DL_GLOBAL
11853 #  else
11854 #    define LT_DLGLOBAL         0
11855 #  endif
11856 #endif
11857
11858 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11859    find out it does not work in some platform. */
11860 #ifndef LT_DLLAZY_OR_NOW
11861 #  ifdef RTLD_LAZY
11862 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11863 #  else
11864 #    ifdef DL_LAZY
11865 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11866 #    else
11867 #      ifdef RTLD_NOW
11868 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11869 #      else
11870 #        ifdef DL_NOW
11871 #          define LT_DLLAZY_OR_NOW      DL_NOW
11872 #        else
11873 #          define LT_DLLAZY_OR_NOW      0
11874 #        endif
11875 #      endif
11876 #    endif
11877 #  endif
11878 #endif
11879
11880 #ifdef __cplusplus
11881 extern "C" void exit (int);
11882 #endif
11883
11884 void fnord() { int i=42;}
11885 int main ()
11886 {
11887   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11888   int status = $lt_dlunknown;
11889
11890   if (self)
11891     {
11892       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11893       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11894       /* dlclose (self); */
11895     }
11896
11897     exit (status);
11898 }
11899 EOF
11900   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11901   (eval $ac_link) 2>&5
11902   ac_status=$?
11903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11905     (./conftest; exit; ) 2>/dev/null
11906     lt_status=$?
11907     case x$lt_status in
11908       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11909       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11910       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11911     esac
11912   else :
11913     # compilation failed
11914     lt_cv_dlopen_self_static=no
11915   fi
11916 fi
11917 rm -fr conftest*
11918
11919
11920 fi
11921 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11922 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11923     fi
11924
11925     CPPFLAGS="$save_CPPFLAGS"
11926     LDFLAGS="$save_LDFLAGS"
11927     LIBS="$save_LIBS"
11928     ;;
11929   esac
11930
11931   case $lt_cv_dlopen_self in
11932   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11933   *) enable_dlopen_self=unknown ;;
11934   esac
11935
11936   case $lt_cv_dlopen_self_static in
11937   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11938   *) enable_dlopen_self_static=unknown ;;
11939   esac
11940 fi
11941
11942
11943 # The else clause should only fire when bootstrapping the
11944 # libtool distribution, otherwise you forgot to ship ltmain.sh
11945 # with your package, and you will get complaints that there are
11946 # no rules to generate ltmain.sh.
11947 if test -f "$ltmain"; then
11948   # See if we are running on zsh, and set the options which allow our commands through
11949   # without removal of \ escapes.
11950   if test -n "${ZSH_VERSION+set}" ; then
11951     setopt NO_GLOB_SUBST
11952   fi
11953   # Now quote all the things that may contain metacharacters while being
11954   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11955   # variables and quote the copies for generation of the libtool script.
11956   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11957     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11958     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11959     deplibs_check_method reload_flag reload_cmds need_locks \
11960     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11961     lt_cv_sys_global_symbol_to_c_name_address \
11962     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11963     old_postinstall_cmds old_postuninstall_cmds \
11964     compiler_CXX \
11965     CC_CXX \
11966     LD_CXX \
11967     lt_prog_compiler_wl_CXX \
11968     lt_prog_compiler_pic_CXX \
11969     lt_prog_compiler_static_CXX \
11970     lt_prog_compiler_no_builtin_flag_CXX \
11971     export_dynamic_flag_spec_CXX \
11972     thread_safe_flag_spec_CXX \
11973     whole_archive_flag_spec_CXX \
11974     enable_shared_with_static_runtimes_CXX \
11975     old_archive_cmds_CXX \
11976     old_archive_from_new_cmds_CXX \
11977     predep_objects_CXX \
11978     postdep_objects_CXX \
11979     predeps_CXX \
11980     postdeps_CXX \
11981     compiler_lib_search_path_CXX \
11982     archive_cmds_CXX \
11983     archive_expsym_cmds_CXX \
11984     postinstall_cmds_CXX \
11985     postuninstall_cmds_CXX \
11986     old_archive_from_expsyms_cmds_CXX \
11987     allow_undefined_flag_CXX \
11988     no_undefined_flag_CXX \
11989     export_symbols_cmds_CXX \
11990     hardcode_libdir_flag_spec_CXX \
11991     hardcode_libdir_flag_spec_ld_CXX \
11992     hardcode_libdir_separator_CXX \
11993     hardcode_automatic_CXX \
11994     module_cmds_CXX \
11995     module_expsym_cmds_CXX \
11996     lt_cv_prog_compiler_c_o_CXX \
11997     exclude_expsyms_CXX \
11998     include_expsyms_CXX; do
11999
12000     case $var in
12001     old_archive_cmds_CXX | \
12002     old_archive_from_new_cmds_CXX | \
12003     archive_cmds_CXX | \
12004     archive_expsym_cmds_CXX | \
12005     module_cmds_CXX | \
12006     module_expsym_cmds_CXX | \
12007     old_archive_from_expsyms_cmds_CXX | \
12008     export_symbols_cmds_CXX | \
12009     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12010     postinstall_cmds | postuninstall_cmds | \
12011     old_postinstall_cmds | old_postuninstall_cmds | \
12012     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12013       # Double-quote double-evaled strings.
12014       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12015       ;;
12016     *)
12017       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12018       ;;
12019     esac
12020   done
12021
12022   case $lt_echo in
12023   *'\$0 --fallback-echo"')
12024     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12025     ;;
12026   esac
12027
12028 cfgfile="$ofile"
12029
12030   cat <<__EOF__ >> "$cfgfile"
12031 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12032
12033 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12034
12035 # Shell to use when invoking shell scripts.
12036 SHELL=$lt_SHELL
12037
12038 # Whether or not to build shared libraries.
12039 build_libtool_libs=$enable_shared
12040
12041 # Whether or not to build static libraries.
12042 build_old_libs=$enable_static
12043
12044 # Whether or not to add -lc for building shared libraries.
12045 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12046
12047 # Whether or not to disallow shared libs when runtime libs are static
12048 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12049
12050 # Whether or not to optimize for fast installation.
12051 fast_install=$enable_fast_install
12052
12053 # The host system.
12054 host_alias=$host_alias
12055 host=$host
12056
12057 # An echo program that does not interpret backslashes.
12058 echo=$lt_echo
12059
12060 # The archiver.
12061 AR=$lt_AR
12062 AR_FLAGS=$lt_AR_FLAGS
12063
12064 # A C compiler.
12065 LTCC=$lt_LTCC
12066
12067 # A language-specific compiler.
12068 CC=$lt_compiler_CXX
12069
12070 # Is the compiler the GNU C compiler?
12071 with_gcc=$GCC_CXX
12072
12073 # An ERE matcher.
12074 EGREP=$lt_EGREP
12075
12076 # The linker used to build libraries.
12077 LD=$lt_LD_CXX
12078
12079 # Whether we need hard or soft links.
12080 LN_S=$lt_LN_S
12081
12082 # A BSD-compatible nm program.
12083 NM=$lt_NM
12084
12085 # A symbol stripping program
12086 STRIP=$STRIP
12087
12088 # Used to examine libraries when file_magic_cmd begins "file"
12089 MAGIC_CMD=$MAGIC_CMD
12090
12091 # Used on cygwin: DLL creation program.
12092 DLLTOOL="$DLLTOOL"
12093
12094 # Used on cygwin: object dumper.
12095 OBJDUMP="$OBJDUMP"
12096
12097 # Used on cygwin: assembler.
12098 AS="$AS"
12099
12100 # The name of the directory that contains temporary libtool files.
12101 objdir=$objdir
12102
12103 # How to create reloadable object files.
12104 reload_flag=$lt_reload_flag
12105 reload_cmds=$lt_reload_cmds
12106
12107 # How to pass a linker flag through the compiler.
12108 wl=$lt_lt_prog_compiler_wl_CXX
12109
12110 # Object file suffix (normally "o").
12111 objext="$ac_objext"
12112
12113 # Old archive suffix (normally "a").
12114 libext="$libext"
12115
12116 # Shared library suffix (normally ".so").
12117 shrext='$shrext'
12118
12119 # Executable file suffix (normally "").
12120 exeext="$exeext"
12121
12122 # Additional compiler flags for building library objects.
12123 pic_flag=$lt_lt_prog_compiler_pic_CXX
12124 pic_mode=$pic_mode
12125
12126 # What is the maximum length of a command?
12127 max_cmd_len=$lt_cv_sys_max_cmd_len
12128
12129 # Does compiler simultaneously support -c and -o options?
12130 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12131
12132 # Must we lock files when doing compilation ?
12133 need_locks=$lt_need_locks
12134
12135 # Do we need the lib prefix for modules?
12136 need_lib_prefix=$need_lib_prefix
12137
12138 # Do we need a version for libraries?
12139 need_version=$need_version
12140
12141 # Whether dlopen is supported.
12142 dlopen_support=$enable_dlopen
12143
12144 # Whether dlopen of programs is supported.
12145 dlopen_self=$enable_dlopen_self
12146
12147 # Whether dlopen of statically linked programs is supported.
12148 dlopen_self_static=$enable_dlopen_self_static
12149
12150 # Compiler flag to prevent dynamic linking.
12151 link_static_flag=$lt_lt_prog_compiler_static_CXX
12152
12153 # Compiler flag to turn off builtin functions.
12154 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12155
12156 # Compiler flag to allow reflexive dlopens.
12157 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12158
12159 # Compiler flag to generate shared objects directly from archives.
12160 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12161
12162 # Compiler flag to generate thread-safe objects.
12163 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12164
12165 # Library versioning type.
12166 version_type=$version_type
12167
12168 # Format of library name prefix.
12169 libname_spec=$lt_libname_spec
12170
12171 # List of archive names.  First name is the real one, the rest are links.
12172 # The last name is the one that the linker finds with -lNAME.
12173 library_names_spec=$lt_library_names_spec
12174
12175 # The coded name of the library, if different from the real name.
12176 soname_spec=$lt_soname_spec
12177
12178 # Commands used to build and install an old-style archive.
12179 RANLIB=$lt_RANLIB
12180 old_archive_cmds=$lt_old_archive_cmds_CXX
12181 old_postinstall_cmds=$lt_old_postinstall_cmds
12182 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12183
12184 # Create an old-style archive from a shared archive.
12185 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12186
12187 # Create a temporary old-style archive to link instead of a shared archive.
12188 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12189
12190 # Commands used to build and install a shared archive.
12191 archive_cmds=$lt_archive_cmds_CXX
12192 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12193 postinstall_cmds=$lt_postinstall_cmds
12194 postuninstall_cmds=$lt_postuninstall_cmds
12195
12196 # Commands used to build a loadable module (assumed same as above if empty)
12197 module_cmds=$lt_module_cmds_CXX
12198 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12199
12200 # Commands to strip libraries.
12201 old_striplib=$lt_old_striplib
12202 striplib=$lt_striplib
12203
12204 # Dependencies to place before the objects being linked to create a
12205 # shared library.
12206 predep_objects=$lt_predep_objects_CXX
12207
12208 # Dependencies to place after the objects being linked to create a
12209 # shared library.
12210 postdep_objects=$lt_postdep_objects_CXX
12211
12212 # Dependencies to place before the objects being linked to create a
12213 # shared library.
12214 predeps=$lt_predeps_CXX
12215
12216 # Dependencies to place after the objects being linked to create a
12217 # shared library.
12218 postdeps=$lt_postdeps_CXX
12219
12220 # The library search path used internally by the compiler when linking
12221 # a shared library.
12222 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12223
12224 # Method to check whether dependent libraries are shared objects.
12225 deplibs_check_method=$lt_deplibs_check_method
12226
12227 # Command to use when deplibs_check_method == file_magic.
12228 file_magic_cmd=$lt_file_magic_cmd
12229
12230 # Flag that allows shared libraries with undefined symbols to be built.
12231 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12232
12233 # Flag that forces no undefined symbols.
12234 no_undefined_flag=$lt_no_undefined_flag_CXX
12235
12236 # Commands used to finish a libtool library installation in a directory.
12237 finish_cmds=$lt_finish_cmds
12238
12239 # Same as above, but a single script fragment to be evaled but not shown.
12240 finish_eval=$lt_finish_eval
12241
12242 # Take the output of nm and produce a listing of raw symbols and C names.
12243 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12244
12245 # Transform the output of nm in a proper C declaration
12246 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12247
12248 # Transform the output of nm in a C name address pair
12249 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12250
12251 # This is the shared library runtime path variable.
12252 runpath_var=$runpath_var
12253
12254 # This is the shared library path variable.
12255 shlibpath_var=$shlibpath_var
12256
12257 # Is shlibpath searched before the hard-coded library search path?
12258 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12259
12260 # How to hardcode a shared library path into an executable.
12261 hardcode_action=$hardcode_action_CXX
12262
12263 # Whether we should hardcode library paths into libraries.
12264 hardcode_into_libs=$hardcode_into_libs
12265
12266 # Flag to hardcode \$libdir into a binary during linking.
12267 # This must work even if \$libdir does not exist.
12268 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12269
12270 # If ld is used when linking, flag to hardcode \$libdir into
12271 # a binary during linking. This must work even if \$libdir does
12272 # not exist.
12273 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12274
12275 # Whether we need a single -rpath flag with a separated argument.
12276 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12277
12278 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12279 # resulting binary.
12280 hardcode_direct=$hardcode_direct_CXX
12281
12282 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12283 # resulting binary.
12284 hardcode_minus_L=$hardcode_minus_L_CXX
12285
12286 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12287 # the resulting binary.
12288 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12289
12290 # Set to yes if building a shared library automatically hardcodes DIR into the library
12291 # and all subsequent libraries and executables linked against it.
12292 hardcode_automatic=$hardcode_automatic_CXX
12293
12294 # Variables whose values should be saved in libtool wrapper scripts and
12295 # restored at relink time.
12296 variables_saved_for_relink="$variables_saved_for_relink"
12297
12298 # Whether libtool must link a program against all its dependency libraries.
12299 link_all_deplibs=$link_all_deplibs_CXX
12300
12301 # Compile-time system search path for libraries
12302 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12303
12304 # Run-time system search path for libraries
12305 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12306
12307 # Fix the shell variable \$srcfile for the compiler.
12308 fix_srcfile_path="$fix_srcfile_path_CXX"
12309
12310 # Set to yes if exported symbols are required.
12311 always_export_symbols=$always_export_symbols_CXX
12312
12313 # The commands to list exported symbols.
12314 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12315
12316 # The commands to extract the exported symbol list from a shared archive.
12317 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12318
12319 # Symbols that should not be listed in the preloaded symbols.
12320 exclude_expsyms=$lt_exclude_expsyms_CXX
12321
12322 # Symbols that must always be exported.
12323 include_expsyms=$lt_include_expsyms_CXX
12324
12325 # ### END LIBTOOL TAG CONFIG: $tagname
12326
12327 __EOF__
12328
12329
12330 else
12331   # If there is no Makefile yet, we rely on a make rule to execute
12332   # `config.status --recheck' to rerun these tests and create the
12333   # libtool script then.
12334   test -f Makefile && make "$ltmain"
12335 fi
12336
12337
12338 ac_ext=c
12339 ac_cpp='$CPP $CPPFLAGS'
12340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12343
12344 CC=$lt_save_CC
12345 LDCXX=$LD
12346 LD=$lt_save_LD
12347 GCC=$lt_save_GCC
12348 with_gnu_ldcxx=$with_gnu_ld
12349 with_gnu_ld=$lt_save_with_gnu_ld
12350 lt_cv_path_LDCXX=$lt_cv_path_LD
12351 lt_cv_path_LD=$lt_save_path_LD
12352 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12353 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12354
12355         else
12356           tagname=""
12357         fi
12358         ;;
12359
12360       F77)
12361         if test -n "$F77" && test "X$F77" != "Xno"; then
12362
12363 ac_ext=f
12364 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12365 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12366 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12367
12368
12369 archive_cmds_need_lc_F77=no
12370 allow_undefined_flag_F77=
12371 always_export_symbols_F77=no
12372 archive_expsym_cmds_F77=
12373 export_dynamic_flag_spec_F77=
12374 hardcode_direct_F77=no
12375 hardcode_libdir_flag_spec_F77=
12376 hardcode_libdir_flag_spec_ld_F77=
12377 hardcode_libdir_separator_F77=
12378 hardcode_minus_L_F77=no
12379 hardcode_automatic_F77=no
12380 module_cmds_F77=
12381 module_expsym_cmds_F77=
12382 link_all_deplibs_F77=unknown
12383 old_archive_cmds_F77=$old_archive_cmds
12384 no_undefined_flag_F77=
12385 whole_archive_flag_spec_F77=
12386 enable_shared_with_static_runtimes_F77=no
12387
12388 # Source file extension for f77 test sources.
12389 ac_ext=f
12390
12391 # Object file extension for compiled f77 test sources.
12392 objext=o
12393 objext_F77=$objext
12394
12395 # Code to be used in simple compile tests
12396 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12397
12398 # Code to be used in simple link tests
12399 lt_simple_link_test_code="      program t\n      end\n"
12400
12401 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12402
12403 # If no C compiler was specified, use CC.
12404 LTCC=${LTCC-"$CC"}
12405
12406 # Allow CC to be a program name with arguments.
12407 compiler=$CC
12408
12409
12410 # Allow CC to be a program name with arguments.
12411 lt_save_CC="$CC"
12412 CC=${F77-"f77"}
12413 compiler=$CC
12414 compiler_F77=$CC
12415 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12416
12417 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12418 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12419 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12420 echo "${ECHO_T}$can_build_shared" >&6
12421
12422 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12423 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12424 test "$can_build_shared" = "no" && enable_shared=no
12425
12426 # On AIX, shared libraries and static libraries use the same namespace, and
12427 # are all built from PIC.
12428 case "$host_os" in
12429 aix3*)
12430   test "$enable_shared" = yes && enable_static=no
12431   if test -n "$RANLIB"; then
12432     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12433     postinstall_cmds='$RANLIB $lib'
12434   fi
12435   ;;
12436 aix4*)
12437   test "$enable_shared" = yes && enable_static=no
12438   ;;
12439 esac
12440 echo "$as_me:$LINENO: result: $enable_shared" >&5
12441 echo "${ECHO_T}$enable_shared" >&6
12442
12443 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12444 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12445 # Make sure either enable_shared or enable_static is yes.
12446 test "$enable_shared" = yes || enable_static=yes
12447 echo "$as_me:$LINENO: result: $enable_static" >&5
12448 echo "${ECHO_T}$enable_static" >&6
12449
12450 test "$ld_shlibs_F77" = no && can_build_shared=no
12451
12452 GCC_F77="$G77"
12453 LD_F77="$LD"
12454
12455 lt_prog_compiler_wl_F77=
12456 lt_prog_compiler_pic_F77=
12457 lt_prog_compiler_static_F77=
12458
12459 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12460 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12461
12462   if test "$GCC" = yes; then
12463     lt_prog_compiler_wl_F77='-Wl,'
12464     lt_prog_compiler_static_F77='-static'
12465
12466     case $host_os in
12467       aix*)
12468       # All AIX code is PIC.
12469       if test "$host_cpu" = ia64; then
12470         # AIX 5 now supports IA64 processor
12471         lt_prog_compiler_static_F77='-Bstatic'
12472       fi
12473       ;;
12474
12475     amigaos*)
12476       # FIXME: we need at least 68020 code to build shared libraries, but
12477       # adding the `-m68020' flag to GCC prevents building anything better,
12478       # like `-m68040'.
12479       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12480       ;;
12481
12482     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12483       # PIC is the default for these OSes.
12484       ;;
12485
12486     mingw* | pw32* | os2*)
12487       # This hack is so that the source file can tell whether it is being
12488       # built for inclusion in a dll (and should export symbols for example).
12489       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12490       ;;
12491
12492     darwin* | rhapsody*)
12493       # PIC is the default on this platform
12494       # Common symbols not allowed in MH_DYLIB files
12495       lt_prog_compiler_pic_F77='-fno-common'
12496       ;;
12497
12498     msdosdjgpp*)
12499       # Just because we use GCC doesn't mean we suddenly get shared libraries
12500       # on systems that don't support them.
12501       lt_prog_compiler_can_build_shared_F77=no
12502       enable_shared=no
12503       ;;
12504
12505     sysv4*MP*)
12506       if test -d /usr/nec; then
12507         lt_prog_compiler_pic_F77=-Kconform_pic
12508       fi
12509       ;;
12510
12511     hpux*)
12512       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12513       # not for PA HP-UX.
12514       case "$host_cpu" in
12515       hppa*64*|ia64*)
12516         # +Z the default
12517         ;;
12518       *)
12519         lt_prog_compiler_pic_F77='-fPIC'
12520         ;;
12521       esac
12522       ;;
12523
12524     *)
12525       lt_prog_compiler_pic_F77='-fPIC'
12526       ;;
12527     esac
12528   else
12529     # PORTME Check for flag to pass linker flags through the system compiler.
12530     case $host_os in
12531     aix*)
12532       lt_prog_compiler_wl_F77='-Wl,'
12533       if test "$host_cpu" = ia64; then
12534         # AIX 5 now supports IA64 processor
12535         lt_prog_compiler_static_F77='-Bstatic'
12536       else
12537         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12538       fi
12539       ;;
12540
12541     mingw* | pw32* | os2*)
12542       # This hack is so that the source file can tell whether it is being
12543       # built for inclusion in a dll (and should export symbols for example).
12544       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12545       ;;
12546
12547     hpux9* | hpux10* | hpux11*)
12548       lt_prog_compiler_wl_F77='-Wl,'
12549       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12550       # not for PA HP-UX.
12551       case "$host_cpu" in
12552       hppa*64*|ia64*)
12553         # +Z the default
12554         ;;
12555       *)
12556         lt_prog_compiler_pic_F77='+Z'
12557         ;;
12558       esac
12559       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12560       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12561       ;;
12562
12563     irix5* | irix6* | nonstopux*)
12564       lt_prog_compiler_wl_F77='-Wl,'
12565       # PIC (with -KPIC) is the default.
12566       lt_prog_compiler_static_F77='-non_shared'
12567       ;;
12568
12569     newsos6)
12570       lt_prog_compiler_pic_F77='-KPIC'
12571       lt_prog_compiler_static_F77='-Bstatic'
12572       ;;
12573
12574     linux*)
12575       case $CC in
12576       icc|ecc)
12577         lt_prog_compiler_wl_F77='-Wl,'
12578         lt_prog_compiler_pic_F77='-KPIC'
12579         lt_prog_compiler_static_F77='-static'
12580         ;;
12581       ccc)
12582         lt_prog_compiler_wl_F77='-Wl,'
12583         # All Alpha code is PIC.
12584         lt_prog_compiler_static_F77='-non_shared'
12585         ;;
12586       esac
12587       ;;
12588
12589     osf3* | osf4* | osf5*)
12590       lt_prog_compiler_wl_F77='-Wl,'
12591       # All OSF/1 code is PIC.
12592       lt_prog_compiler_static_F77='-non_shared'
12593       ;;
12594
12595     sco3.2v5*)
12596       lt_prog_compiler_pic_F77='-Kpic'
12597       lt_prog_compiler_static_F77='-dn'
12598       ;;
12599
12600     solaris*)
12601       lt_prog_compiler_wl_F77='-Wl,'
12602       lt_prog_compiler_pic_F77='-KPIC'
12603       lt_prog_compiler_static_F77='-Bstatic'
12604       ;;
12605
12606     sunos4*)
12607       lt_prog_compiler_wl_F77='-Qoption ld '
12608       lt_prog_compiler_pic_F77='-PIC'
12609       lt_prog_compiler_static_F77='-Bstatic'
12610       ;;
12611
12612     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12613       lt_prog_compiler_wl_F77='-Wl,'
12614       lt_prog_compiler_pic_F77='-KPIC'
12615       lt_prog_compiler_static_F77='-Bstatic'
12616       ;;
12617
12618     sysv4*MP*)
12619       if test -d /usr/nec ;then
12620         lt_prog_compiler_pic_F77='-Kconform_pic'
12621         lt_prog_compiler_static_F77='-Bstatic'
12622       fi
12623       ;;
12624
12625     uts4*)
12626       lt_prog_compiler_pic_F77='-pic'
12627       lt_prog_compiler_static_F77='-Bstatic'
12628       ;;
12629
12630     *)
12631       lt_prog_compiler_can_build_shared_F77=no
12632       ;;
12633     esac
12634   fi
12635
12636 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12637 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12638
12639 #
12640 # Check to make sure the PIC flag actually works.
12641 #
12642 if test -n "$lt_prog_compiler_pic_F77"; then
12643   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12644 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12645 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12646   echo $ECHO_N "(cached) $ECHO_C" >&6
12647 else
12648   lt_prog_compiler_pic_works_F77=no
12649   ac_outfile=conftest.$ac_objext
12650    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12651    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12652    # Insert the option either (1) after the last *FLAGS variable, or
12653    # (2) before a word containing "conftest.", or (3) at the end.
12654    # Note that $ac_compile itself does not contain backslashes and begins
12655    # with a dollar sign (not a hyphen), so the echo should work correctly.
12656    # The option is referenced via a variable to avoid confusing sed.
12657    lt_compile=`echo "$ac_compile" | $SED \
12658    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12659    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12660    -e 's:$: $lt_compiler_flag:'`
12661    (eval echo "\"\$as_me:12661: $lt_compile\"" >&5)
12662    (eval "$lt_compile" 2>conftest.err)
12663    ac_status=$?
12664    cat conftest.err >&5
12665    echo "$as_me:12665: \$? = $ac_status" >&5
12666    if (exit $ac_status) && test -s "$ac_outfile"; then
12667      # The compiler can only warn and ignore the option if not recognized
12668      # So say no if there are warnings
12669      if test ! -s conftest.err; then
12670        lt_prog_compiler_pic_works_F77=yes
12671      fi
12672    fi
12673    $rm conftest*
12674
12675 fi
12676 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12677 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12678
12679 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12680     case $lt_prog_compiler_pic_F77 in
12681      "" | " "*) ;;
12682      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12683      esac
12684 else
12685     lt_prog_compiler_pic_F77=
12686      lt_prog_compiler_can_build_shared_F77=no
12687 fi
12688
12689 fi
12690 case "$host_os" in
12691   # For platforms which do not support PIC, -DPIC is meaningless:
12692   *djgpp*)
12693     lt_prog_compiler_pic_F77=
12694     ;;
12695   *)
12696     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12697     ;;
12698 esac
12699
12700 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12701 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12702 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12703   echo $ECHO_N "(cached) $ECHO_C" >&6
12704 else
12705   lt_cv_prog_compiler_c_o_F77=no
12706    $rm -r conftest 2>/dev/null
12707    mkdir conftest
12708    cd conftest
12709    mkdir out
12710    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12711
12712    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12713    # that will create temporary files in the current directory regardless of
12714    # the output directory.  Thus, making CWD read-only will cause this test
12715    # to fail, enabling locking or at least warning the user not to do parallel
12716    # builds.
12717    chmod -w .
12718
12719    lt_compiler_flag="-o out/conftest2.$ac_objext"
12720    # Insert the option either (1) after the last *FLAGS variable, or
12721    # (2) before a word containing "conftest.", or (3) at the end.
12722    # Note that $ac_compile itself does not contain backslashes and begins
12723    # with a dollar sign (not a hyphen), so the echo should work correctly.
12724    lt_compile=`echo "$ac_compile" | $SED \
12725    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12726    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12727    -e 's:$: $lt_compiler_flag:'`
12728    (eval echo "\"\$as_me:12728: $lt_compile\"" >&5)
12729    (eval "$lt_compile" 2>out/conftest.err)
12730    ac_status=$?
12731    cat out/conftest.err >&5
12732    echo "$as_me:12732: \$? = $ac_status" >&5
12733    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12734    then
12735      # The compiler can only warn and ignore the option if not recognized
12736      # So say no if there are warnings
12737      if test ! -s out/conftest.err; then
12738        lt_cv_prog_compiler_c_o_F77=yes
12739      fi
12740    fi
12741    chmod u+w .
12742    $rm conftest* out/*
12743    rmdir out
12744    cd ..
12745    rmdir conftest
12746    $rm conftest*
12747
12748 fi
12749 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12750 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12751
12752
12753 hard_links="nottested"
12754 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12755   # do not overwrite the value of need_locks provided by the user
12756   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12757 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12758   hard_links=yes
12759   $rm conftest*
12760   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12761   touch conftest.a
12762   ln conftest.a conftest.b 2>&5 || hard_links=no
12763   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12764   echo "$as_me:$LINENO: result: $hard_links" >&5
12765 echo "${ECHO_T}$hard_links" >&6
12766   if test "$hard_links" = no; then
12767     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12768 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12769     need_locks=warn
12770   fi
12771 else
12772   need_locks=no
12773 fi
12774
12775 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12776 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12777
12778   runpath_var=
12779   allow_undefined_flag_F77=
12780   enable_shared_with_static_runtimes_F77=no
12781   archive_cmds_F77=
12782   archive_expsym_cmds_F77=
12783   old_archive_From_new_cmds_F77=
12784   old_archive_from_expsyms_cmds_F77=
12785   export_dynamic_flag_spec_F77=
12786   whole_archive_flag_spec_F77=
12787   thread_safe_flag_spec_F77=
12788   hardcode_libdir_flag_spec_F77=
12789   hardcode_libdir_flag_spec_ld_F77=
12790   hardcode_libdir_separator_F77=
12791   hardcode_direct_F77=no
12792   hardcode_minus_L_F77=no
12793   hardcode_shlibpath_var_F77=unsupported
12794   link_all_deplibs_F77=unknown
12795   hardcode_automatic_F77=no
12796   module_cmds_F77=
12797   module_expsym_cmds_F77=
12798   always_export_symbols_F77=no
12799   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12800   # include_expsyms should be a list of space-separated symbols to be *always*
12801   # included in the symbol list
12802   include_expsyms_F77=
12803   # exclude_expsyms can be an extended regexp of symbols to exclude
12804   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12805   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12806   # as well as any symbol that contains `d'.
12807   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12808   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12809   # platforms (ab)use it in PIC code, but their linkers get confused if
12810   # the symbol is explicitly referenced.  Since portable code cannot
12811   # rely on this symbol name, it's probably fine to never include it in
12812   # preloaded symbol tables.
12813   extract_expsyms_cmds=
12814
12815   case $host_os in
12816   cygwin* | mingw* | pw32*)
12817     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12818     # When not using gcc, we currently assume that we are using
12819     # Microsoft Visual C++.
12820     if test "$GCC" != yes; then
12821       with_gnu_ld=no
12822     fi
12823     ;;
12824   openbsd*)
12825     with_gnu_ld=no
12826     ;;
12827   esac
12828
12829   ld_shlibs_F77=yes
12830   if test "$with_gnu_ld" = yes; then
12831     # If archive_cmds runs LD, not CC, wlarc should be empty
12832     wlarc='${wl}'
12833
12834     # See if GNU ld supports shared libraries.
12835     case $host_os in
12836     aix3* | aix4* | aix5*)
12837       # On AIX/PPC, the GNU linker is very broken
12838       if test "$host_cpu" != ia64; then
12839         ld_shlibs_F77=no
12840         cat <<EOF 1>&2
12841
12842 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12843 *** to be unable to reliably create shared libraries on AIX.
12844 *** Therefore, libtool is disabling shared libraries support.  If you
12845 *** really care for shared libraries, you may want to modify your PATH
12846 *** so that a non-GNU linker is found, and then restart.
12847
12848 EOF
12849       fi
12850       ;;
12851
12852     amigaos*)
12853       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)'
12854       hardcode_libdir_flag_spec_F77='-L$libdir'
12855       hardcode_minus_L_F77=yes
12856
12857       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12858       # that the semantics of dynamic libraries on AmigaOS, at least up
12859       # to version 4, is to share data among multiple programs linked
12860       # with the same dynamic library.  Since this doesn't match the
12861       # behavior of shared libraries on other platforms, we can't use
12862       # them.
12863       ld_shlibs_F77=no
12864       ;;
12865
12866     beos*)
12867       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12868         allow_undefined_flag_F77=unsupported
12869         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12870         # support --undefined.  This deserves some investigation.  FIXME
12871         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12872       else
12873         ld_shlibs_F77=no
12874       fi
12875       ;;
12876
12877     cygwin* | mingw* | pw32*)
12878       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12879       # as there is no search path for DLLs.
12880       hardcode_libdir_flag_spec_F77='-L$libdir'
12881       allow_undefined_flag_F77=unsupported
12882       always_export_symbols_F77=no
12883       enable_shared_with_static_runtimes_F77=yes
12884       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12885
12886       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12887         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12888         # If the export-symbols file already is a .def file (1st line
12889         # is EXPORTS), use it as is; otherwise, prepend...
12890         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12891           cp $export_symbols $output_objdir/$soname.def;
12892         else
12893           echo EXPORTS > $output_objdir/$soname.def;
12894           cat $export_symbols >> $output_objdir/$soname.def;
12895         fi~
12896         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12897       else
12898         ld_shlibs=no
12899       fi
12900       ;;
12901
12902     netbsd*)
12903       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12904         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12905         wlarc=
12906       else
12907         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12908         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12909       fi
12910       ;;
12911
12912     solaris* | sysv5*)
12913       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12914         ld_shlibs_F77=no
12915         cat <<EOF 1>&2
12916
12917 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12918 *** create shared libraries on Solaris systems.  Therefore, libtool
12919 *** is disabling shared libraries support.  We urge you to upgrade GNU
12920 *** binutils to release 2.9.1 or newer.  Another option is to modify
12921 *** your PATH or compiler configuration so that the native linker is
12922 *** used, and then restart.
12923
12924 EOF
12925       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12926         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12927         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12928       else
12929         ld_shlibs_F77=no
12930       fi
12931       ;;
12932
12933     sunos4*)
12934       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12935       wlarc=
12936       hardcode_direct_F77=yes
12937       hardcode_shlibpath_var_F77=no
12938       ;;
12939
12940     *)
12941       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12942         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12943         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12944       else
12945         ld_shlibs_F77=no
12946       fi
12947       ;;
12948     esac
12949
12950     if test "$ld_shlibs_F77" = yes; then
12951       runpath_var=LD_RUN_PATH
12952       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12953       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12954       # ancient GNU ld didn't support --whole-archive et. al.
12955       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12956         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12957       else
12958         whole_archive_flag_spec_F77=
12959       fi
12960     fi
12961   else
12962     # PORTME fill in a description of your system's linker (not GNU ld)
12963     case $host_os in
12964     aix3*)
12965       allow_undefined_flag_F77=unsupported
12966       always_export_symbols_F77=yes
12967       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'
12968       # Note: this linker hardcodes the directories in LIBPATH if there
12969       # are no directories specified by -L.
12970       hardcode_minus_L_F77=yes
12971       if test "$GCC" = yes && test -z "$link_static_flag"; then
12972         # Neither direct hardcoding nor static linking is supported with a
12973         # broken collect2.
12974         hardcode_direct_F77=unsupported
12975       fi
12976       ;;
12977
12978     aix4* | aix5*)
12979       if test "$host_cpu" = ia64; then
12980         # On IA64, the linker does run time linking by default, so we don't
12981         # have to do anything special.
12982         aix_use_runtimelinking=no
12983         exp_sym_flag='-Bexport'
12984         no_entry_flag=""
12985       else
12986         # If we're using GNU nm, then we don't want the "-C" option.
12987         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12988         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12989           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'
12990         else
12991           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'
12992         fi
12993         aix_use_runtimelinking=no
12994
12995         # Test if we are trying to use run time linking or normal
12996         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12997         # need to do runtime linking.
12998         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12999           for ld_flag in $LDFLAGS; do
13000           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13001             aix_use_runtimelinking=yes
13002             break
13003           fi
13004           done
13005         esac
13006
13007         exp_sym_flag='-bexport'
13008         no_entry_flag='-bnoentry'
13009       fi
13010
13011       # When large executables or shared objects are built, AIX ld can
13012       # have problems creating the table of contents.  If linking a library
13013       # or program results in "error TOC overflow" add -mminimal-toc to
13014       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13015       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13016
13017       archive_cmds_F77=''
13018       hardcode_direct_F77=yes
13019       hardcode_libdir_separator_F77=':'
13020       link_all_deplibs_F77=yes
13021
13022       if test "$GCC" = yes; then
13023         case $host_os in aix4.012|aix4.012.*)
13024         # We only want to do this on AIX 4.2 and lower, the check
13025         # below for broken collect2 doesn't work under 4.3+
13026           collect2name=`${CC} -print-prog-name=collect2`
13027           if test -f "$collect2name" && \
13028            strings "$collect2name" | grep resolve_lib_name >/dev/null
13029           then
13030           # We have reworked collect2
13031           hardcode_direct_F77=yes
13032           else
13033           # We have old collect2
13034           hardcode_direct_F77=unsupported
13035           # It fails to find uninstalled libraries when the uninstalled
13036           # path is not listed in the libpath.  Setting hardcode_minus_L
13037           # to unsupported forces relinking
13038           hardcode_minus_L_F77=yes
13039           hardcode_libdir_flag_spec_F77='-L$libdir'
13040           hardcode_libdir_separator_F77=
13041           fi
13042         esac
13043         shared_flag='-shared'
13044       else
13045         # not using gcc
13046         if test "$host_cpu" = ia64; then
13047         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13048         # chokes on -Wl,-G. The following line is correct:
13049           shared_flag='-G'
13050         else
13051         if test "$aix_use_runtimelinking" = yes; then
13052             shared_flag='${wl}-G'
13053           else
13054             shared_flag='${wl}-bM:SRE'
13055         fi
13056         fi
13057       fi
13058
13059       # It seems that -bexpall does not export symbols beginning with
13060       # underscore (_), so it is better to generate a list of symbols to export.
13061       always_export_symbols_F77=yes
13062       if test "$aix_use_runtimelinking" = yes; then
13063         # Warning - without using the other runtime loading flags (-brtl),
13064         # -berok will link without error, but may produce a broken library.
13065         allow_undefined_flag_F77='-berok'
13066        # Determine the default libpath from the value encoded in an empty executable.
13067        cat >conftest.$ac_ext <<_ACEOF
13068       program main
13069
13070       end
13071 _ACEOF
13072 rm -f conftest.$ac_objext conftest$ac_exeext
13073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13074   (eval $ac_link) 2>&5
13075   ac_status=$?
13076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077   (exit $ac_status); } &&
13078          { ac_try='test -s conftest$ac_exeext'
13079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13080   (eval $ac_try) 2>&5
13081   ac_status=$?
13082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083   (exit $ac_status); }; }; then
13084
13085 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13086 }'`
13087 # Check for a 64-bit object if we didn't find anything.
13088 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; }
13089 }'`; fi
13090 else
13091   echo "$as_me: failed program was:" >&5
13092 sed 's/^/| /' conftest.$ac_ext >&5
13093
13094 fi
13095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13096 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13097
13098        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13099         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"
13100        else
13101         if test "$host_cpu" = ia64; then
13102           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13103           allow_undefined_flag_F77="-z nodefs"
13104           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"
13105         else
13106          # Determine the default libpath from the value encoded in an empty executable.
13107          cat >conftest.$ac_ext <<_ACEOF
13108       program main
13109
13110       end
13111 _ACEOF
13112 rm -f conftest.$ac_objext conftest$ac_exeext
13113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13114   (eval $ac_link) 2>&5
13115   ac_status=$?
13116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117   (exit $ac_status); } &&
13118          { ac_try='test -s conftest$ac_exeext'
13119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120   (eval $ac_try) 2>&5
13121   ac_status=$?
13122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123   (exit $ac_status); }; }; then
13124
13125 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13126 }'`
13127 # Check for a 64-bit object if we didn't find anything.
13128 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; }
13129 }'`; fi
13130 else
13131   echo "$as_me: failed program was:" >&5
13132 sed 's/^/| /' conftest.$ac_ext >&5
13133
13134 fi
13135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13136 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13137
13138          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13139           # Warning - without using the other run time loading flags,
13140           # -berok will link without error, but may produce a broken library.
13141           no_undefined_flag_F77=' ${wl}-bernotok'
13142           allow_undefined_flag_F77=' ${wl}-berok'
13143           # -bexpall does not export symbols beginning with underscore (_)
13144           always_export_symbols_F77=yes
13145           # Exported symbols can be pulled into shared objects from archives
13146           whole_archive_flag_spec_F77=' '
13147           archive_cmds_need_lc_F77=yes
13148           # This is similar to how AIX traditionally builds it's shared libraries.
13149           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'
13150         fi
13151       fi
13152       ;;
13153
13154     amigaos*)
13155       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)'
13156       hardcode_libdir_flag_spec_F77='-L$libdir'
13157       hardcode_minus_L_F77=yes
13158       # see comment about different semantics on the GNU ld section
13159       ld_shlibs_F77=no
13160       ;;
13161
13162     bsdi4*)
13163       export_dynamic_flag_spec_F77=-rdynamic
13164       ;;
13165
13166     cygwin* | mingw* | pw32*)
13167       # When not using gcc, we currently assume that we are using
13168       # Microsoft Visual C++.
13169       # hardcode_libdir_flag_spec is actually meaningless, as there is
13170       # no search path for DLLs.
13171       hardcode_libdir_flag_spec_F77=' '
13172       allow_undefined_flag_F77=unsupported
13173       # Tell ltmain to make .lib files, not .a files.
13174       libext=lib
13175       # Tell ltmain to make .dll files, not .so files.
13176       shrext=".dll"
13177       # FIXME: Setting linknames here is a bad hack.
13178       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13179       # The linker will automatically build a .lib file if we build a DLL.
13180       old_archive_From_new_cmds_F77='true'
13181       # FIXME: Should let the user specify the lib program.
13182       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13183       fix_srcfile_path='`cygpath -w "$srcfile"`'
13184       enable_shared_with_static_runtimes_F77=yes
13185       ;;
13186
13187     darwin* | rhapsody*)
13188     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13189       archive_cmds_need_lc_F77=no
13190       case "$host_os" in
13191       rhapsody* | darwin1.[012])
13192         allow_undefined_flag_F77='-undefined suppress'
13193         ;;
13194       *) # Darwin 1.3 on
13195         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13196         ;;
13197       esac
13198       # FIXME: Relying on posixy $() will cause problems for
13199       #        cross-compilation, but unfortunately the echo tests do not
13200       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13201       #        `"' quotes if we put them in here... so don't!
13202         lt_int_apple_cc_single_mod=no
13203         output_verbose_link_cmd='echo'
13204         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13205           lt_int_apple_cc_single_mod=yes
13206         fi
13207         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13208           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13209         else
13210         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'
13211       fi
13212       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13213       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13214         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13215           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}'
13216         else
13217           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}'
13218         fi
13219           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}'
13220       hardcode_direct_F77=no
13221       hardcode_automatic_F77=yes
13222       hardcode_shlibpath_var_F77=unsupported
13223       whole_archive_flag_spec_F77='-all_load $convenience'
13224       link_all_deplibs_F77=yes
13225     fi
13226       ;;
13227
13228     dgux*)
13229       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13230       hardcode_libdir_flag_spec_F77='-L$libdir'
13231       hardcode_shlibpath_var_F77=no
13232       ;;
13233
13234     freebsd1*)
13235       ld_shlibs_F77=no
13236       ;;
13237
13238     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13239     # support.  Future versions do this automatically, but an explicit c++rt0.o
13240     # does not break anything, and helps significantly (at the cost of a little
13241     # extra space).
13242     freebsd2.2*)
13243       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13244       hardcode_libdir_flag_spec_F77='-R$libdir'
13245       hardcode_direct_F77=yes
13246       hardcode_shlibpath_var_F77=no
13247       ;;
13248
13249     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13250     freebsd2*)
13251       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13252       hardcode_direct_F77=yes
13253       hardcode_minus_L_F77=yes
13254       hardcode_shlibpath_var_F77=no
13255       ;;
13256
13257     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13258     freebsd*)
13259       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13260       hardcode_libdir_flag_spec_F77='-R$libdir'
13261       hardcode_direct_F77=yes
13262       hardcode_shlibpath_var_F77=no
13263       ;;
13264
13265     hpux9*)
13266       if test "$GCC" = yes; then
13267         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'
13268       else
13269         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'
13270       fi
13271       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13272       hardcode_libdir_separator_F77=:
13273       hardcode_direct_F77=yes
13274
13275       # hardcode_minus_L: Not really in the search PATH,
13276       # but as the default location of the library.
13277       hardcode_minus_L_F77=yes
13278       export_dynamic_flag_spec_F77='${wl}-E'
13279       ;;
13280
13281     hpux10* | hpux11*)
13282       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13283         case "$host_cpu" in
13284         hppa*64*|ia64*)
13285           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13286           ;;
13287         *)
13288           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13289           ;;
13290         esac
13291       else
13292         case "$host_cpu" in
13293         hppa*64*|ia64*)
13294           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13295           ;;
13296         *)
13297           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13298           ;;
13299         esac
13300       fi
13301       if test "$with_gnu_ld" = no; then
13302         case "$host_cpu" in
13303         hppa*64*)
13304           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13305           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13306           hardcode_libdir_separator_F77=:
13307           hardcode_direct_F77=no
13308           hardcode_shlibpath_var_F77=no
13309           ;;
13310         ia64*)
13311           hardcode_libdir_flag_spec_F77='-L$libdir'
13312           hardcode_direct_F77=no
13313           hardcode_shlibpath_var_F77=no
13314
13315           # hardcode_minus_L: Not really in the search PATH,
13316           # but as the default location of the library.
13317           hardcode_minus_L_F77=yes
13318           ;;
13319         *)
13320           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13321           hardcode_libdir_separator_F77=:
13322           hardcode_direct_F77=yes
13323           export_dynamic_flag_spec_F77='${wl}-E'
13324
13325           # hardcode_minus_L: Not really in the search PATH,
13326           # but as the default location of the library.
13327           hardcode_minus_L_F77=yes
13328           ;;
13329         esac
13330       fi
13331       ;;
13332
13333     irix5* | irix6* | nonstopux*)
13334       if test "$GCC" = yes; then
13335         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'
13336       else
13337         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'
13338         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13339       fi
13340       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13341       hardcode_libdir_separator_F77=:
13342       link_all_deplibs_F77=yes
13343       ;;
13344
13345     netbsd*)
13346       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13347         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13348       else
13349         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13350       fi
13351       hardcode_libdir_flag_spec_F77='-R$libdir'
13352       hardcode_direct_F77=yes
13353       hardcode_shlibpath_var_F77=no
13354       ;;
13355
13356     newsos6)
13357       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13358       hardcode_direct_F77=yes
13359       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13360       hardcode_libdir_separator_F77=:
13361       hardcode_shlibpath_var_F77=no
13362       ;;
13363
13364     openbsd*)
13365       hardcode_direct_F77=yes
13366       hardcode_shlibpath_var_F77=no
13367       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13368         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13369         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13370         export_dynamic_flag_spec_F77='${wl}-E'
13371       else
13372        case $host_os in
13373          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13374            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13375            hardcode_libdir_flag_spec_F77='-R$libdir'
13376            ;;
13377          *)
13378            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13379            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13380            ;;
13381        esac
13382       fi
13383       ;;
13384
13385     os2*)
13386       hardcode_libdir_flag_spec_F77='-L$libdir'
13387       hardcode_minus_L_F77=yes
13388       allow_undefined_flag_F77=unsupported
13389       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'
13390       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13391       ;;
13392
13393     osf3*)
13394       if test "$GCC" = yes; then
13395         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13396         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'
13397       else
13398         allow_undefined_flag_F77=' -expect_unresolved \*'
13399         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'
13400       fi
13401       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13402       hardcode_libdir_separator_F77=:
13403       ;;
13404
13405     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13406       if test "$GCC" = yes; then
13407         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13408         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'
13409         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13410       else
13411         allow_undefined_flag_F77=' -expect_unresolved \*'
13412         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'
13413         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~
13414         $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'
13415
13416         # Both c and cxx compiler support -rpath directly
13417         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13418       fi
13419       hardcode_libdir_separator_F77=:
13420       ;;
13421
13422     sco3.2v5*)
13423       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13424       hardcode_shlibpath_var_F77=no
13425       export_dynamic_flag_spec_F77='${wl}-Bexport'
13426       runpath_var=LD_RUN_PATH
13427       hardcode_runpath_var=yes
13428       ;;
13429
13430     solaris*)
13431       no_undefined_flag_F77=' -z text'
13432       if test "$GCC" = yes; then
13433         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13434         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13435           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13436       else
13437         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13438         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13439         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13440       fi
13441       hardcode_libdir_flag_spec_F77='-R$libdir'
13442       hardcode_shlibpath_var_F77=no
13443       case $host_os in
13444       solaris2.[0-5] | solaris2.[0-5].*) ;;
13445       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13446         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13447       esac
13448       link_all_deplibs_F77=yes
13449       ;;
13450
13451     sunos4*)
13452       if test "x$host_vendor" = xsequent; then
13453         # Use $CC to link under sequent, because it throws in some extra .o
13454         # files that make .init and .fini sections work.
13455         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13456       else
13457         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13458       fi
13459       hardcode_libdir_flag_spec_F77='-L$libdir'
13460       hardcode_direct_F77=yes
13461       hardcode_minus_L_F77=yes
13462       hardcode_shlibpath_var_F77=no
13463       ;;
13464
13465     sysv4)
13466       case $host_vendor in
13467         sni)
13468           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13469           hardcode_direct_F77=yes # is this really true???
13470         ;;
13471         siemens)
13472           ## LD is ld it makes a PLAMLIB
13473           ## CC just makes a GrossModule.
13474           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13475           reload_cmds_F77='$CC -r -o $output$reload_objs'
13476           hardcode_direct_F77=no
13477         ;;
13478         motorola)
13479           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13480           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13481         ;;
13482       esac
13483       runpath_var='LD_RUN_PATH'
13484       hardcode_shlibpath_var_F77=no
13485       ;;
13486
13487     sysv4.3*)
13488       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13489       hardcode_shlibpath_var_F77=no
13490       export_dynamic_flag_spec_F77='-Bexport'
13491       ;;
13492
13493     sysv4*MP*)
13494       if test -d /usr/nec; then
13495         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13496         hardcode_shlibpath_var_F77=no
13497         runpath_var=LD_RUN_PATH
13498         hardcode_runpath_var=yes
13499         ld_shlibs_F77=yes
13500       fi
13501       ;;
13502
13503     sysv4.2uw2*)
13504       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13505       hardcode_direct_F77=yes
13506       hardcode_minus_L_F77=no
13507       hardcode_shlibpath_var_F77=no
13508       hardcode_runpath_var=yes
13509       runpath_var=LD_RUN_PATH
13510       ;;
13511
13512    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13513       no_undefined_flag_F77='${wl}-z ${wl}text'
13514       if test "$GCC" = yes; then
13515         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13516       else
13517         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13518       fi
13519       runpath_var='LD_RUN_PATH'
13520       hardcode_shlibpath_var_F77=no
13521       ;;
13522
13523     sysv5*)
13524       no_undefined_flag_F77=' -z text'
13525       # $CC -shared without GNU ld will not create a library from C++
13526       # object files and a static libstdc++, better avoid it by now
13527       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13528       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13529                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13530       hardcode_libdir_flag_spec_F77=
13531       hardcode_shlibpath_var_F77=no
13532       runpath_var='LD_RUN_PATH'
13533       ;;
13534
13535     uts4*)
13536       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13537       hardcode_libdir_flag_spec_F77='-L$libdir'
13538       hardcode_shlibpath_var_F77=no
13539       ;;
13540
13541     *)
13542       ld_shlibs_F77=no
13543       ;;
13544     esac
13545   fi
13546
13547 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13548 echo "${ECHO_T}$ld_shlibs_F77" >&6
13549 test "$ld_shlibs_F77" = no && can_build_shared=no
13550
13551 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13552 if test "$GCC" = yes; then
13553   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13554 fi
13555
13556 #
13557 # Do we need to explicitly link libc?
13558 #
13559 case "x$archive_cmds_need_lc_F77" in
13560 x|xyes)
13561   # Assume -lc should be added
13562   archive_cmds_need_lc_F77=yes
13563
13564   if test "$enable_shared" = yes && test "$GCC" = yes; then
13565     case $archive_cmds_F77 in
13566     *'~'*)
13567       # FIXME: we may have to deal with multi-command sequences.
13568       ;;
13569     '$CC '*)
13570       # Test whether the compiler implicitly links with -lc since on some
13571       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13572       # to ld, don't add -lc before -lgcc.
13573       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13574 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13575       $rm conftest*
13576       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13577
13578       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13579   (eval $ac_compile) 2>&5
13580   ac_status=$?
13581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582   (exit $ac_status); } 2>conftest.err; then
13583         soname=conftest
13584         lib=conftest
13585         libobjs=conftest.$ac_objext
13586         deplibs=
13587         wl=$lt_prog_compiler_wl_F77
13588         compiler_flags=-v
13589         linker_flags=-v
13590         verstring=
13591         output_objdir=.
13592         libname=conftest
13593         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13594         allow_undefined_flag_F77=
13595         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13596   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13597   ac_status=$?
13598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599   (exit $ac_status); }
13600         then
13601           archive_cmds_need_lc_F77=no
13602         else
13603           archive_cmds_need_lc_F77=yes
13604         fi
13605         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13606       else
13607         cat conftest.err 1>&5
13608       fi
13609       $rm conftest*
13610       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13611 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13612       ;;
13613     esac
13614   fi
13615   ;;
13616 esac
13617
13618 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13619 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13620 hardcode_action_F77=
13621 if test -n "$hardcode_libdir_flag_spec_F77" || \
13622    test -n "$runpath_var F77" || \
13623    test "X$hardcode_automatic_F77"="Xyes" ; then
13624
13625   # We can hardcode non-existant directories.
13626   if test "$hardcode_direct_F77" != no &&
13627      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13628      # have to relink, otherwise we might link with an installed library
13629      # when we should be linking with a yet-to-be-installed one
13630      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13631      test "$hardcode_minus_L_F77" != no; then
13632     # Linking always hardcodes the temporary library directory.
13633     hardcode_action_F77=relink
13634   else
13635     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13636     hardcode_action_F77=immediate
13637   fi
13638 else
13639   # We cannot hardcode anything, or else we can only hardcode existing
13640   # directories.
13641   hardcode_action_F77=unsupported
13642 fi
13643 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13644 echo "${ECHO_T}$hardcode_action_F77" >&6
13645
13646 if test "$hardcode_action_F77" = relink; then
13647   # Fast installation is not supported
13648   enable_fast_install=no
13649 elif test "$shlibpath_overrides_runpath" = yes ||
13650      test "$enable_shared" = no; then
13651   # Fast installation is not necessary
13652   enable_fast_install=needless
13653 fi
13654
13655 striplib=
13656 old_striplib=
13657 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13658 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13659 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13660   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13661   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13662   echo "$as_me:$LINENO: result: yes" >&5
13663 echo "${ECHO_T}yes" >&6
13664 else
13665 # FIXME - insert some real tests, host_os isn't really good enough
13666   case $host_os in
13667    darwin*)
13668        if test -n "$STRIP" ; then
13669          striplib="$STRIP -x"
13670          echo "$as_me:$LINENO: result: yes" >&5
13671 echo "${ECHO_T}yes" >&6
13672        else
13673   echo "$as_me:$LINENO: result: no" >&5
13674 echo "${ECHO_T}no" >&6
13675 fi
13676        ;;
13677    *)
13678   echo "$as_me:$LINENO: result: no" >&5
13679 echo "${ECHO_T}no" >&6
13680     ;;
13681   esac
13682 fi
13683
13684 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13685 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13686 library_names_spec=
13687 libname_spec='lib$name'
13688 soname_spec=
13689 shrext=".so"
13690 postinstall_cmds=
13691 postuninstall_cmds=
13692 finish_cmds=
13693 finish_eval=
13694 shlibpath_var=
13695 shlibpath_overrides_runpath=unknown
13696 version_type=none
13697 dynamic_linker="$host_os ld.so"
13698 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13699 if test "$GCC" = yes; then
13700   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13701   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13702     # if the path contains ";" then we assume it to be the separator
13703     # otherwise default to the standard path separator (i.e. ":") - it is
13704     # assumed that no part of a normal pathname contains ";" but that should
13705     # okay in the real world where ";" in dirpaths is itself problematic.
13706     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13707   else
13708     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13709   fi
13710 else
13711   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13712 fi
13713 need_lib_prefix=unknown
13714 hardcode_into_libs=no
13715
13716 # when you set need_version to no, make sure it does not cause -set_version
13717 # flags to be left without arguments
13718 need_version=unknown
13719
13720 case $host_os in
13721 aix3*)
13722   version_type=linux
13723   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13724   shlibpath_var=LIBPATH
13725
13726   # AIX 3 has no versioning support, so we append a major version to the name.
13727   soname_spec='${libname}${release}${shared_ext}$major'
13728   ;;
13729
13730 aix4* | aix5*)
13731   version_type=linux
13732   need_lib_prefix=no
13733   need_version=no
13734   hardcode_into_libs=yes
13735   if test "$host_cpu" = ia64; then
13736     # AIX 5 supports IA64
13737     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13738     shlibpath_var=LD_LIBRARY_PATH
13739   else
13740     # With GCC up to 2.95.x, collect2 would create an import file
13741     # for dependence libraries.  The import file would start with
13742     # the line `#! .'.  This would cause the generated library to
13743     # depend on `.', always an invalid library.  This was fixed in
13744     # development snapshots of GCC prior to 3.0.
13745     case $host_os in
13746       aix4 | aix4.[01] | aix4.[01].*)
13747       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13748            echo ' yes '
13749            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13750         :
13751       else
13752         can_build_shared=no
13753       fi
13754       ;;
13755     esac
13756     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13757     # soname into executable. Probably we can add versioning support to
13758     # collect2, so additional links can be useful in future.
13759     if test "$aix_use_runtimelinking" = yes; then
13760       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13761       # instead of lib<name>.a to let people know that these are not
13762       # typical AIX shared libraries.
13763       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13764     else
13765       # We preserve .a as extension for shared libraries through AIX4.2
13766       # and later when we are not doing run time linking.
13767       library_names_spec='${libname}${release}.a $libname.a'
13768       soname_spec='${libname}${release}${shared_ext}$major'
13769     fi
13770     shlibpath_var=LIBPATH
13771   fi
13772   ;;
13773
13774 amigaos*)
13775   library_names_spec='$libname.ixlibrary $libname.a'
13776   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13777   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'
13778   ;;
13779
13780 beos*)
13781   library_names_spec='${libname}${shared_ext}'
13782   dynamic_linker="$host_os ld.so"
13783   shlibpath_var=LIBRARY_PATH
13784   ;;
13785
13786 bsdi4*)
13787   version_type=linux
13788   need_version=no
13789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13790   soname_spec='${libname}${release}${shared_ext}$major'
13791   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13792   shlibpath_var=LD_LIBRARY_PATH
13793   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13794   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13795   # the default ld.so.conf also contains /usr/contrib/lib and
13796   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13797   # libtool to hard-code these into programs
13798   ;;
13799
13800 cygwin* | mingw* | pw32*)
13801   version_type=windows
13802   shrext=".dll"
13803   need_version=no
13804   need_lib_prefix=no
13805
13806   case $GCC,$host_os in
13807   yes,cygwin* | yes,mingw* | yes,pw32*)
13808     library_names_spec='$libname.dll.a'
13809     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13810     postinstall_cmds='base_file=`basename \${file}`~
13811       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13812       dldir=$destdir/`dirname \$dlpath`~
13813       test -d \$dldir || mkdir -p \$dldir~
13814       $install_prog $dir/$dlname \$dldir/$dlname'
13815     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13816       dlpath=$dir/\$dldll~
13817        $rm \$dlpath'
13818     shlibpath_overrides_runpath=yes
13819
13820     case $host_os in
13821     cygwin*)
13822       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13823       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13824       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13825       ;;
13826     mingw*)
13827       # MinGW DLLs use traditional 'lib' prefix
13828       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13829       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13830       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13831         # It is most probably a Windows format PATH printed by
13832         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13833         # path with ; separators, and with drive letters. We can handle the
13834         # drive letters (cygwin fileutils understands them), so leave them,
13835         # especially as we might pass files found there to a mingw objdump,
13836         # which wouldn't understand a cygwinified path. Ahh.
13837         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13838       else
13839         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13840       fi
13841       ;;
13842     pw32*)
13843       # pw32 DLLs use 'pw' prefix rather than 'lib'
13844       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13845       ;;
13846     esac
13847     ;;
13848
13849   *)
13850     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13851     ;;
13852   esac
13853   dynamic_linker='Win32 ld.exe'
13854   # FIXME: first we should search . and the directory the executable is in
13855   shlibpath_var=PATH
13856   ;;
13857
13858 darwin* | rhapsody*)
13859   dynamic_linker="$host_os dyld"
13860   version_type=darwin
13861   need_lib_prefix=no
13862   need_version=no
13863   # FIXME: Relying on posixy $() will cause problems for
13864   #        cross-compilation, but unfortunately the echo tests do not
13865   #        yet detect zsh echo's removal of \ escapes.
13866   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13867   soname_spec='${libname}${release}${major}$shared_ext'
13868   shlibpath_overrides_runpath=yes
13869   shlibpath_var=DYLD_LIBRARY_PATH
13870   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13871   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13872   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13873   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"`
13874   fi
13875   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13876   ;;
13877
13878 dgux*)
13879   version_type=linux
13880   need_lib_prefix=no
13881   need_version=no
13882   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13883   soname_spec='${libname}${release}${shared_ext}$major'
13884   shlibpath_var=LD_LIBRARY_PATH
13885   ;;
13886
13887 freebsd1*)
13888   dynamic_linker=no
13889   ;;
13890
13891 freebsd*)
13892   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13893   version_type=freebsd-$objformat
13894   case $version_type in
13895     freebsd-elf*)
13896       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13897       need_version=no
13898       need_lib_prefix=no
13899       ;;
13900     freebsd-*)
13901       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13902       need_version=yes
13903       ;;
13904   esac
13905   shlibpath_var=LD_LIBRARY_PATH
13906   case $host_os in
13907   freebsd2*)
13908     shlibpath_overrides_runpath=yes
13909     ;;
13910   freebsd3.01* | freebsdelf3.01*)
13911     shlibpath_overrides_runpath=yes
13912     hardcode_into_libs=yes
13913     ;;
13914   *) # from 3.2 on
13915     shlibpath_overrides_runpath=no
13916     hardcode_into_libs=yes
13917     ;;
13918   esac
13919   ;;
13920
13921 gnu*)
13922   version_type=linux
13923   need_lib_prefix=no
13924   need_version=no
13925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13926   soname_spec='${libname}${release}${shared_ext}$major'
13927   shlibpath_var=LD_LIBRARY_PATH
13928   hardcode_into_libs=yes
13929   ;;
13930
13931 hpux9* | hpux10* | hpux11*)
13932   # Give a soname corresponding to the major version so that dld.sl refuses to
13933   # link against other versions.
13934   version_type=sunos
13935   need_lib_prefix=no
13936   need_version=no
13937   case "$host_cpu" in
13938   ia64*)
13939     shrext='.so'
13940     hardcode_into_libs=yes
13941     dynamic_linker="$host_os dld.so"
13942     shlibpath_var=LD_LIBRARY_PATH
13943     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13944     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13945     soname_spec='${libname}${release}${shared_ext}$major'
13946     if test "X$HPUX_IA64_MODE" = X32; then
13947       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13948     else
13949       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13950     fi
13951     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13952     ;;
13953    hppa*64*)
13954      shrext='.sl'
13955      hardcode_into_libs=yes
13956      dynamic_linker="$host_os dld.sl"
13957      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13958      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13959      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13960      soname_spec='${libname}${release}${shared_ext}$major'
13961      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13962      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13963      ;;
13964    *)
13965     shrext='.sl'
13966     dynamic_linker="$host_os dld.sl"
13967     shlibpath_var=SHLIB_PATH
13968     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13969     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13970     soname_spec='${libname}${release}${shared_ext}$major'
13971     ;;
13972   esac
13973   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13974   postinstall_cmds='chmod 555 $lib'
13975   ;;
13976
13977 irix5* | irix6* | nonstopux*)
13978   case $host_os in
13979     nonstopux*) version_type=nonstopux ;;
13980     *)
13981         if test "$lt_cv_prog_gnu_ld" = yes; then
13982                 version_type=linux
13983         else
13984                 version_type=irix
13985         fi ;;
13986   esac
13987   need_lib_prefix=no
13988   need_version=no
13989   soname_spec='${libname}${release}${shared_ext}$major'
13990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13991   case $host_os in
13992   irix5* | nonstopux*)
13993     libsuff= shlibsuff=
13994     ;;
13995   *)
13996     case $LD in # libtool.m4 will add one of these switches to LD
13997     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13998       libsuff= shlibsuff= libmagic=32-bit;;
13999     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14000       libsuff=32 shlibsuff=N32 libmagic=N32;;
14001     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14002       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14003     *) libsuff= shlibsuff= libmagic=never-match;;
14004     esac
14005     ;;
14006   esac
14007   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14008   shlibpath_overrides_runpath=no
14009   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14010   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14011   hardcode_into_libs=yes
14012   ;;
14013
14014 # No shared lib support for Linux oldld, aout, or coff.
14015 linux*oldld* | linux*aout* | linux*coff*)
14016   dynamic_linker=no
14017   ;;
14018
14019 # This must be Linux ELF.
14020 linux*)
14021   version_type=linux
14022   need_lib_prefix=no
14023   need_version=no
14024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14025   soname_spec='${libname}${release}${shared_ext}$major'
14026   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14027   shlibpath_var=LD_LIBRARY_PATH
14028   shlibpath_overrides_runpath=no
14029   # This implies no fast_install, which is unacceptable.
14030   # Some rework will be needed to allow for fast_install
14031   # before this can be enabled.
14032   hardcode_into_libs=yes
14033
14034   # We used to test for /lib/ld.so.1 and disable shared libraries on
14035   # powerpc, because MkLinux only supported shared libraries with the
14036   # GNU dynamic linker.  Since this was broken with cross compilers,
14037   # most powerpc-linux boxes support dynamic linking these days and
14038   # people can always --disable-shared, the test was removed, and we
14039   # assume the GNU/Linux dynamic linker is in use.
14040   dynamic_linker='GNU/Linux ld.so'
14041   ;;
14042
14043 netbsd*)
14044   version_type=sunos
14045   need_lib_prefix=no
14046   need_version=no
14047   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14048     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14049     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14050     dynamic_linker='NetBSD (a.out) ld.so'
14051   else
14052     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14053     soname_spec='${libname}${release}${shared_ext}$major'
14054     dynamic_linker='NetBSD ld.elf_so'
14055   fi
14056   shlibpath_var=LD_LIBRARY_PATH
14057   shlibpath_overrides_runpath=yes
14058   hardcode_into_libs=yes
14059   ;;
14060
14061 newsos6)
14062   version_type=linux
14063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14064   shlibpath_var=LD_LIBRARY_PATH
14065   shlibpath_overrides_runpath=yes
14066   ;;
14067
14068 nto-qnx)
14069   version_type=linux
14070   need_lib_prefix=no
14071   need_version=no
14072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14073   soname_spec='${libname}${release}${shared_ext}$major'
14074   shlibpath_var=LD_LIBRARY_PATH
14075   shlibpath_overrides_runpath=yes
14076   ;;
14077
14078 openbsd*)
14079   version_type=sunos
14080   need_lib_prefix=no
14081   need_version=no
14082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14083   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14084   shlibpath_var=LD_LIBRARY_PATH
14085   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14086     case $host_os in
14087       openbsd2.[89] | openbsd2.[89].*)
14088         shlibpath_overrides_runpath=no
14089         ;;
14090       *)
14091         shlibpath_overrides_runpath=yes
14092         ;;
14093       esac
14094   else
14095     shlibpath_overrides_runpath=yes
14096   fi
14097   ;;
14098
14099 os2*)
14100   libname_spec='$name'
14101   shrext=".dll"
14102   need_lib_prefix=no
14103   library_names_spec='$libname${shared_ext} $libname.a'
14104   dynamic_linker='OS/2 ld.exe'
14105   shlibpath_var=LIBPATH
14106   ;;
14107
14108 osf3* | osf4* | osf5*)
14109   version_type=osf
14110   need_lib_prefix=no
14111   need_version=no
14112   soname_spec='${libname}${release}${shared_ext}$major'
14113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14114   shlibpath_var=LD_LIBRARY_PATH
14115   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14116   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14117   ;;
14118
14119 sco3.2v5*)
14120   version_type=osf
14121   soname_spec='${libname}${release}${shared_ext}$major'
14122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14123   shlibpath_var=LD_LIBRARY_PATH
14124   ;;
14125
14126 solaris*)
14127   version_type=linux
14128   need_lib_prefix=no
14129   need_version=no
14130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14131   soname_spec='${libname}${release}${shared_ext}$major'
14132   shlibpath_var=LD_LIBRARY_PATH
14133   shlibpath_overrides_runpath=yes
14134   hardcode_into_libs=yes
14135   # ldd complains unless libraries are executable
14136   postinstall_cmds='chmod +x $lib'
14137   ;;
14138
14139 sunos4*)
14140   version_type=sunos
14141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14142   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14143   shlibpath_var=LD_LIBRARY_PATH
14144   shlibpath_overrides_runpath=yes
14145   if test "$with_gnu_ld" = yes; then
14146     need_lib_prefix=no
14147   fi
14148   need_version=yes
14149   ;;
14150
14151 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14152   version_type=linux
14153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14154   soname_spec='${libname}${release}${shared_ext}$major'
14155   shlibpath_var=LD_LIBRARY_PATH
14156   case $host_vendor in
14157     sni)
14158       shlibpath_overrides_runpath=no
14159       need_lib_prefix=no
14160       export_dynamic_flag_spec='${wl}-Blargedynsym'
14161       runpath_var=LD_RUN_PATH
14162       ;;
14163     siemens)
14164       need_lib_prefix=no
14165       ;;
14166     motorola)
14167       need_lib_prefix=no
14168       need_version=no
14169       shlibpath_overrides_runpath=no
14170       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14171       ;;
14172   esac
14173   ;;
14174
14175 sysv4*MP*)
14176   if test -d /usr/nec ;then
14177     version_type=linux
14178     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14179     soname_spec='$libname${shared_ext}.$major'
14180     shlibpath_var=LD_LIBRARY_PATH
14181   fi
14182   ;;
14183
14184 uts4*)
14185   version_type=linux
14186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14187   soname_spec='${libname}${release}${shared_ext}$major'
14188   shlibpath_var=LD_LIBRARY_PATH
14189   ;;
14190
14191 *)
14192   dynamic_linker=no
14193   ;;
14194 esac
14195 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14196 echo "${ECHO_T}$dynamic_linker" >&6
14197 test "$dynamic_linker" = no && can_build_shared=no
14198
14199
14200 # The else clause should only fire when bootstrapping the
14201 # libtool distribution, otherwise you forgot to ship ltmain.sh
14202 # with your package, and you will get complaints that there are
14203 # no rules to generate ltmain.sh.
14204 if test -f "$ltmain"; then
14205   # See if we are running on zsh, and set the options which allow our commands through
14206   # without removal of \ escapes.
14207   if test -n "${ZSH_VERSION+set}" ; then
14208     setopt NO_GLOB_SUBST
14209   fi
14210   # Now quote all the things that may contain metacharacters while being
14211   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14212   # variables and quote the copies for generation of the libtool script.
14213   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14214     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14215     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14216     deplibs_check_method reload_flag reload_cmds need_locks \
14217     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14218     lt_cv_sys_global_symbol_to_c_name_address \
14219     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14220     old_postinstall_cmds old_postuninstall_cmds \
14221     compiler_F77 \
14222     CC_F77 \
14223     LD_F77 \
14224     lt_prog_compiler_wl_F77 \
14225     lt_prog_compiler_pic_F77 \
14226     lt_prog_compiler_static_F77 \
14227     lt_prog_compiler_no_builtin_flag_F77 \
14228     export_dynamic_flag_spec_F77 \
14229     thread_safe_flag_spec_F77 \
14230     whole_archive_flag_spec_F77 \
14231     enable_shared_with_static_runtimes_F77 \
14232     old_archive_cmds_F77 \
14233     old_archive_from_new_cmds_F77 \
14234     predep_objects_F77 \
14235     postdep_objects_F77 \
14236     predeps_F77 \
14237     postdeps_F77 \
14238     compiler_lib_search_path_F77 \
14239     archive_cmds_F77 \
14240     archive_expsym_cmds_F77 \
14241     postinstall_cmds_F77 \
14242     postuninstall_cmds_F77 \
14243     old_archive_from_expsyms_cmds_F77 \
14244     allow_undefined_flag_F77 \
14245     no_undefined_flag_F77 \
14246     export_symbols_cmds_F77 \
14247     hardcode_libdir_flag_spec_F77 \
14248     hardcode_libdir_flag_spec_ld_F77 \
14249     hardcode_libdir_separator_F77 \
14250     hardcode_automatic_F77 \
14251     module_cmds_F77 \
14252     module_expsym_cmds_F77 \
14253     lt_cv_prog_compiler_c_o_F77 \
14254     exclude_expsyms_F77 \
14255     include_expsyms_F77; do
14256
14257     case $var in
14258     old_archive_cmds_F77 | \
14259     old_archive_from_new_cmds_F77 | \
14260     archive_cmds_F77 | \
14261     archive_expsym_cmds_F77 | \
14262     module_cmds_F77 | \
14263     module_expsym_cmds_F77 | \
14264     old_archive_from_expsyms_cmds_F77 | \
14265     export_symbols_cmds_F77 | \
14266     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14267     postinstall_cmds | postuninstall_cmds | \
14268     old_postinstall_cmds | old_postuninstall_cmds | \
14269     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14270       # Double-quote double-evaled strings.
14271       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14272       ;;
14273     *)
14274       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14275       ;;
14276     esac
14277   done
14278
14279   case $lt_echo in
14280   *'\$0 --fallback-echo"')
14281     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14282     ;;
14283   esac
14284
14285 cfgfile="$ofile"
14286
14287   cat <<__EOF__ >> "$cfgfile"
14288 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14289
14290 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14291
14292 # Shell to use when invoking shell scripts.
14293 SHELL=$lt_SHELL
14294
14295 # Whether or not to build shared libraries.
14296 build_libtool_libs=$enable_shared
14297
14298 # Whether or not to build static libraries.
14299 build_old_libs=$enable_static
14300
14301 # Whether or not to add -lc for building shared libraries.
14302 build_libtool_need_lc=$archive_cmds_need_lc_F77
14303
14304 # Whether or not to disallow shared libs when runtime libs are static
14305 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14306
14307 # Whether or not to optimize for fast installation.
14308 fast_install=$enable_fast_install
14309
14310 # The host system.
14311 host_alias=$host_alias
14312 host=$host
14313
14314 # An echo program that does not interpret backslashes.
14315 echo=$lt_echo
14316
14317 # The archiver.
14318 AR=$lt_AR
14319 AR_FLAGS=$lt_AR_FLAGS
14320
14321 # A C compiler.
14322 LTCC=$lt_LTCC
14323
14324 # A language-specific compiler.
14325 CC=$lt_compiler_F77
14326
14327 # Is the compiler the GNU C compiler?
14328 with_gcc=$GCC_F77
14329
14330 # An ERE matcher.
14331 EGREP=$lt_EGREP
14332
14333 # The linker used to build libraries.
14334 LD=$lt_LD_F77
14335
14336 # Whether we need hard or soft links.
14337 LN_S=$lt_LN_S
14338
14339 # A BSD-compatible nm program.
14340 NM=$lt_NM
14341
14342 # A symbol stripping program
14343 STRIP=$STRIP
14344
14345 # Used to examine libraries when file_magic_cmd begins "file"
14346 MAGIC_CMD=$MAGIC_CMD
14347
14348 # Used on cygwin: DLL creation program.
14349 DLLTOOL="$DLLTOOL"
14350
14351 # Used on cygwin: object dumper.
14352 OBJDUMP="$OBJDUMP"
14353
14354 # Used on cygwin: assembler.
14355 AS="$AS"
14356
14357 # The name of the directory that contains temporary libtool files.
14358 objdir=$objdir
14359
14360 # How to create reloadable object files.
14361 reload_flag=$lt_reload_flag
14362 reload_cmds=$lt_reload_cmds
14363
14364 # How to pass a linker flag through the compiler.
14365 wl=$lt_lt_prog_compiler_wl_F77
14366
14367 # Object file suffix (normally "o").
14368 objext="$ac_objext"
14369
14370 # Old archive suffix (normally "a").
14371 libext="$libext"
14372
14373 # Shared library suffix (normally ".so").
14374 shrext='$shrext'
14375
14376 # Executable file suffix (normally "").
14377 exeext="$exeext"
14378
14379 # Additional compiler flags for building library objects.
14380 pic_flag=$lt_lt_prog_compiler_pic_F77
14381 pic_mode=$pic_mode
14382
14383 # What is the maximum length of a command?
14384 max_cmd_len=$lt_cv_sys_max_cmd_len
14385
14386 # Does compiler simultaneously support -c and -o options?
14387 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14388
14389 # Must we lock files when doing compilation ?
14390 need_locks=$lt_need_locks
14391
14392 # Do we need the lib prefix for modules?
14393 need_lib_prefix=$need_lib_prefix
14394
14395 # Do we need a version for libraries?
14396 need_version=$need_version
14397
14398 # Whether dlopen is supported.
14399 dlopen_support=$enable_dlopen
14400
14401 # Whether dlopen of programs is supported.
14402 dlopen_self=$enable_dlopen_self
14403
14404 # Whether dlopen of statically linked programs is supported.
14405 dlopen_self_static=$enable_dlopen_self_static
14406
14407 # Compiler flag to prevent dynamic linking.
14408 link_static_flag=$lt_lt_prog_compiler_static_F77
14409
14410 # Compiler flag to turn off builtin functions.
14411 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14412
14413 # Compiler flag to allow reflexive dlopens.
14414 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14415
14416 # Compiler flag to generate shared objects directly from archives.
14417 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14418
14419 # Compiler flag to generate thread-safe objects.
14420 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14421
14422 # Library versioning type.
14423 version_type=$version_type
14424
14425 # Format of library name prefix.
14426 libname_spec=$lt_libname_spec
14427
14428 # List of archive names.  First name is the real one, the rest are links.
14429 # The last name is the one that the linker finds with -lNAME.
14430 library_names_spec=$lt_library_names_spec
14431
14432 # The coded name of the library, if different from the real name.
14433 soname_spec=$lt_soname_spec
14434
14435 # Commands used to build and install an old-style archive.
14436 RANLIB=$lt_RANLIB
14437 old_archive_cmds=$lt_old_archive_cmds_F77
14438 old_postinstall_cmds=$lt_old_postinstall_cmds
14439 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14440
14441 # Create an old-style archive from a shared archive.
14442 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14443
14444 # Create a temporary old-style archive to link instead of a shared archive.
14445 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14446
14447 # Commands used to build and install a shared archive.
14448 archive_cmds=$lt_archive_cmds_F77
14449 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14450 postinstall_cmds=$lt_postinstall_cmds
14451 postuninstall_cmds=$lt_postuninstall_cmds
14452
14453 # Commands used to build a loadable module (assumed same as above if empty)
14454 module_cmds=$lt_module_cmds_F77
14455 module_expsym_cmds=$lt_module_expsym_cmds_F77
14456
14457 # Commands to strip libraries.
14458 old_striplib=$lt_old_striplib
14459 striplib=$lt_striplib
14460
14461 # Dependencies to place before the objects being linked to create a
14462 # shared library.
14463 predep_objects=$lt_predep_objects_F77
14464
14465 # Dependencies to place after the objects being linked to create a
14466 # shared library.
14467 postdep_objects=$lt_postdep_objects_F77
14468
14469 # Dependencies to place before the objects being linked to create a
14470 # shared library.
14471 predeps=$lt_predeps_F77
14472
14473 # Dependencies to place after the objects being linked to create a
14474 # shared library.
14475 postdeps=$lt_postdeps_F77
14476
14477 # The library search path used internally by the compiler when linking
14478 # a shared library.
14479 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14480
14481 # Method to check whether dependent libraries are shared objects.
14482 deplibs_check_method=$lt_deplibs_check_method
14483
14484 # Command to use when deplibs_check_method == file_magic.
14485 file_magic_cmd=$lt_file_magic_cmd
14486
14487 # Flag that allows shared libraries with undefined symbols to be built.
14488 allow_undefined_flag=$lt_allow_undefined_flag_F77
14489
14490 # Flag that forces no undefined symbols.
14491 no_undefined_flag=$lt_no_undefined_flag_F77
14492
14493 # Commands used to finish a libtool library installation in a directory.
14494 finish_cmds=$lt_finish_cmds
14495
14496 # Same as above, but a single script fragment to be evaled but not shown.
14497 finish_eval=$lt_finish_eval
14498
14499 # Take the output of nm and produce a listing of raw symbols and C names.
14500 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14501
14502 # Transform the output of nm in a proper C declaration
14503 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14504
14505 # Transform the output of nm in a C name address pair
14506 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14507
14508 # This is the shared library runtime path variable.
14509 runpath_var=$runpath_var
14510
14511 # This is the shared library path variable.
14512 shlibpath_var=$shlibpath_var
14513
14514 # Is shlibpath searched before the hard-coded library search path?
14515 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14516
14517 # How to hardcode a shared library path into an executable.
14518 hardcode_action=$hardcode_action_F77
14519
14520 # Whether we should hardcode library paths into libraries.
14521 hardcode_into_libs=$hardcode_into_libs
14522
14523 # Flag to hardcode \$libdir into a binary during linking.
14524 # This must work even if \$libdir does not exist.
14525 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14526
14527 # If ld is used when linking, flag to hardcode \$libdir into
14528 # a binary during linking. This must work even if \$libdir does
14529 # not exist.
14530 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14531
14532 # Whether we need a single -rpath flag with a separated argument.
14533 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14534
14535 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14536 # resulting binary.
14537 hardcode_direct=$hardcode_direct_F77
14538
14539 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14540 # resulting binary.
14541 hardcode_minus_L=$hardcode_minus_L_F77
14542
14543 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14544 # the resulting binary.
14545 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14546
14547 # Set to yes if building a shared library automatically hardcodes DIR into the library
14548 # and all subsequent libraries and executables linked against it.
14549 hardcode_automatic=$hardcode_automatic_F77
14550
14551 # Variables whose values should be saved in libtool wrapper scripts and
14552 # restored at relink time.
14553 variables_saved_for_relink="$variables_saved_for_relink"
14554
14555 # Whether libtool must link a program against all its dependency libraries.
14556 link_all_deplibs=$link_all_deplibs_F77
14557
14558 # Compile-time system search path for libraries
14559 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14560
14561 # Run-time system search path for libraries
14562 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14563
14564 # Fix the shell variable \$srcfile for the compiler.
14565 fix_srcfile_path="$fix_srcfile_path_F77"
14566
14567 # Set to yes if exported symbols are required.
14568 always_export_symbols=$always_export_symbols_F77
14569
14570 # The commands to list exported symbols.
14571 export_symbols_cmds=$lt_export_symbols_cmds_F77
14572
14573 # The commands to extract the exported symbol list from a shared archive.
14574 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14575
14576 # Symbols that should not be listed in the preloaded symbols.
14577 exclude_expsyms=$lt_exclude_expsyms_F77
14578
14579 # Symbols that must always be exported.
14580 include_expsyms=$lt_include_expsyms_F77
14581
14582 # ### END LIBTOOL TAG CONFIG: $tagname
14583
14584 __EOF__
14585
14586
14587 else
14588   # If there is no Makefile yet, we rely on a make rule to execute
14589   # `config.status --recheck' to rerun these tests and create the
14590   # libtool script then.
14591   test -f Makefile && make "$ltmain"
14592 fi
14593
14594
14595 ac_ext=c
14596 ac_cpp='$CPP $CPPFLAGS'
14597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14600
14601 CC="$lt_save_CC"
14602
14603         else
14604           tagname=""
14605         fi
14606         ;;
14607
14608       GCJ)
14609         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14610
14611
14612
14613 # Source file extension for Java test sources.
14614 ac_ext=java
14615
14616 # Object file extension for compiled Java test sources.
14617 objext=o
14618 objext_GCJ=$objext
14619
14620 # Code to be used in simple compile tests
14621 lt_simple_compile_test_code="class foo {}\n"
14622
14623 # Code to be used in simple link tests
14624 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14625
14626 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14627
14628 # If no C compiler was specified, use CC.
14629 LTCC=${LTCC-"$CC"}
14630
14631 # Allow CC to be a program name with arguments.
14632 compiler=$CC
14633
14634
14635 # Allow CC to be a program name with arguments.
14636 lt_save_CC="$CC"
14637 CC=${GCJ-"gcj"}
14638 compiler=$CC
14639 compiler_GCJ=$CC
14640
14641 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14642 archive_cmds_need_lc_GCJ=no
14643
14644
14645 lt_prog_compiler_no_builtin_flag_GCJ=
14646
14647 if test "$GCC" = yes; then
14648   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14649
14650   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14651 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14652 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14653   echo $ECHO_N "(cached) $ECHO_C" >&6
14654 else
14655   lt_cv_prog_compiler_rtti_exceptions=no
14656   ac_outfile=conftest.$ac_objext
14657    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14658    lt_compiler_flag="-fno-rtti -fno-exceptions"
14659    # Insert the option either (1) after the last *FLAGS variable, or
14660    # (2) before a word containing "conftest.", or (3) at the end.
14661    # Note that $ac_compile itself does not contain backslashes and begins
14662    # with a dollar sign (not a hyphen), so the echo should work correctly.
14663    # The option is referenced via a variable to avoid confusing sed.
14664    lt_compile=`echo "$ac_compile" | $SED \
14665    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14666    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14667    -e 's:$: $lt_compiler_flag:'`
14668    (eval echo "\"\$as_me:14668: $lt_compile\"" >&5)
14669    (eval "$lt_compile" 2>conftest.err)
14670    ac_status=$?
14671    cat conftest.err >&5
14672    echo "$as_me:14672: \$? = $ac_status" >&5
14673    if (exit $ac_status) && test -s "$ac_outfile"; then
14674      # The compiler can only warn and ignore the option if not recognized
14675      # So say no if there are warnings
14676      if test ! -s conftest.err; then
14677        lt_cv_prog_compiler_rtti_exceptions=yes
14678      fi
14679    fi
14680    $rm conftest*
14681
14682 fi
14683 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14684 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14685
14686 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14687     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14688 else
14689     :
14690 fi
14691
14692 fi
14693
14694 lt_prog_compiler_wl_GCJ=
14695 lt_prog_compiler_pic_GCJ=
14696 lt_prog_compiler_static_GCJ=
14697
14698 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14699 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14700
14701   if test "$GCC" = yes; then
14702     lt_prog_compiler_wl_GCJ='-Wl,'
14703     lt_prog_compiler_static_GCJ='-static'
14704
14705     case $host_os in
14706       aix*)
14707       # All AIX code is PIC.
14708       if test "$host_cpu" = ia64; then
14709         # AIX 5 now supports IA64 processor
14710         lt_prog_compiler_static_GCJ='-Bstatic'
14711       fi
14712       ;;
14713
14714     amigaos*)
14715       # FIXME: we need at least 68020 code to build shared libraries, but
14716       # adding the `-m68020' flag to GCC prevents building anything better,
14717       # like `-m68040'.
14718       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14719       ;;
14720
14721     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14722       # PIC is the default for these OSes.
14723       ;;
14724
14725     mingw* | pw32* | os2*)
14726       # This hack is so that the source file can tell whether it is being
14727       # built for inclusion in a dll (and should export symbols for example).
14728       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14729       ;;
14730
14731     darwin* | rhapsody*)
14732       # PIC is the default on this platform
14733       # Common symbols not allowed in MH_DYLIB files
14734       lt_prog_compiler_pic_GCJ='-fno-common'
14735       ;;
14736
14737     msdosdjgpp*)
14738       # Just because we use GCC doesn't mean we suddenly get shared libraries
14739       # on systems that don't support them.
14740       lt_prog_compiler_can_build_shared_GCJ=no
14741       enable_shared=no
14742       ;;
14743
14744     sysv4*MP*)
14745       if test -d /usr/nec; then
14746         lt_prog_compiler_pic_GCJ=-Kconform_pic
14747       fi
14748       ;;
14749
14750     hpux*)
14751       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14752       # not for PA HP-UX.
14753       case "$host_cpu" in
14754       hppa*64*|ia64*)
14755         # +Z the default
14756         ;;
14757       *)
14758         lt_prog_compiler_pic_GCJ='-fPIC'
14759         ;;
14760       esac
14761       ;;
14762
14763     *)
14764       lt_prog_compiler_pic_GCJ='-fPIC'
14765       ;;
14766     esac
14767   else
14768     # PORTME Check for flag to pass linker flags through the system compiler.
14769     case $host_os in
14770     aix*)
14771       lt_prog_compiler_wl_GCJ='-Wl,'
14772       if test "$host_cpu" = ia64; then
14773         # AIX 5 now supports IA64 processor
14774         lt_prog_compiler_static_GCJ='-Bstatic'
14775       else
14776         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14777       fi
14778       ;;
14779
14780     mingw* | pw32* | os2*)
14781       # This hack is so that the source file can tell whether it is being
14782       # built for inclusion in a dll (and should export symbols for example).
14783       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14784       ;;
14785
14786     hpux9* | hpux10* | hpux11*)
14787       lt_prog_compiler_wl_GCJ='-Wl,'
14788       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14789       # not for PA HP-UX.
14790       case "$host_cpu" in
14791       hppa*64*|ia64*)
14792         # +Z the default
14793         ;;
14794       *)
14795         lt_prog_compiler_pic_GCJ='+Z'
14796         ;;
14797       esac
14798       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14799       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14800       ;;
14801
14802     irix5* | irix6* | nonstopux*)
14803       lt_prog_compiler_wl_GCJ='-Wl,'
14804       # PIC (with -KPIC) is the default.
14805       lt_prog_compiler_static_GCJ='-non_shared'
14806       ;;
14807
14808     newsos6)
14809       lt_prog_compiler_pic_GCJ='-KPIC'
14810       lt_prog_compiler_static_GCJ='-Bstatic'
14811       ;;
14812
14813     linux*)
14814       case $CC in
14815       icc|ecc)
14816         lt_prog_compiler_wl_GCJ='-Wl,'
14817         lt_prog_compiler_pic_GCJ='-KPIC'
14818         lt_prog_compiler_static_GCJ='-static'
14819         ;;
14820       ccc)
14821         lt_prog_compiler_wl_GCJ='-Wl,'
14822         # All Alpha code is PIC.
14823         lt_prog_compiler_static_GCJ='-non_shared'
14824         ;;
14825       esac
14826       ;;
14827
14828     osf3* | osf4* | osf5*)
14829       lt_prog_compiler_wl_GCJ='-Wl,'
14830       # All OSF/1 code is PIC.
14831       lt_prog_compiler_static_GCJ='-non_shared'
14832       ;;
14833
14834     sco3.2v5*)
14835       lt_prog_compiler_pic_GCJ='-Kpic'
14836       lt_prog_compiler_static_GCJ='-dn'
14837       ;;
14838
14839     solaris*)
14840       lt_prog_compiler_wl_GCJ='-Wl,'
14841       lt_prog_compiler_pic_GCJ='-KPIC'
14842       lt_prog_compiler_static_GCJ='-Bstatic'
14843       ;;
14844
14845     sunos4*)
14846       lt_prog_compiler_wl_GCJ='-Qoption ld '
14847       lt_prog_compiler_pic_GCJ='-PIC'
14848       lt_prog_compiler_static_GCJ='-Bstatic'
14849       ;;
14850
14851     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14852       lt_prog_compiler_wl_GCJ='-Wl,'
14853       lt_prog_compiler_pic_GCJ='-KPIC'
14854       lt_prog_compiler_static_GCJ='-Bstatic'
14855       ;;
14856
14857     sysv4*MP*)
14858       if test -d /usr/nec ;then
14859         lt_prog_compiler_pic_GCJ='-Kconform_pic'
14860         lt_prog_compiler_static_GCJ='-Bstatic'
14861       fi
14862       ;;
14863
14864     uts4*)
14865       lt_prog_compiler_pic_GCJ='-pic'
14866       lt_prog_compiler_static_GCJ='-Bstatic'
14867       ;;
14868
14869     *)
14870       lt_prog_compiler_can_build_shared_GCJ=no
14871       ;;
14872     esac
14873   fi
14874
14875 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14876 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14877
14878 #
14879 # Check to make sure the PIC flag actually works.
14880 #
14881 if test -n "$lt_prog_compiler_pic_GCJ"; then
14882   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14883 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14884 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14885   echo $ECHO_N "(cached) $ECHO_C" >&6
14886 else
14887   lt_prog_compiler_pic_works_GCJ=no
14888   ac_outfile=conftest.$ac_objext
14889    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14890    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14891    # Insert the option either (1) after the last *FLAGS variable, or
14892    # (2) before a word containing "conftest.", or (3) at the end.
14893    # Note that $ac_compile itself does not contain backslashes and begins
14894    # with a dollar sign (not a hyphen), so the echo should work correctly.
14895    # The option is referenced via a variable to avoid confusing sed.
14896    lt_compile=`echo "$ac_compile" | $SED \
14897    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14898    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14899    -e 's:$: $lt_compiler_flag:'`
14900    (eval echo "\"\$as_me:14900: $lt_compile\"" >&5)
14901    (eval "$lt_compile" 2>conftest.err)
14902    ac_status=$?
14903    cat conftest.err >&5
14904    echo "$as_me:14904: \$? = $ac_status" >&5
14905    if (exit $ac_status) && test -s "$ac_outfile"; then
14906      # The compiler can only warn and ignore the option if not recognized
14907      # So say no if there are warnings
14908      if test ! -s conftest.err; then
14909        lt_prog_compiler_pic_works_GCJ=yes
14910      fi
14911    fi
14912    $rm conftest*
14913
14914 fi
14915 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14916 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14917
14918 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14919     case $lt_prog_compiler_pic_GCJ in
14920      "" | " "*) ;;
14921      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14922      esac
14923 else
14924     lt_prog_compiler_pic_GCJ=
14925      lt_prog_compiler_can_build_shared_GCJ=no
14926 fi
14927
14928 fi
14929 case "$host_os" in
14930   # For platforms which do not support PIC, -DPIC is meaningless:
14931   *djgpp*)
14932     lt_prog_compiler_pic_GCJ=
14933     ;;
14934   *)
14935     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14936     ;;
14937 esac
14938
14939 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14940 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14941 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14942   echo $ECHO_N "(cached) $ECHO_C" >&6
14943 else
14944   lt_cv_prog_compiler_c_o_GCJ=no
14945    $rm -r conftest 2>/dev/null
14946    mkdir conftest
14947    cd conftest
14948    mkdir out
14949    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14950
14951    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14952    # that will create temporary files in the current directory regardless of
14953    # the output directory.  Thus, making CWD read-only will cause this test
14954    # to fail, enabling locking or at least warning the user not to do parallel
14955    # builds.
14956    chmod -w .
14957
14958    lt_compiler_flag="-o out/conftest2.$ac_objext"
14959    # Insert the option either (1) after the last *FLAGS variable, or
14960    # (2) before a word containing "conftest.", or (3) at the end.
14961    # Note that $ac_compile itself does not contain backslashes and begins
14962    # with a dollar sign (not a hyphen), so the echo should work correctly.
14963    lt_compile=`echo "$ac_compile" | $SED \
14964    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14965    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14966    -e 's:$: $lt_compiler_flag:'`
14967    (eval echo "\"\$as_me:14967: $lt_compile\"" >&5)
14968    (eval "$lt_compile" 2>out/conftest.err)
14969    ac_status=$?
14970    cat out/conftest.err >&5
14971    echo "$as_me:14971: \$? = $ac_status" >&5
14972    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14973    then
14974      # The compiler can only warn and ignore the option if not recognized
14975      # So say no if there are warnings
14976      if test ! -s out/conftest.err; then
14977        lt_cv_prog_compiler_c_o_GCJ=yes
14978      fi
14979    fi
14980    chmod u+w .
14981    $rm conftest* out/*
14982    rmdir out
14983    cd ..
14984    rmdir conftest
14985    $rm conftest*
14986
14987 fi
14988 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14989 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14990
14991
14992 hard_links="nottested"
14993 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14994   # do not overwrite the value of need_locks provided by the user
14995   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14996 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14997   hard_links=yes
14998   $rm conftest*
14999   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15000   touch conftest.a
15001   ln conftest.a conftest.b 2>&5 || hard_links=no
15002   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15003   echo "$as_me:$LINENO: result: $hard_links" >&5
15004 echo "${ECHO_T}$hard_links" >&6
15005   if test "$hard_links" = no; then
15006     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15007 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15008     need_locks=warn
15009   fi
15010 else
15011   need_locks=no
15012 fi
15013
15014 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15015 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15016
15017   runpath_var=
15018   allow_undefined_flag_GCJ=
15019   enable_shared_with_static_runtimes_GCJ=no
15020   archive_cmds_GCJ=
15021   archive_expsym_cmds_GCJ=
15022   old_archive_From_new_cmds_GCJ=
15023   old_archive_from_expsyms_cmds_GCJ=
15024   export_dynamic_flag_spec_GCJ=
15025   whole_archive_flag_spec_GCJ=
15026   thread_safe_flag_spec_GCJ=
15027   hardcode_libdir_flag_spec_GCJ=
15028   hardcode_libdir_flag_spec_ld_GCJ=
15029   hardcode_libdir_separator_GCJ=
15030   hardcode_direct_GCJ=no
15031   hardcode_minus_L_GCJ=no
15032   hardcode_shlibpath_var_GCJ=unsupported
15033   link_all_deplibs_GCJ=unknown
15034   hardcode_automatic_GCJ=no
15035   module_cmds_GCJ=
15036   module_expsym_cmds_GCJ=
15037   always_export_symbols_GCJ=no
15038   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15039   # include_expsyms should be a list of space-separated symbols to be *always*
15040   # included in the symbol list
15041   include_expsyms_GCJ=
15042   # exclude_expsyms can be an extended regexp of symbols to exclude
15043   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15044   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15045   # as well as any symbol that contains `d'.
15046   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15047   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15048   # platforms (ab)use it in PIC code, but their linkers get confused if
15049   # the symbol is explicitly referenced.  Since portable code cannot
15050   # rely on this symbol name, it's probably fine to never include it in
15051   # preloaded symbol tables.
15052   extract_expsyms_cmds=
15053
15054   case $host_os in
15055   cygwin* | mingw* | pw32*)
15056     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15057     # When not using gcc, we currently assume that we are using
15058     # Microsoft Visual C++.
15059     if test "$GCC" != yes; then
15060       with_gnu_ld=no
15061     fi
15062     ;;
15063   openbsd*)
15064     with_gnu_ld=no
15065     ;;
15066   esac
15067
15068   ld_shlibs_GCJ=yes
15069   if test "$with_gnu_ld" = yes; then
15070     # If archive_cmds runs LD, not CC, wlarc should be empty
15071     wlarc='${wl}'
15072
15073     # See if GNU ld supports shared libraries.
15074     case $host_os in
15075     aix3* | aix4* | aix5*)
15076       # On AIX/PPC, the GNU linker is very broken
15077       if test "$host_cpu" != ia64; then
15078         ld_shlibs_GCJ=no
15079         cat <<EOF 1>&2
15080
15081 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15082 *** to be unable to reliably create shared libraries on AIX.
15083 *** Therefore, libtool is disabling shared libraries support.  If you
15084 *** really care for shared libraries, you may want to modify your PATH
15085 *** so that a non-GNU linker is found, and then restart.
15086
15087 EOF
15088       fi
15089       ;;
15090
15091     amigaos*)
15092       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)'
15093       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15094       hardcode_minus_L_GCJ=yes
15095
15096       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15097       # that the semantics of dynamic libraries on AmigaOS, at least up
15098       # to version 4, is to share data among multiple programs linked
15099       # with the same dynamic library.  Since this doesn't match the
15100       # behavior of shared libraries on other platforms, we can't use
15101       # them.
15102       ld_shlibs_GCJ=no
15103       ;;
15104
15105     beos*)
15106       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15107         allow_undefined_flag_GCJ=unsupported
15108         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15109         # support --undefined.  This deserves some investigation.  FIXME
15110         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15111       else
15112         ld_shlibs_GCJ=no
15113       fi
15114       ;;
15115
15116     cygwin* | mingw* | pw32*)
15117       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15118       # as there is no search path for DLLs.
15119       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15120       allow_undefined_flag_GCJ=unsupported
15121       always_export_symbols_GCJ=no
15122       enable_shared_with_static_runtimes_GCJ=yes
15123       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15124
15125       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15126         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15127         # If the export-symbols file already is a .def file (1st line
15128         # is EXPORTS), use it as is; otherwise, prepend...
15129         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15130           cp $export_symbols $output_objdir/$soname.def;
15131         else
15132           echo EXPORTS > $output_objdir/$soname.def;
15133           cat $export_symbols >> $output_objdir/$soname.def;
15134         fi~
15135         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15136       else
15137         ld_shlibs=no
15138       fi
15139       ;;
15140
15141     netbsd*)
15142       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15143         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15144         wlarc=
15145       else
15146         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15147         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15148       fi
15149       ;;
15150
15151     solaris* | sysv5*)
15152       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15153         ld_shlibs_GCJ=no
15154         cat <<EOF 1>&2
15155
15156 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15157 *** create shared libraries on Solaris systems.  Therefore, libtool
15158 *** is disabling shared libraries support.  We urge you to upgrade GNU
15159 *** binutils to release 2.9.1 or newer.  Another option is to modify
15160 *** your PATH or compiler configuration so that the native linker is
15161 *** used, and then restart.
15162
15163 EOF
15164       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15165         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15166         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15167       else
15168         ld_shlibs_GCJ=no
15169       fi
15170       ;;
15171
15172     sunos4*)
15173       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15174       wlarc=
15175       hardcode_direct_GCJ=yes
15176       hardcode_shlibpath_var_GCJ=no
15177       ;;
15178
15179     *)
15180       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15181         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15182         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15183       else
15184         ld_shlibs_GCJ=no
15185       fi
15186       ;;
15187     esac
15188
15189     if test "$ld_shlibs_GCJ" = yes; then
15190       runpath_var=LD_RUN_PATH
15191       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15192       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15193       # ancient GNU ld didn't support --whole-archive et. al.
15194       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15195         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15196       else
15197         whole_archive_flag_spec_GCJ=
15198       fi
15199     fi
15200   else
15201     # PORTME fill in a description of your system's linker (not GNU ld)
15202     case $host_os in
15203     aix3*)
15204       allow_undefined_flag_GCJ=unsupported
15205       always_export_symbols_GCJ=yes
15206       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'
15207       # Note: this linker hardcodes the directories in LIBPATH if there
15208       # are no directories specified by -L.
15209       hardcode_minus_L_GCJ=yes
15210       if test "$GCC" = yes && test -z "$link_static_flag"; then
15211         # Neither direct hardcoding nor static linking is supported with a
15212         # broken collect2.
15213         hardcode_direct_GCJ=unsupported
15214       fi
15215       ;;
15216
15217     aix4* | aix5*)
15218       if test "$host_cpu" = ia64; then
15219         # On IA64, the linker does run time linking by default, so we don't
15220         # have to do anything special.
15221         aix_use_runtimelinking=no
15222         exp_sym_flag='-Bexport'
15223         no_entry_flag=""
15224       else
15225         # If we're using GNU nm, then we don't want the "-C" option.
15226         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15227         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15228           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'
15229         else
15230           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'
15231         fi
15232         aix_use_runtimelinking=no
15233
15234         # Test if we are trying to use run time linking or normal
15235         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15236         # need to do runtime linking.
15237         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15238           for ld_flag in $LDFLAGS; do
15239           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15240             aix_use_runtimelinking=yes
15241             break
15242           fi
15243           done
15244         esac
15245
15246         exp_sym_flag='-bexport'
15247         no_entry_flag='-bnoentry'
15248       fi
15249
15250       # When large executables or shared objects are built, AIX ld can
15251       # have problems creating the table of contents.  If linking a library
15252       # or program results in "error TOC overflow" add -mminimal-toc to
15253       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15254       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15255
15256       archive_cmds_GCJ=''
15257       hardcode_direct_GCJ=yes
15258       hardcode_libdir_separator_GCJ=':'
15259       link_all_deplibs_GCJ=yes
15260
15261       if test "$GCC" = yes; then
15262         case $host_os in aix4.012|aix4.012.*)
15263         # We only want to do this on AIX 4.2 and lower, the check
15264         # below for broken collect2 doesn't work under 4.3+
15265           collect2name=`${CC} -print-prog-name=collect2`
15266           if test -f "$collect2name" && \
15267            strings "$collect2name" | grep resolve_lib_name >/dev/null
15268           then
15269           # We have reworked collect2
15270           hardcode_direct_GCJ=yes
15271           else
15272           # We have old collect2
15273           hardcode_direct_GCJ=unsupported
15274           # It fails to find uninstalled libraries when the uninstalled
15275           # path is not listed in the libpath.  Setting hardcode_minus_L
15276           # to unsupported forces relinking
15277           hardcode_minus_L_GCJ=yes
15278           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15279           hardcode_libdir_separator_GCJ=
15280           fi
15281         esac
15282         shared_flag='-shared'
15283       else
15284         # not using gcc
15285         if test "$host_cpu" = ia64; then
15286         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15287         # chokes on -Wl,-G. The following line is correct:
15288           shared_flag='-G'
15289         else
15290         if test "$aix_use_runtimelinking" = yes; then
15291             shared_flag='${wl}-G'
15292           else
15293             shared_flag='${wl}-bM:SRE'
15294         fi
15295         fi
15296       fi
15297
15298       # It seems that -bexpall does not export symbols beginning with
15299       # underscore (_), so it is better to generate a list of symbols to export.
15300       always_export_symbols_GCJ=yes
15301       if test "$aix_use_runtimelinking" = yes; then
15302         # Warning - without using the other runtime loading flags (-brtl),
15303         # -berok will link without error, but may produce a broken library.
15304         allow_undefined_flag_GCJ='-berok'
15305        # Determine the default libpath from the value encoded in an empty executable.
15306        cat >conftest.$ac_ext <<_ACEOF
15307 #line $LINENO "configure"
15308 /* confdefs.h.  */
15309 _ACEOF
15310 cat confdefs.h >>conftest.$ac_ext
15311 cat >>conftest.$ac_ext <<_ACEOF
15312 /* end confdefs.h.  */
15313
15314 int
15315 main ()
15316 {
15317
15318   ;
15319   return 0;
15320 }
15321 _ACEOF
15322 rm -f conftest.$ac_objext conftest$ac_exeext
15323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15324   (eval $ac_link) 2>&5
15325   ac_status=$?
15326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327   (exit $ac_status); } &&
15328          { ac_try='test -s conftest$ac_exeext'
15329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330   (eval $ac_try) 2>&5
15331   ac_status=$?
15332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333   (exit $ac_status); }; }; then
15334
15335 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15336 }'`
15337 # Check for a 64-bit object if we didn't find anything.
15338 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; }
15339 }'`; fi
15340 else
15341   echo "$as_me: failed program was:" >&5
15342 sed 's/^/| /' conftest.$ac_ext >&5
15343
15344 fi
15345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15346 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15347
15348        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15349         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"
15350        else
15351         if test "$host_cpu" = ia64; then
15352           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15353           allow_undefined_flag_GCJ="-z nodefs"
15354           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"
15355         else
15356          # Determine the default libpath from the value encoded in an empty executable.
15357          cat >conftest.$ac_ext <<_ACEOF
15358 #line $LINENO "configure"
15359 /* confdefs.h.  */
15360 _ACEOF
15361 cat confdefs.h >>conftest.$ac_ext
15362 cat >>conftest.$ac_ext <<_ACEOF
15363 /* end confdefs.h.  */
15364
15365 int
15366 main ()
15367 {
15368
15369   ;
15370   return 0;
15371 }
15372 _ACEOF
15373 rm -f conftest.$ac_objext conftest$ac_exeext
15374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15375   (eval $ac_link) 2>&5
15376   ac_status=$?
15377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378   (exit $ac_status); } &&
15379          { ac_try='test -s conftest$ac_exeext'
15380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381   (eval $ac_try) 2>&5
15382   ac_status=$?
15383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384   (exit $ac_status); }; }; then
15385
15386 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15387 }'`
15388 # Check for a 64-bit object if we didn't find anything.
15389 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; }
15390 }'`; fi
15391 else
15392   echo "$as_me: failed program was:" >&5
15393 sed 's/^/| /' conftest.$ac_ext >&5
15394
15395 fi
15396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15397 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15398
15399          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15400           # Warning - without using the other run time loading flags,
15401           # -berok will link without error, but may produce a broken library.
15402           no_undefined_flag_GCJ=' ${wl}-bernotok'
15403           allow_undefined_flag_GCJ=' ${wl}-berok'
15404           # -bexpall does not export symbols beginning with underscore (_)
15405           always_export_symbols_GCJ=yes
15406           # Exported symbols can be pulled into shared objects from archives
15407           whole_archive_flag_spec_GCJ=' '
15408           archive_cmds_need_lc_GCJ=yes
15409           # This is similar to how AIX traditionally builds it's shared libraries.
15410           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'
15411         fi
15412       fi
15413       ;;
15414
15415     amigaos*)
15416       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)'
15417       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15418       hardcode_minus_L_GCJ=yes
15419       # see comment about different semantics on the GNU ld section
15420       ld_shlibs_GCJ=no
15421       ;;
15422
15423     bsdi4*)
15424       export_dynamic_flag_spec_GCJ=-rdynamic
15425       ;;
15426
15427     cygwin* | mingw* | pw32*)
15428       # When not using gcc, we currently assume that we are using
15429       # Microsoft Visual C++.
15430       # hardcode_libdir_flag_spec is actually meaningless, as there is
15431       # no search path for DLLs.
15432       hardcode_libdir_flag_spec_GCJ=' '
15433       allow_undefined_flag_GCJ=unsupported
15434       # Tell ltmain to make .lib files, not .a files.
15435       libext=lib
15436       # Tell ltmain to make .dll files, not .so files.
15437       shrext=".dll"
15438       # FIXME: Setting linknames here is a bad hack.
15439       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15440       # The linker will automatically build a .lib file if we build a DLL.
15441       old_archive_From_new_cmds_GCJ='true'
15442       # FIXME: Should let the user specify the lib program.
15443       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15444       fix_srcfile_path='`cygpath -w "$srcfile"`'
15445       enable_shared_with_static_runtimes_GCJ=yes
15446       ;;
15447
15448     darwin* | rhapsody*)
15449     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15450       archive_cmds_need_lc_GCJ=no
15451       case "$host_os" in
15452       rhapsody* | darwin1.[012])
15453         allow_undefined_flag_GCJ='-undefined suppress'
15454         ;;
15455       *) # Darwin 1.3 on
15456         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15457         ;;
15458       esac
15459       # FIXME: Relying on posixy $() will cause problems for
15460       #        cross-compilation, but unfortunately the echo tests do not
15461       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15462       #        `"' quotes if we put them in here... so don't!
15463         lt_int_apple_cc_single_mod=no
15464         output_verbose_link_cmd='echo'
15465         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15466           lt_int_apple_cc_single_mod=yes
15467         fi
15468         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15469           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15470         else
15471         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'
15472       fi
15473       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15474       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15475         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15476           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}'
15477         else
15478           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}'
15479         fi
15480           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}'
15481       hardcode_direct_GCJ=no
15482       hardcode_automatic_GCJ=yes
15483       hardcode_shlibpath_var_GCJ=unsupported
15484       whole_archive_flag_spec_GCJ='-all_load $convenience'
15485       link_all_deplibs_GCJ=yes
15486     fi
15487       ;;
15488
15489     dgux*)
15490       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15491       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15492       hardcode_shlibpath_var_GCJ=no
15493       ;;
15494
15495     freebsd1*)
15496       ld_shlibs_GCJ=no
15497       ;;
15498
15499     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15500     # support.  Future versions do this automatically, but an explicit c++rt0.o
15501     # does not break anything, and helps significantly (at the cost of a little
15502     # extra space).
15503     freebsd2.2*)
15504       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15505       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15506       hardcode_direct_GCJ=yes
15507       hardcode_shlibpath_var_GCJ=no
15508       ;;
15509
15510     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15511     freebsd2*)
15512       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15513       hardcode_direct_GCJ=yes
15514       hardcode_minus_L_GCJ=yes
15515       hardcode_shlibpath_var_GCJ=no
15516       ;;
15517
15518     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15519     freebsd*)
15520       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15521       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15522       hardcode_direct_GCJ=yes
15523       hardcode_shlibpath_var_GCJ=no
15524       ;;
15525
15526     hpux9*)
15527       if test "$GCC" = yes; then
15528         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'
15529       else
15530         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'
15531       fi
15532       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15533       hardcode_libdir_separator_GCJ=:
15534       hardcode_direct_GCJ=yes
15535
15536       # hardcode_minus_L: Not really in the search PATH,
15537       # but as the default location of the library.
15538       hardcode_minus_L_GCJ=yes
15539       export_dynamic_flag_spec_GCJ='${wl}-E'
15540       ;;
15541
15542     hpux10* | hpux11*)
15543       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15544         case "$host_cpu" in
15545         hppa*64*|ia64*)
15546           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15547           ;;
15548         *)
15549           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15550           ;;
15551         esac
15552       else
15553         case "$host_cpu" in
15554         hppa*64*|ia64*)
15555           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15556           ;;
15557         *)
15558           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15559           ;;
15560         esac
15561       fi
15562       if test "$with_gnu_ld" = no; then
15563         case "$host_cpu" in
15564         hppa*64*)
15565           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15566           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15567           hardcode_libdir_separator_GCJ=:
15568           hardcode_direct_GCJ=no
15569           hardcode_shlibpath_var_GCJ=no
15570           ;;
15571         ia64*)
15572           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15573           hardcode_direct_GCJ=no
15574           hardcode_shlibpath_var_GCJ=no
15575
15576           # hardcode_minus_L: Not really in the search PATH,
15577           # but as the default location of the library.
15578           hardcode_minus_L_GCJ=yes
15579           ;;
15580         *)
15581           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15582           hardcode_libdir_separator_GCJ=:
15583           hardcode_direct_GCJ=yes
15584           export_dynamic_flag_spec_GCJ='${wl}-E'
15585
15586           # hardcode_minus_L: Not really in the search PATH,
15587           # but as the default location of the library.
15588           hardcode_minus_L_GCJ=yes
15589           ;;
15590         esac
15591       fi
15592       ;;
15593
15594     irix5* | irix6* | nonstopux*)
15595       if test "$GCC" = yes; then
15596         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'
15597       else
15598         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'
15599         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15600       fi
15601       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15602       hardcode_libdir_separator_GCJ=:
15603       link_all_deplibs_GCJ=yes
15604       ;;
15605
15606     netbsd*)
15607       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15608         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15609       else
15610         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15611       fi
15612       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15613       hardcode_direct_GCJ=yes
15614       hardcode_shlibpath_var_GCJ=no
15615       ;;
15616
15617     newsos6)
15618       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15619       hardcode_direct_GCJ=yes
15620       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15621       hardcode_libdir_separator_GCJ=:
15622       hardcode_shlibpath_var_GCJ=no
15623       ;;
15624
15625     openbsd*)
15626       hardcode_direct_GCJ=yes
15627       hardcode_shlibpath_var_GCJ=no
15628       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15629         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15630         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15631         export_dynamic_flag_spec_GCJ='${wl}-E'
15632       else
15633        case $host_os in
15634          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15635            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15636            hardcode_libdir_flag_spec_GCJ='-R$libdir'
15637            ;;
15638          *)
15639            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15640            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15641            ;;
15642        esac
15643       fi
15644       ;;
15645
15646     os2*)
15647       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15648       hardcode_minus_L_GCJ=yes
15649       allow_undefined_flag_GCJ=unsupported
15650       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'
15651       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15652       ;;
15653
15654     osf3*)
15655       if test "$GCC" = yes; then
15656         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15657         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'
15658       else
15659         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15660         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'
15661       fi
15662       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15663       hardcode_libdir_separator_GCJ=:
15664       ;;
15665
15666     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15667       if test "$GCC" = yes; then
15668         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15669         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'
15670         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15671       else
15672         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15673         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'
15674         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~
15675         $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'
15676
15677         # Both c and cxx compiler support -rpath directly
15678         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15679       fi
15680       hardcode_libdir_separator_GCJ=:
15681       ;;
15682
15683     sco3.2v5*)
15684       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15685       hardcode_shlibpath_var_GCJ=no
15686       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15687       runpath_var=LD_RUN_PATH
15688       hardcode_runpath_var=yes
15689       ;;
15690
15691     solaris*)
15692       no_undefined_flag_GCJ=' -z text'
15693       if test "$GCC" = yes; then
15694         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15695         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15696           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15697       else
15698         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15699         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15700         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15701       fi
15702       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15703       hardcode_shlibpath_var_GCJ=no
15704       case $host_os in
15705       solaris2.[0-5] | solaris2.[0-5].*) ;;
15706       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15707         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15708       esac
15709       link_all_deplibs_GCJ=yes
15710       ;;
15711
15712     sunos4*)
15713       if test "x$host_vendor" = xsequent; then
15714         # Use $CC to link under sequent, because it throws in some extra .o
15715         # files that make .init and .fini sections work.
15716         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15717       else
15718         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15719       fi
15720       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15721       hardcode_direct_GCJ=yes
15722       hardcode_minus_L_GCJ=yes
15723       hardcode_shlibpath_var_GCJ=no
15724       ;;
15725
15726     sysv4)
15727       case $host_vendor in
15728         sni)
15729           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15730           hardcode_direct_GCJ=yes # is this really true???
15731         ;;
15732         siemens)
15733           ## LD is ld it makes a PLAMLIB
15734           ## CC just makes a GrossModule.
15735           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15736           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15737           hardcode_direct_GCJ=no
15738         ;;
15739         motorola)
15740           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15741           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15742         ;;
15743       esac
15744       runpath_var='LD_RUN_PATH'
15745       hardcode_shlibpath_var_GCJ=no
15746       ;;
15747
15748     sysv4.3*)
15749       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15750       hardcode_shlibpath_var_GCJ=no
15751       export_dynamic_flag_spec_GCJ='-Bexport'
15752       ;;
15753
15754     sysv4*MP*)
15755       if test -d /usr/nec; then
15756         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15757         hardcode_shlibpath_var_GCJ=no
15758         runpath_var=LD_RUN_PATH
15759         hardcode_runpath_var=yes
15760         ld_shlibs_GCJ=yes
15761       fi
15762       ;;
15763
15764     sysv4.2uw2*)
15765       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15766       hardcode_direct_GCJ=yes
15767       hardcode_minus_L_GCJ=no
15768       hardcode_shlibpath_var_GCJ=no
15769       hardcode_runpath_var=yes
15770       runpath_var=LD_RUN_PATH
15771       ;;
15772
15773    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15774       no_undefined_flag_GCJ='${wl}-z ${wl}text'
15775       if test "$GCC" = yes; then
15776         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15777       else
15778         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15779       fi
15780       runpath_var='LD_RUN_PATH'
15781       hardcode_shlibpath_var_GCJ=no
15782       ;;
15783
15784     sysv5*)
15785       no_undefined_flag_GCJ=' -z text'
15786       # $CC -shared without GNU ld will not create a library from C++
15787       # object files and a static libstdc++, better avoid it by now
15788       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15789       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15790                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15791       hardcode_libdir_flag_spec_GCJ=
15792       hardcode_shlibpath_var_GCJ=no
15793       runpath_var='LD_RUN_PATH'
15794       ;;
15795
15796     uts4*)
15797       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15798       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15799       hardcode_shlibpath_var_GCJ=no
15800       ;;
15801
15802     *)
15803       ld_shlibs_GCJ=no
15804       ;;
15805     esac
15806   fi
15807
15808 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15809 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15810 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15811
15812 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15813 if test "$GCC" = yes; then
15814   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15815 fi
15816
15817 #
15818 # Do we need to explicitly link libc?
15819 #
15820 case "x$archive_cmds_need_lc_GCJ" in
15821 x|xyes)
15822   # Assume -lc should be added
15823   archive_cmds_need_lc_GCJ=yes
15824
15825   if test "$enable_shared" = yes && test "$GCC" = yes; then
15826     case $archive_cmds_GCJ in
15827     *'~'*)
15828       # FIXME: we may have to deal with multi-command sequences.
15829       ;;
15830     '$CC '*)
15831       # Test whether the compiler implicitly links with -lc since on some
15832       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15833       # to ld, don't add -lc before -lgcc.
15834       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15835 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15836       $rm conftest*
15837       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15838
15839       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15840   (eval $ac_compile) 2>&5
15841   ac_status=$?
15842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843   (exit $ac_status); } 2>conftest.err; then
15844         soname=conftest
15845         lib=conftest
15846         libobjs=conftest.$ac_objext
15847         deplibs=
15848         wl=$lt_prog_compiler_wl_GCJ
15849         compiler_flags=-v
15850         linker_flags=-v
15851         verstring=
15852         output_objdir=.
15853         libname=conftest
15854         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15855         allow_undefined_flag_GCJ=
15856         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15857   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15858   ac_status=$?
15859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860   (exit $ac_status); }
15861         then
15862           archive_cmds_need_lc_GCJ=no
15863         else
15864           archive_cmds_need_lc_GCJ=yes
15865         fi
15866         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15867       else
15868         cat conftest.err 1>&5
15869       fi
15870       $rm conftest*
15871       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15872 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15873       ;;
15874     esac
15875   fi
15876   ;;
15877 esac
15878
15879 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15880 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15881 hardcode_action_GCJ=
15882 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15883    test -n "$runpath_var GCJ" || \
15884    test "X$hardcode_automatic_GCJ"="Xyes" ; then
15885
15886   # We can hardcode non-existant directories.
15887   if test "$hardcode_direct_GCJ" != no &&
15888      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15889      # have to relink, otherwise we might link with an installed library
15890      # when we should be linking with a yet-to-be-installed one
15891      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15892      test "$hardcode_minus_L_GCJ" != no; then
15893     # Linking always hardcodes the temporary library directory.
15894     hardcode_action_GCJ=relink
15895   else
15896     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15897     hardcode_action_GCJ=immediate
15898   fi
15899 else
15900   # We cannot hardcode anything, or else we can only hardcode existing
15901   # directories.
15902   hardcode_action_GCJ=unsupported
15903 fi
15904 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15905 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15906
15907 if test "$hardcode_action_GCJ" = relink; then
15908   # Fast installation is not supported
15909   enable_fast_install=no
15910 elif test "$shlibpath_overrides_runpath" = yes ||
15911      test "$enable_shared" = no; then
15912   # Fast installation is not necessary
15913   enable_fast_install=needless
15914 fi
15915
15916 striplib=
15917 old_striplib=
15918 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15919 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15920 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15921   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15922   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15923   echo "$as_me:$LINENO: result: yes" >&5
15924 echo "${ECHO_T}yes" >&6
15925 else
15926 # FIXME - insert some real tests, host_os isn't really good enough
15927   case $host_os in
15928    darwin*)
15929        if test -n "$STRIP" ; then
15930          striplib="$STRIP -x"
15931          echo "$as_me:$LINENO: result: yes" >&5
15932 echo "${ECHO_T}yes" >&6
15933        else
15934   echo "$as_me:$LINENO: result: no" >&5
15935 echo "${ECHO_T}no" >&6
15936 fi
15937        ;;
15938    *)
15939   echo "$as_me:$LINENO: result: no" >&5
15940 echo "${ECHO_T}no" >&6
15941     ;;
15942   esac
15943 fi
15944
15945 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15946 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15947 library_names_spec=
15948 libname_spec='lib$name'
15949 soname_spec=
15950 shrext=".so"
15951 postinstall_cmds=
15952 postuninstall_cmds=
15953 finish_cmds=
15954 finish_eval=
15955 shlibpath_var=
15956 shlibpath_overrides_runpath=unknown
15957 version_type=none
15958 dynamic_linker="$host_os ld.so"
15959 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15960 if test "$GCC" = yes; then
15961   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15962   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15963     # if the path contains ";" then we assume it to be the separator
15964     # otherwise default to the standard path separator (i.e. ":") - it is
15965     # assumed that no part of a normal pathname contains ";" but that should
15966     # okay in the real world where ";" in dirpaths is itself problematic.
15967     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15968   else
15969     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15970   fi
15971 else
15972   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15973 fi
15974 need_lib_prefix=unknown
15975 hardcode_into_libs=no
15976
15977 # when you set need_version to no, make sure it does not cause -set_version
15978 # flags to be left without arguments
15979 need_version=unknown
15980
15981 case $host_os in
15982 aix3*)
15983   version_type=linux
15984   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15985   shlibpath_var=LIBPATH
15986
15987   # AIX 3 has no versioning support, so we append a major version to the name.
15988   soname_spec='${libname}${release}${shared_ext}$major'
15989   ;;
15990
15991 aix4* | aix5*)
15992   version_type=linux
15993   need_lib_prefix=no
15994   need_version=no
15995   hardcode_into_libs=yes
15996   if test "$host_cpu" = ia64; then
15997     # AIX 5 supports IA64
15998     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15999     shlibpath_var=LD_LIBRARY_PATH
16000   else
16001     # With GCC up to 2.95.x, collect2 would create an import file
16002     # for dependence libraries.  The import file would start with
16003     # the line `#! .'.  This would cause the generated library to
16004     # depend on `.', always an invalid library.  This was fixed in
16005     # development snapshots of GCC prior to 3.0.
16006     case $host_os in
16007       aix4 | aix4.[01] | aix4.[01].*)
16008       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16009            echo ' yes '
16010            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16011         :
16012       else
16013         can_build_shared=no
16014       fi
16015       ;;
16016     esac
16017     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16018     # soname into executable. Probably we can add versioning support to
16019     # collect2, so additional links can be useful in future.
16020     if test "$aix_use_runtimelinking" = yes; then
16021       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16022       # instead of lib<name>.a to let people know that these are not
16023       # typical AIX shared libraries.
16024       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16025     else
16026       # We preserve .a as extension for shared libraries through AIX4.2
16027       # and later when we are not doing run time linking.
16028       library_names_spec='${libname}${release}.a $libname.a'
16029       soname_spec='${libname}${release}${shared_ext}$major'
16030     fi
16031     shlibpath_var=LIBPATH
16032   fi
16033   ;;
16034
16035 amigaos*)
16036   library_names_spec='$libname.ixlibrary $libname.a'
16037   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16038   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'
16039   ;;
16040
16041 beos*)
16042   library_names_spec='${libname}${shared_ext}'
16043   dynamic_linker="$host_os ld.so"
16044   shlibpath_var=LIBRARY_PATH
16045   ;;
16046
16047 bsdi4*)
16048   version_type=linux
16049   need_version=no
16050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16051   soname_spec='${libname}${release}${shared_ext}$major'
16052   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16053   shlibpath_var=LD_LIBRARY_PATH
16054   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16055   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16056   # the default ld.so.conf also contains /usr/contrib/lib and
16057   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16058   # libtool to hard-code these into programs
16059   ;;
16060
16061 cygwin* | mingw* | pw32*)
16062   version_type=windows
16063   shrext=".dll"
16064   need_version=no
16065   need_lib_prefix=no
16066
16067   case $GCC,$host_os in
16068   yes,cygwin* | yes,mingw* | yes,pw32*)
16069     library_names_spec='$libname.dll.a'
16070     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16071     postinstall_cmds='base_file=`basename \${file}`~
16072       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16073       dldir=$destdir/`dirname \$dlpath`~
16074       test -d \$dldir || mkdir -p \$dldir~
16075       $install_prog $dir/$dlname \$dldir/$dlname'
16076     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16077       dlpath=$dir/\$dldll~
16078        $rm \$dlpath'
16079     shlibpath_overrides_runpath=yes
16080
16081     case $host_os in
16082     cygwin*)
16083       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16084       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16085       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16086       ;;
16087     mingw*)
16088       # MinGW DLLs use traditional 'lib' prefix
16089       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16090       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16091       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16092         # It is most probably a Windows format PATH printed by
16093         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16094         # path with ; separators, and with drive letters. We can handle the
16095         # drive letters (cygwin fileutils understands them), so leave them,
16096         # especially as we might pass files found there to a mingw objdump,
16097         # which wouldn't understand a cygwinified path. Ahh.
16098         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16099       else
16100         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16101       fi
16102       ;;
16103     pw32*)
16104       # pw32 DLLs use 'pw' prefix rather than 'lib'
16105       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16106       ;;
16107     esac
16108     ;;
16109
16110   *)
16111     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16112     ;;
16113   esac
16114   dynamic_linker='Win32 ld.exe'
16115   # FIXME: first we should search . and the directory the executable is in
16116   shlibpath_var=PATH
16117   ;;
16118
16119 darwin* | rhapsody*)
16120   dynamic_linker="$host_os dyld"
16121   version_type=darwin
16122   need_lib_prefix=no
16123   need_version=no
16124   # FIXME: Relying on posixy $() will cause problems for
16125   #        cross-compilation, but unfortunately the echo tests do not
16126   #        yet detect zsh echo's removal of \ escapes.
16127   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16128   soname_spec='${libname}${release}${major}$shared_ext'
16129   shlibpath_overrides_runpath=yes
16130   shlibpath_var=DYLD_LIBRARY_PATH
16131   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16132   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16133   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16134   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"`
16135   fi
16136   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16137   ;;
16138
16139 dgux*)
16140   version_type=linux
16141   need_lib_prefix=no
16142   need_version=no
16143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16144   soname_spec='${libname}${release}${shared_ext}$major'
16145   shlibpath_var=LD_LIBRARY_PATH
16146   ;;
16147
16148 freebsd1*)
16149   dynamic_linker=no
16150   ;;
16151
16152 freebsd*)
16153   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16154   version_type=freebsd-$objformat
16155   case $version_type in
16156     freebsd-elf*)
16157       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16158       need_version=no
16159       need_lib_prefix=no
16160       ;;
16161     freebsd-*)
16162       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16163       need_version=yes
16164       ;;
16165   esac
16166   shlibpath_var=LD_LIBRARY_PATH
16167   case $host_os in
16168   freebsd2*)
16169     shlibpath_overrides_runpath=yes
16170     ;;
16171   freebsd3.01* | freebsdelf3.01*)
16172     shlibpath_overrides_runpath=yes
16173     hardcode_into_libs=yes
16174     ;;
16175   *) # from 3.2 on
16176     shlibpath_overrides_runpath=no
16177     hardcode_into_libs=yes
16178     ;;
16179   esac
16180   ;;
16181
16182 gnu*)
16183   version_type=linux
16184   need_lib_prefix=no
16185   need_version=no
16186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16187   soname_spec='${libname}${release}${shared_ext}$major'
16188   shlibpath_var=LD_LIBRARY_PATH
16189   hardcode_into_libs=yes
16190   ;;
16191
16192 hpux9* | hpux10* | hpux11*)
16193   # Give a soname corresponding to the major version so that dld.sl refuses to
16194   # link against other versions.
16195   version_type=sunos
16196   need_lib_prefix=no
16197   need_version=no
16198   case "$host_cpu" in
16199   ia64*)
16200     shrext='.so'
16201     hardcode_into_libs=yes
16202     dynamic_linker="$host_os dld.so"
16203     shlibpath_var=LD_LIBRARY_PATH
16204     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16205     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16206     soname_spec='${libname}${release}${shared_ext}$major'
16207     if test "X$HPUX_IA64_MODE" = X32; then
16208       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16209     else
16210       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16211     fi
16212     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16213     ;;
16214    hppa*64*)
16215      shrext='.sl'
16216      hardcode_into_libs=yes
16217      dynamic_linker="$host_os dld.sl"
16218      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16219      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16220      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16221      soname_spec='${libname}${release}${shared_ext}$major'
16222      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16223      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16224      ;;
16225    *)
16226     shrext='.sl'
16227     dynamic_linker="$host_os dld.sl"
16228     shlibpath_var=SHLIB_PATH
16229     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16230     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16231     soname_spec='${libname}${release}${shared_ext}$major'
16232     ;;
16233   esac
16234   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16235   postinstall_cmds='chmod 555 $lib'
16236   ;;
16237
16238 irix5* | irix6* | nonstopux*)
16239   case $host_os in
16240     nonstopux*) version_type=nonstopux ;;
16241     *)
16242         if test "$lt_cv_prog_gnu_ld" = yes; then
16243                 version_type=linux
16244         else
16245                 version_type=irix
16246         fi ;;
16247   esac
16248   need_lib_prefix=no
16249   need_version=no
16250   soname_spec='${libname}${release}${shared_ext}$major'
16251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16252   case $host_os in
16253   irix5* | nonstopux*)
16254     libsuff= shlibsuff=
16255     ;;
16256   *)
16257     case $LD in # libtool.m4 will add one of these switches to LD
16258     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16259       libsuff= shlibsuff= libmagic=32-bit;;
16260     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16261       libsuff=32 shlibsuff=N32 libmagic=N32;;
16262     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16263       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16264     *) libsuff= shlibsuff= libmagic=never-match;;
16265     esac
16266     ;;
16267   esac
16268   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16269   shlibpath_overrides_runpath=no
16270   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16271   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16272   hardcode_into_libs=yes
16273   ;;
16274
16275 # No shared lib support for Linux oldld, aout, or coff.
16276 linux*oldld* | linux*aout* | linux*coff*)
16277   dynamic_linker=no
16278   ;;
16279
16280 # This must be Linux ELF.
16281 linux*)
16282   version_type=linux
16283   need_lib_prefix=no
16284   need_version=no
16285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16286   soname_spec='${libname}${release}${shared_ext}$major'
16287   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16288   shlibpath_var=LD_LIBRARY_PATH
16289   shlibpath_overrides_runpath=no
16290   # This implies no fast_install, which is unacceptable.
16291   # Some rework will be needed to allow for fast_install
16292   # before this can be enabled.
16293   hardcode_into_libs=yes
16294
16295   # We used to test for /lib/ld.so.1 and disable shared libraries on
16296   # powerpc, because MkLinux only supported shared libraries with the
16297   # GNU dynamic linker.  Since this was broken with cross compilers,
16298   # most powerpc-linux boxes support dynamic linking these days and
16299   # people can always --disable-shared, the test was removed, and we
16300   # assume the GNU/Linux dynamic linker is in use.
16301   dynamic_linker='GNU/Linux ld.so'
16302   ;;
16303
16304 netbsd*)
16305   version_type=sunos
16306   need_lib_prefix=no
16307   need_version=no
16308   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16309     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16310     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16311     dynamic_linker='NetBSD (a.out) ld.so'
16312   else
16313     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16314     soname_spec='${libname}${release}${shared_ext}$major'
16315     dynamic_linker='NetBSD ld.elf_so'
16316   fi
16317   shlibpath_var=LD_LIBRARY_PATH
16318   shlibpath_overrides_runpath=yes
16319   hardcode_into_libs=yes
16320   ;;
16321
16322 newsos6)
16323   version_type=linux
16324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16325   shlibpath_var=LD_LIBRARY_PATH
16326   shlibpath_overrides_runpath=yes
16327   ;;
16328
16329 nto-qnx)
16330   version_type=linux
16331   need_lib_prefix=no
16332   need_version=no
16333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16334   soname_spec='${libname}${release}${shared_ext}$major'
16335   shlibpath_var=LD_LIBRARY_PATH
16336   shlibpath_overrides_runpath=yes
16337   ;;
16338
16339 openbsd*)
16340   version_type=sunos
16341   need_lib_prefix=no
16342   need_version=no
16343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16344   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16345   shlibpath_var=LD_LIBRARY_PATH
16346   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16347     case $host_os in
16348       openbsd2.[89] | openbsd2.[89].*)
16349         shlibpath_overrides_runpath=no
16350         ;;
16351       *)
16352         shlibpath_overrides_runpath=yes
16353         ;;
16354       esac
16355   else
16356     shlibpath_overrides_runpath=yes
16357   fi
16358   ;;
16359
16360 os2*)
16361   libname_spec='$name'
16362   shrext=".dll"
16363   need_lib_prefix=no
16364   library_names_spec='$libname${shared_ext} $libname.a'
16365   dynamic_linker='OS/2 ld.exe'
16366   shlibpath_var=LIBPATH
16367   ;;
16368
16369 osf3* | osf4* | osf5*)
16370   version_type=osf
16371   need_lib_prefix=no
16372   need_version=no
16373   soname_spec='${libname}${release}${shared_ext}$major'
16374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16375   shlibpath_var=LD_LIBRARY_PATH
16376   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16377   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16378   ;;
16379
16380 sco3.2v5*)
16381   version_type=osf
16382   soname_spec='${libname}${release}${shared_ext}$major'
16383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16384   shlibpath_var=LD_LIBRARY_PATH
16385   ;;
16386
16387 solaris*)
16388   version_type=linux
16389   need_lib_prefix=no
16390   need_version=no
16391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16392   soname_spec='${libname}${release}${shared_ext}$major'
16393   shlibpath_var=LD_LIBRARY_PATH
16394   shlibpath_overrides_runpath=yes
16395   hardcode_into_libs=yes
16396   # ldd complains unless libraries are executable
16397   postinstall_cmds='chmod +x $lib'
16398   ;;
16399
16400 sunos4*)
16401   version_type=sunos
16402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16403   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16404   shlibpath_var=LD_LIBRARY_PATH
16405   shlibpath_overrides_runpath=yes
16406   if test "$with_gnu_ld" = yes; then
16407     need_lib_prefix=no
16408   fi
16409   need_version=yes
16410   ;;
16411
16412 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16413   version_type=linux
16414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16415   soname_spec='${libname}${release}${shared_ext}$major'
16416   shlibpath_var=LD_LIBRARY_PATH
16417   case $host_vendor in
16418     sni)
16419       shlibpath_overrides_runpath=no
16420       need_lib_prefix=no
16421       export_dynamic_flag_spec='${wl}-Blargedynsym'
16422       runpath_var=LD_RUN_PATH
16423       ;;
16424     siemens)
16425       need_lib_prefix=no
16426       ;;
16427     motorola)
16428       need_lib_prefix=no
16429       need_version=no
16430       shlibpath_overrides_runpath=no
16431       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16432       ;;
16433   esac
16434   ;;
16435
16436 sysv4*MP*)
16437   if test -d /usr/nec ;then
16438     version_type=linux
16439     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16440     soname_spec='$libname${shared_ext}.$major'
16441     shlibpath_var=LD_LIBRARY_PATH
16442   fi
16443   ;;
16444
16445 uts4*)
16446   version_type=linux
16447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16448   soname_spec='${libname}${release}${shared_ext}$major'
16449   shlibpath_var=LD_LIBRARY_PATH
16450   ;;
16451
16452 *)
16453   dynamic_linker=no
16454   ;;
16455 esac
16456 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16457 echo "${ECHO_T}$dynamic_linker" >&6
16458 test "$dynamic_linker" = no && can_build_shared=no
16459
16460 if test "x$enable_dlopen" != xyes; then
16461   enable_dlopen=unknown
16462   enable_dlopen_self=unknown
16463   enable_dlopen_self_static=unknown
16464 else
16465   lt_cv_dlopen=no
16466   lt_cv_dlopen_libs=
16467
16468   case $host_os in
16469   beos*)
16470     lt_cv_dlopen="load_add_on"
16471     lt_cv_dlopen_libs=
16472     lt_cv_dlopen_self=yes
16473     ;;
16474
16475   mingw* | pw32*)
16476     lt_cv_dlopen="LoadLibrary"
16477     lt_cv_dlopen_libs=
16478    ;;
16479
16480   cygwin*)
16481     lt_cv_dlopen="dlopen"
16482     lt_cv_dlopen_libs=
16483    ;;
16484
16485   darwin*)
16486   # if libdl is installed we need to link against it
16487     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16488 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16489 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16490   echo $ECHO_N "(cached) $ECHO_C" >&6
16491 else
16492   ac_check_lib_save_LIBS=$LIBS
16493 LIBS="-ldl  $LIBS"
16494 cat >conftest.$ac_ext <<_ACEOF
16495 #line $LINENO "configure"
16496 /* confdefs.h.  */
16497 _ACEOF
16498 cat confdefs.h >>conftest.$ac_ext
16499 cat >>conftest.$ac_ext <<_ACEOF
16500 /* end confdefs.h.  */
16501
16502 /* Override any gcc2 internal prototype to avoid an error.  */
16503 #ifdef __cplusplus
16504 extern "C"
16505 #endif
16506 /* We use char because int might match the return type of a gcc2
16507    builtin and then its argument prototype would still apply.  */
16508 char dlopen ();
16509 int
16510 main ()
16511 {
16512 dlopen ();
16513   ;
16514   return 0;
16515 }
16516 _ACEOF
16517 rm -f conftest.$ac_objext conftest$ac_exeext
16518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16519   (eval $ac_link) 2>&5
16520   ac_status=$?
16521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522   (exit $ac_status); } &&
16523          { ac_try='test -s conftest$ac_exeext'
16524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16525   (eval $ac_try) 2>&5
16526   ac_status=$?
16527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528   (exit $ac_status); }; }; then
16529   ac_cv_lib_dl_dlopen=yes
16530 else
16531   echo "$as_me: failed program was:" >&5
16532 sed 's/^/| /' conftest.$ac_ext >&5
16533
16534 ac_cv_lib_dl_dlopen=no
16535 fi
16536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16537 LIBS=$ac_check_lib_save_LIBS
16538 fi
16539 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16540 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16541 if test $ac_cv_lib_dl_dlopen = yes; then
16542   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16543 else
16544
16545     lt_cv_dlopen="dyld"
16546     lt_cv_dlopen_libs=
16547     lt_cv_dlopen_self=yes
16548
16549 fi
16550
16551    ;;
16552
16553   *)
16554     echo "$as_me:$LINENO: checking for shl_load" >&5
16555 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16556 if test "${ac_cv_func_shl_load+set}" = set; then
16557   echo $ECHO_N "(cached) $ECHO_C" >&6
16558 else
16559   cat >conftest.$ac_ext <<_ACEOF
16560 #line $LINENO "configure"
16561 /* confdefs.h.  */
16562 _ACEOF
16563 cat confdefs.h >>conftest.$ac_ext
16564 cat >>conftest.$ac_ext <<_ACEOF
16565 /* end confdefs.h.  */
16566 /* System header to define __stub macros and hopefully few prototypes,
16567     which can conflict with char shl_load (); below.
16568     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16569     <limits.h> exists even on freestanding compilers.  */
16570 #ifdef __STDC__
16571 # include <limits.h>
16572 #else
16573 # include <assert.h>
16574 #endif
16575 /* Override any gcc2 internal prototype to avoid an error.  */
16576 #ifdef __cplusplus
16577 extern "C"
16578 {
16579 #endif
16580 /* We use char because int might match the return type of a gcc2
16581    builtin and then its argument prototype would still apply.  */
16582 char shl_load ();
16583 /* The GNU C library defines this for functions which it implements
16584     to always fail with ENOSYS.  Some functions are actually named
16585     something starting with __ and the normal name is an alias.  */
16586 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16587 choke me
16588 #else
16589 char (*f) () = shl_load;
16590 #endif
16591 #ifdef __cplusplus
16592 }
16593 #endif
16594
16595 int
16596 main ()
16597 {
16598 return f != shl_load;
16599   ;
16600   return 0;
16601 }
16602 _ACEOF
16603 rm -f conftest.$ac_objext conftest$ac_exeext
16604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16605   (eval $ac_link) 2>&5
16606   ac_status=$?
16607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608   (exit $ac_status); } &&
16609          { ac_try='test -s conftest$ac_exeext'
16610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16611   (eval $ac_try) 2>&5
16612   ac_status=$?
16613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614   (exit $ac_status); }; }; then
16615   ac_cv_func_shl_load=yes
16616 else
16617   echo "$as_me: failed program was:" >&5
16618 sed 's/^/| /' conftest.$ac_ext >&5
16619
16620 ac_cv_func_shl_load=no
16621 fi
16622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16623 fi
16624 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16625 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16626 if test $ac_cv_func_shl_load = yes; then
16627   lt_cv_dlopen="shl_load"
16628 else
16629   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16630 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16631 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16632   echo $ECHO_N "(cached) $ECHO_C" >&6
16633 else
16634   ac_check_lib_save_LIBS=$LIBS
16635 LIBS="-ldld  $LIBS"
16636 cat >conftest.$ac_ext <<_ACEOF
16637 #line $LINENO "configure"
16638 /* confdefs.h.  */
16639 _ACEOF
16640 cat confdefs.h >>conftest.$ac_ext
16641 cat >>conftest.$ac_ext <<_ACEOF
16642 /* end confdefs.h.  */
16643
16644 /* Override any gcc2 internal prototype to avoid an error.  */
16645 #ifdef __cplusplus
16646 extern "C"
16647 #endif
16648 /* We use char because int might match the return type of a gcc2
16649    builtin and then its argument prototype would still apply.  */
16650 char shl_load ();
16651 int
16652 main ()
16653 {
16654 shl_load ();
16655   ;
16656   return 0;
16657 }
16658 _ACEOF
16659 rm -f conftest.$ac_objext conftest$ac_exeext
16660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16661   (eval $ac_link) 2>&5
16662   ac_status=$?
16663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664   (exit $ac_status); } &&
16665          { ac_try='test -s conftest$ac_exeext'
16666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16667   (eval $ac_try) 2>&5
16668   ac_status=$?
16669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670   (exit $ac_status); }; }; then
16671   ac_cv_lib_dld_shl_load=yes
16672 else
16673   echo "$as_me: failed program was:" >&5
16674 sed 's/^/| /' conftest.$ac_ext >&5
16675
16676 ac_cv_lib_dld_shl_load=no
16677 fi
16678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16679 LIBS=$ac_check_lib_save_LIBS
16680 fi
16681 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16682 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16683 if test $ac_cv_lib_dld_shl_load = yes; then
16684   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16685 else
16686   echo "$as_me:$LINENO: checking for dlopen" >&5
16687 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16688 if test "${ac_cv_func_dlopen+set}" = set; then
16689   echo $ECHO_N "(cached) $ECHO_C" >&6
16690 else
16691   cat >conftest.$ac_ext <<_ACEOF
16692 #line $LINENO "configure"
16693 /* confdefs.h.  */
16694 _ACEOF
16695 cat confdefs.h >>conftest.$ac_ext
16696 cat >>conftest.$ac_ext <<_ACEOF
16697 /* end confdefs.h.  */
16698 /* System header to define __stub macros and hopefully few prototypes,
16699     which can conflict with char dlopen (); below.
16700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16701     <limits.h> exists even on freestanding compilers.  */
16702 #ifdef __STDC__
16703 # include <limits.h>
16704 #else
16705 # include <assert.h>
16706 #endif
16707 /* Override any gcc2 internal prototype to avoid an error.  */
16708 #ifdef __cplusplus
16709 extern "C"
16710 {
16711 #endif
16712 /* We use char because int might match the return type of a gcc2
16713    builtin and then its argument prototype would still apply.  */
16714 char dlopen ();
16715 /* The GNU C library defines this for functions which it implements
16716     to always fail with ENOSYS.  Some functions are actually named
16717     something starting with __ and the normal name is an alias.  */
16718 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16719 choke me
16720 #else
16721 char (*f) () = dlopen;
16722 #endif
16723 #ifdef __cplusplus
16724 }
16725 #endif
16726
16727 int
16728 main ()
16729 {
16730 return f != dlopen;
16731   ;
16732   return 0;
16733 }
16734 _ACEOF
16735 rm -f conftest.$ac_objext conftest$ac_exeext
16736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16737   (eval $ac_link) 2>&5
16738   ac_status=$?
16739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740   (exit $ac_status); } &&
16741          { ac_try='test -s conftest$ac_exeext'
16742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16743   (eval $ac_try) 2>&5
16744   ac_status=$?
16745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746   (exit $ac_status); }; }; then
16747   ac_cv_func_dlopen=yes
16748 else
16749   echo "$as_me: failed program was:" >&5
16750 sed 's/^/| /' conftest.$ac_ext >&5
16751
16752 ac_cv_func_dlopen=no
16753 fi
16754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16755 fi
16756 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16757 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16758 if test $ac_cv_func_dlopen = yes; then
16759   lt_cv_dlopen="dlopen"
16760 else
16761   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16762 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16763 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16764   echo $ECHO_N "(cached) $ECHO_C" >&6
16765 else
16766   ac_check_lib_save_LIBS=$LIBS
16767 LIBS="-ldl  $LIBS"
16768 cat >conftest.$ac_ext <<_ACEOF
16769 #line $LINENO "configure"
16770 /* confdefs.h.  */
16771 _ACEOF
16772 cat confdefs.h >>conftest.$ac_ext
16773 cat >>conftest.$ac_ext <<_ACEOF
16774 /* end confdefs.h.  */
16775
16776 /* Override any gcc2 internal prototype to avoid an error.  */
16777 #ifdef __cplusplus
16778 extern "C"
16779 #endif
16780 /* We use char because int might match the return type of a gcc2
16781    builtin and then its argument prototype would still apply.  */
16782 char dlopen ();
16783 int
16784 main ()
16785 {
16786 dlopen ();
16787   ;
16788   return 0;
16789 }
16790 _ACEOF
16791 rm -f conftest.$ac_objext conftest$ac_exeext
16792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16793   (eval $ac_link) 2>&5
16794   ac_status=$?
16795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796   (exit $ac_status); } &&
16797          { ac_try='test -s conftest$ac_exeext'
16798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16799   (eval $ac_try) 2>&5
16800   ac_status=$?
16801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802   (exit $ac_status); }; }; then
16803   ac_cv_lib_dl_dlopen=yes
16804 else
16805   echo "$as_me: failed program was:" >&5
16806 sed 's/^/| /' conftest.$ac_ext >&5
16807
16808 ac_cv_lib_dl_dlopen=no
16809 fi
16810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16811 LIBS=$ac_check_lib_save_LIBS
16812 fi
16813 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16814 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16815 if test $ac_cv_lib_dl_dlopen = yes; then
16816   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16817 else
16818   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16819 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16820 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16821   echo $ECHO_N "(cached) $ECHO_C" >&6
16822 else
16823   ac_check_lib_save_LIBS=$LIBS
16824 LIBS="-lsvld  $LIBS"
16825 cat >conftest.$ac_ext <<_ACEOF
16826 #line $LINENO "configure"
16827 /* confdefs.h.  */
16828 _ACEOF
16829 cat confdefs.h >>conftest.$ac_ext
16830 cat >>conftest.$ac_ext <<_ACEOF
16831 /* end confdefs.h.  */
16832
16833 /* Override any gcc2 internal prototype to avoid an error.  */
16834 #ifdef __cplusplus
16835 extern "C"
16836 #endif
16837 /* We use char because int might match the return type of a gcc2
16838    builtin and then its argument prototype would still apply.  */
16839 char dlopen ();
16840 int
16841 main ()
16842 {
16843 dlopen ();
16844   ;
16845   return 0;
16846 }
16847 _ACEOF
16848 rm -f conftest.$ac_objext conftest$ac_exeext
16849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16850   (eval $ac_link) 2>&5
16851   ac_status=$?
16852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853   (exit $ac_status); } &&
16854          { ac_try='test -s conftest$ac_exeext'
16855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16856   (eval $ac_try) 2>&5
16857   ac_status=$?
16858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859   (exit $ac_status); }; }; then
16860   ac_cv_lib_svld_dlopen=yes
16861 else
16862   echo "$as_me: failed program was:" >&5
16863 sed 's/^/| /' conftest.$ac_ext >&5
16864
16865 ac_cv_lib_svld_dlopen=no
16866 fi
16867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16868 LIBS=$ac_check_lib_save_LIBS
16869 fi
16870 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16871 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16872 if test $ac_cv_lib_svld_dlopen = yes; then
16873   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16874 else
16875   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16876 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16877 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16878   echo $ECHO_N "(cached) $ECHO_C" >&6
16879 else
16880   ac_check_lib_save_LIBS=$LIBS
16881 LIBS="-ldld  $LIBS"
16882 cat >conftest.$ac_ext <<_ACEOF
16883 #line $LINENO "configure"
16884 /* confdefs.h.  */
16885 _ACEOF
16886 cat confdefs.h >>conftest.$ac_ext
16887 cat >>conftest.$ac_ext <<_ACEOF
16888 /* end confdefs.h.  */
16889
16890 /* Override any gcc2 internal prototype to avoid an error.  */
16891 #ifdef __cplusplus
16892 extern "C"
16893 #endif
16894 /* We use char because int might match the return type of a gcc2
16895    builtin and then its argument prototype would still apply.  */
16896 char dld_link ();
16897 int
16898 main ()
16899 {
16900 dld_link ();
16901   ;
16902   return 0;
16903 }
16904 _ACEOF
16905 rm -f conftest.$ac_objext conftest$ac_exeext
16906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16907   (eval $ac_link) 2>&5
16908   ac_status=$?
16909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910   (exit $ac_status); } &&
16911          { ac_try='test -s conftest$ac_exeext'
16912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16913   (eval $ac_try) 2>&5
16914   ac_status=$?
16915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916   (exit $ac_status); }; }; then
16917   ac_cv_lib_dld_dld_link=yes
16918 else
16919   echo "$as_me: failed program was:" >&5
16920 sed 's/^/| /' conftest.$ac_ext >&5
16921
16922 ac_cv_lib_dld_dld_link=no
16923 fi
16924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16925 LIBS=$ac_check_lib_save_LIBS
16926 fi
16927 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16928 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16929 if test $ac_cv_lib_dld_dld_link = yes; then
16930   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16931 fi
16932
16933
16934 fi
16935
16936
16937 fi
16938
16939
16940 fi
16941
16942
16943 fi
16944
16945
16946 fi
16947
16948     ;;
16949   esac
16950
16951   if test "x$lt_cv_dlopen" != xno; then
16952     enable_dlopen=yes
16953   else
16954     enable_dlopen=no
16955   fi
16956
16957   case $lt_cv_dlopen in
16958   dlopen)
16959     save_CPPFLAGS="$CPPFLAGS"
16960     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16961
16962     save_LDFLAGS="$LDFLAGS"
16963     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16964
16965     save_LIBS="$LIBS"
16966     LIBS="$lt_cv_dlopen_libs $LIBS"
16967
16968     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16969 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16970 if test "${lt_cv_dlopen_self+set}" = set; then
16971   echo $ECHO_N "(cached) $ECHO_C" >&6
16972 else
16973           if test "$cross_compiling" = yes; then :
16974   lt_cv_dlopen_self=cross
16975 else
16976   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16977   lt_status=$lt_dlunknown
16978   cat > conftest.$ac_ext <<EOF
16979 #line 16979 "configure"
16980 #include "confdefs.h"
16981
16982 #if HAVE_DLFCN_H
16983 #include <dlfcn.h>
16984 #endif
16985
16986 #include <stdio.h>
16987
16988 #ifdef RTLD_GLOBAL
16989 #  define LT_DLGLOBAL           RTLD_GLOBAL
16990 #else
16991 #  ifdef DL_GLOBAL
16992 #    define LT_DLGLOBAL         DL_GLOBAL
16993 #  else
16994 #    define LT_DLGLOBAL         0
16995 #  endif
16996 #endif
16997
16998 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16999    find out it does not work in some platform. */
17000 #ifndef LT_DLLAZY_OR_NOW
17001 #  ifdef RTLD_LAZY
17002 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17003 #  else
17004 #    ifdef DL_LAZY
17005 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17006 #    else
17007 #      ifdef RTLD_NOW
17008 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17009 #      else
17010 #        ifdef DL_NOW
17011 #          define LT_DLLAZY_OR_NOW      DL_NOW
17012 #        else
17013 #          define LT_DLLAZY_OR_NOW      0
17014 #        endif
17015 #      endif
17016 #    endif
17017 #  endif
17018 #endif
17019
17020 #ifdef __cplusplus
17021 extern "C" void exit (int);
17022 #endif
17023
17024 void fnord() { int i=42;}
17025 int main ()
17026 {
17027   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17028   int status = $lt_dlunknown;
17029
17030   if (self)
17031     {
17032       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17033       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17034       /* dlclose (self); */
17035     }
17036
17037     exit (status);
17038 }
17039 EOF
17040   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17041   (eval $ac_link) 2>&5
17042   ac_status=$?
17043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17045     (./conftest; exit; ) 2>/dev/null
17046     lt_status=$?
17047     case x$lt_status in
17048       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17049       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17050       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17051     esac
17052   else :
17053     # compilation failed
17054     lt_cv_dlopen_self=no
17055   fi
17056 fi
17057 rm -fr conftest*
17058
17059
17060 fi
17061 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17062 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17063
17064     if test "x$lt_cv_dlopen_self" = xyes; then
17065       LDFLAGS="$LDFLAGS $link_static_flag"
17066       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17067 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17068 if test "${lt_cv_dlopen_self_static+set}" = set; then
17069   echo $ECHO_N "(cached) $ECHO_C" >&6
17070 else
17071           if test "$cross_compiling" = yes; then :
17072   lt_cv_dlopen_self_static=cross
17073 else
17074   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17075   lt_status=$lt_dlunknown
17076   cat > conftest.$ac_ext <<EOF
17077 #line 17077 "configure"
17078 #include "confdefs.h"
17079
17080 #if HAVE_DLFCN_H
17081 #include <dlfcn.h>
17082 #endif
17083
17084 #include <stdio.h>
17085
17086 #ifdef RTLD_GLOBAL
17087 #  define LT_DLGLOBAL           RTLD_GLOBAL
17088 #else
17089 #  ifdef DL_GLOBAL
17090 #    define LT_DLGLOBAL         DL_GLOBAL
17091 #  else
17092 #    define LT_DLGLOBAL         0
17093 #  endif
17094 #endif
17095
17096 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17097    find out it does not work in some platform. */
17098 #ifndef LT_DLLAZY_OR_NOW
17099 #  ifdef RTLD_LAZY
17100 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17101 #  else
17102 #    ifdef DL_LAZY
17103 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17104 #    else
17105 #      ifdef RTLD_NOW
17106 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17107 #      else
17108 #        ifdef DL_NOW
17109 #          define LT_DLLAZY_OR_NOW      DL_NOW
17110 #        else
17111 #          define LT_DLLAZY_OR_NOW      0
17112 #        endif
17113 #      endif
17114 #    endif
17115 #  endif
17116 #endif
17117
17118 #ifdef __cplusplus
17119 extern "C" void exit (int);
17120 #endif
17121
17122 void fnord() { int i=42;}
17123 int main ()
17124 {
17125   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17126   int status = $lt_dlunknown;
17127
17128   if (self)
17129     {
17130       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17131       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17132       /* dlclose (self); */
17133     }
17134
17135     exit (status);
17136 }
17137 EOF
17138   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17139   (eval $ac_link) 2>&5
17140   ac_status=$?
17141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17143     (./conftest; exit; ) 2>/dev/null
17144     lt_status=$?
17145     case x$lt_status in
17146       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17147       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17148       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17149     esac
17150   else :
17151     # compilation failed
17152     lt_cv_dlopen_self_static=no
17153   fi
17154 fi
17155 rm -fr conftest*
17156
17157
17158 fi
17159 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17160 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17161     fi
17162
17163     CPPFLAGS="$save_CPPFLAGS"
17164     LDFLAGS="$save_LDFLAGS"
17165     LIBS="$save_LIBS"
17166     ;;
17167   esac
17168
17169   case $lt_cv_dlopen_self in
17170   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17171   *) enable_dlopen_self=unknown ;;
17172   esac
17173
17174   case $lt_cv_dlopen_self_static in
17175   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17176   *) enable_dlopen_self_static=unknown ;;
17177   esac
17178 fi
17179
17180
17181 # The else clause should only fire when bootstrapping the
17182 # libtool distribution, otherwise you forgot to ship ltmain.sh
17183 # with your package, and you will get complaints that there are
17184 # no rules to generate ltmain.sh.
17185 if test -f "$ltmain"; then
17186   # See if we are running on zsh, and set the options which allow our commands through
17187   # without removal of \ escapes.
17188   if test -n "${ZSH_VERSION+set}" ; then
17189     setopt NO_GLOB_SUBST
17190   fi
17191   # Now quote all the things that may contain metacharacters while being
17192   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17193   # variables and quote the copies for generation of the libtool script.
17194   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17195     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17196     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17197     deplibs_check_method reload_flag reload_cmds need_locks \
17198     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17199     lt_cv_sys_global_symbol_to_c_name_address \
17200     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17201     old_postinstall_cmds old_postuninstall_cmds \
17202     compiler_GCJ \
17203     CC_GCJ \
17204     LD_GCJ \
17205     lt_prog_compiler_wl_GCJ \
17206     lt_prog_compiler_pic_GCJ \
17207     lt_prog_compiler_static_GCJ \
17208     lt_prog_compiler_no_builtin_flag_GCJ \
17209     export_dynamic_flag_spec_GCJ \
17210     thread_safe_flag_spec_GCJ \
17211     whole_archive_flag_spec_GCJ \
17212     enable_shared_with_static_runtimes_GCJ \
17213     old_archive_cmds_GCJ \
17214     old_archive_from_new_cmds_GCJ \
17215     predep_objects_GCJ \
17216     postdep_objects_GCJ \
17217     predeps_GCJ \
17218     postdeps_GCJ \
17219     compiler_lib_search_path_GCJ \
17220     archive_cmds_GCJ \
17221     archive_expsym_cmds_GCJ \
17222     postinstall_cmds_GCJ \
17223     postuninstall_cmds_GCJ \
17224     old_archive_from_expsyms_cmds_GCJ \
17225     allow_undefined_flag_GCJ \
17226     no_undefined_flag_GCJ \
17227     export_symbols_cmds_GCJ \
17228     hardcode_libdir_flag_spec_GCJ \
17229     hardcode_libdir_flag_spec_ld_GCJ \
17230     hardcode_libdir_separator_GCJ \
17231     hardcode_automatic_GCJ \
17232     module_cmds_GCJ \
17233     module_expsym_cmds_GCJ \
17234     lt_cv_prog_compiler_c_o_GCJ \
17235     exclude_expsyms_GCJ \
17236     include_expsyms_GCJ; do
17237
17238     case $var in
17239     old_archive_cmds_GCJ | \
17240     old_archive_from_new_cmds_GCJ | \
17241     archive_cmds_GCJ | \
17242     archive_expsym_cmds_GCJ | \
17243     module_cmds_GCJ | \
17244     module_expsym_cmds_GCJ | \
17245     old_archive_from_expsyms_cmds_GCJ | \
17246     export_symbols_cmds_GCJ | \
17247     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17248     postinstall_cmds | postuninstall_cmds | \
17249     old_postinstall_cmds | old_postuninstall_cmds | \
17250     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17251       # Double-quote double-evaled strings.
17252       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17253       ;;
17254     *)
17255       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17256       ;;
17257     esac
17258   done
17259
17260   case $lt_echo in
17261   *'\$0 --fallback-echo"')
17262     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17263     ;;
17264   esac
17265
17266 cfgfile="$ofile"
17267
17268   cat <<__EOF__ >> "$cfgfile"
17269 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17270
17271 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17272
17273 # Shell to use when invoking shell scripts.
17274 SHELL=$lt_SHELL
17275
17276 # Whether or not to build shared libraries.
17277 build_libtool_libs=$enable_shared
17278
17279 # Whether or not to build static libraries.
17280 build_old_libs=$enable_static
17281
17282 # Whether or not to add -lc for building shared libraries.
17283 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17284
17285 # Whether or not to disallow shared libs when runtime libs are static
17286 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17287
17288 # Whether or not to optimize for fast installation.
17289 fast_install=$enable_fast_install
17290
17291 # The host system.
17292 host_alias=$host_alias
17293 host=$host
17294
17295 # An echo program that does not interpret backslashes.
17296 echo=$lt_echo
17297
17298 # The archiver.
17299 AR=$lt_AR
17300 AR_FLAGS=$lt_AR_FLAGS
17301
17302 # A C compiler.
17303 LTCC=$lt_LTCC
17304
17305 # A language-specific compiler.
17306 CC=$lt_compiler_GCJ
17307
17308 # Is the compiler the GNU C compiler?
17309 with_gcc=$GCC_GCJ
17310
17311 # An ERE matcher.
17312 EGREP=$lt_EGREP
17313
17314 # The linker used to build libraries.
17315 LD=$lt_LD_GCJ
17316
17317 # Whether we need hard or soft links.
17318 LN_S=$lt_LN_S
17319
17320 # A BSD-compatible nm program.
17321 NM=$lt_NM
17322
17323 # A symbol stripping program
17324 STRIP=$STRIP
17325
17326 # Used to examine libraries when file_magic_cmd begins "file"
17327 MAGIC_CMD=$MAGIC_CMD
17328
17329 # Used on cygwin: DLL creation program.
17330 DLLTOOL="$DLLTOOL"
17331
17332 # Used on cygwin: object dumper.
17333 OBJDUMP="$OBJDUMP"
17334
17335 # Used on cygwin: assembler.
17336 AS="$AS"
17337
17338 # The name of the directory that contains temporary libtool files.
17339 objdir=$objdir
17340
17341 # How to create reloadable object files.
17342 reload_flag=$lt_reload_flag
17343 reload_cmds=$lt_reload_cmds
17344
17345 # How to pass a linker flag through the compiler.
17346 wl=$lt_lt_prog_compiler_wl_GCJ
17347
17348 # Object file suffix (normally "o").
17349 objext="$ac_objext"
17350
17351 # Old archive suffix (normally "a").
17352 libext="$libext"
17353
17354 # Shared library suffix (normally ".so").
17355 shrext='$shrext'
17356
17357 # Executable file suffix (normally "").
17358 exeext="$exeext"
17359
17360 # Additional compiler flags for building library objects.
17361 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17362 pic_mode=$pic_mode
17363
17364 # What is the maximum length of a command?
17365 max_cmd_len=$lt_cv_sys_max_cmd_len
17366
17367 # Does compiler simultaneously support -c and -o options?
17368 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17369
17370 # Must we lock files when doing compilation ?
17371 need_locks=$lt_need_locks
17372
17373 # Do we need the lib prefix for modules?
17374 need_lib_prefix=$need_lib_prefix
17375
17376 # Do we need a version for libraries?
17377 need_version=$need_version
17378
17379 # Whether dlopen is supported.
17380 dlopen_support=$enable_dlopen
17381
17382 # Whether dlopen of programs is supported.
17383 dlopen_self=$enable_dlopen_self
17384
17385 # Whether dlopen of statically linked programs is supported.
17386 dlopen_self_static=$enable_dlopen_self_static
17387
17388 # Compiler flag to prevent dynamic linking.
17389 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17390
17391 # Compiler flag to turn off builtin functions.
17392 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17393
17394 # Compiler flag to allow reflexive dlopens.
17395 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17396
17397 # Compiler flag to generate shared objects directly from archives.
17398 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17399
17400 # Compiler flag to generate thread-safe objects.
17401 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17402
17403 # Library versioning type.
17404 version_type=$version_type
17405
17406 # Format of library name prefix.
17407 libname_spec=$lt_libname_spec
17408
17409 # List of archive names.  First name is the real one, the rest are links.
17410 # The last name is the one that the linker finds with -lNAME.
17411 library_names_spec=$lt_library_names_spec
17412
17413 # The coded name of the library, if different from the real name.
17414 soname_spec=$lt_soname_spec
17415
17416 # Commands used to build and install an old-style archive.
17417 RANLIB=$lt_RANLIB
17418 old_archive_cmds=$lt_old_archive_cmds_GCJ
17419 old_postinstall_cmds=$lt_old_postinstall_cmds
17420 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17421
17422 # Create an old-style archive from a shared archive.
17423 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17424
17425 # Create a temporary old-style archive to link instead of a shared archive.
17426 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17427
17428 # Commands used to build and install a shared archive.
17429 archive_cmds=$lt_archive_cmds_GCJ
17430 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17431 postinstall_cmds=$lt_postinstall_cmds
17432 postuninstall_cmds=$lt_postuninstall_cmds
17433
17434 # Commands used to build a loadable module (assumed same as above if empty)
17435 module_cmds=$lt_module_cmds_GCJ
17436 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17437
17438 # Commands to strip libraries.
17439 old_striplib=$lt_old_striplib
17440 striplib=$lt_striplib
17441
17442 # Dependencies to place before the objects being linked to create a
17443 # shared library.
17444 predep_objects=$lt_predep_objects_GCJ
17445
17446 # Dependencies to place after the objects being linked to create a
17447 # shared library.
17448 postdep_objects=$lt_postdep_objects_GCJ
17449
17450 # Dependencies to place before the objects being linked to create a
17451 # shared library.
17452 predeps=$lt_predeps_GCJ
17453
17454 # Dependencies to place after the objects being linked to create a
17455 # shared library.
17456 postdeps=$lt_postdeps_GCJ
17457
17458 # The library search path used internally by the compiler when linking
17459 # a shared library.
17460 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17461
17462 # Method to check whether dependent libraries are shared objects.
17463 deplibs_check_method=$lt_deplibs_check_method
17464
17465 # Command to use when deplibs_check_method == file_magic.
17466 file_magic_cmd=$lt_file_magic_cmd
17467
17468 # Flag that allows shared libraries with undefined symbols to be built.
17469 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17470
17471 # Flag that forces no undefined symbols.
17472 no_undefined_flag=$lt_no_undefined_flag_GCJ
17473
17474 # Commands used to finish a libtool library installation in a directory.
17475 finish_cmds=$lt_finish_cmds
17476
17477 # Same as above, but a single script fragment to be evaled but not shown.
17478 finish_eval=$lt_finish_eval
17479
17480 # Take the output of nm and produce a listing of raw symbols and C names.
17481 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17482
17483 # Transform the output of nm in a proper C declaration
17484 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17485
17486 # Transform the output of nm in a C name address pair
17487 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17488
17489 # This is the shared library runtime path variable.
17490 runpath_var=$runpath_var
17491
17492 # This is the shared library path variable.
17493 shlibpath_var=$shlibpath_var
17494
17495 # Is shlibpath searched before the hard-coded library search path?
17496 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17497
17498 # How to hardcode a shared library path into an executable.
17499 hardcode_action=$hardcode_action_GCJ
17500
17501 # Whether we should hardcode library paths into libraries.
17502 hardcode_into_libs=$hardcode_into_libs
17503
17504 # Flag to hardcode \$libdir into a binary during linking.
17505 # This must work even if \$libdir does not exist.
17506 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17507
17508 # If ld is used when linking, flag to hardcode \$libdir into
17509 # a binary during linking. This must work even if \$libdir does
17510 # not exist.
17511 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17512
17513 # Whether we need a single -rpath flag with a separated argument.
17514 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17515
17516 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17517 # resulting binary.
17518 hardcode_direct=$hardcode_direct_GCJ
17519
17520 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17521 # resulting binary.
17522 hardcode_minus_L=$hardcode_minus_L_GCJ
17523
17524 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17525 # the resulting binary.
17526 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17527
17528 # Set to yes if building a shared library automatically hardcodes DIR into the library
17529 # and all subsequent libraries and executables linked against it.
17530 hardcode_automatic=$hardcode_automatic_GCJ
17531
17532 # Variables whose values should be saved in libtool wrapper scripts and
17533 # restored at relink time.
17534 variables_saved_for_relink="$variables_saved_for_relink"
17535
17536 # Whether libtool must link a program against all its dependency libraries.
17537 link_all_deplibs=$link_all_deplibs_GCJ
17538
17539 # Compile-time system search path for libraries
17540 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17541
17542 # Run-time system search path for libraries
17543 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17544
17545 # Fix the shell variable \$srcfile for the compiler.
17546 fix_srcfile_path="$fix_srcfile_path_GCJ"
17547
17548 # Set to yes if exported symbols are required.
17549 always_export_symbols=$always_export_symbols_GCJ
17550
17551 # The commands to list exported symbols.
17552 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17553
17554 # The commands to extract the exported symbol list from a shared archive.
17555 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17556
17557 # Symbols that should not be listed in the preloaded symbols.
17558 exclude_expsyms=$lt_exclude_expsyms_GCJ
17559
17560 # Symbols that must always be exported.
17561 include_expsyms=$lt_include_expsyms_GCJ
17562
17563 # ### END LIBTOOL TAG CONFIG: $tagname
17564
17565 __EOF__
17566
17567
17568 else
17569   # If there is no Makefile yet, we rely on a make rule to execute
17570   # `config.status --recheck' to rerun these tests and create the
17571   # libtool script then.
17572   test -f Makefile && make "$ltmain"
17573 fi
17574
17575
17576 ac_ext=c
17577 ac_cpp='$CPP $CPPFLAGS'
17578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17581
17582 CC="$lt_save_CC"
17583
17584         else
17585           tagname=""
17586         fi
17587         ;;
17588
17589       RC)
17590
17591
17592
17593 # Source file extension for RC test sources.
17594 ac_ext=rc
17595
17596 # Object file extension for compiled RC test sources.
17597 objext=o
17598 objext_RC=$objext
17599
17600 # Code to be used in simple compile tests
17601 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17602
17603 # Code to be used in simple link tests
17604 lt_simple_link_test_code="$lt_simple_compile_test_code"
17605
17606 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17607
17608 # If no C compiler was specified, use CC.
17609 LTCC=${LTCC-"$CC"}
17610
17611 # Allow CC to be a program name with arguments.
17612 compiler=$CC
17613
17614
17615 # Allow CC to be a program name with arguments.
17616 lt_save_CC="$CC"
17617 CC=${RC-"windres"}
17618 compiler=$CC
17619 compiler_RC=$CC
17620 lt_cv_prog_compiler_c_o_RC=yes
17621
17622 # The else clause should only fire when bootstrapping the
17623 # libtool distribution, otherwise you forgot to ship ltmain.sh
17624 # with your package, and you will get complaints that there are
17625 # no rules to generate ltmain.sh.
17626 if test -f "$ltmain"; then
17627   # See if we are running on zsh, and set the options which allow our commands through
17628   # without removal of \ escapes.
17629   if test -n "${ZSH_VERSION+set}" ; then
17630     setopt NO_GLOB_SUBST
17631   fi
17632   # Now quote all the things that may contain metacharacters while being
17633   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17634   # variables and quote the copies for generation of the libtool script.
17635   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17636     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17637     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17638     deplibs_check_method reload_flag reload_cmds need_locks \
17639     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17640     lt_cv_sys_global_symbol_to_c_name_address \
17641     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17642     old_postinstall_cmds old_postuninstall_cmds \
17643     compiler_RC \
17644     CC_RC \
17645     LD_RC \
17646     lt_prog_compiler_wl_RC \
17647     lt_prog_compiler_pic_RC \
17648     lt_prog_compiler_static_RC \
17649     lt_prog_compiler_no_builtin_flag_RC \
17650     export_dynamic_flag_spec_RC \
17651     thread_safe_flag_spec_RC \
17652     whole_archive_flag_spec_RC \
17653     enable_shared_with_static_runtimes_RC \
17654     old_archive_cmds_RC \
17655     old_archive_from_new_cmds_RC \
17656     predep_objects_RC \
17657     postdep_objects_RC \
17658     predeps_RC \
17659     postdeps_RC \
17660     compiler_lib_search_path_RC \
17661     archive_cmds_RC \
17662     archive_expsym_cmds_RC \
17663     postinstall_cmds_RC \
17664     postuninstall_cmds_RC \
17665     old_archive_from_expsyms_cmds_RC \
17666     allow_undefined_flag_RC \
17667     no_undefined_flag_RC \
17668     export_symbols_cmds_RC \
17669     hardcode_libdir_flag_spec_RC \
17670     hardcode_libdir_flag_spec_ld_RC \
17671     hardcode_libdir_separator_RC \
17672     hardcode_automatic_RC \
17673     module_cmds_RC \
17674     module_expsym_cmds_RC \
17675     lt_cv_prog_compiler_c_o_RC \
17676     exclude_expsyms_RC \
17677     include_expsyms_RC; do
17678
17679     case $var in
17680     old_archive_cmds_RC | \
17681     old_archive_from_new_cmds_RC | \
17682     archive_cmds_RC | \
17683     archive_expsym_cmds_RC | \
17684     module_cmds_RC | \
17685     module_expsym_cmds_RC | \
17686     old_archive_from_expsyms_cmds_RC | \
17687     export_symbols_cmds_RC | \
17688     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17689     postinstall_cmds | postuninstall_cmds | \
17690     old_postinstall_cmds | old_postuninstall_cmds | \
17691     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17692       # Double-quote double-evaled strings.
17693       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17694       ;;
17695     *)
17696       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17697       ;;
17698     esac
17699   done
17700
17701   case $lt_echo in
17702   *'\$0 --fallback-echo"')
17703     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17704     ;;
17705   esac
17706
17707 cfgfile="$ofile"
17708
17709   cat <<__EOF__ >> "$cfgfile"
17710 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17711
17712 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17713
17714 # Shell to use when invoking shell scripts.
17715 SHELL=$lt_SHELL
17716
17717 # Whether or not to build shared libraries.
17718 build_libtool_libs=$enable_shared
17719
17720 # Whether or not to build static libraries.
17721 build_old_libs=$enable_static
17722
17723 # Whether or not to add -lc for building shared libraries.
17724 build_libtool_need_lc=$archive_cmds_need_lc_RC
17725
17726 # Whether or not to disallow shared libs when runtime libs are static
17727 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17728
17729 # Whether or not to optimize for fast installation.
17730 fast_install=$enable_fast_install
17731
17732 # The host system.
17733 host_alias=$host_alias
17734 host=$host
17735
17736 # An echo program that does not interpret backslashes.
17737 echo=$lt_echo
17738
17739 # The archiver.
17740 AR=$lt_AR
17741 AR_FLAGS=$lt_AR_FLAGS
17742
17743 # A C compiler.
17744 LTCC=$lt_LTCC
17745
17746 # A language-specific compiler.
17747 CC=$lt_compiler_RC
17748
17749 # Is the compiler the GNU C compiler?
17750 with_gcc=$GCC_RC
17751
17752 # An ERE matcher.
17753 EGREP=$lt_EGREP
17754
17755 # The linker used to build libraries.
17756 LD=$lt_LD_RC
17757
17758 # Whether we need hard or soft links.
17759 LN_S=$lt_LN_S
17760
17761 # A BSD-compatible nm program.
17762 NM=$lt_NM
17763
17764 # A symbol stripping program
17765 STRIP=$STRIP
17766
17767 # Used to examine libraries when file_magic_cmd begins "file"
17768 MAGIC_CMD=$MAGIC_CMD
17769
17770 # Used on cygwin: DLL creation program.
17771 DLLTOOL="$DLLTOOL"
17772
17773 # Used on cygwin: object dumper.
17774 OBJDUMP="$OBJDUMP"
17775
17776 # Used on cygwin: assembler.
17777 AS="$AS"
17778
17779 # The name of the directory that contains temporary libtool files.
17780 objdir=$objdir
17781
17782 # How to create reloadable object files.
17783 reload_flag=$lt_reload_flag
17784 reload_cmds=$lt_reload_cmds
17785
17786 # How to pass a linker flag through the compiler.
17787 wl=$lt_lt_prog_compiler_wl_RC
17788
17789 # Object file suffix (normally "o").
17790 objext="$ac_objext"
17791
17792 # Old archive suffix (normally "a").
17793 libext="$libext"
17794
17795 # Shared library suffix (normally ".so").
17796 shrext='$shrext'
17797
17798 # Executable file suffix (normally "").
17799 exeext="$exeext"
17800
17801 # Additional compiler flags for building library objects.
17802 pic_flag=$lt_lt_prog_compiler_pic_RC
17803 pic_mode=$pic_mode
17804
17805 # What is the maximum length of a command?
17806 max_cmd_len=$lt_cv_sys_max_cmd_len
17807
17808 # Does compiler simultaneously support -c and -o options?
17809 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17810
17811 # Must we lock files when doing compilation ?
17812 need_locks=$lt_need_locks
17813
17814 # Do we need the lib prefix for modules?
17815 need_lib_prefix=$need_lib_prefix
17816
17817 # Do we need a version for libraries?
17818 need_version=$need_version
17819
17820 # Whether dlopen is supported.
17821 dlopen_support=$enable_dlopen
17822
17823 # Whether dlopen of programs is supported.
17824 dlopen_self=$enable_dlopen_self
17825
17826 # Whether dlopen of statically linked programs is supported.
17827 dlopen_self_static=$enable_dlopen_self_static
17828
17829 # Compiler flag to prevent dynamic linking.
17830 link_static_flag=$lt_lt_prog_compiler_static_RC
17831
17832 # Compiler flag to turn off builtin functions.
17833 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17834
17835 # Compiler flag to allow reflexive dlopens.
17836 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17837
17838 # Compiler flag to generate shared objects directly from archives.
17839 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17840
17841 # Compiler flag to generate thread-safe objects.
17842 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17843
17844 # Library versioning type.
17845 version_type=$version_type
17846
17847 # Format of library name prefix.
17848 libname_spec=$lt_libname_spec
17849
17850 # List of archive names.  First name is the real one, the rest are links.
17851 # The last name is the one that the linker finds with -lNAME.
17852 library_names_spec=$lt_library_names_spec
17853
17854 # The coded name of the library, if different from the real name.
17855 soname_spec=$lt_soname_spec
17856
17857 # Commands used to build and install an old-style archive.
17858 RANLIB=$lt_RANLIB
17859 old_archive_cmds=$lt_old_archive_cmds_RC
17860 old_postinstall_cmds=$lt_old_postinstall_cmds
17861 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17862
17863 # Create an old-style archive from a shared archive.
17864 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17865
17866 # Create a temporary old-style archive to link instead of a shared archive.
17867 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17868
17869 # Commands used to build and install a shared archive.
17870 archive_cmds=$lt_archive_cmds_RC
17871 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17872 postinstall_cmds=$lt_postinstall_cmds
17873 postuninstall_cmds=$lt_postuninstall_cmds
17874
17875 # Commands used to build a loadable module (assumed same as above if empty)
17876 module_cmds=$lt_module_cmds_RC
17877 module_expsym_cmds=$lt_module_expsym_cmds_RC
17878
17879 # Commands to strip libraries.
17880 old_striplib=$lt_old_striplib
17881 striplib=$lt_striplib
17882
17883 # Dependencies to place before the objects being linked to create a
17884 # shared library.
17885 predep_objects=$lt_predep_objects_RC
17886
17887 # Dependencies to place after the objects being linked to create a
17888 # shared library.
17889 postdep_objects=$lt_postdep_objects_RC
17890
17891 # Dependencies to place before the objects being linked to create a
17892 # shared library.
17893 predeps=$lt_predeps_RC
17894
17895 # Dependencies to place after the objects being linked to create a
17896 # shared library.
17897 postdeps=$lt_postdeps_RC
17898
17899 # The library search path used internally by the compiler when linking
17900 # a shared library.
17901 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17902
17903 # Method to check whether dependent libraries are shared objects.
17904 deplibs_check_method=$lt_deplibs_check_method
17905
17906 # Command to use when deplibs_check_method == file_magic.
17907 file_magic_cmd=$lt_file_magic_cmd
17908
17909 # Flag that allows shared libraries with undefined symbols to be built.
17910 allow_undefined_flag=$lt_allow_undefined_flag_RC
17911
17912 # Flag that forces no undefined symbols.
17913 no_undefined_flag=$lt_no_undefined_flag_RC
17914
17915 # Commands used to finish a libtool library installation in a directory.
17916 finish_cmds=$lt_finish_cmds
17917
17918 # Same as above, but a single script fragment to be evaled but not shown.
17919 finish_eval=$lt_finish_eval
17920
17921 # Take the output of nm and produce a listing of raw symbols and C names.
17922 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17923
17924 # Transform the output of nm in a proper C declaration
17925 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17926
17927 # Transform the output of nm in a C name address pair
17928 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17929
17930 # This is the shared library runtime path variable.
17931 runpath_var=$runpath_var
17932
17933 # This is the shared library path variable.
17934 shlibpath_var=$shlibpath_var
17935
17936 # Is shlibpath searched before the hard-coded library search path?
17937 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17938
17939 # How to hardcode a shared library path into an executable.
17940 hardcode_action=$hardcode_action_RC
17941
17942 # Whether we should hardcode library paths into libraries.
17943 hardcode_into_libs=$hardcode_into_libs
17944
17945 # Flag to hardcode \$libdir into a binary during linking.
17946 # This must work even if \$libdir does not exist.
17947 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17948
17949 # If ld is used when linking, flag to hardcode \$libdir into
17950 # a binary during linking. This must work even if \$libdir does
17951 # not exist.
17952 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17953
17954 # Whether we need a single -rpath flag with a separated argument.
17955 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17956
17957 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17958 # resulting binary.
17959 hardcode_direct=$hardcode_direct_RC
17960
17961 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17962 # resulting binary.
17963 hardcode_minus_L=$hardcode_minus_L_RC
17964
17965 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17966 # the resulting binary.
17967 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17968
17969 # Set to yes if building a shared library automatically hardcodes DIR into the library
17970 # and all subsequent libraries and executables linked against it.
17971 hardcode_automatic=$hardcode_automatic_RC
17972
17973 # Variables whose values should be saved in libtool wrapper scripts and
17974 # restored at relink time.
17975 variables_saved_for_relink="$variables_saved_for_relink"
17976
17977 # Whether libtool must link a program against all its dependency libraries.
17978 link_all_deplibs=$link_all_deplibs_RC
17979
17980 # Compile-time system search path for libraries
17981 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17982
17983 # Run-time system search path for libraries
17984 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17985
17986 # Fix the shell variable \$srcfile for the compiler.
17987 fix_srcfile_path="$fix_srcfile_path_RC"
17988
17989 # Set to yes if exported symbols are required.
17990 always_export_symbols=$always_export_symbols_RC
17991
17992 # The commands to list exported symbols.
17993 export_symbols_cmds=$lt_export_symbols_cmds_RC
17994
17995 # The commands to extract the exported symbol list from a shared archive.
17996 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17997
17998 # Symbols that should not be listed in the preloaded symbols.
17999 exclude_expsyms=$lt_exclude_expsyms_RC
18000
18001 # Symbols that must always be exported.
18002 include_expsyms=$lt_include_expsyms_RC
18003
18004 # ### END LIBTOOL TAG CONFIG: $tagname
18005
18006 __EOF__
18007
18008
18009 else
18010   # If there is no Makefile yet, we rely on a make rule to execute
18011   # `config.status --recheck' to rerun these tests and create the
18012   # libtool script then.
18013   test -f Makefile && make "$ltmain"
18014 fi
18015
18016
18017 ac_ext=c
18018 ac_cpp='$CPP $CPPFLAGS'
18019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18022
18023 CC="$lt_save_CC"
18024
18025         ;;
18026
18027       *)
18028         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18029 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18030    { (exit 1); exit 1; }; }
18031         ;;
18032       esac
18033
18034       # Append the new tag name to the list of available tags.
18035       if test -n "$tagname" ; then
18036       available_tags="$available_tags $tagname"
18037     fi
18038     fi
18039   done
18040   IFS="$lt_save_ifs"
18041
18042   # Now substitute the updated list of available tags.
18043   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18044     mv "${ofile}T" "$ofile"
18045     chmod +x "$ofile"
18046   else
18047     rm -f "${ofile}T"
18048     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18049 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18050    { (exit 1); exit 1; }; }
18051   fi
18052 fi
18053
18054
18055
18056 # This can be used to rebuild libtool when needed
18057 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18058
18059 # Always use our own libtool.
18060 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18061
18062 # Prevent multiple expansion
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084 # Extract the first word of "dot", so it can be a program name with args.
18085 set dummy dot; ac_word=$2
18086 echo "$as_me:$LINENO: checking for $ac_word" >&5
18087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18088 if test "${ac_cv_path_DOT+set}" = set; then
18089   echo $ECHO_N "(cached) $ECHO_C" >&6
18090 else
18091   case $DOT in
18092   [\\/]* | ?:[\\/]*)
18093   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18094   ;;
18095   *)
18096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18097 for as_dir in $PATH
18098 do
18099   IFS=$as_save_IFS
18100   test -z "$as_dir" && as_dir=.
18101   for ac_exec_ext in '' $ac_executable_extensions; do
18102   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18103     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18105     break 2
18106   fi
18107 done
18108 done
18109
18110   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18111   ;;
18112 esac
18113 fi
18114 DOT=$ac_cv_path_DOT
18115
18116 if test -n "$DOT"; then
18117   echo "$as_me:$LINENO: result: $DOT" >&5
18118 echo "${ECHO_T}$DOT" >&6
18119 else
18120   echo "$as_me:$LINENO: result: no" >&5
18121 echo "${ECHO_T}no" >&6
18122 fi
18123
18124 # Extract the first word of "etags", so it can be a program name with args.
18125 set dummy etags; ac_word=$2
18126 echo "$as_me:$LINENO: checking for $ac_word" >&5
18127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18128 if test "${ac_cv_path_ETAGS+set}" = set; then
18129   echo $ECHO_N "(cached) $ECHO_C" >&6
18130 else
18131   case $ETAGS in
18132   [\\/]* | ?:[\\/]*)
18133   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18134   ;;
18135   *)
18136   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18137 for as_dir in $PATH
18138 do
18139   IFS=$as_save_IFS
18140   test -z "$as_dir" && as_dir=.
18141   for ac_exec_ext in '' $ac_executable_extensions; do
18142   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18143     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18144     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18145     break 2
18146   fi
18147 done
18148 done
18149
18150   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18151   ;;
18152 esac
18153 fi
18154 ETAGS=$ac_cv_path_ETAGS
18155
18156 if test -n "$ETAGS"; then
18157   echo "$as_me:$LINENO: result: $ETAGS" >&5
18158 echo "${ECHO_T}$ETAGS" >&6
18159 else
18160   echo "$as_me:$LINENO: result: no" >&5
18161 echo "${ECHO_T}no" >&6
18162 fi
18163
18164 etags_version=`$ETAGS --version 2>&1`
18165 case "$etags_version" in
18166         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18167         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18168         *) ETAGSFLAGS="" ;;
18169 esac
18170 ETAGSFLAGS=$ETAGSFLAGS
18171
18172 # Extract the first word of "python", so it can be a program name with args.
18173 set dummy python; ac_word=$2
18174 echo "$as_me:$LINENO: checking for $ac_word" >&5
18175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18176 if test "${ac_cv_path_PYTHON+set}" = set; then
18177   echo $ECHO_N "(cached) $ECHO_C" >&6
18178 else
18179   case $PYTHON in
18180   [\\/]* | ?:[\\/]*)
18181   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18182   ;;
18183   *)
18184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18185 for as_dir in $PATH
18186 do
18187   IFS=$as_save_IFS
18188   test -z "$as_dir" && as_dir=.
18189   for ac_exec_ext in '' $ac_executable_extensions; do
18190   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18191     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18193     break 2
18194   fi
18195 done
18196 done
18197
18198   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18199   ;;
18200 esac
18201 fi
18202 PYTHON=$ac_cv_path_PYTHON
18203
18204 if test -n "$PYTHON"; then
18205   echo "$as_me:$LINENO: result: $PYTHON" >&5
18206 echo "${ECHO_T}$PYTHON" >&6
18207 else
18208   echo "$as_me:$LINENO: result: no" >&5
18209 echo "${ECHO_T}no" >&6
18210 fi
18211
18212 if test "$PYTHON" = "false"
18213 then
18214         { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18215 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18216 fi
18217 # Extract the first word of "qmtest", so it can be a program name with args.
18218 set dummy qmtest; ac_word=$2
18219 echo "$as_me:$LINENO: checking for $ac_word" >&5
18220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18221 if test "${ac_cv_path_QMTEST+set}" = set; then
18222   echo $ECHO_N "(cached) $ECHO_C" >&6
18223 else
18224   case $QMTEST in
18225   [\\/]* | ?:[\\/]*)
18226   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18227   ;;
18228   *)
18229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18230 for as_dir in $PATH
18231 do
18232   IFS=$as_save_IFS
18233   test -z "$as_dir" && as_dir=.
18234   for ac_exec_ext in '' $ac_executable_extensions; do
18235   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18236     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18238     break 2
18239   fi
18240 done
18241 done
18242
18243   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18244   ;;
18245 esac
18246 fi
18247 QMTEST=$ac_cv_path_QMTEST
18248
18249 if test -n "$QMTEST"; then
18250   echo "$as_me:$LINENO: result: $QMTEST" >&5
18251 echo "${ECHO_T}$QMTEST" >&6
18252 else
18253   echo "$as_me:$LINENO: result: no" >&5
18254 echo "${ECHO_T}no" >&6
18255 fi
18256
18257 if test "$QMTEST" = "false"
18258 then
18259         { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18260 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18261 fi
18262
18263 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18264 pymajor=`echo $pyversion | cut -d. -f1`
18265 pyminor=`echo $pyversion | cut -d. -f2`
18266
18267 if test "$pymajor" -ge "2"
18268 then
18269         if test "$pymajor" -eq "2"
18270         then
18271                 if test "$pyminor" -lt "2"
18272                 then
18273                         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18274 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18275                 fi
18276         fi
18277 else
18278         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18279 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18280 fi
18281
18282
18283
18284
18285 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18286 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18287 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18288   echo $ECHO_N "(cached) $ECHO_C" >&6
18289 else
18290   ac_check_lib_save_LIBS=$LIBS
18291 LIBS="-lelf  $LIBS"
18292 cat >conftest.$ac_ext <<_ACEOF
18293 #line $LINENO "configure"
18294 /* confdefs.h.  */
18295 _ACEOF
18296 cat confdefs.h >>conftest.$ac_ext
18297 cat >>conftest.$ac_ext <<_ACEOF
18298 /* end confdefs.h.  */
18299
18300 /* Override any gcc2 internal prototype to avoid an error.  */
18301 #ifdef __cplusplus
18302 extern "C"
18303 #endif
18304 /* We use char because int might match the return type of a gcc2
18305    builtin and then its argument prototype would still apply.  */
18306 char elf_begin ();
18307 int
18308 main ()
18309 {
18310 elf_begin ();
18311   ;
18312   return 0;
18313 }
18314 _ACEOF
18315 rm -f conftest.$ac_objext conftest$ac_exeext
18316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18317   (eval $ac_link) 2>&5
18318   ac_status=$?
18319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320   (exit $ac_status); } &&
18321          { ac_try='test -s conftest$ac_exeext'
18322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18323   (eval $ac_try) 2>&5
18324   ac_status=$?
18325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326   (exit $ac_status); }; }; then
18327   ac_cv_lib_elf_elf_begin=yes
18328 else
18329   echo "$as_me: failed program was:" >&5
18330 sed 's/^/| /' conftest.$ac_ext >&5
18331
18332 ac_cv_lib_elf_elf_begin=no
18333 fi
18334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18335 LIBS=$ac_check_lib_save_LIBS
18336 fi
18337 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18338 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18339 if test $ac_cv_lib_elf_elf_begin = yes; then
18340   cat >>confdefs.h <<_ACEOF
18341 #define HAVE_LIBELF 1
18342 _ACEOF
18343
18344   LIBS="-lelf $LIBS"
18345
18346 fi
18347
18348
18349 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18350 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18351 if test "${ac_cv_search_dlopen+set}" = set; then
18352   echo $ECHO_N "(cached) $ECHO_C" >&6
18353 else
18354   ac_func_search_save_LIBS=$LIBS
18355 ac_cv_search_dlopen=no
18356 cat >conftest.$ac_ext <<_ACEOF
18357 #line $LINENO "configure"
18358 /* confdefs.h.  */
18359 _ACEOF
18360 cat confdefs.h >>conftest.$ac_ext
18361 cat >>conftest.$ac_ext <<_ACEOF
18362 /* end confdefs.h.  */
18363
18364 /* Override any gcc2 internal prototype to avoid an error.  */
18365 #ifdef __cplusplus
18366 extern "C"
18367 #endif
18368 /* We use char because int might match the return type of a gcc2
18369    builtin and then its argument prototype would still apply.  */
18370 char dlopen ();
18371 int
18372 main ()
18373 {
18374 dlopen ();
18375   ;
18376   return 0;
18377 }
18378 _ACEOF
18379 rm -f conftest.$ac_objext conftest$ac_exeext
18380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18381   (eval $ac_link) 2>&5
18382   ac_status=$?
18383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384   (exit $ac_status); } &&
18385          { ac_try='test -s conftest$ac_exeext'
18386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18387   (eval $ac_try) 2>&5
18388   ac_status=$?
18389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390   (exit $ac_status); }; }; then
18391   ac_cv_search_dlopen="none required"
18392 else
18393   echo "$as_me: failed program was:" >&5
18394 sed 's/^/| /' conftest.$ac_ext >&5
18395
18396 fi
18397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18398 if test "$ac_cv_search_dlopen" = no; then
18399   for ac_lib in dl; do
18400     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18401     cat >conftest.$ac_ext <<_ACEOF
18402 #line $LINENO "configure"
18403 /* confdefs.h.  */
18404 _ACEOF
18405 cat confdefs.h >>conftest.$ac_ext
18406 cat >>conftest.$ac_ext <<_ACEOF
18407 /* end confdefs.h.  */
18408
18409 /* Override any gcc2 internal prototype to avoid an error.  */
18410 #ifdef __cplusplus
18411 extern "C"
18412 #endif
18413 /* We use char because int might match the return type of a gcc2
18414    builtin and then its argument prototype would still apply.  */
18415 char dlopen ();
18416 int
18417 main ()
18418 {
18419 dlopen ();
18420   ;
18421   return 0;
18422 }
18423 _ACEOF
18424 rm -f conftest.$ac_objext conftest$ac_exeext
18425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18426   (eval $ac_link) 2>&5
18427   ac_status=$?
18428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429   (exit $ac_status); } &&
18430          { ac_try='test -s conftest$ac_exeext'
18431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18432   (eval $ac_try) 2>&5
18433   ac_status=$?
18434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435   (exit $ac_status); }; }; then
18436   ac_cv_search_dlopen="-l$ac_lib"
18437 break
18438 else
18439   echo "$as_me: failed program was:" >&5
18440 sed 's/^/| /' conftest.$ac_ext >&5
18441
18442 fi
18443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18444   done
18445 fi
18446 LIBS=$ac_func_search_save_LIBS
18447 fi
18448 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18449 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18450 if test "$ac_cv_search_dlopen" != no; then
18451   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18452
18453 cat >>confdefs.h <<\_ACEOF
18454 #define HAVE_DLOPEN 1
18455 _ACEOF
18456
18457 else
18458   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18459 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
18460 fi
18461
18462
18463 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18464 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18465 if test "${ac_cv_search_mallinfo+set}" = set; then
18466   echo $ECHO_N "(cached) $ECHO_C" >&6
18467 else
18468   ac_func_search_save_LIBS=$LIBS
18469 ac_cv_search_mallinfo=no
18470 cat >conftest.$ac_ext <<_ACEOF
18471 #line $LINENO "configure"
18472 /* confdefs.h.  */
18473 _ACEOF
18474 cat confdefs.h >>conftest.$ac_ext
18475 cat >>conftest.$ac_ext <<_ACEOF
18476 /* end confdefs.h.  */
18477
18478 /* Override any gcc2 internal prototype to avoid an error.  */
18479 #ifdef __cplusplus
18480 extern "C"
18481 #endif
18482 /* We use char because int might match the return type of a gcc2
18483    builtin and then its argument prototype would still apply.  */
18484 char mallinfo ();
18485 int
18486 main ()
18487 {
18488 mallinfo ();
18489   ;
18490   return 0;
18491 }
18492 _ACEOF
18493 rm -f conftest.$ac_objext conftest$ac_exeext
18494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18495   (eval $ac_link) 2>&5
18496   ac_status=$?
18497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498   (exit $ac_status); } &&
18499          { ac_try='test -s conftest$ac_exeext'
18500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18501   (eval $ac_try) 2>&5
18502   ac_status=$?
18503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504   (exit $ac_status); }; }; then
18505   ac_cv_search_mallinfo="none required"
18506 else
18507   echo "$as_me: failed program was:" >&5
18508 sed 's/^/| /' conftest.$ac_ext >&5
18509
18510 fi
18511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18512 if test "$ac_cv_search_mallinfo" = no; then
18513   for ac_lib in malloc; do
18514     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18515     cat >conftest.$ac_ext <<_ACEOF
18516 #line $LINENO "configure"
18517 /* confdefs.h.  */
18518 _ACEOF
18519 cat confdefs.h >>conftest.$ac_ext
18520 cat >>conftest.$ac_ext <<_ACEOF
18521 /* end confdefs.h.  */
18522
18523 /* Override any gcc2 internal prototype to avoid an error.  */
18524 #ifdef __cplusplus
18525 extern "C"
18526 #endif
18527 /* We use char because int might match the return type of a gcc2
18528    builtin and then its argument prototype would still apply.  */
18529 char mallinfo ();
18530 int
18531 main ()
18532 {
18533 mallinfo ();
18534   ;
18535   return 0;
18536 }
18537 _ACEOF
18538 rm -f conftest.$ac_objext conftest$ac_exeext
18539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18540   (eval $ac_link) 2>&5
18541   ac_status=$?
18542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543   (exit $ac_status); } &&
18544          { ac_try='test -s conftest$ac_exeext'
18545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18546   (eval $ac_try) 2>&5
18547   ac_status=$?
18548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549   (exit $ac_status); }; }; then
18550   ac_cv_search_mallinfo="-l$ac_lib"
18551 break
18552 else
18553   echo "$as_me: failed program was:" >&5
18554 sed 's/^/| /' conftest.$ac_ext >&5
18555
18556 fi
18557 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18558   done
18559 fi
18560 LIBS=$ac_func_search_save_LIBS
18561 fi
18562 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18563 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18564 if test "$ac_cv_search_mallinfo" != no; then
18565   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18566
18567 cat >>confdefs.h <<\_ACEOF
18568 #define HAVE_MALLINFO 1
18569 _ACEOF
18570
18571 fi
18572
18573
18574 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18575 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18576 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18577   echo $ECHO_N "(cached) $ECHO_C" >&6
18578 else
18579   ac_func_search_save_LIBS=$LIBS
18580 ac_cv_search_pthread_mutex_lock=no
18581 cat >conftest.$ac_ext <<_ACEOF
18582 #line $LINENO "configure"
18583 /* confdefs.h.  */
18584 _ACEOF
18585 cat confdefs.h >>conftest.$ac_ext
18586 cat >>conftest.$ac_ext <<_ACEOF
18587 /* end confdefs.h.  */
18588
18589 /* Override any gcc2 internal prototype to avoid an error.  */
18590 #ifdef __cplusplus
18591 extern "C"
18592 #endif
18593 /* We use char because int might match the return type of a gcc2
18594    builtin and then its argument prototype would still apply.  */
18595 char pthread_mutex_lock ();
18596 int
18597 main ()
18598 {
18599 pthread_mutex_lock ();
18600   ;
18601   return 0;
18602 }
18603 _ACEOF
18604 rm -f conftest.$ac_objext conftest$ac_exeext
18605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18606   (eval $ac_link) 2>&5
18607   ac_status=$?
18608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609   (exit $ac_status); } &&
18610          { ac_try='test -s conftest$ac_exeext'
18611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18612   (eval $ac_try) 2>&5
18613   ac_status=$?
18614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615   (exit $ac_status); }; }; then
18616   ac_cv_search_pthread_mutex_lock="none required"
18617 else
18618   echo "$as_me: failed program was:" >&5
18619 sed 's/^/| /' conftest.$ac_ext >&5
18620
18621 fi
18622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18623 if test "$ac_cv_search_pthread_mutex_lock" = no; then
18624   for ac_lib in pthread; do
18625     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18626     cat >conftest.$ac_ext <<_ACEOF
18627 #line $LINENO "configure"
18628 /* confdefs.h.  */
18629 _ACEOF
18630 cat confdefs.h >>conftest.$ac_ext
18631 cat >>conftest.$ac_ext <<_ACEOF
18632 /* end confdefs.h.  */
18633
18634 /* Override any gcc2 internal prototype to avoid an error.  */
18635 #ifdef __cplusplus
18636 extern "C"
18637 #endif
18638 /* We use char because int might match the return type of a gcc2
18639    builtin and then its argument prototype would still apply.  */
18640 char pthread_mutex_lock ();
18641 int
18642 main ()
18643 {
18644 pthread_mutex_lock ();
18645   ;
18646   return 0;
18647 }
18648 _ACEOF
18649 rm -f conftest.$ac_objext conftest$ac_exeext
18650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18651   (eval $ac_link) 2>&5
18652   ac_status=$?
18653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654   (exit $ac_status); } &&
18655          { ac_try='test -s conftest$ac_exeext'
18656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18657   (eval $ac_try) 2>&5
18658   ac_status=$?
18659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660   (exit $ac_status); }; }; then
18661   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
18662 break
18663 else
18664   echo "$as_me: failed program was:" >&5
18665 sed 's/^/| /' conftest.$ac_ext >&5
18666
18667 fi
18668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18669   done
18670 fi
18671 LIBS=$ac_func_search_save_LIBS
18672 fi
18673 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
18674 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
18675 if test "$ac_cv_search_pthread_mutex_lock" != no; then
18676   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
18677   HAVE_PTHREAD_MUTEX_LOCK=1
18678 else
18679   HAVE_PTHREAD_MUTEX_LOCK=0
18680 fi
18681
18682
18683
18684 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18685 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18686 if test "${ac_cv_header_stdc+set}" = set; then
18687   echo $ECHO_N "(cached) $ECHO_C" >&6
18688 else
18689   cat >conftest.$ac_ext <<_ACEOF
18690 #line $LINENO "configure"
18691 /* confdefs.h.  */
18692 _ACEOF
18693 cat confdefs.h >>conftest.$ac_ext
18694 cat >>conftest.$ac_ext <<_ACEOF
18695 /* end confdefs.h.  */
18696 #include <stdlib.h>
18697 #include <stdarg.h>
18698 #include <string.h>
18699 #include <float.h>
18700
18701 int
18702 main ()
18703 {
18704
18705   ;
18706   return 0;
18707 }
18708 _ACEOF
18709 rm -f conftest.$ac_objext
18710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18711   (eval $ac_compile) 2>&5
18712   ac_status=$?
18713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714   (exit $ac_status); } &&
18715          { ac_try='test -s conftest.$ac_objext'
18716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18717   (eval $ac_try) 2>&5
18718   ac_status=$?
18719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720   (exit $ac_status); }; }; then
18721   ac_cv_header_stdc=yes
18722 else
18723   echo "$as_me: failed program was:" >&5
18724 sed 's/^/| /' conftest.$ac_ext >&5
18725
18726 ac_cv_header_stdc=no
18727 fi
18728 rm -f conftest.$ac_objext conftest.$ac_ext
18729
18730 if test $ac_cv_header_stdc = yes; then
18731   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18732   cat >conftest.$ac_ext <<_ACEOF
18733 #line $LINENO "configure"
18734 /* confdefs.h.  */
18735 _ACEOF
18736 cat confdefs.h >>conftest.$ac_ext
18737 cat >>conftest.$ac_ext <<_ACEOF
18738 /* end confdefs.h.  */
18739 #include <string.h>
18740
18741 _ACEOF
18742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18743   $EGREP "memchr" >/dev/null 2>&1; then
18744   :
18745 else
18746   ac_cv_header_stdc=no
18747 fi
18748 rm -f conftest*
18749
18750 fi
18751
18752 if test $ac_cv_header_stdc = yes; then
18753   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18754   cat >conftest.$ac_ext <<_ACEOF
18755 #line $LINENO "configure"
18756 /* confdefs.h.  */
18757 _ACEOF
18758 cat confdefs.h >>conftest.$ac_ext
18759 cat >>conftest.$ac_ext <<_ACEOF
18760 /* end confdefs.h.  */
18761 #include <stdlib.h>
18762
18763 _ACEOF
18764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18765   $EGREP "free" >/dev/null 2>&1; then
18766   :
18767 else
18768   ac_cv_header_stdc=no
18769 fi
18770 rm -f conftest*
18771
18772 fi
18773
18774 if test $ac_cv_header_stdc = yes; then
18775   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18776   if test "$cross_compiling" = yes; then
18777   :
18778 else
18779   cat >conftest.$ac_ext <<_ACEOF
18780 #line $LINENO "configure"
18781 /* confdefs.h.  */
18782 _ACEOF
18783 cat confdefs.h >>conftest.$ac_ext
18784 cat >>conftest.$ac_ext <<_ACEOF
18785 /* end confdefs.h.  */
18786 #include <ctype.h>
18787 #if ((' ' & 0x0FF) == 0x020)
18788 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18789 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18790 #else
18791 # define ISLOWER(c) \
18792                    (('a' <= (c) && (c) <= 'i') \
18793                      || ('j' <= (c) && (c) <= 'r') \
18794                      || ('s' <= (c) && (c) <= 'z'))
18795 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18796 #endif
18797
18798 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18799 int
18800 main ()
18801 {
18802   int i;
18803   for (i = 0; i < 256; i++)
18804     if (XOR (islower (i), ISLOWER (i))
18805         || toupper (i) != TOUPPER (i))
18806       exit(2);
18807   exit (0);
18808 }
18809 _ACEOF
18810 rm -f conftest$ac_exeext
18811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18812   (eval $ac_link) 2>&5
18813   ac_status=$?
18814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18817   (eval $ac_try) 2>&5
18818   ac_status=$?
18819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820   (exit $ac_status); }; }; then
18821   :
18822 else
18823   echo "$as_me: program exited with status $ac_status" >&5
18824 echo "$as_me: failed program was:" >&5
18825 sed 's/^/| /' conftest.$ac_ext >&5
18826
18827 ( exit $ac_status )
18828 ac_cv_header_stdc=no
18829 fi
18830 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18831 fi
18832 fi
18833 fi
18834 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18835 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18836 if test $ac_cv_header_stdc = yes; then
18837
18838 cat >>confdefs.h <<\_ACEOF
18839 #define STDC_HEADERS 1
18840 _ACEOF
18841
18842 fi
18843
18844 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18845 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18846 if test "${ac_cv_header_sys_wait_h+set}" = set; then
18847   echo $ECHO_N "(cached) $ECHO_C" >&6
18848 else
18849   cat >conftest.$ac_ext <<_ACEOF
18850 #line $LINENO "configure"
18851 /* confdefs.h.  */
18852 _ACEOF
18853 cat confdefs.h >>conftest.$ac_ext
18854 cat >>conftest.$ac_ext <<_ACEOF
18855 /* end confdefs.h.  */
18856 #include <sys/types.h>
18857 #include <sys/wait.h>
18858 #ifndef WEXITSTATUS
18859 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18860 #endif
18861 #ifndef WIFEXITED
18862 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18863 #endif
18864
18865 int
18866 main ()
18867 {
18868   int s;
18869   wait (&s);
18870   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18871   ;
18872   return 0;
18873 }
18874 _ACEOF
18875 rm -f conftest.$ac_objext
18876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18877   (eval $ac_compile) 2>&5
18878   ac_status=$?
18879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880   (exit $ac_status); } &&
18881          { ac_try='test -s conftest.$ac_objext'
18882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18883   (eval $ac_try) 2>&5
18884   ac_status=$?
18885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886   (exit $ac_status); }; }; then
18887   ac_cv_header_sys_wait_h=yes
18888 else
18889   echo "$as_me: failed program was:" >&5
18890 sed 's/^/| /' conftest.$ac_ext >&5
18891
18892 ac_cv_header_sys_wait_h=no
18893 fi
18894 rm -f conftest.$ac_objext conftest.$ac_ext
18895 fi
18896 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18897 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18898 if test $ac_cv_header_sys_wait_h = yes; then
18899
18900 cat >>confdefs.h <<\_ACEOF
18901 #define HAVE_SYS_WAIT_H 1
18902 _ACEOF
18903
18904 fi
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917 for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h execinfo.h
18918 do
18919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18921   echo "$as_me:$LINENO: checking for $ac_header" >&5
18922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18924   echo $ECHO_N "(cached) $ECHO_C" >&6
18925 fi
18926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18928 else
18929   # Is the header compilable?
18930 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18932 cat >conftest.$ac_ext <<_ACEOF
18933 #line $LINENO "configure"
18934 /* confdefs.h.  */
18935 _ACEOF
18936 cat confdefs.h >>conftest.$ac_ext
18937 cat >>conftest.$ac_ext <<_ACEOF
18938 /* end confdefs.h.  */
18939 $ac_includes_default
18940 #include <$ac_header>
18941 _ACEOF
18942 rm -f conftest.$ac_objext
18943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18944   (eval $ac_compile) 2>&5
18945   ac_status=$?
18946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947   (exit $ac_status); } &&
18948          { ac_try='test -s conftest.$ac_objext'
18949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18950   (eval $ac_try) 2>&5
18951   ac_status=$?
18952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953   (exit $ac_status); }; }; then
18954   ac_header_compiler=yes
18955 else
18956   echo "$as_me: failed program was:" >&5
18957 sed 's/^/| /' conftest.$ac_ext >&5
18958
18959 ac_header_compiler=no
18960 fi
18961 rm -f conftest.$ac_objext conftest.$ac_ext
18962 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18963 echo "${ECHO_T}$ac_header_compiler" >&6
18964
18965 # Is the header present?
18966 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18968 cat >conftest.$ac_ext <<_ACEOF
18969 #line $LINENO "configure"
18970 /* confdefs.h.  */
18971 _ACEOF
18972 cat confdefs.h >>conftest.$ac_ext
18973 cat >>conftest.$ac_ext <<_ACEOF
18974 /* end confdefs.h.  */
18975 #include <$ac_header>
18976 _ACEOF
18977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18978   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18979   ac_status=$?
18980   grep -v '^ *+' conftest.er1 >conftest.err
18981   rm -f conftest.er1
18982   cat conftest.err >&5
18983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984   (exit $ac_status); } >/dev/null; then
18985   if test -s conftest.err; then
18986     ac_cpp_err=$ac_c_preproc_warn_flag
18987   else
18988     ac_cpp_err=
18989   fi
18990 else
18991   ac_cpp_err=yes
18992 fi
18993 if test -z "$ac_cpp_err"; then
18994   ac_header_preproc=yes
18995 else
18996   echo "$as_me: failed program was:" >&5
18997 sed 's/^/| /' conftest.$ac_ext >&5
18998
18999   ac_header_preproc=no
19000 fi
19001 rm -f conftest.err conftest.$ac_ext
19002 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19003 echo "${ECHO_T}$ac_header_preproc" >&6
19004
19005 # So?  What about this header?
19006 case $ac_header_compiler:$ac_header_preproc in
19007   yes:no )
19008     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19009 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19010     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19011 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19012     (
19013       cat <<\_ASBOX
19014 ## ------------------------------------ ##
19015 ## Report this to bug-autoconf@gnu.org. ##
19016 ## ------------------------------------ ##
19017 _ASBOX
19018     ) |
19019       sed "s/^/$as_me: WARNING:     /" >&2
19020     ;;
19021   no:yes )
19022     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19024     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19025 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19026     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19028     (
19029       cat <<\_ASBOX
19030 ## ------------------------------------ ##
19031 ## Report this to bug-autoconf@gnu.org. ##
19032 ## ------------------------------------ ##
19033 _ASBOX
19034     ) |
19035       sed "s/^/$as_me: WARNING:     /" >&2
19036     ;;
19037 esac
19038 echo "$as_me:$LINENO: checking for $ac_header" >&5
19039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19041   echo $ECHO_N "(cached) $ECHO_C" >&6
19042 else
19043   eval "$as_ac_Header=$ac_header_preproc"
19044 fi
19045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19047
19048 fi
19049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19050   cat >>confdefs.h <<_ACEOF
19051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19052 _ACEOF
19053
19054 fi
19055
19056 done
19057
19058
19059 if test "${ac_cv_header_sys_types_h+set}" = set; then
19060   echo "$as_me:$LINENO: checking for sys/types.h" >&5
19061 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19062 if test "${ac_cv_header_sys_types_h+set}" = set; then
19063   echo $ECHO_N "(cached) $ECHO_C" >&6
19064 fi
19065 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19066 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19067 else
19068   # Is the header compilable?
19069 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19070 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19071 cat >conftest.$ac_ext <<_ACEOF
19072 #line $LINENO "configure"
19073 /* confdefs.h.  */
19074 _ACEOF
19075 cat confdefs.h >>conftest.$ac_ext
19076 cat >>conftest.$ac_ext <<_ACEOF
19077 /* end confdefs.h.  */
19078 $ac_includes_default
19079 #include <sys/types.h>
19080 _ACEOF
19081 rm -f conftest.$ac_objext
19082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19083   (eval $ac_compile) 2>&5
19084   ac_status=$?
19085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086   (exit $ac_status); } &&
19087          { ac_try='test -s conftest.$ac_objext'
19088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19089   (eval $ac_try) 2>&5
19090   ac_status=$?
19091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092   (exit $ac_status); }; }; then
19093   ac_header_compiler=yes
19094 else
19095   echo "$as_me: failed program was:" >&5
19096 sed 's/^/| /' conftest.$ac_ext >&5
19097
19098 ac_header_compiler=no
19099 fi
19100 rm -f conftest.$ac_objext conftest.$ac_ext
19101 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19102 echo "${ECHO_T}$ac_header_compiler" >&6
19103
19104 # Is the header present?
19105 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19106 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19107 cat >conftest.$ac_ext <<_ACEOF
19108 #line $LINENO "configure"
19109 /* confdefs.h.  */
19110 _ACEOF
19111 cat confdefs.h >>conftest.$ac_ext
19112 cat >>conftest.$ac_ext <<_ACEOF
19113 /* end confdefs.h.  */
19114 #include <sys/types.h>
19115 _ACEOF
19116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19117   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19118   ac_status=$?
19119   grep -v '^ *+' conftest.er1 >conftest.err
19120   rm -f conftest.er1
19121   cat conftest.err >&5
19122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123   (exit $ac_status); } >/dev/null; then
19124   if test -s conftest.err; then
19125     ac_cpp_err=$ac_c_preproc_warn_flag
19126   else
19127     ac_cpp_err=
19128   fi
19129 else
19130   ac_cpp_err=yes
19131 fi
19132 if test -z "$ac_cpp_err"; then
19133   ac_header_preproc=yes
19134 else
19135   echo "$as_me: failed program was:" >&5
19136 sed 's/^/| /' conftest.$ac_ext >&5
19137
19138   ac_header_preproc=no
19139 fi
19140 rm -f conftest.err conftest.$ac_ext
19141 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19142 echo "${ECHO_T}$ac_header_preproc" >&6
19143
19144 # So?  What about this header?
19145 case $ac_header_compiler:$ac_header_preproc in
19146   yes:no )
19147     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19148 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19149     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19150 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19151     (
19152       cat <<\_ASBOX
19153 ## ------------------------------------ ##
19154 ## Report this to bug-autoconf@gnu.org. ##
19155 ## ------------------------------------ ##
19156 _ASBOX
19157     ) |
19158       sed "s/^/$as_me: WARNING:     /" >&2
19159     ;;
19160   no:yes )
19161     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19162 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19163     { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19164 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19165     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19166 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19167     (
19168       cat <<\_ASBOX
19169 ## ------------------------------------ ##
19170 ## Report this to bug-autoconf@gnu.org. ##
19171 ## ------------------------------------ ##
19172 _ASBOX
19173     ) |
19174       sed "s/^/$as_me: WARNING:     /" >&2
19175     ;;
19176 esac
19177 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19178 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19179 if test "${ac_cv_header_sys_types_h+set}" = set; then
19180   echo $ECHO_N "(cached) $ECHO_C" >&6
19181 else
19182   ac_cv_header_sys_types_h=$ac_header_preproc
19183 fi
19184 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19185 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19186
19187 fi
19188 if test $ac_cv_header_sys_types_h = yes; then
19189   INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19190 else
19191   INCLUDE_SYS_TYPES_H=''
19192 fi
19193
19194
19195
19196 if test "${ac_cv_header_inttypes_h+set}" = set; then
19197   echo "$as_me:$LINENO: checking for inttypes.h" >&5
19198 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19199 if test "${ac_cv_header_inttypes_h+set}" = set; then
19200   echo $ECHO_N "(cached) $ECHO_C" >&6
19201 fi
19202 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19203 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19204 else
19205   # Is the header compilable?
19206 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19207 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19208 cat >conftest.$ac_ext <<_ACEOF
19209 #line $LINENO "configure"
19210 /* confdefs.h.  */
19211 _ACEOF
19212 cat confdefs.h >>conftest.$ac_ext
19213 cat >>conftest.$ac_ext <<_ACEOF
19214 /* end confdefs.h.  */
19215 $ac_includes_default
19216 #include <inttypes.h>
19217 _ACEOF
19218 rm -f conftest.$ac_objext
19219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19220   (eval $ac_compile) 2>&5
19221   ac_status=$?
19222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223   (exit $ac_status); } &&
19224          { ac_try='test -s conftest.$ac_objext'
19225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19226   (eval $ac_try) 2>&5
19227   ac_status=$?
19228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229   (exit $ac_status); }; }; then
19230   ac_header_compiler=yes
19231 else
19232   echo "$as_me: failed program was:" >&5
19233 sed 's/^/| /' conftest.$ac_ext >&5
19234
19235 ac_header_compiler=no
19236 fi
19237 rm -f conftest.$ac_objext conftest.$ac_ext
19238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19239 echo "${ECHO_T}$ac_header_compiler" >&6
19240
19241 # Is the header present?
19242 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19243 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19244 cat >conftest.$ac_ext <<_ACEOF
19245 #line $LINENO "configure"
19246 /* confdefs.h.  */
19247 _ACEOF
19248 cat confdefs.h >>conftest.$ac_ext
19249 cat >>conftest.$ac_ext <<_ACEOF
19250 /* end confdefs.h.  */
19251 #include <inttypes.h>
19252 _ACEOF
19253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19254   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19255   ac_status=$?
19256   grep -v '^ *+' conftest.er1 >conftest.err
19257   rm -f conftest.er1
19258   cat conftest.err >&5
19259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260   (exit $ac_status); } >/dev/null; then
19261   if test -s conftest.err; then
19262     ac_cpp_err=$ac_c_preproc_warn_flag
19263   else
19264     ac_cpp_err=
19265   fi
19266 else
19267   ac_cpp_err=yes
19268 fi
19269 if test -z "$ac_cpp_err"; then
19270   ac_header_preproc=yes
19271 else
19272   echo "$as_me: failed program was:" >&5
19273 sed 's/^/| /' conftest.$ac_ext >&5
19274
19275   ac_header_preproc=no
19276 fi
19277 rm -f conftest.err conftest.$ac_ext
19278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19279 echo "${ECHO_T}$ac_header_preproc" >&6
19280
19281 # So?  What about this header?
19282 case $ac_header_compiler:$ac_header_preproc in
19283   yes:no )
19284     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19285 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19286     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19287 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19288     (
19289       cat <<\_ASBOX
19290 ## ------------------------------------ ##
19291 ## Report this to bug-autoconf@gnu.org. ##
19292 ## ------------------------------------ ##
19293 _ASBOX
19294     ) |
19295       sed "s/^/$as_me: WARNING:     /" >&2
19296     ;;
19297   no:yes )
19298     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19299 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
19300     { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
19301 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
19302     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19303 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19304     (
19305       cat <<\_ASBOX
19306 ## ------------------------------------ ##
19307 ## Report this to bug-autoconf@gnu.org. ##
19308 ## ------------------------------------ ##
19309 _ASBOX
19310     ) |
19311       sed "s/^/$as_me: WARNING:     /" >&2
19312     ;;
19313 esac
19314 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19315 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19316 if test "${ac_cv_header_inttypes_h+set}" = set; then
19317   echo $ECHO_N "(cached) $ECHO_C" >&6
19318 else
19319   ac_cv_header_inttypes_h=$ac_header_preproc
19320 fi
19321 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19322 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19323
19324 fi
19325 if test $ac_cv_header_inttypes_h = yes; then
19326   INCLUDE_INTTYPES_H='#include <inttypes.h>'
19327 else
19328   INCLUDE_INTTYPES_H=''
19329 fi
19330
19331
19332
19333
19334 echo "$as_me:$LINENO: checking for pid_t" >&5
19335 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19336 if test "${ac_cv_type_pid_t+set}" = set; then
19337   echo $ECHO_N "(cached) $ECHO_C" >&6
19338 else
19339   cat >conftest.$ac_ext <<_ACEOF
19340 #line $LINENO "configure"
19341 /* confdefs.h.  */
19342 _ACEOF
19343 cat confdefs.h >>conftest.$ac_ext
19344 cat >>conftest.$ac_ext <<_ACEOF
19345 /* end confdefs.h.  */
19346 $ac_includes_default
19347 int
19348 main ()
19349 {
19350 if ((pid_t *) 0)
19351   return 0;
19352 if (sizeof (pid_t))
19353   return 0;
19354   ;
19355   return 0;
19356 }
19357 _ACEOF
19358 rm -f conftest.$ac_objext
19359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19360   (eval $ac_compile) 2>&5
19361   ac_status=$?
19362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363   (exit $ac_status); } &&
19364          { ac_try='test -s conftest.$ac_objext'
19365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19366   (eval $ac_try) 2>&5
19367   ac_status=$?
19368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369   (exit $ac_status); }; }; then
19370   ac_cv_type_pid_t=yes
19371 else
19372   echo "$as_me: failed program was:" >&5
19373 sed 's/^/| /' conftest.$ac_ext >&5
19374
19375 ac_cv_type_pid_t=no
19376 fi
19377 rm -f conftest.$ac_objext conftest.$ac_ext
19378 fi
19379 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19380 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19381 if test $ac_cv_type_pid_t = yes; then
19382   :
19383 else
19384
19385 cat >>confdefs.h <<_ACEOF
19386 #define pid_t int
19387 _ACEOF
19388
19389 fi
19390
19391 echo "$as_me:$LINENO: checking for size_t" >&5
19392 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19393 if test "${ac_cv_type_size_t+set}" = set; then
19394   echo $ECHO_N "(cached) $ECHO_C" >&6
19395 else
19396   cat >conftest.$ac_ext <<_ACEOF
19397 #line $LINENO "configure"
19398 /* confdefs.h.  */
19399 _ACEOF
19400 cat confdefs.h >>conftest.$ac_ext
19401 cat >>conftest.$ac_ext <<_ACEOF
19402 /* end confdefs.h.  */
19403 $ac_includes_default
19404 int
19405 main ()
19406 {
19407 if ((size_t *) 0)
19408   return 0;
19409 if (sizeof (size_t))
19410   return 0;
19411   ;
19412   return 0;
19413 }
19414 _ACEOF
19415 rm -f conftest.$ac_objext
19416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19417   (eval $ac_compile) 2>&5
19418   ac_status=$?
19419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420   (exit $ac_status); } &&
19421          { ac_try='test -s conftest.$ac_objext'
19422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19423   (eval $ac_try) 2>&5
19424   ac_status=$?
19425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426   (exit $ac_status); }; }; then
19427   ac_cv_type_size_t=yes
19428 else
19429   echo "$as_me: failed program was:" >&5
19430 sed 's/^/| /' conftest.$ac_ext >&5
19431
19432 ac_cv_type_size_t=no
19433 fi
19434 rm -f conftest.$ac_objext conftest.$ac_ext
19435 fi
19436 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19437 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19438 if test $ac_cv_type_size_t = yes; then
19439   :
19440 else
19441
19442 cat >>confdefs.h <<_ACEOF
19443 #define size_t unsigned
19444 _ACEOF
19445
19446 fi
19447
19448 echo "$as_me:$LINENO: checking for int64_t" >&5
19449 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19450 if test "${ac_cv_type_int64_t+set}" = set; then
19451   echo $ECHO_N "(cached) $ECHO_C" >&6
19452 else
19453   cat >conftest.$ac_ext <<_ACEOF
19454 #line $LINENO "configure"
19455 /* confdefs.h.  */
19456 _ACEOF
19457 cat confdefs.h >>conftest.$ac_ext
19458 cat >>conftest.$ac_ext <<_ACEOF
19459 /* end confdefs.h.  */
19460 $ac_includes_default
19461 int
19462 main ()
19463 {
19464 if ((int64_t *) 0)
19465   return 0;
19466 if (sizeof (int64_t))
19467   return 0;
19468   ;
19469   return 0;
19470 }
19471 _ACEOF
19472 rm -f conftest.$ac_objext
19473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19474   (eval $ac_compile) 2>&5
19475   ac_status=$?
19476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477   (exit $ac_status); } &&
19478          { ac_try='test -s conftest.$ac_objext'
19479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19480   (eval $ac_try) 2>&5
19481   ac_status=$?
19482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483   (exit $ac_status); }; }; then
19484   ac_cv_type_int64_t=yes
19485 else
19486   echo "$as_me: failed program was:" >&5
19487 sed 's/^/| /' conftest.$ac_ext >&5
19488
19489 ac_cv_type_int64_t=no
19490 fi
19491 rm -f conftest.$ac_objext conftest.$ac_ext
19492 fi
19493 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19494 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19495 if test $ac_cv_type_int64_t = yes; then
19496
19497 cat >>confdefs.h <<_ACEOF
19498 #define HAVE_INT64_T 1
19499 _ACEOF
19500
19501
19502 else
19503   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19504 echo "$as_me: error: Type int64_t required but not found" >&2;}
19505    { (exit 1); exit 1; }; }
19506 fi
19507
19508 echo "$as_me:$LINENO: checking for uint64_t" >&5
19509 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19510 if test "${ac_cv_type_uint64_t+set}" = set; then
19511   echo $ECHO_N "(cached) $ECHO_C" >&6
19512 else
19513   cat >conftest.$ac_ext <<_ACEOF
19514 #line $LINENO "configure"
19515 /* confdefs.h.  */
19516 _ACEOF
19517 cat confdefs.h >>conftest.$ac_ext
19518 cat >>conftest.$ac_ext <<_ACEOF
19519 /* end confdefs.h.  */
19520 $ac_includes_default
19521 int
19522 main ()
19523 {
19524 if ((uint64_t *) 0)
19525   return 0;
19526 if (sizeof (uint64_t))
19527   return 0;
19528   ;
19529   return 0;
19530 }
19531 _ACEOF
19532 rm -f conftest.$ac_objext
19533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19534   (eval $ac_compile) 2>&5
19535   ac_status=$?
19536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537   (exit $ac_status); } &&
19538          { ac_try='test -s conftest.$ac_objext'
19539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19540   (eval $ac_try) 2>&5
19541   ac_status=$?
19542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543   (exit $ac_status); }; }; then
19544   ac_cv_type_uint64_t=yes
19545 else
19546   echo "$as_me: failed program was:" >&5
19547 sed 's/^/| /' conftest.$ac_ext >&5
19548
19549 ac_cv_type_uint64_t=no
19550 fi
19551 rm -f conftest.$ac_objext conftest.$ac_ext
19552 fi
19553 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19554 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19555 if test $ac_cv_type_uint64_t = yes; then
19556
19557 cat >>confdefs.h <<_ACEOF
19558 #define HAVE_UINT64_T 1
19559 _ACEOF
19560
19561
19562 else
19563   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19564 echo "$as_me: error: Type uint64_t required but not found" >&2;}
19565    { (exit 1); exit 1; }; }
19566 fi
19567
19568 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19569 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19570 if test "${ac_cv_header_time+set}" = set; then
19571   echo $ECHO_N "(cached) $ECHO_C" >&6
19572 else
19573   cat >conftest.$ac_ext <<_ACEOF
19574 #line $LINENO "configure"
19575 /* confdefs.h.  */
19576 _ACEOF
19577 cat confdefs.h >>conftest.$ac_ext
19578 cat >>conftest.$ac_ext <<_ACEOF
19579 /* end confdefs.h.  */
19580 #include <sys/types.h>
19581 #include <sys/time.h>
19582 #include <time.h>
19583
19584 int
19585 main ()
19586 {
19587 if ((struct tm *) 0)
19588 return 0;
19589   ;
19590   return 0;
19591 }
19592 _ACEOF
19593 rm -f conftest.$ac_objext
19594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19595   (eval $ac_compile) 2>&5
19596   ac_status=$?
19597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598   (exit $ac_status); } &&
19599          { ac_try='test -s conftest.$ac_objext'
19600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19601   (eval $ac_try) 2>&5
19602   ac_status=$?
19603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604   (exit $ac_status); }; }; then
19605   ac_cv_header_time=yes
19606 else
19607   echo "$as_me: failed program was:" >&5
19608 sed 's/^/| /' conftest.$ac_ext >&5
19609
19610 ac_cv_header_time=no
19611 fi
19612 rm -f conftest.$ac_objext conftest.$ac_ext
19613 fi
19614 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19615 echo "${ECHO_T}$ac_cv_header_time" >&6
19616 if test $ac_cv_header_time = yes; then
19617
19618 cat >>confdefs.h <<\_ACEOF
19619 #define TIME_WITH_SYS_TIME 1
19620 _ACEOF
19621
19622 fi
19623
19624 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19625 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19626 if test "${ac_cv_struct_tm+set}" = set; then
19627   echo $ECHO_N "(cached) $ECHO_C" >&6
19628 else
19629   cat >conftest.$ac_ext <<_ACEOF
19630 #line $LINENO "configure"
19631 /* confdefs.h.  */
19632 _ACEOF
19633 cat confdefs.h >>conftest.$ac_ext
19634 cat >>conftest.$ac_ext <<_ACEOF
19635 /* end confdefs.h.  */
19636 #include <sys/types.h>
19637 #include <time.h>
19638
19639 int
19640 main ()
19641 {
19642 struct tm *tp; tp->tm_sec;
19643   ;
19644   return 0;
19645 }
19646 _ACEOF
19647 rm -f conftest.$ac_objext
19648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19649   (eval $ac_compile) 2>&5
19650   ac_status=$?
19651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652   (exit $ac_status); } &&
19653          { ac_try='test -s conftest.$ac_objext'
19654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19655   (eval $ac_try) 2>&5
19656   ac_status=$?
19657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658   (exit $ac_status); }; }; then
19659   ac_cv_struct_tm=time.h
19660 else
19661   echo "$as_me: failed program was:" >&5
19662 sed 's/^/| /' conftest.$ac_ext >&5
19663
19664 ac_cv_struct_tm=sys/time.h
19665 fi
19666 rm -f conftest.$ac_objext conftest.$ac_ext
19667 fi
19668 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19669 echo "${ECHO_T}$ac_cv_struct_tm" >&6
19670 if test $ac_cv_struct_tm = sys/time.h; then
19671
19672 cat >>confdefs.h <<\_ACEOF
19673 #define TM_IN_SYS_TIME 1
19674 _ACEOF
19675
19676 fi
19677
19678
19679
19680
19681
19682         ac_ext=c
19683 ac_cpp='$CPP $CPPFLAGS'
19684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19687
19688         if test "$cross_compiling" = yes; then
19689   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19690 See \`config.log' for more details." >&5
19691 echo "$as_me: error: cannot run test program while cross compiling
19692 See \`config.log' for more details." >&2;}
19693    { (exit 1); exit 1; }; }
19694 else
19695   cat >conftest.$ac_ext <<_ACEOF
19696 #line $LINENO "configure"
19697 /* confdefs.h.  */
19698 _ACEOF
19699 cat confdefs.h >>conftest.$ac_ext
19700 cat >>conftest.$ac_ext <<_ACEOF
19701 /* end confdefs.h.  */
19702 #include <stdio.h>
19703                                  #include <stdlib.h>
19704 int
19705 main ()
19706 {
19707
19708                                  volatile double A, B;
19709                                  char Buffer[100];
19710                                  A = 1;
19711                                  A /= 10.0;
19712                                  sprintf(Buffer, "%a", A);
19713                                  B = atof(Buffer);
19714                                  if (A != B)
19715                                                          return (1);
19716                                  if (A != 0x1.999999999999ap-4)
19717                                                          return (1);
19718                                  return (0);
19719   ;
19720   return 0;
19721 }
19722 _ACEOF
19723 rm -f conftest$ac_exeext
19724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19725   (eval $ac_link) 2>&5
19726   ac_status=$?
19727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19730   (eval $ac_try) 2>&5
19731   ac_status=$?
19732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733   (exit $ac_status); }; }; then
19734   ac_c_printf_a=yes
19735 else
19736   echo "$as_me: program exited with status $ac_status" >&5
19737 echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19739
19740 ( exit $ac_status )
19741 ac_c_printf_a=no
19742 fi
19743 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19744 fi
19745         ac_ext=c
19746 ac_cpp='$CPP $CPPFLAGS'
19747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19750
19751         if test "$ac_c_printf_a" = "yes"; then
19752
19753 cat >>confdefs.h <<\_ACEOF
19754 #define HAVE_PRINTF_A 1
19755 _ACEOF
19756
19757         fi
19758
19759
19760 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19761 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19762 if test "${ac_cv_c_bigendian+set}" = set; then
19763   echo $ECHO_N "(cached) $ECHO_C" >&6
19764 else
19765   # See if sys/param.h defines the BYTE_ORDER macro.
19766 cat >conftest.$ac_ext <<_ACEOF
19767 #line $LINENO "configure"
19768 /* confdefs.h.  */
19769 _ACEOF
19770 cat confdefs.h >>conftest.$ac_ext
19771 cat >>conftest.$ac_ext <<_ACEOF
19772 /* end confdefs.h.  */
19773 #include <sys/types.h>
19774 #include <sys/param.h>
19775
19776 int
19777 main ()
19778 {
19779 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19780  bogus endian macros
19781 #endif
19782
19783   ;
19784   return 0;
19785 }
19786 _ACEOF
19787 rm -f conftest.$ac_objext
19788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19789   (eval $ac_compile) 2>&5
19790   ac_status=$?
19791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792   (exit $ac_status); } &&
19793          { ac_try='test -s conftest.$ac_objext'
19794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795   (eval $ac_try) 2>&5
19796   ac_status=$?
19797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798   (exit $ac_status); }; }; then
19799   # It does; now see whether it defined to BIG_ENDIAN or not.
19800 cat >conftest.$ac_ext <<_ACEOF
19801 #line $LINENO "configure"
19802 /* confdefs.h.  */
19803 _ACEOF
19804 cat confdefs.h >>conftest.$ac_ext
19805 cat >>conftest.$ac_ext <<_ACEOF
19806 /* end confdefs.h.  */
19807 #include <sys/types.h>
19808 #include <sys/param.h>
19809
19810 int
19811 main ()
19812 {
19813 #if BYTE_ORDER != BIG_ENDIAN
19814  not big endian
19815 #endif
19816
19817   ;
19818   return 0;
19819 }
19820 _ACEOF
19821 rm -f conftest.$ac_objext
19822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19823   (eval $ac_compile) 2>&5
19824   ac_status=$?
19825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826   (exit $ac_status); } &&
19827          { ac_try='test -s conftest.$ac_objext'
19828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19829   (eval $ac_try) 2>&5
19830   ac_status=$?
19831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832   (exit $ac_status); }; }; then
19833   ac_cv_c_bigendian=yes
19834 else
19835   echo "$as_me: failed program was:" >&5
19836 sed 's/^/| /' conftest.$ac_ext >&5
19837
19838 ac_cv_c_bigendian=no
19839 fi
19840 rm -f conftest.$ac_objext conftest.$ac_ext
19841 else
19842   echo "$as_me: failed program was:" >&5
19843 sed 's/^/| /' conftest.$ac_ext >&5
19844
19845 # It does not; compile a test program.
19846 if test "$cross_compiling" = yes; then
19847   # try to guess the endianness by grepping values into an object file
19848   ac_cv_c_bigendian=unknown
19849   cat >conftest.$ac_ext <<_ACEOF
19850 #line $LINENO "configure"
19851 /* confdefs.h.  */
19852 _ACEOF
19853 cat confdefs.h >>conftest.$ac_ext
19854 cat >>conftest.$ac_ext <<_ACEOF
19855 /* end confdefs.h.  */
19856 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19857 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19858 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19859 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19860 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19861 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19862 int
19863 main ()
19864 {
19865  _ascii (); _ebcdic ();
19866   ;
19867   return 0;
19868 }
19869 _ACEOF
19870 rm -f conftest.$ac_objext
19871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19872   (eval $ac_compile) 2>&5
19873   ac_status=$?
19874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875   (exit $ac_status); } &&
19876          { ac_try='test -s conftest.$ac_objext'
19877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878   (eval $ac_try) 2>&5
19879   ac_status=$?
19880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881   (exit $ac_status); }; }; then
19882   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19883   ac_cv_c_bigendian=yes
19884 fi
19885 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19886   if test "$ac_cv_c_bigendian" = unknown; then
19887     ac_cv_c_bigendian=no
19888   else
19889     # finding both strings is unlikely to happen, but who knows?
19890     ac_cv_c_bigendian=unknown
19891   fi
19892 fi
19893 else
19894   echo "$as_me: failed program was:" >&5
19895 sed 's/^/| /' conftest.$ac_ext >&5
19896
19897 fi
19898 rm -f conftest.$ac_objext conftest.$ac_ext
19899 else
19900   cat >conftest.$ac_ext <<_ACEOF
19901 #line $LINENO "configure"
19902 /* confdefs.h.  */
19903 _ACEOF
19904 cat confdefs.h >>conftest.$ac_ext
19905 cat >>conftest.$ac_ext <<_ACEOF
19906 /* end confdefs.h.  */
19907 int
19908 main ()
19909 {
19910   /* Are we little or big endian?  From Harbison&Steele.  */
19911   union
19912   {
19913     long l;
19914     char c[sizeof (long)];
19915   } u;
19916   u.l = 1;
19917   exit (u.c[sizeof (long) - 1] == 1);
19918 }
19919 _ACEOF
19920 rm -f conftest$ac_exeext
19921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19922   (eval $ac_link) 2>&5
19923   ac_status=$?
19924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19927   (eval $ac_try) 2>&5
19928   ac_status=$?
19929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930   (exit $ac_status); }; }; then
19931   ac_cv_c_bigendian=no
19932 else
19933   echo "$as_me: program exited with status $ac_status" >&5
19934 echo "$as_me: failed program was:" >&5
19935 sed 's/^/| /' conftest.$ac_ext >&5
19936
19937 ( exit $ac_status )
19938 ac_cv_c_bigendian=yes
19939 fi
19940 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19941 fi
19942 fi
19943 rm -f conftest.$ac_objext conftest.$ac_ext
19944 fi
19945 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19946 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19947 case $ac_cv_c_bigendian in
19948   yes)
19949     ENDIAN=big
19950  ;;
19951   no)
19952     ENDIAN=little
19953  ;;
19954   *)
19955     { { echo "$as_me:$LINENO: error: unknown endianness
19956 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19957 echo "$as_me: error: unknown endianness
19958 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19959    { (exit 1); exit 1; }; } ;;
19960 esac
19961
19962
19963 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
19964 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
19965 if test "${ac_cv_cxx_namespaces+set}" = set; then
19966   echo $ECHO_N "(cached) $ECHO_C" >&6
19967 else
19968
19969
19970  ac_ext=cc
19971 ac_cpp='$CXXCPP $CPPFLAGS'
19972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19975
19976  cat >conftest.$ac_ext <<_ACEOF
19977 #line $LINENO "configure"
19978 /* confdefs.h.  */
19979 _ACEOF
19980 cat confdefs.h >>conftest.$ac_ext
19981 cat >>conftest.$ac_ext <<_ACEOF
19982 /* end confdefs.h.  */
19983 namespace Outer { namespace Inner { int i = 0; }}
19984 int
19985 main ()
19986 {
19987 using namespace Outer::Inner; return i;
19988   ;
19989   return 0;
19990 }
19991 _ACEOF
19992 rm -f conftest.$ac_objext
19993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19994   (eval $ac_compile) 2>&5
19995   ac_status=$?
19996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997   (exit $ac_status); } &&
19998          { ac_try='test -s conftest.$ac_objext'
19999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000   (eval $ac_try) 2>&5
20001   ac_status=$?
20002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003   (exit $ac_status); }; }; then
20004   ac_cv_cxx_namespaces=yes
20005 else
20006   echo "$as_me: failed program was:" >&5
20007 sed 's/^/| /' conftest.$ac_ext >&5
20008
20009 ac_cv_cxx_namespaces=no
20010 fi
20011 rm -f conftest.$ac_objext conftest.$ac_ext
20012  ac_ext=c
20013 ac_cpp='$CPP $CPPFLAGS'
20014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20017
20018
20019 fi
20020 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20021 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20022 if test "$ac_cv_cxx_namespaces" = yes; then
20023
20024 cat >>confdefs.h <<\_ACEOF
20025 #define HAVE_NAMESPACES
20026 _ACEOF
20027
20028 fi
20029
20030 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20031 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20032 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20033   echo $ECHO_N "(cached) $ECHO_C" >&6
20034 else
20035
20036
20037
20038   ac_ext=cc
20039 ac_cpp='$CXXCPP $CPPFLAGS'
20040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20043
20044   cat >conftest.$ac_ext <<_ACEOF
20045 #line $LINENO "configure"
20046 /* confdefs.h.  */
20047 _ACEOF
20048 cat confdefs.h >>conftest.$ac_ext
20049 cat >>conftest.$ac_ext <<_ACEOF
20050 /* end confdefs.h.  */
20051 #include <ext/hash_map>
20052 #ifdef HAVE_NAMESPACES
20053 using namespace std;
20054 #endif
20055 int
20056 main ()
20057 {
20058 hash_map<int, int> t;
20059   ;
20060   return 0;
20061 }
20062 _ACEOF
20063 rm -f conftest.$ac_objext
20064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20065   (eval $ac_compile) 2>&5
20066   ac_status=$?
20067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068   (exit $ac_status); } &&
20069          { ac_try='test -s conftest.$ac_objext'
20070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20071   (eval $ac_try) 2>&5
20072   ac_status=$?
20073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074   (exit $ac_status); }; }; then
20075   ac_cv_cxx_have_std_ext_hash_map=yes
20076 else
20077   echo "$as_me: failed program was:" >&5
20078 sed 's/^/| /' conftest.$ac_ext >&5
20079
20080 ac_cv_cxx_have_std_ext_hash_map=no
20081 fi
20082 rm -f conftest.$ac_objext conftest.$ac_ext
20083   ac_ext=c
20084 ac_cpp='$CPP $CPPFLAGS'
20085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20088
20089 fi
20090 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20091 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
20092  HAVE_STD_EXT_HASH_MAP=0
20093  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
20094  then
20095    HAVE_STD_EXT_HASH_MAP=1
20096  fi
20097
20098  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20099 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20100 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20101   echo $ECHO_N "(cached) $ECHO_C" >&6
20102 else
20103
20104
20105
20106   ac_ext=cc
20107 ac_cpp='$CXXCPP $CPPFLAGS'
20108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20111
20112   cat >conftest.$ac_ext <<_ACEOF
20113 #line $LINENO "configure"
20114 /* confdefs.h.  */
20115 _ACEOF
20116 cat confdefs.h >>conftest.$ac_ext
20117 cat >>conftest.$ac_ext <<_ACEOF
20118 /* end confdefs.h.  */
20119 #include <ext/hash_map>
20120 #ifdef HAVE_NAMESPACES
20121 using namespace __gnu_cxx;
20122 #endif
20123 int
20124 main ()
20125 {
20126 hash_map<int,int> t;
20127   ;
20128   return 0;
20129 }
20130 _ACEOF
20131 rm -f conftest.$ac_objext
20132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20133   (eval $ac_compile) 2>&5
20134   ac_status=$?
20135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136   (exit $ac_status); } &&
20137          { ac_try='test -s conftest.$ac_objext'
20138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20139   (eval $ac_try) 2>&5
20140   ac_status=$?
20141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142   (exit $ac_status); }; }; then
20143   ac_cv_cxx_have_gnu_ext_hash_map=yes
20144 else
20145   echo "$as_me: failed program was:" >&5
20146 sed 's/^/| /' conftest.$ac_ext >&5
20147
20148 ac_cv_cxx_have_gnu_ext_hash_map=no
20149 fi
20150 rm -f conftest.$ac_objext conftest.$ac_ext
20151   ac_ext=c
20152 ac_cpp='$CPP $CPPFLAGS'
20153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20156
20157 fi
20158 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
20159 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
20160  HAVE_GNU_EXT_HASH_MAP=0
20161  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
20162  then
20163    HAVE_GNU_EXT_HASH_MAP=1
20164  fi
20165
20166  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
20167 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
20168 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
20169   echo $ECHO_N "(cached) $ECHO_C" >&6
20170 else
20171
20172
20173
20174   ac_ext=cc
20175 ac_cpp='$CXXCPP $CPPFLAGS'
20176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20179
20180   cat >conftest.$ac_ext <<_ACEOF
20181 #line $LINENO "configure"
20182 /* confdefs.h.  */
20183 _ACEOF
20184 cat confdefs.h >>conftest.$ac_ext
20185 cat >>conftest.$ac_ext <<_ACEOF
20186 /* end confdefs.h.  */
20187 #include <hash_map>
20188 int
20189 main ()
20190 {
20191 hash_map<int,int> t;
20192   ;
20193   return 0;
20194 }
20195 _ACEOF
20196 rm -f conftest.$ac_objext
20197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20198   (eval $ac_compile) 2>&5
20199   ac_status=$?
20200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201   (exit $ac_status); } &&
20202          { ac_try='test -s conftest.$ac_objext'
20203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20204   (eval $ac_try) 2>&5
20205   ac_status=$?
20206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207   (exit $ac_status); }; }; then
20208   ac_cv_cxx_have_global_hash_map=yes
20209 else
20210   echo "$as_me: failed program was:" >&5
20211 sed 's/^/| /' conftest.$ac_ext >&5
20212
20213 ac_cv_cxx_have_global_hash_map=no
20214 fi
20215 rm -f conftest.$ac_objext conftest.$ac_ext
20216   ac_ext=c
20217 ac_cpp='$CPP $CPPFLAGS'
20218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20221
20222 fi
20223 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
20224 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
20225  HAVE_GLOBAL_HASH_MAP=0
20226  if test "$ac_cv_cxx_have_global_hash_map" = yes
20227  then
20228    HAVE_GLOBAL_HASH_MAP=1
20229  fi
20230
20231 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
20232 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
20233 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
20234   echo $ECHO_N "(cached) $ECHO_C" >&6
20235 else
20236
20237
20238
20239   ac_ext=cc
20240 ac_cpp='$CXXCPP $CPPFLAGS'
20241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20244
20245   cat >conftest.$ac_ext <<_ACEOF
20246 #line $LINENO "configure"
20247 /* confdefs.h.  */
20248 _ACEOF
20249 cat confdefs.h >>conftest.$ac_ext
20250 cat >>conftest.$ac_ext <<_ACEOF
20251 /* end confdefs.h.  */
20252 #include <ext/hash_set>
20253 #ifdef HAVE_NAMESPACES
20254 using namespace std;
20255 #endif
20256 int
20257 main ()
20258 {
20259 hash_set<int> t;
20260   ;
20261   return 0;
20262 }
20263 _ACEOF
20264 rm -f conftest.$ac_objext
20265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20266   (eval $ac_compile) 2>&5
20267   ac_status=$?
20268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269   (exit $ac_status); } &&
20270          { ac_try='test -s conftest.$ac_objext'
20271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20272   (eval $ac_try) 2>&5
20273   ac_status=$?
20274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275   (exit $ac_status); }; }; then
20276   ac_cv_cxx_have_std_ext_hash_set=yes
20277 else
20278   echo "$as_me: failed program was:" >&5
20279 sed 's/^/| /' conftest.$ac_ext >&5
20280
20281 ac_cv_cxx_have_std_ext_hash_set=no
20282 fi
20283 rm -f conftest.$ac_objext conftest.$ac_ext
20284   ac_ext=c
20285 ac_cpp='$CPP $CPPFLAGS'
20286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20289
20290 fi
20291 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20292 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
20293  HAVE_STD_EXT_HASH_SET=0
20294  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
20295  then
20296    HAVE_STD_EXT_HASH_SET=1
20297  fi
20298
20299  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20300 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20301 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20302   echo $ECHO_N "(cached) $ECHO_C" >&6
20303 else
20304
20305
20306
20307   ac_ext=cc
20308 ac_cpp='$CXXCPP $CPPFLAGS'
20309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20312
20313   cat >conftest.$ac_ext <<_ACEOF
20314 #line $LINENO "configure"
20315 /* confdefs.h.  */
20316 _ACEOF
20317 cat confdefs.h >>conftest.$ac_ext
20318 cat >>conftest.$ac_ext <<_ACEOF
20319 /* end confdefs.h.  */
20320 #include <ext/hash_set>
20321 #ifdef HAVE_NAMESPACES
20322 using namespace __gnu_cxx;
20323 #endif
20324 int
20325 main ()
20326 {
20327 hash_set<int> t;
20328   ;
20329   return 0;
20330 }
20331 _ACEOF
20332 rm -f conftest.$ac_objext
20333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20334   (eval $ac_compile) 2>&5
20335   ac_status=$?
20336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337   (exit $ac_status); } &&
20338          { ac_try='test -s conftest.$ac_objext'
20339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20340   (eval $ac_try) 2>&5
20341   ac_status=$?
20342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343   (exit $ac_status); }; }; then
20344   ac_cv_cxx_have_gnu_ext_hash_set=yes
20345 else
20346   echo "$as_me: failed program was:" >&5
20347 sed 's/^/| /' conftest.$ac_ext >&5
20348
20349 ac_cv_cxx_have_gnu_ext_hash_set=no
20350 fi
20351 rm -f conftest.$ac_objext conftest.$ac_ext
20352   ac_ext=c
20353 ac_cpp='$CPP $CPPFLAGS'
20354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20357
20358 fi
20359 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20360 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
20361  HAVE_GNU_EXT_HASH_SET=0
20362  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
20363  then
20364    HAVE_GNU_EXT_HASH_SET=1
20365  fi
20366
20367  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20368 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20369 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20370   echo $ECHO_N "(cached) $ECHO_C" >&6
20371 else
20372
20373
20374
20375   ac_ext=cc
20376 ac_cpp='$CXXCPP $CPPFLAGS'
20377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20380
20381   cat >conftest.$ac_ext <<_ACEOF
20382 #line $LINENO "configure"
20383 /* confdefs.h.  */
20384 _ACEOF
20385 cat confdefs.h >>conftest.$ac_ext
20386 cat >>conftest.$ac_ext <<_ACEOF
20387 /* end confdefs.h.  */
20388 #include <hash_set>
20389 int
20390 main ()
20391 {
20392 hash_set<int> t; return 0;
20393   ;
20394   return 0;
20395 }
20396 _ACEOF
20397 rm -f conftest.$ac_objext
20398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20399   (eval $ac_compile) 2>&5
20400   ac_status=$?
20401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402   (exit $ac_status); } &&
20403          { ac_try='test -s conftest.$ac_objext'
20404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20405   (eval $ac_try) 2>&5
20406   ac_status=$?
20407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408   (exit $ac_status); }; }; then
20409   ac_cv_cxx_have_global_hash_set=yes
20410 else
20411   echo "$as_me: failed program was:" >&5
20412 sed 's/^/| /' conftest.$ac_ext >&5
20413
20414 ac_cv_cxx_have_global_hash_set=no
20415 fi
20416 rm -f conftest.$ac_objext conftest.$ac_ext
20417   ac_ext=c
20418 ac_cpp='$CPP $CPPFLAGS'
20419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20422
20423 fi
20424 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20425 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
20426  HAVE_GLOBAL_HASH_SET=0
20427  if test "$ac_cv_cxx_have_global_hash_set" = yes
20428  then
20429    HAVE_GLOBAL_HASH_SET=1
20430  fi
20431
20432 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20433 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20434 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20435   echo $ECHO_N "(cached) $ECHO_C" >&6
20436 else
20437
20438
20439
20440   ac_ext=cc
20441 ac_cpp='$CXXCPP $CPPFLAGS'
20442 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20443 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20444 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20445
20446   cat >conftest.$ac_ext <<_ACEOF
20447 #line $LINENO "configure"
20448 /* confdefs.h.  */
20449 _ACEOF
20450 cat confdefs.h >>conftest.$ac_ext
20451 cat >>conftest.$ac_ext <<_ACEOF
20452 /* end confdefs.h.  */
20453 #include <iterator>
20454 #ifdef HAVE_NAMESPACES
20455 using namespace std;
20456 #endif
20457 int
20458 main ()
20459 {
20460 iterator<int,int,int> t; return 0;
20461   ;
20462   return 0;
20463 }
20464 _ACEOF
20465 rm -f conftest.$ac_objext
20466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20467   (eval $ac_compile) 2>&5
20468   ac_status=$?
20469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470   (exit $ac_status); } &&
20471          { ac_try='test -s conftest.$ac_objext'
20472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473   (eval $ac_try) 2>&5
20474   ac_status=$?
20475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476   (exit $ac_status); }; }; then
20477   ac_cv_cxx_have_std_iterator=yes
20478 else
20479   echo "$as_me: failed program was:" >&5
20480 sed 's/^/| /' conftest.$ac_ext >&5
20481
20482 ac_cv_cxx_have_std_iterator=no
20483 fi
20484 rm -f conftest.$ac_objext conftest.$ac_ext
20485   ac_ext=c
20486 ac_cpp='$CPP $CPPFLAGS'
20487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20490
20491
20492 fi
20493 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20494 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20495 HAVE_STD_ITERATOR=0
20496 if test "$ac_cv_cxx_have_std_iterator" = yes
20497 then
20498    HAVE_STD_ITERATOR=1
20499 fi
20500
20501 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20502 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20503 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20504   echo $ECHO_N "(cached) $ECHO_C" >&6
20505 else
20506
20507
20508
20509   ac_ext=cc
20510 ac_cpp='$CXXCPP $CPPFLAGS'
20511 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20512 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20513 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20514
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 #include <iterator>
20523 #ifdef HAVE_NAMESPACES
20524 using namespace std;
20525 #endif
20526 int
20527 main ()
20528 {
20529 bidirectional_iterator<int,int> t; 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_cxx_have_bi_iterator=yes
20547 else
20548   echo "$as_me: failed program was:" >&5
20549 sed 's/^/| /' conftest.$ac_ext >&5
20550
20551 ac_cv_cxx_have_bi_iterator=no
20552 fi
20553 rm -f conftest.$ac_objext conftest.$ac_ext
20554   ac_ext=c
20555 ac_cpp='$CPP $CPPFLAGS'
20556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20559
20560
20561 fi
20562 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20563 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20564 HAVE_BI_ITERATOR=0
20565 if test "$ac_cv_cxx_have_bi_iterator" = yes
20566 then
20567    HAVE_BI_ITERATOR=1
20568 fi
20569
20570 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20571 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20572 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20573   echo $ECHO_N "(cached) $ECHO_C" >&6
20574 else
20575
20576
20577
20578   ac_ext=cc
20579 ac_cpp='$CXXCPP $CPPFLAGS'
20580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20583
20584   cat >conftest.$ac_ext <<_ACEOF
20585 #line $LINENO "configure"
20586 /* confdefs.h.  */
20587 _ACEOF
20588 cat confdefs.h >>conftest.$ac_ext
20589 cat >>conftest.$ac_ext <<_ACEOF
20590 /* end confdefs.h.  */
20591 #include <iterator>
20592 #ifdef HAVE_NAMESPACES
20593 using namespace std;
20594 #endif
20595 int
20596 main ()
20597 {
20598 forward_iterator<int,int> t; return 0;
20599   ;
20600   return 0;
20601 }
20602 _ACEOF
20603 rm -f conftest.$ac_objext
20604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20605   (eval $ac_compile) 2>&5
20606   ac_status=$?
20607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608   (exit $ac_status); } &&
20609          { ac_try='test -s conftest.$ac_objext'
20610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20611   (eval $ac_try) 2>&5
20612   ac_status=$?
20613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614   (exit $ac_status); }; }; then
20615   ac_cv_cxx_have_fwd_iterator=yes
20616 else
20617   echo "$as_me: failed program was:" >&5
20618 sed 's/^/| /' conftest.$ac_ext >&5
20619
20620 ac_cv_cxx_have_fwd_iterator=no
20621 fi
20622 rm -f conftest.$ac_objext conftest.$ac_ext
20623   ac_ext=c
20624 ac_cpp='$CPP $CPPFLAGS'
20625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20628
20629
20630 fi
20631 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20632 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20633 HAVE_FWD_ITERATOR=0
20634 if test "$ac_cv_cxx_have_fwd_iterator" = yes
20635 then
20636    HAVE_FWD_ITERATOR=1
20637 fi
20638
20639
20640 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20641 # for constant arguments.  Useless!
20642 echo "$as_me:$LINENO: checking for working alloca.h" >&5
20643 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20644 if test "${ac_cv_working_alloca_h+set}" = set; then
20645   echo $ECHO_N "(cached) $ECHO_C" >&6
20646 else
20647   cat >conftest.$ac_ext <<_ACEOF
20648 #line $LINENO "configure"
20649 /* confdefs.h.  */
20650 _ACEOF
20651 cat confdefs.h >>conftest.$ac_ext
20652 cat >>conftest.$ac_ext <<_ACEOF
20653 /* end confdefs.h.  */
20654 #include <alloca.h>
20655 int
20656 main ()
20657 {
20658 char *p = (char *) alloca (2 * sizeof (int));
20659   ;
20660   return 0;
20661 }
20662 _ACEOF
20663 rm -f conftest.$ac_objext conftest$ac_exeext
20664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20665   (eval $ac_link) 2>&5
20666   ac_status=$?
20667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668   (exit $ac_status); } &&
20669          { ac_try='test -s conftest$ac_exeext'
20670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20671   (eval $ac_try) 2>&5
20672   ac_status=$?
20673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674   (exit $ac_status); }; }; then
20675   ac_cv_working_alloca_h=yes
20676 else
20677   echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20679
20680 ac_cv_working_alloca_h=no
20681 fi
20682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20683 fi
20684 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20685 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20686 if test $ac_cv_working_alloca_h = yes; then
20687
20688 cat >>confdefs.h <<\_ACEOF
20689 #define HAVE_ALLOCA_H 1
20690 _ACEOF
20691
20692 fi
20693
20694 echo "$as_me:$LINENO: checking for alloca" >&5
20695 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20696 if test "${ac_cv_func_alloca_works+set}" = set; then
20697   echo $ECHO_N "(cached) $ECHO_C" >&6
20698 else
20699   cat >conftest.$ac_ext <<_ACEOF
20700 #line $LINENO "configure"
20701 /* confdefs.h.  */
20702 _ACEOF
20703 cat confdefs.h >>conftest.$ac_ext
20704 cat >>conftest.$ac_ext <<_ACEOF
20705 /* end confdefs.h.  */
20706 #ifdef __GNUC__
20707 # define alloca __builtin_alloca
20708 #else
20709 # ifdef _MSC_VER
20710 #  include <malloc.h>
20711 #  define alloca _alloca
20712 # else
20713 #  if HAVE_ALLOCA_H
20714 #   include <alloca.h>
20715 #  else
20716 #   ifdef _AIX
20717  #pragma alloca
20718 #   else
20719 #    ifndef alloca /* predefined by HP cc +Olibcalls */
20720 char *alloca ();
20721 #    endif
20722 #   endif
20723 #  endif
20724 # endif
20725 #endif
20726
20727 int
20728 main ()
20729 {
20730 char *p = (char *) alloca (1);
20731   ;
20732   return 0;
20733 }
20734 _ACEOF
20735 rm -f conftest.$ac_objext conftest$ac_exeext
20736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20737   (eval $ac_link) 2>&5
20738   ac_status=$?
20739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740   (exit $ac_status); } &&
20741          { ac_try='test -s conftest$ac_exeext'
20742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20743   (eval $ac_try) 2>&5
20744   ac_status=$?
20745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746   (exit $ac_status); }; }; then
20747   ac_cv_func_alloca_works=yes
20748 else
20749   echo "$as_me: failed program was:" >&5
20750 sed 's/^/| /' conftest.$ac_ext >&5
20751
20752 ac_cv_func_alloca_works=no
20753 fi
20754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20755 fi
20756 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20757 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20758
20759 if test $ac_cv_func_alloca_works = yes; then
20760
20761 cat >>confdefs.h <<\_ACEOF
20762 #define HAVE_ALLOCA 1
20763 _ACEOF
20764
20765 else
20766   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20767 # that cause trouble.  Some versions do not even contain alloca or
20768 # contain a buggy version.  If you still want to use their alloca,
20769 # use ar to extract alloca.o from them instead of compiling alloca.c.
20770
20771 ALLOCA=alloca.$ac_objext
20772
20773 cat >>confdefs.h <<\_ACEOF
20774 #define C_ALLOCA 1
20775 _ACEOF
20776
20777
20778 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20779 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20780 if test "${ac_cv_os_cray+set}" = set; then
20781   echo $ECHO_N "(cached) $ECHO_C" >&6
20782 else
20783   cat >conftest.$ac_ext <<_ACEOF
20784 #line $LINENO "configure"
20785 /* confdefs.h.  */
20786 _ACEOF
20787 cat confdefs.h >>conftest.$ac_ext
20788 cat >>conftest.$ac_ext <<_ACEOF
20789 /* end confdefs.h.  */
20790 #if defined(CRAY) && ! defined(CRAY2)
20791 webecray
20792 #else
20793 wenotbecray
20794 #endif
20795
20796 _ACEOF
20797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20798   $EGREP "webecray" >/dev/null 2>&1; then
20799   ac_cv_os_cray=yes
20800 else
20801   ac_cv_os_cray=no
20802 fi
20803 rm -f conftest*
20804
20805 fi
20806 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20807 echo "${ECHO_T}$ac_cv_os_cray" >&6
20808 if test $ac_cv_os_cray = yes; then
20809   for ac_func in _getb67 GETB67 getb67; do
20810     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20811 echo "$as_me:$LINENO: checking for $ac_func" >&5
20812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20813 if eval "test \"\${$as_ac_var+set}\" = set"; then
20814   echo $ECHO_N "(cached) $ECHO_C" >&6
20815 else
20816   cat >conftest.$ac_ext <<_ACEOF
20817 #line $LINENO "configure"
20818 /* confdefs.h.  */
20819 _ACEOF
20820 cat confdefs.h >>conftest.$ac_ext
20821 cat >>conftest.$ac_ext <<_ACEOF
20822 /* end confdefs.h.  */
20823 /* System header to define __stub macros and hopefully few prototypes,
20824     which can conflict with char $ac_func (); below.
20825     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20826     <limits.h> exists even on freestanding compilers.  */
20827 #ifdef __STDC__
20828 # include <limits.h>
20829 #else
20830 # include <assert.h>
20831 #endif
20832 /* Override any gcc2 internal prototype to avoid an error.  */
20833 #ifdef __cplusplus
20834 extern "C"
20835 {
20836 #endif
20837 /* We use char because int might match the return type of a gcc2
20838    builtin and then its argument prototype would still apply.  */
20839 char $ac_func ();
20840 /* The GNU C library defines this for functions which it implements
20841     to always fail with ENOSYS.  Some functions are actually named
20842     something starting with __ and the normal name is an alias.  */
20843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20844 choke me
20845 #else
20846 char (*f) () = $ac_func;
20847 #endif
20848 #ifdef __cplusplus
20849 }
20850 #endif
20851
20852 int
20853 main ()
20854 {
20855 return f != $ac_func;
20856   ;
20857   return 0;
20858 }
20859 _ACEOF
20860 rm -f conftest.$ac_objext conftest$ac_exeext
20861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20862   (eval $ac_link) 2>&5
20863   ac_status=$?
20864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865   (exit $ac_status); } &&
20866          { ac_try='test -s conftest$ac_exeext'
20867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20868   (eval $ac_try) 2>&5
20869   ac_status=$?
20870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871   (exit $ac_status); }; }; then
20872   eval "$as_ac_var=yes"
20873 else
20874   echo "$as_me: failed program was:" >&5
20875 sed 's/^/| /' conftest.$ac_ext >&5
20876
20877 eval "$as_ac_var=no"
20878 fi
20879 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20880 fi
20881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20882 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20883 if test `eval echo '${'$as_ac_var'}'` = yes; then
20884
20885 cat >>confdefs.h <<_ACEOF
20886 #define CRAY_STACKSEG_END $ac_func
20887 _ACEOF
20888
20889     break
20890 fi
20891
20892   done
20893 fi
20894
20895 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20896 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20897 if test "${ac_cv_c_stack_direction+set}" = set; then
20898   echo $ECHO_N "(cached) $ECHO_C" >&6
20899 else
20900   if test "$cross_compiling" = yes; then
20901   ac_cv_c_stack_direction=0
20902 else
20903   cat >conftest.$ac_ext <<_ACEOF
20904 #line $LINENO "configure"
20905 /* confdefs.h.  */
20906 _ACEOF
20907 cat confdefs.h >>conftest.$ac_ext
20908 cat >>conftest.$ac_ext <<_ACEOF
20909 /* end confdefs.h.  */
20910 int
20911 find_stack_direction ()
20912 {
20913   static char *addr = 0;
20914   auto char dummy;
20915   if (addr == 0)
20916     {
20917       addr = &dummy;
20918       return find_stack_direction ();
20919     }
20920   else
20921     return (&dummy > addr) ? 1 : -1;
20922 }
20923
20924 int
20925 main ()
20926 {
20927   exit (find_stack_direction () < 0);
20928 }
20929 _ACEOF
20930 rm -f conftest$ac_exeext
20931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20932   (eval $ac_link) 2>&5
20933   ac_status=$?
20934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20937   (eval $ac_try) 2>&5
20938   ac_status=$?
20939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940   (exit $ac_status); }; }; then
20941   ac_cv_c_stack_direction=1
20942 else
20943   echo "$as_me: program exited with status $ac_status" >&5
20944 echo "$as_me: failed program was:" >&5
20945 sed 's/^/| /' conftest.$ac_ext >&5
20946
20947 ( exit $ac_status )
20948 ac_cv_c_stack_direction=-1
20949 fi
20950 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20951 fi
20952 fi
20953 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20954 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20955
20956 cat >>confdefs.h <<_ACEOF
20957 #define STACK_DIRECTION $ac_cv_c_stack_direction
20958 _ACEOF
20959
20960
20961 fi
20962
20963
20964
20965 for ac_header in stdlib.h unistd.h
20966 do
20967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20969   echo "$as_me:$LINENO: checking for $ac_header" >&5
20970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20972   echo $ECHO_N "(cached) $ECHO_C" >&6
20973 fi
20974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20976 else
20977   # Is the header compilable?
20978 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20979 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20980 cat >conftest.$ac_ext <<_ACEOF
20981 #line $LINENO "configure"
20982 /* confdefs.h.  */
20983 _ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h.  */
20987 $ac_includes_default
20988 #include <$ac_header>
20989 _ACEOF
20990 rm -f conftest.$ac_objext
20991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20992   (eval $ac_compile) 2>&5
20993   ac_status=$?
20994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995   (exit $ac_status); } &&
20996          { ac_try='test -s conftest.$ac_objext'
20997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20998   (eval $ac_try) 2>&5
20999   ac_status=$?
21000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001   (exit $ac_status); }; }; then
21002   ac_header_compiler=yes
21003 else
21004   echo "$as_me: failed program was:" >&5
21005 sed 's/^/| /' conftest.$ac_ext >&5
21006
21007 ac_header_compiler=no
21008 fi
21009 rm -f conftest.$ac_objext conftest.$ac_ext
21010 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21011 echo "${ECHO_T}$ac_header_compiler" >&6
21012
21013 # Is the header present?
21014 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21015 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21016 cat >conftest.$ac_ext <<_ACEOF
21017 #line $LINENO "configure"
21018 /* confdefs.h.  */
21019 _ACEOF
21020 cat confdefs.h >>conftest.$ac_ext
21021 cat >>conftest.$ac_ext <<_ACEOF
21022 /* end confdefs.h.  */
21023 #include <$ac_header>
21024 _ACEOF
21025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21026   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21027   ac_status=$?
21028   grep -v '^ *+' conftest.er1 >conftest.err
21029   rm -f conftest.er1
21030   cat conftest.err >&5
21031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032   (exit $ac_status); } >/dev/null; then
21033   if test -s conftest.err; then
21034     ac_cpp_err=$ac_c_preproc_warn_flag
21035   else
21036     ac_cpp_err=
21037   fi
21038 else
21039   ac_cpp_err=yes
21040 fi
21041 if test -z "$ac_cpp_err"; then
21042   ac_header_preproc=yes
21043 else
21044   echo "$as_me: failed program was:" >&5
21045 sed 's/^/| /' conftest.$ac_ext >&5
21046
21047   ac_header_preproc=no
21048 fi
21049 rm -f conftest.err conftest.$ac_ext
21050 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21051 echo "${ECHO_T}$ac_header_preproc" >&6
21052
21053 # So?  What about this header?
21054 case $ac_header_compiler:$ac_header_preproc in
21055   yes:no )
21056     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21058     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21060     (
21061       cat <<\_ASBOX
21062 ## ------------------------------------ ##
21063 ## Report this to bug-autoconf@gnu.org. ##
21064 ## ------------------------------------ ##
21065 _ASBOX
21066     ) |
21067       sed "s/^/$as_me: WARNING:     /" >&2
21068     ;;
21069   no:yes )
21070     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21072     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21073 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21074     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21076     (
21077       cat <<\_ASBOX
21078 ## ------------------------------------ ##
21079 ## Report this to bug-autoconf@gnu.org. ##
21080 ## ------------------------------------ ##
21081 _ASBOX
21082     ) |
21083       sed "s/^/$as_me: WARNING:     /" >&2
21084     ;;
21085 esac
21086 echo "$as_me:$LINENO: checking for $ac_header" >&5
21087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21089   echo $ECHO_N "(cached) $ECHO_C" >&6
21090 else
21091   eval "$as_ac_Header=$ac_header_preproc"
21092 fi
21093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21095
21096 fi
21097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21098   cat >>confdefs.h <<_ACEOF
21099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21100 _ACEOF
21101
21102 fi
21103
21104 done
21105
21106
21107 for ac_func in getpagesize
21108 do
21109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21110 echo "$as_me:$LINENO: checking for $ac_func" >&5
21111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21112 if eval "test \"\${$as_ac_var+set}\" = set"; then
21113   echo $ECHO_N "(cached) $ECHO_C" >&6
21114 else
21115   cat >conftest.$ac_ext <<_ACEOF
21116 #line $LINENO "configure"
21117 /* confdefs.h.  */
21118 _ACEOF
21119 cat confdefs.h >>conftest.$ac_ext
21120 cat >>conftest.$ac_ext <<_ACEOF
21121 /* end confdefs.h.  */
21122 /* System header to define __stub macros and hopefully few prototypes,
21123     which can conflict with char $ac_func (); below.
21124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21125     <limits.h> exists even on freestanding compilers.  */
21126 #ifdef __STDC__
21127 # include <limits.h>
21128 #else
21129 # include <assert.h>
21130 #endif
21131 /* Override any gcc2 internal prototype to avoid an error.  */
21132 #ifdef __cplusplus
21133 extern "C"
21134 {
21135 #endif
21136 /* We use char because int might match the return type of a gcc2
21137    builtin and then its argument prototype would still apply.  */
21138 char $ac_func ();
21139 /* The GNU C library defines this for functions which it implements
21140     to always fail with ENOSYS.  Some functions are actually named
21141     something starting with __ and the normal name is an alias.  */
21142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21143 choke me
21144 #else
21145 char (*f) () = $ac_func;
21146 #endif
21147 #ifdef __cplusplus
21148 }
21149 #endif
21150
21151 int
21152 main ()
21153 {
21154 return f != $ac_func;
21155   ;
21156   return 0;
21157 }
21158 _ACEOF
21159 rm -f conftest.$ac_objext conftest$ac_exeext
21160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21161   (eval $ac_link) 2>&5
21162   ac_status=$?
21163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164   (exit $ac_status); } &&
21165          { ac_try='test -s conftest$ac_exeext'
21166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21167   (eval $ac_try) 2>&5
21168   ac_status=$?
21169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170   (exit $ac_status); }; }; then
21171   eval "$as_ac_var=yes"
21172 else
21173   echo "$as_me: failed program was:" >&5
21174 sed 's/^/| /' conftest.$ac_ext >&5
21175
21176 eval "$as_ac_var=no"
21177 fi
21178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21179 fi
21180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21181 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21182 if test `eval echo '${'$as_ac_var'}'` = yes; then
21183   cat >>confdefs.h <<_ACEOF
21184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21185 _ACEOF
21186
21187 fi
21188 done
21189
21190 echo "$as_me:$LINENO: checking for working mmap" >&5
21191 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21192 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21193   echo $ECHO_N "(cached) $ECHO_C" >&6
21194 else
21195   if test "$cross_compiling" = yes; then
21196   ac_cv_func_mmap_fixed_mapped=no
21197 else
21198   cat >conftest.$ac_ext <<_ACEOF
21199 #line $LINENO "configure"
21200 /* confdefs.h.  */
21201 _ACEOF
21202 cat confdefs.h >>conftest.$ac_ext
21203 cat >>conftest.$ac_ext <<_ACEOF
21204 /* end confdefs.h.  */
21205 $ac_includes_default
21206 /* malloc might have been renamed as rpl_malloc. */
21207 #undef malloc
21208
21209 /* Thanks to Mike Haertel and Jim Avera for this test.
21210    Here is a matrix of mmap possibilities:
21211         mmap private not fixed
21212         mmap private fixed at somewhere currently unmapped
21213         mmap private fixed at somewhere already mapped
21214         mmap shared not fixed
21215         mmap shared fixed at somewhere currently unmapped
21216         mmap shared fixed at somewhere already mapped
21217    For private mappings, we should verify that changes cannot be read()
21218    back from the file, nor mmap's back from the file at a different
21219    address.  (There have been systems where private was not correctly
21220    implemented like the infamous i386 svr4.0, and systems where the
21221    VM page cache was not coherent with the file system buffer cache
21222    like early versions of FreeBSD and possibly contemporary NetBSD.)
21223    For shared mappings, we should conversely verify that changes get
21224    propagated back to all the places they're supposed to be.
21225
21226    Grep wants private fixed already mapped.
21227    The main things grep needs to know about mmap are:
21228    * does it exist and is it safe to write into the mmap'd area
21229    * how to use it (BSD variants)  */
21230
21231 #include <fcntl.h>
21232 #include <sys/mman.h>
21233
21234 #if !STDC_HEADERS && !HAVE_STDLIB_H
21235 char *malloc ();
21236 #endif
21237
21238 /* This mess was copied from the GNU getpagesize.h.  */
21239 #if !HAVE_GETPAGESIZE
21240 /* Assume that all systems that can run configure have sys/param.h.  */
21241 # if !HAVE_SYS_PARAM_H
21242 #  define HAVE_SYS_PARAM_H 1
21243 # endif
21244
21245 # ifdef _SC_PAGESIZE
21246 #  define getpagesize() sysconf(_SC_PAGESIZE)
21247 # else /* no _SC_PAGESIZE */
21248 #  if HAVE_SYS_PARAM_H
21249 #   include <sys/param.h>
21250 #   ifdef EXEC_PAGESIZE
21251 #    define getpagesize() EXEC_PAGESIZE
21252 #   else /* no EXEC_PAGESIZE */
21253 #    ifdef NBPG
21254 #     define getpagesize() NBPG * CLSIZE
21255 #     ifndef CLSIZE
21256 #      define CLSIZE 1
21257 #     endif /* no CLSIZE */
21258 #    else /* no NBPG */
21259 #     ifdef NBPC
21260 #      define getpagesize() NBPC
21261 #     else /* no NBPC */
21262 #      ifdef PAGESIZE
21263 #       define getpagesize() PAGESIZE
21264 #      endif /* PAGESIZE */
21265 #     endif /* no NBPC */
21266 #    endif /* no NBPG */
21267 #   endif /* no EXEC_PAGESIZE */
21268 #  else /* no HAVE_SYS_PARAM_H */
21269 #   define getpagesize() 8192   /* punt totally */
21270 #  endif /* no HAVE_SYS_PARAM_H */
21271 # endif /* no _SC_PAGESIZE */
21272
21273 #endif /* no HAVE_GETPAGESIZE */
21274
21275 int
21276 main ()
21277 {
21278   char *data, *data2, *data3;
21279   int i, pagesize;
21280   int fd;
21281
21282   pagesize = getpagesize ();
21283
21284   /* First, make a file with some known garbage in it. */
21285   data = (char *) malloc (pagesize);
21286   if (!data)
21287     exit (1);
21288   for (i = 0; i < pagesize; ++i)
21289     *(data + i) = rand ();
21290   umask (0);
21291   fd = creat ("conftest.mmap", 0600);
21292   if (fd < 0)
21293     exit (1);
21294   if (write (fd, data, pagesize) != pagesize)
21295     exit (1);
21296   close (fd);
21297
21298   /* Next, try to mmap the file at a fixed address which already has
21299      something else allocated at it.  If we can, also make sure that
21300      we see the same garbage.  */
21301   fd = open ("conftest.mmap", O_RDWR);
21302   if (fd < 0)
21303     exit (1);
21304   data2 = (char *) malloc (2 * pagesize);
21305   if (!data2)
21306     exit (1);
21307   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21308   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21309                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21310     exit (1);
21311   for (i = 0; i < pagesize; ++i)
21312     if (*(data + i) != *(data2 + i))
21313       exit (1);
21314
21315   /* Finally, make sure that changes to the mapped area do not
21316      percolate back to the file as seen by read().  (This is a bug on
21317      some variants of i386 svr4.0.)  */
21318   for (i = 0; i < pagesize; ++i)
21319     *(data2 + i) = *(data2 + i) + 1;
21320   data3 = (char *) malloc (pagesize);
21321   if (!data3)
21322     exit (1);
21323   if (read (fd, data3, pagesize) != pagesize)
21324     exit (1);
21325   for (i = 0; i < pagesize; ++i)
21326     if (*(data + i) != *(data3 + i))
21327       exit (1);
21328   close (fd);
21329   exit (0);
21330 }
21331 _ACEOF
21332 rm -f conftest$ac_exeext
21333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21334   (eval $ac_link) 2>&5
21335   ac_status=$?
21336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21339   (eval $ac_try) 2>&5
21340   ac_status=$?
21341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342   (exit $ac_status); }; }; then
21343   ac_cv_func_mmap_fixed_mapped=yes
21344 else
21345   echo "$as_me: program exited with status $ac_status" >&5
21346 echo "$as_me: failed program was:" >&5
21347 sed 's/^/| /' conftest.$ac_ext >&5
21348
21349 ( exit $ac_status )
21350 ac_cv_func_mmap_fixed_mapped=no
21351 fi
21352 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21353 fi
21354 fi
21355 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21356 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21357 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21358
21359 cat >>confdefs.h <<\_ACEOF
21360 #define HAVE_MMAP 1
21361 _ACEOF
21362
21363 fi
21364 rm -f conftest.mmap
21365
21366 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21367 then
21368         { { echo "$as_me:$LINENO: error: mmap() required but not found" >&5
21369 echo "$as_me: error: mmap() required but not found" >&2;}
21370    { (exit 1); exit 1; }; }
21371 fi
21372 echo "$as_me:$LINENO: checking for mmap of files" >&5
21373 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21374 if test "${ac_cv_func_mmap_file+set}" = set; then
21375   echo $ECHO_N "(cached) $ECHO_C" >&6
21376 else
21377
21378
21379   ac_ext=c
21380 ac_cpp='$CPP $CPPFLAGS'
21381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21384
21385   if test "$cross_compiling" = yes; then
21386   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21387 See \`config.log' for more details." >&5
21388 echo "$as_me: error: cannot run test program while cross compiling
21389 See \`config.log' for more details." >&2;}
21390    { (exit 1); exit 1; }; }
21391 else
21392   cat >conftest.$ac_ext <<_ACEOF
21393 #line $LINENO "configure"
21394 /* confdefs.h.  */
21395 _ACEOF
21396 cat confdefs.h >>conftest.$ac_ext
21397 cat >>conftest.$ac_ext <<_ACEOF
21398 /* end confdefs.h.  */
21399
21400 #ifdef HAVE_SYS_TYPES_H
21401 #include <sys/types.h>
21402 #endif
21403
21404 #ifdef HAVE_SYS_MMAN_H
21405 #include <sys/mman.h>
21406 #endif
21407
21408 #ifdef HAVE_FCNTL_H
21409 #include <fcntl.h>
21410 #endif
21411
21412   int fd;
21413   int main () {
21414   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
21415 _ACEOF
21416 rm -f conftest$ac_exeext
21417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21418   (eval $ac_link) 2>&5
21419   ac_status=$?
21420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21423   (eval $ac_try) 2>&5
21424   ac_status=$?
21425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426   (exit $ac_status); }; }; then
21427   ac_cv_func_mmap_file=yes
21428 else
21429   echo "$as_me: program exited with status $ac_status" >&5
21430 echo "$as_me: failed program was:" >&5
21431 sed 's/^/| /' conftest.$ac_ext >&5
21432
21433 ( exit $ac_status )
21434 ac_cv_func_mmap_file=no
21435 fi
21436 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21437 fi
21438   ac_ext=c
21439 ac_cpp='$CPP $CPPFLAGS'
21440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21443
21444
21445 fi
21446 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21447 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
21448 if test "$ac_cv_func_mmap_file" = yes; then
21449
21450 cat >>confdefs.h <<\_ACEOF
21451 #define HAVE_MMAP_FILE
21452 _ACEOF
21453
21454    MMAP_FILE=yes
21455
21456 fi
21457
21458 if test "$ac_cv_func_mmap_file" = "no"
21459 then
21460         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
21461 echo "$as_me: error: mmap() of files required but not found" >&2;}
21462    { (exit 1); exit 1; }; }
21463 fi
21464 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21465 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21466 if test "${ac_cv_header_mmap_anon+set}" = set; then
21467   echo $ECHO_N "(cached) $ECHO_C" >&6
21468 else
21469
21470
21471   ac_ext=c
21472 ac_cpp='$CPP $CPPFLAGS'
21473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21476
21477   cat >conftest.$ac_ext <<_ACEOF
21478 #line $LINENO "configure"
21479 /* confdefs.h.  */
21480 _ACEOF
21481 cat confdefs.h >>conftest.$ac_ext
21482 cat >>conftest.$ac_ext <<_ACEOF
21483 /* end confdefs.h.  */
21484 #include <sys/mman.h>
21485   #include <unistd.h>
21486   #include <fcntl.h>
21487 int
21488 main ()
21489 {
21490 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21491   ;
21492   return 0;
21493 }
21494 _ACEOF
21495 rm -f conftest.$ac_objext
21496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21497   (eval $ac_compile) 2>&5
21498   ac_status=$?
21499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500   (exit $ac_status); } &&
21501          { ac_try='test -s conftest.$ac_objext'
21502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21503   (eval $ac_try) 2>&5
21504   ac_status=$?
21505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506   (exit $ac_status); }; }; then
21507   ac_cv_header_mmap_anon=yes
21508 else
21509   echo "$as_me: failed program was:" >&5
21510 sed 's/^/| /' conftest.$ac_ext >&5
21511
21512 ac_cv_header_mmap_anon=no
21513 fi
21514 rm -f conftest.$ac_objext conftest.$ac_ext
21515   ac_ext=c
21516 ac_cpp='$CPP $CPPFLAGS'
21517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21520
21521
21522 fi
21523 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21524 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21525 if test "$ac_cv_header_mmap_anon" = yes; then
21526
21527 cat >>confdefs.h <<\_ACEOF
21528 #define HAVE_MMAP_ANONYMOUS
21529 _ACEOF
21530
21531 fi
21532
21533 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21534 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21535 if test "${ac_cv_type_signal+set}" = set; then
21536   echo $ECHO_N "(cached) $ECHO_C" >&6
21537 else
21538   cat >conftest.$ac_ext <<_ACEOF
21539 #line $LINENO "configure"
21540 /* confdefs.h.  */
21541 _ACEOF
21542 cat confdefs.h >>conftest.$ac_ext
21543 cat >>conftest.$ac_ext <<_ACEOF
21544 /* end confdefs.h.  */
21545 #include <sys/types.h>
21546 #include <signal.h>
21547 #ifdef signal
21548 # undef signal
21549 #endif
21550 #ifdef __cplusplus
21551 extern "C" void (*signal (int, void (*)(int)))(int);
21552 #else
21553 void (*signal ()) ();
21554 #endif
21555
21556 int
21557 main ()
21558 {
21559 int i;
21560   ;
21561   return 0;
21562 }
21563 _ACEOF
21564 rm -f conftest.$ac_objext
21565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21566   (eval $ac_compile) 2>&5
21567   ac_status=$?
21568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569   (exit $ac_status); } &&
21570          { ac_try='test -s conftest.$ac_objext'
21571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21572   (eval $ac_try) 2>&5
21573   ac_status=$?
21574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575   (exit $ac_status); }; }; then
21576   ac_cv_type_signal=void
21577 else
21578   echo "$as_me: failed program was:" >&5
21579 sed 's/^/| /' conftest.$ac_ext >&5
21580
21581 ac_cv_type_signal=int
21582 fi
21583 rm -f conftest.$ac_objext conftest.$ac_ext
21584 fi
21585 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21586 echo "${ECHO_T}$ac_cv_type_signal" >&6
21587
21588 cat >>confdefs.h <<_ACEOF
21589 #define RETSIGTYPE $ac_cv_type_signal
21590 _ACEOF
21591
21592
21593
21594
21595
21596
21597
21598
21599 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace
21600 do
21601 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21602 echo "$as_me:$LINENO: checking for $ac_func" >&5
21603 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21604 if eval "test \"\${$as_ac_var+set}\" = set"; then
21605   echo $ECHO_N "(cached) $ECHO_C" >&6
21606 else
21607   cat >conftest.$ac_ext <<_ACEOF
21608 #line $LINENO "configure"
21609 /* confdefs.h.  */
21610 _ACEOF
21611 cat confdefs.h >>conftest.$ac_ext
21612 cat >>conftest.$ac_ext <<_ACEOF
21613 /* end confdefs.h.  */
21614 /* System header to define __stub macros and hopefully few prototypes,
21615     which can conflict with char $ac_func (); below.
21616     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21617     <limits.h> exists even on freestanding compilers.  */
21618 #ifdef __STDC__
21619 # include <limits.h>
21620 #else
21621 # include <assert.h>
21622 #endif
21623 /* Override any gcc2 internal prototype to avoid an error.  */
21624 #ifdef __cplusplus
21625 extern "C"
21626 {
21627 #endif
21628 /* We use char because int might match the return type of a gcc2
21629    builtin and then its argument prototype would still apply.  */
21630 char $ac_func ();
21631 /* The GNU C library defines this for functions which it implements
21632     to always fail with ENOSYS.  Some functions are actually named
21633     something starting with __ and the normal name is an alias.  */
21634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21635 choke me
21636 #else
21637 char (*f) () = $ac_func;
21638 #endif
21639 #ifdef __cplusplus
21640 }
21641 #endif
21642
21643 int
21644 main ()
21645 {
21646 return f != $ac_func;
21647   ;
21648   return 0;
21649 }
21650 _ACEOF
21651 rm -f conftest.$ac_objext conftest$ac_exeext
21652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21653   (eval $ac_link) 2>&5
21654   ac_status=$?
21655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656   (exit $ac_status); } &&
21657          { ac_try='test -s conftest$ac_exeext'
21658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21659   (eval $ac_try) 2>&5
21660   ac_status=$?
21661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662   (exit $ac_status); }; }; then
21663   eval "$as_ac_var=yes"
21664 else
21665   echo "$as_me: failed program was:" >&5
21666 sed 's/^/| /' conftest.$ac_ext >&5
21667
21668 eval "$as_ac_var=no"
21669 fi
21670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21671 fi
21672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21673 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21674 if test `eval echo '${'$as_ac_var'}'` = yes; then
21675   cat >>confdefs.h <<_ACEOF
21676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21677 _ACEOF
21678
21679 fi
21680 done
21681
21682 echo "$as_me:$LINENO: checking for mprotect" >&5
21683 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
21684 if test "${ac_cv_func_mprotect+set}" = set; then
21685   echo $ECHO_N "(cached) $ECHO_C" >&6
21686 else
21687   cat >conftest.$ac_ext <<_ACEOF
21688 #line $LINENO "configure"
21689 /* confdefs.h.  */
21690 _ACEOF
21691 cat confdefs.h >>conftest.$ac_ext
21692 cat >>conftest.$ac_ext <<_ACEOF
21693 /* end confdefs.h.  */
21694 /* System header to define __stub macros and hopefully few prototypes,
21695     which can conflict with char mprotect (); below.
21696     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21697     <limits.h> exists even on freestanding compilers.  */
21698 #ifdef __STDC__
21699 # include <limits.h>
21700 #else
21701 # include <assert.h>
21702 #endif
21703 /* Override any gcc2 internal prototype to avoid an error.  */
21704 #ifdef __cplusplus
21705 extern "C"
21706 {
21707 #endif
21708 /* We use char because int might match the return type of a gcc2
21709    builtin and then its argument prototype would still apply.  */
21710 char mprotect ();
21711 /* The GNU C library defines this for functions which it implements
21712     to always fail with ENOSYS.  Some functions are actually named
21713     something starting with __ and the normal name is an alias.  */
21714 #if defined (__stub_mprotect) || defined (__stub___mprotect)
21715 choke me
21716 #else
21717 char (*f) () = mprotect;
21718 #endif
21719 #ifdef __cplusplus
21720 }
21721 #endif
21722
21723 int
21724 main ()
21725 {
21726 return f != mprotect;
21727   ;
21728   return 0;
21729 }
21730 _ACEOF
21731 rm -f conftest.$ac_objext conftest$ac_exeext
21732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21733   (eval $ac_link) 2>&5
21734   ac_status=$?
21735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736   (exit $ac_status); } &&
21737          { ac_try='test -s conftest$ac_exeext'
21738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21739   (eval $ac_try) 2>&5
21740   ac_status=$?
21741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742   (exit $ac_status); }; }; then
21743   ac_cv_func_mprotect=yes
21744 else
21745   echo "$as_me: failed program was:" >&5
21746 sed 's/^/| /' conftest.$ac_ext >&5
21747
21748 ac_cv_func_mprotect=no
21749 fi
21750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21751 fi
21752 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
21753 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
21754 if test $ac_cv_func_mprotect = yes; then
21755   :
21756 else
21757   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
21758 echo "$as_me: error: Function mprotect() required but not found" >&2;}
21759    { (exit 1); exit 1; }; }
21760 fi
21761
21762
21763
21764
21765
21766   ac_ext=c
21767 ac_cpp='$CPP $CPPFLAGS'
21768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21771
21772   oldcflags="$CFLAGS"
21773   CFLAGS="$CFLAGS -Wl,-R."
21774   cat >conftest.$ac_ext <<_ACEOF
21775 int main() { return 0; }
21776 _ACEOF
21777 rm -f conftest.$ac_objext conftest$ac_exeext
21778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21779   (eval $ac_link) 2>&5
21780   ac_status=$?
21781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782   (exit $ac_status); } &&
21783          { ac_try='test -s conftest$ac_exeext'
21784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21785   (eval $ac_try) 2>&5
21786   ac_status=$?
21787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788   (exit $ac_status); }; }; then
21789   ac_cv_link_use_r=yes
21790 else
21791   echo "$as_me: failed program was:" >&5
21792 sed 's/^/| /' conftest.$ac_ext >&5
21793
21794 ac_cv_link_use_r=no
21795 fi
21796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21797   CFLAGS="$oldcflags"
21798   ac_ext=c
21799 ac_cpp='$CPP $CPPFLAGS'
21800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21803
21804   if test "$ac_cv_link_use_r" = yes
21805   then
21806
21807 cat >>confdefs.h <<\_ACEOF
21808 #define HAVE_LINK_R 1
21809 _ACEOF
21810
21811   fi
21812
21813
21814 # Check whether --enable-optimized or --disable-optimized was given.
21815 if test "${enable_optimized+set}" = set; then
21816   enableval="$enable_optimized"
21817
21818 else
21819   enableval=no
21820 fi;
21821 if test ${enableval} = "no"
21822 then
21823         ENABLE_OPTIMIZED=
21824
21825 else
21826         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
21827
21828 fi
21829
21830 # Check whether --enable-spec2000 or --disable-spec2000 was given.
21831 if test "${enable_spec2000+set}" = set; then
21832   enableval="$enable_spec2000"
21833
21834 else
21835   enableval=no
21836 fi;
21837 if test ${enableval} = "no"
21838 then
21839         if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
21840         then
21841                 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21842
21843                 USE_SPEC=USE_SPEC=1
21844
21845         else
21846                 USE_SPEC=
21847
21848
21849         fi
21850 else
21851         if test ${enableval} = ""
21852         then
21853                 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21854
21855         else
21856                 SPEC_ROOT=${enableval}
21857
21858         fi
21859         USE_SPEC=USE_SPEC=1
21860
21861 fi
21862
21863 # Check whether --enable-spec95 or --disable-spec95 was given.
21864 if test "${enable_spec95+set}" = set; then
21865   enableval="$enable_spec95"
21866
21867 else
21868   enableval=no
21869 fi;
21870 if test ${enableval} = "no"
21871 then
21872         if test -d /home/vadve/shared/benchmarks/spec95/benchspec
21873         then
21874                 SPEC95_ROOT=/home/vadve/shared/benchmarks/spec95/benchspec
21875
21876                 USE_SPEC95=USE_SPEC95=1
21877
21878         else
21879                 USE_SPEC95=
21880
21881
21882         fi
21883 else
21884         if test ${enableval} = ""
21885         then
21886                 SPEC95_ROOT=/home/vadve/shared/benchmarks/spec95/benchspec
21887
21888         else
21889                 SPEC95_ROOT=${enableval}
21890
21891         fi
21892         USE_SPEC95=USE_SPEC95=1
21893
21894 fi
21895
21896 # Check whether --enable-povray or --disable-povray was given.
21897 if test "${enable_povray+set}" = set; then
21898   enableval="$enable_povray"
21899
21900 else
21901   enableval=no
21902 fi;
21903 if test ${enableval} = "no"
21904 then
21905         if test -d /home/vadve/criswell/Downloads/povray-3.50c
21906         then
21907                 POVRAY_ROOT=/home/vadve/criswell/Downloads/povray-3.50c
21908
21909                 USE_POVRAY=USE_POVRAY=1
21910
21911         else
21912                 USE_POVRAY=
21913
21914
21915         fi
21916 else
21917         if test ${enableval} = ""
21918         then
21919                 POVRAY_ROOT=/home/vadve/criswell/Downloads/povray-3.50c
21920
21921         else
21922                 POVRAY_ROOT=${enableval}
21923
21924         fi
21925         USE_POVRAY=USE_POVRAY=1
21926
21927 fi
21928
21929
21930 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
21931 if test "${enable_precompiled_bytecode+set}" = set; then
21932   enableval="$enable_precompiled_bytecode"
21933
21934 else
21935   enableval=no
21936 fi;
21937 if test ${enableval} = "no"
21938 then
21939         UPB=
21940
21941 else
21942         UPB=USE_PRECOMPILED_BYTECODE=1
21943
21944 fi
21945
21946 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
21947 if test "${enable_llc_diffs+set}" = set; then
21948   enableval="$enable_llc_diffs"
21949
21950 else
21951   enableval=yes
21952 fi;
21953 if test ${enableval} = "no"
21954 then
21955         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
21956
21957 else
21958         DISABLE_LLC_DIFFS=
21959
21960 fi
21961
21962 # Check whether --enable-jit or --disable-jit was given.
21963 if test "${enable_jit+set}" = set; then
21964   enableval="$enable_jit"
21965
21966 else
21967   enableval=default
21968 fi;
21969 if test ${enableval} = "no"
21970 then
21971         JIT=
21972
21973 else
21974         case $target in
21975                 *i*86*)
21976                         JIT=TARGET_HAS_JIT=1
21977
21978                         ;;
21979                 *sparc*)
21980                         JIT=TARGET_HAS_JIT=1
21981
21982                         ;;
21983                 *)
21984                         JIT=
21985
21986                         ;;
21987         esac
21988 fi
21989
21990
21991 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
21992 if test "${with_llvmgccdir+set}" = set; then
21993   withval="$with_llvmgccdir"
21994   LLVMGCCDIR=$withval
21995
21996 fi;
21997 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
21998 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
21999 LLVM_GCC_CHECK=no
22000 if test -d "$LLVMGCCDIR"
22001 then
22002         if test -x "$LLVMGCCDIR/bin/gcc"
22003         then
22004                 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
22005         fi
22006 fi
22007 llvmgccwarn=no
22008 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
22009 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
22010 if test "$LLVM_GCC_CHECK" = "no"
22011 then
22012     llvmgccwarn=yes
22013 fi
22014 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22015 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
22016 LLVM_GCC_SANE=no
22017 if test -x "$LLVM_GCC_CHECK"
22018 then
22019         cp /dev/null conftest.c
22020     "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
22021         if test $? -eq 0
22022         then
22023                 LLVM_GCC_SANE=yes
22024         fi
22025         rm conftest.c
22026         llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
22027         LLVMCC1=$llvmcc1path
22028
22029         llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
22030         LLVMCC1PLUS=$llvmcc1pluspath
22031
22032 fi
22033 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
22034 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
22035 if test "$LLVM_GCC_SANE" = "no"
22036 then
22037         llvmgccwarn=yes
22038 fi
22039
22040
22041 # Check whether --with-bcrepos or --without-bcrepos was given.
22042 if test "${with_bcrepos+set}" = set; then
22043   withval="$with_bcrepos"
22044   BCR=$withval
22045
22046 else
22047   BCR=/home/vadve/lattner/LLVMPrograms
22048
22049 fi;
22050
22051
22052 # Check whether --with-papi or --without-papi was given.
22053 if test "${with_papi+set}" = set; then
22054   withval="$with_papi"
22055   PAPIDIR=$withval
22056
22057 else
22058   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22059
22060 fi;
22061
22062 echo "$as_me:$LINENO: checking for shared library suffix" >&5
22063 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
22064 eval "SHLIBEXT=$shrext"
22065 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
22066 echo "${ECHO_T}$SHLIBEXT" >&6
22067 SHLIBEXT=$SHLIBEXT
22068
22069
22070 cat >>confdefs.h <<_ACEOF
22071 #define SHLIBEXT "$SHLIBEXT"
22072 _ACEOF
22073
22074
22075                                                             ac_config_files="$ac_config_files Makefile.config include/Support/DataTypes.h include/Support/ThreadSupport.h include/Support/hash_map include/Support/hash_set include/Support/iterator"
22076 cat >confcache <<\_ACEOF
22077 # This file is a shell script that caches the results of configure
22078 # tests run on this system so they can be shared between configure
22079 # scripts and configure runs, see configure's option --config-cache.
22080 # It is not useful on other systems.  If it contains results you don't
22081 # want to keep, you may remove or edit it.
22082 #
22083 # config.status only pays attention to the cache file if you give it
22084 # the --recheck option to rerun configure.
22085 #
22086 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22087 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22088 # following values.
22089
22090 _ACEOF
22091
22092 # The following way of writing the cache mishandles newlines in values,
22093 # but we know of no workaround that is simple, portable, and efficient.
22094 # So, don't put newlines in cache variables' values.
22095 # Ultrix sh set writes to stderr and can't be redirected directly,
22096 # and sets the high bit in the cache file unless we assign to the vars.
22097 {
22098   (set) 2>&1 |
22099     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22100     *ac_space=\ *)
22101       # `set' does not quote correctly, so add quotes (double-quote
22102       # substitution turns \\\\ into \\, and sed turns \\ into \).
22103       sed -n \
22104         "s/'/'\\\\''/g;
22105           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22106       ;;
22107     *)
22108       # `set' quotes correctly as required by POSIX, so do not add quotes.
22109       sed -n \
22110         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22111       ;;
22112     esac;
22113 } |
22114   sed '
22115      t clear
22116      : clear
22117      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22118      t end
22119      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22120      : end' >>confcache
22121 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22122   if test -w $cache_file; then
22123     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22124     cat confcache >$cache_file
22125   else
22126     echo "not updating unwritable cache $cache_file"
22127   fi
22128 fi
22129 rm -f confcache
22130
22131 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22132 # Let make expand exec_prefix.
22133 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22134
22135 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22136 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22137 # trailing colons and then remove the whole line if VPATH becomes empty
22138 # (actually we leave an empty line to preserve line numbers).
22139 if test "x$srcdir" = x.; then
22140   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22141 s/:*\$(srcdir):*/:/;
22142 s/:*\${srcdir}:*/:/;
22143 s/:*@srcdir@:*/:/;
22144 s/^\([^=]*=[    ]*\):*/\1/;
22145 s/:*$//;
22146 s/^[^=]*=[      ]*$//;
22147 }'
22148 fi
22149
22150 DEFS=-DHAVE_CONFIG_H
22151
22152 ac_libobjs=
22153 ac_ltlibobjs=
22154 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22155   # 1. Remove the extension, and $U if already installed.
22156   ac_i=`echo "$ac_i" |
22157          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22158   # 2. Add them.
22159   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22160   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22161 done
22162 LIBOBJS=$ac_libobjs
22163
22164 LTLIBOBJS=$ac_ltlibobjs
22165
22166
22167
22168 : ${CONFIG_STATUS=./config.status}
22169 ac_clean_files_save=$ac_clean_files
22170 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22171 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22172 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22173 cat >$CONFIG_STATUS <<_ACEOF
22174 #! $SHELL
22175 # Generated by $as_me.
22176 # Run this file to recreate the current configuration.
22177 # Compiler output produced by configure, useful for debugging
22178 # configure, is in config.log if it exists.
22179
22180 debug=false
22181 ac_cs_recheck=false
22182 ac_cs_silent=false
22183 SHELL=\${CONFIG_SHELL-$SHELL}
22184 _ACEOF
22185
22186 cat >>$CONFIG_STATUS <<\_ACEOF
22187 ## --------------------- ##
22188 ## M4sh Initialization.  ##
22189 ## --------------------- ##
22190
22191 # Be Bourne compatible
22192 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22193   emulate sh
22194   NULLCMD=:
22195   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22196   # is contrary to our usage.  Disable this feature.
22197   alias -g '${1+"$@"}'='"$@"'
22198 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22199   set -o posix
22200 fi
22201
22202 # Support unset when possible.
22203 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22204   as_unset=unset
22205 else
22206   as_unset=false
22207 fi
22208
22209
22210 # Work around bugs in pre-3.0 UWIN ksh.
22211 $as_unset ENV MAIL MAILPATH
22212 PS1='$ '
22213 PS2='> '
22214 PS4='+ '
22215
22216 # NLS nuisances.
22217 for as_var in \
22218   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22219   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22220   LC_TELEPHONE LC_TIME
22221 do
22222   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22223     eval $as_var=C; export $as_var
22224   else
22225     $as_unset $as_var
22226   fi
22227 done
22228
22229 # Required to use basename.
22230 if expr a : '\(a\)' >/dev/null 2>&1; then
22231   as_expr=expr
22232 else
22233   as_expr=false
22234 fi
22235
22236 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22237   as_basename=basename
22238 else
22239   as_basename=false
22240 fi
22241
22242
22243 # Name of the executable.
22244 as_me=`$as_basename "$0" ||
22245 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22246          X"$0" : 'X\(//\)$' \| \
22247          X"$0" : 'X\(/\)$' \| \
22248          .     : '\(.\)' 2>/dev/null ||
22249 echo X/"$0" |
22250     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22251           /^X\/\(\/\/\)$/{ s//\1/; q; }
22252           /^X\/\(\/\).*/{ s//\1/; q; }
22253           s/.*/./; q'`
22254
22255
22256 # PATH needs CR, and LINENO needs CR and PATH.
22257 # Avoid depending upon Character Ranges.
22258 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22259 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22260 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22261 as_cr_digits='0123456789'
22262 as_cr_alnum=$as_cr_Letters$as_cr_digits
22263
22264 # The user is always right.
22265 if test "${PATH_SEPARATOR+set}" != set; then
22266   echo "#! /bin/sh" >conf$$.sh
22267   echo  "exit 0"   >>conf$$.sh
22268   chmod +x conf$$.sh
22269   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22270     PATH_SEPARATOR=';'
22271   else
22272     PATH_SEPARATOR=:
22273   fi
22274   rm -f conf$$.sh
22275 fi
22276
22277
22278   as_lineno_1=$LINENO
22279   as_lineno_2=$LINENO
22280   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22281   test "x$as_lineno_1" != "x$as_lineno_2" &&
22282   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22283   # Find who we are.  Look in the path if we contain no path at all
22284   # relative or not.
22285   case $0 in
22286     *[\\/]* ) as_myself=$0 ;;
22287     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22288 for as_dir in $PATH
22289 do
22290   IFS=$as_save_IFS
22291   test -z "$as_dir" && as_dir=.
22292   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22293 done
22294
22295        ;;
22296   esac
22297   # We did not find ourselves, most probably we were run as `sh COMMAND'
22298   # in which case we are not to be found in the path.
22299   if test "x$as_myself" = x; then
22300     as_myself=$0
22301   fi
22302   if test ! -f "$as_myself"; then
22303     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22304 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22305    { (exit 1); exit 1; }; }
22306   fi
22307   case $CONFIG_SHELL in
22308   '')
22309     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22310 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22311 do
22312   IFS=$as_save_IFS
22313   test -z "$as_dir" && as_dir=.
22314   for as_base in sh bash ksh sh5; do
22315          case $as_dir in
22316          /*)
22317            if ("$as_dir/$as_base" -c '
22318   as_lineno_1=$LINENO
22319   as_lineno_2=$LINENO
22320   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22321   test "x$as_lineno_1" != "x$as_lineno_2" &&
22322   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22323              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22324              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22325              CONFIG_SHELL=$as_dir/$as_base
22326              export CONFIG_SHELL
22327              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22328            fi;;
22329          esac
22330        done
22331 done
22332 ;;
22333   esac
22334
22335   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22336   # uniformly replaced by the line number.  The first 'sed' inserts a
22337   # line-number line before each line; the second 'sed' does the real
22338   # work.  The second script uses 'N' to pair each line-number line
22339   # with the numbered line, and appends trailing '-' during
22340   # substitution so that $LINENO is not a special case at line end.
22341   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22342   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22343   sed '=' <$as_myself |
22344     sed '
22345       N
22346       s,$,-,
22347       : loop
22348       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22349       t loop
22350       s,-$,,
22351       s,^['$as_cr_digits']*\n,,
22352     ' >$as_me.lineno &&
22353   chmod +x $as_me.lineno ||
22354     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22355 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22356    { (exit 1); exit 1; }; }
22357
22358   # Don't try to exec as it changes $[0], causing all sort of problems
22359   # (the dirname of $[0] is not the place where we might find the
22360   # original and so on.  Autoconf is especially sensible to this).
22361   . ./$as_me.lineno
22362   # Exit status is that of the last command.
22363   exit
22364 }
22365
22366
22367 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22368   *c*,-n*) ECHO_N= ECHO_C='
22369 ' ECHO_T='      ' ;;
22370   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22371   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22372 esac
22373
22374 if expr a : '\(a\)' >/dev/null 2>&1; then
22375   as_expr=expr
22376 else
22377   as_expr=false
22378 fi
22379
22380 rm -f conf$$ conf$$.exe conf$$.file
22381 echo >conf$$.file
22382 if ln -s conf$$.file conf$$ 2>/dev/null; then
22383   # We could just check for DJGPP; but this test a) works b) is more generic
22384   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22385   if test -f conf$$.exe; then
22386     # Don't use ln at all; we don't have any links
22387     as_ln_s='cp -p'
22388   else
22389     as_ln_s='ln -s'
22390   fi
22391 elif ln conf$$.file conf$$ 2>/dev/null; then
22392   as_ln_s=ln
22393 else
22394   as_ln_s='cp -p'
22395 fi
22396 rm -f conf$$ conf$$.exe conf$$.file
22397
22398 if mkdir -p . 2>/dev/null; then
22399   as_mkdir_p=:
22400 else
22401   as_mkdir_p=false
22402 fi
22403
22404 as_executable_p="test -f"
22405
22406 # Sed expression to map a string onto a valid CPP name.
22407 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22408
22409 # Sed expression to map a string onto a valid variable name.
22410 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22411
22412
22413 # IFS
22414 # We need space, tab and new line, in precisely that order.
22415 as_nl='
22416 '
22417 IFS="   $as_nl"
22418
22419 # CDPATH.
22420 $as_unset CDPATH
22421
22422 exec 6>&1
22423
22424 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22425 # report actual input values of CONFIG_FILES etc. instead of their
22426 # values after options handling.  Logging --version etc. is OK.
22427 exec 5>>config.log
22428 {
22429   echo
22430   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22431 ## Running $as_me. ##
22432 _ASBOX
22433 } >&5
22434 cat >&5 <<_CSEOF
22435
22436 This file was extended by [LLVM] $as_me [1.1], which was
22437 generated by GNU Autoconf 2.57.  Invocation command line was
22438
22439   CONFIG_FILES    = $CONFIG_FILES
22440   CONFIG_HEADERS  = $CONFIG_HEADERS
22441   CONFIG_LINKS    = $CONFIG_LINKS
22442   CONFIG_COMMANDS = $CONFIG_COMMANDS
22443   $ $0 $@
22444
22445 _CSEOF
22446 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22447 echo >&5
22448 _ACEOF
22449
22450 # Files that config.status was made for.
22451 if test -n "$ac_config_files"; then
22452   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22453 fi
22454
22455 if test -n "$ac_config_headers"; then
22456   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22457 fi
22458
22459 if test -n "$ac_config_links"; then
22460   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22461 fi
22462
22463 if test -n "$ac_config_commands"; then
22464   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22465 fi
22466
22467 cat >>$CONFIG_STATUS <<\_ACEOF
22468
22469 ac_cs_usage="\
22470 \`$as_me' instantiates files from templates according to the
22471 current configuration.
22472
22473 Usage: $0 [OPTIONS] [FILE]...
22474
22475   -h, --help       print this help, then exit
22476   -V, --version    print version number, then exit
22477   -q, --quiet      do not print progress messages
22478   -d, --debug      don't remove temporary files
22479       --recheck    update $as_me by reconfiguring in the same conditions
22480   --file=FILE[:TEMPLATE]
22481                    instantiate the configuration file FILE
22482   --header=FILE[:TEMPLATE]
22483                    instantiate the configuration header FILE
22484
22485 Configuration files:
22486 $config_files
22487
22488 Configuration headers:
22489 $config_headers
22490
22491 Configuration commands:
22492 $config_commands
22493
22494 Report bugs to <bug-autoconf@gnu.org>."
22495 _ACEOF
22496
22497 cat >>$CONFIG_STATUS <<_ACEOF
22498 ac_cs_version="\\
22499 [LLVM] config.status [1.1]
22500 configured by $0, generated by GNU Autoconf 2.57,
22501   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22502
22503 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22504 Free Software Foundation, Inc.
22505 This config.status script is free software; the Free Software Foundation
22506 gives unlimited permission to copy, distribute and modify it."
22507 srcdir=$srcdir
22508 INSTALL="$INSTALL"
22509 _ACEOF
22510
22511 cat >>$CONFIG_STATUS <<\_ACEOF
22512 # If no file are specified by the user, then we need to provide default
22513 # value.  By we need to know if files were specified by the user.
22514 ac_need_defaults=:
22515 while test $# != 0
22516 do
22517   case $1 in
22518   --*=*)
22519     ac_option=`expr "x$1" : 'x\([^=]*\)='`
22520     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22521     ac_shift=:
22522     ;;
22523   -*)
22524     ac_option=$1
22525     ac_optarg=$2
22526     ac_shift=shift
22527     ;;
22528   *) # This is not an option, so the user has probably given explicit
22529      # arguments.
22530      ac_option=$1
22531      ac_need_defaults=false;;
22532   esac
22533
22534   case $ac_option in
22535   # Handling of the options.
22536 _ACEOF
22537 cat >>$CONFIG_STATUS <<\_ACEOF
22538   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22539     ac_cs_recheck=: ;;
22540   --version | --vers* | -V )
22541     echo "$ac_cs_version"; exit 0 ;;
22542   --he | --h)
22543     # Conflict between --help and --header
22544     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22545 Try \`$0 --help' for more information." >&5
22546 echo "$as_me: error: ambiguous option: $1
22547 Try \`$0 --help' for more information." >&2;}
22548    { (exit 1); exit 1; }; };;
22549   --help | --hel | -h )
22550     echo "$ac_cs_usage"; exit 0 ;;
22551   --debug | --d* | -d )
22552     debug=: ;;
22553   --file | --fil | --fi | --f )
22554     $ac_shift
22555     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22556     ac_need_defaults=false;;
22557   --header | --heade | --head | --hea )
22558     $ac_shift
22559     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22560     ac_need_defaults=false;;
22561   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22562   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22563     ac_cs_silent=: ;;
22564
22565   # This is an error.
22566   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22567 Try \`$0 --help' for more information." >&5
22568 echo "$as_me: error: unrecognized option: $1
22569 Try \`$0 --help' for more information." >&2;}
22570    { (exit 1); exit 1; }; } ;;
22571
22572   *) ac_config_targets="$ac_config_targets $1" ;;
22573
22574   esac
22575   shift
22576 done
22577
22578 ac_configure_extra_args=
22579
22580 if $ac_cs_silent; then
22581   exec 6>/dev/null
22582   ac_configure_extra_args="$ac_configure_extra_args --silent"
22583 fi
22584
22585 _ACEOF
22586 cat >>$CONFIG_STATUS <<_ACEOF
22587 if \$ac_cs_recheck; then
22588   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22589   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22590 fi
22591
22592 _ACEOF
22593
22594 cat >>$CONFIG_STATUS <<_ACEOF
22595 #
22596 # INIT-COMMANDS section.
22597 #
22598
22599 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22600 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
22601 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22602 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22603 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
22604 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22605 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
22606 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
22607 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
22608 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
22609 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
22610 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
22611 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
22612 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
22613 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
22614 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
22615 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
22616 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
22617 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
22618 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
22619 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
22620 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
22621 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
22622 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
22623 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
22624 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
22625 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
22626 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
22627 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
22628 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
22629 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
22630 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
22631 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
22632 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
22633 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
22634 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
22635 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
22636 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
22637 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
22638 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
22639 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
22640 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
22641 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
22642 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
22643 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
22644 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22645 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
22646 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
22647
22648 _ACEOF
22649
22650
22651
22652 cat >>$CONFIG_STATUS <<\_ACEOF
22653 for ac_config_target in $ac_config_targets
22654 do
22655   case "$ac_config_target" in
22656   # Handling of arguments.
22657   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22658   "include/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/DataTypes.h" ;;
22659   "include/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/ThreadSupport.h" ;;
22660   "include/Support/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_map" ;;
22661   "include/Support/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_set" ;;
22662   "include/Support/iterator" ) CONFIG_FILES="$CONFIG_FILES include/Support/iterator" ;;
22663   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22664   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22665   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22666   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22667   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22668   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22669   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
22670   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
22671   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
22672   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
22673   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
22674   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
22675   "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
22676   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
22677   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
22678   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
22679   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
22680   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
22681   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
22682   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
22683   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
22684   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
22685   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
22686   "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
22687   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
22688   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
22689   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
22690   "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
22691   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
22692   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
22693   "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
22694   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
22695   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
22696   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
22697   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
22698   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
22699   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
22700   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
22701   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
22702   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
22703   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
22704   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
22705   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
22706   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
22707   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
22708   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22709   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22710   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22711   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
22712   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22713 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22714    { (exit 1); exit 1; }; };;
22715   esac
22716 done
22717
22718 # If the user did not use the arguments to specify the items to instantiate,
22719 # then the envvar interface is used.  Set only those that are not.
22720 # We use the long form for the default assignment because of an extremely
22721 # bizarre bug on SunOS 4.1.3.
22722 if $ac_need_defaults; then
22723   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22724   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22725   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22726 fi
22727
22728 # Have a temporary directory for convenience.  Make it in the build tree
22729 # simply because there is no reason to put it here, and in addition,
22730 # creating and moving files from /tmp can sometimes cause problems.
22731 # Create a temporary directory, and hook for its removal unless debugging.
22732 $debug ||
22733 {
22734   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22735   trap '{ (exit 1); exit 1; }' 1 2 13 15
22736 }
22737
22738 # Create a (secure) tmp directory for tmp files.
22739
22740 {
22741   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22742   test -n "$tmp" && test -d "$tmp"
22743 }  ||
22744 {
22745   tmp=./confstat$$-$RANDOM
22746   (umask 077 && mkdir $tmp)
22747 } ||
22748 {
22749    echo "$me: cannot create a temporary directory in ." >&2
22750    { (exit 1); exit 1; }
22751 }
22752
22753 _ACEOF
22754
22755 cat >>$CONFIG_STATUS <<_ACEOF
22756
22757 #
22758 # CONFIG_FILES section.
22759 #
22760
22761 # No need to generate the scripts if there are no CONFIG_FILES.
22762 # This happens for instance when ./config.status config.h
22763 if test -n "\$CONFIG_FILES"; then
22764   # Protect against being on the right side of a sed subst in config.status.
22765   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22766    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22767 s,@SHELL@,$SHELL,;t t
22768 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22769 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22770 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22771 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22772 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22773 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22774 s,@exec_prefix@,$exec_prefix,;t t
22775 s,@prefix@,$prefix,;t t
22776 s,@program_transform_name@,$program_transform_name,;t t
22777 s,@bindir@,$bindir,;t t
22778 s,@sbindir@,$sbindir,;t t
22779 s,@libexecdir@,$libexecdir,;t t
22780 s,@datadir@,$datadir,;t t
22781 s,@sysconfdir@,$sysconfdir,;t t
22782 s,@sharedstatedir@,$sharedstatedir,;t t
22783 s,@localstatedir@,$localstatedir,;t t
22784 s,@libdir@,$libdir,;t t
22785 s,@includedir@,$includedir,;t t
22786 s,@oldincludedir@,$oldincludedir,;t t
22787 s,@infodir@,$infodir,;t t
22788 s,@mandir@,$mandir,;t t
22789 s,@build_alias@,$build_alias,;t t
22790 s,@host_alias@,$host_alias,;t t
22791 s,@target_alias@,$target_alias,;t t
22792 s,@DEFS@,$DEFS,;t t
22793 s,@ECHO_C@,$ECHO_C,;t t
22794 s,@ECHO_N@,$ECHO_N,;t t
22795 s,@ECHO_T@,$ECHO_T,;t t
22796 s,@LIBS@,$LIBS,;t t
22797 s,@subdirs@,$subdirs,;t t
22798 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22799 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22800 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22801 s,@build@,$build,;t t
22802 s,@build_cpu@,$build_cpu,;t t
22803 s,@build_vendor@,$build_vendor,;t t
22804 s,@build_os@,$build_os,;t t
22805 s,@host@,$host,;t t
22806 s,@host_cpu@,$host_cpu,;t t
22807 s,@host_vendor@,$host_vendor,;t t
22808 s,@host_os@,$host_os,;t t
22809 s,@target@,$target,;t t
22810 s,@target_cpu@,$target_cpu,;t t
22811 s,@target_vendor@,$target_vendor,;t t
22812 s,@target_os@,$target_os,;t t
22813 s,@OS@,$OS,;t t
22814 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
22815 s,@ARCH@,$ARCH,;t t
22816 s,@CXX@,$CXX,;t t
22817 s,@CXXFLAGS@,$CXXFLAGS,;t t
22818 s,@LDFLAGS@,$LDFLAGS,;t t
22819 s,@CPPFLAGS@,$CPPFLAGS,;t t
22820 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22821 s,@EXEEXT@,$EXEEXT,;t t
22822 s,@OBJEXT@,$OBJEXT,;t t
22823 s,@CC@,$CC,;t t
22824 s,@CFLAGS@,$CFLAGS,;t t
22825 s,@ac_ct_CC@,$ac_ct_CC,;t t
22826 s,@CPP@,$CPP,;t t
22827 s,@ifGNUmake@,$ifGNUmake,;t t
22828 s,@LEX@,$LEX,;t t
22829 s,@LEXLIB@,$LEXLIB,;t t
22830 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
22831 s,@YACC@,$YACC,;t t
22832 s,@BISON@,$BISON,;t t
22833 s,@EGREP@,$EGREP,;t t
22834 s,@LN_S@,$LN_S,;t t
22835 s,@ECHO@,$ECHO,;t t
22836 s,@AR@,$AR,;t t
22837 s,@ac_ct_AR@,$ac_ct_AR,;t t
22838 s,@RANLIB@,$RANLIB,;t t
22839 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22840 s,@STRIP@,$STRIP,;t t
22841 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22842 s,@CXXCPP@,$CXXCPP,;t t
22843 s,@F77@,$F77,;t t
22844 s,@FFLAGS@,$FFLAGS,;t t
22845 s,@ac_ct_F77@,$ac_ct_F77,;t t
22846 s,@LIBTOOL@,$LIBTOOL,;t t
22847 s,@DOT@,$DOT,;t t
22848 s,@ETAGS@,$ETAGS,;t t
22849 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
22850 s,@PYTHON@,$PYTHON,;t t
22851 s,@QMTEST@,$QMTEST,;t t
22852 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
22853 s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
22854 s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
22855 s,@ENDIAN@,$ENDIAN,;t t
22856 s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
22857 s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
22858 s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
22859 s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
22860 s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
22861 s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
22862 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
22863 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
22864 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
22865 s,@ALLOCA@,$ALLOCA,;t t
22866 s,@MMAP_FILE@,$MMAP_FILE,;t t
22867 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
22868 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
22869 s,@USE_SPEC@,$USE_SPEC,;t t
22870 s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
22871 s,@USE_SPEC95@,$USE_SPEC95,;t t
22872 s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
22873 s,@USE_POVRAY@,$USE_POVRAY,;t t
22874 s,@UPB@,$UPB,;t t
22875 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
22876 s,@JIT@,$JIT,;t t
22877 s,@LLVMCC1@,$LLVMCC1,;t t
22878 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
22879 s,@BCR@,$BCR,;t t
22880 s,@PAPIDIR@,$PAPIDIR,;t t
22881 s,@SHLIBEXT@,$SHLIBEXT,;t t
22882 s,@LIBOBJS@,$LIBOBJS,;t t
22883 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22884 CEOF
22885
22886 _ACEOF
22887
22888   cat >>$CONFIG_STATUS <<\_ACEOF
22889   # Split the substitutions into bite-sized pieces for seds with
22890   # small command number limits, like on Digital OSF/1 and HP-UX.
22891   ac_max_sed_lines=48
22892   ac_sed_frag=1 # Number of current file.
22893   ac_beg=1 # First line for current file.
22894   ac_end=$ac_max_sed_lines # Line after last line for current file.
22895   ac_more_lines=:
22896   ac_sed_cmds=
22897   while $ac_more_lines; do
22898     if test $ac_beg -gt 1; then
22899       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22900     else
22901       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22902     fi
22903     if test ! -s $tmp/subs.frag; then
22904       ac_more_lines=false
22905     else
22906       # The purpose of the label and of the branching condition is to
22907       # speed up the sed processing (if there are no `@' at all, there
22908       # is no need to browse any of the substitutions).
22909       # These are the two extra sed commands mentioned above.
22910       (echo ':t
22911   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22912       if test -z "$ac_sed_cmds"; then
22913         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22914       else
22915         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22916       fi
22917       ac_sed_frag=`expr $ac_sed_frag + 1`
22918       ac_beg=$ac_end
22919       ac_end=`expr $ac_end + $ac_max_sed_lines`
22920     fi
22921   done
22922   if test -z "$ac_sed_cmds"; then
22923     ac_sed_cmds=cat
22924   fi
22925 fi # test -n "$CONFIG_FILES"
22926
22927 _ACEOF
22928 cat >>$CONFIG_STATUS <<\_ACEOF
22929 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22930   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22931   case $ac_file in
22932   - | *:- | *:-:* ) # input from stdin
22933         cat >$tmp/stdin
22934         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22935         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22936   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22937         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22938   * )   ac_file_in=$ac_file.in ;;
22939   esac
22940
22941   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22942   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22943 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22944          X"$ac_file" : 'X\(//\)[^/]' \| \
22945          X"$ac_file" : 'X\(//\)$' \| \
22946          X"$ac_file" : 'X\(/\)' \| \
22947          .     : '\(.\)' 2>/dev/null ||
22948 echo X"$ac_file" |
22949     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22950           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22951           /^X\(\/\/\)$/{ s//\1/; q; }
22952           /^X\(\/\).*/{ s//\1/; q; }
22953           s/.*/./; q'`
22954   { if $as_mkdir_p; then
22955     mkdir -p "$ac_dir"
22956   else
22957     as_dir="$ac_dir"
22958     as_dirs=
22959     while test ! -d "$as_dir"; do
22960       as_dirs="$as_dir $as_dirs"
22961       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22962 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22963          X"$as_dir" : 'X\(//\)[^/]' \| \
22964          X"$as_dir" : 'X\(//\)$' \| \
22965          X"$as_dir" : 'X\(/\)' \| \
22966          .     : '\(.\)' 2>/dev/null ||
22967 echo X"$as_dir" |
22968     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22969           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22970           /^X\(\/\/\)$/{ s//\1/; q; }
22971           /^X\(\/\).*/{ s//\1/; q; }
22972           s/.*/./; q'`
22973     done
22974     test ! -n "$as_dirs" || mkdir $as_dirs
22975   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22976 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22977    { (exit 1); exit 1; }; }; }
22978
22979   ac_builddir=.
22980
22981 if test "$ac_dir" != .; then
22982   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22983   # A "../" for each directory in $ac_dir_suffix.
22984   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22985 else
22986   ac_dir_suffix= ac_top_builddir=
22987 fi
22988
22989 case $srcdir in
22990   .)  # No --srcdir option.  We are building in place.
22991     ac_srcdir=.
22992     if test -z "$ac_top_builddir"; then
22993        ac_top_srcdir=.
22994     else
22995        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22996     fi ;;
22997   [\\/]* | ?:[\\/]* )  # Absolute path.
22998     ac_srcdir=$srcdir$ac_dir_suffix;
22999     ac_top_srcdir=$srcdir ;;
23000   *) # Relative path.
23001     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23002     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23003 esac
23004 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23005 # absolute.
23006 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23007 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23008 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23009 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23010
23011
23012   case $INSTALL in
23013   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23014   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23015   esac
23016
23017   if test x"$ac_file" != x-; then
23018     { echo "$as_me:$LINENO: creating $ac_file" >&5
23019 echo "$as_me: creating $ac_file" >&6;}
23020     rm -f "$ac_file"
23021   fi
23022   # Let's still pretend it is `configure' which instantiates (i.e., don't
23023   # use $as_me), people would be surprised to read:
23024   #    /* config.h.  Generated by config.status.  */
23025   if test x"$ac_file" = x-; then
23026     configure_input=
23027   else
23028     configure_input="$ac_file.  "
23029   fi
23030   configure_input=$configure_input"Generated from `echo $ac_file_in |
23031                                      sed 's,.*/,,'` by configure."
23032
23033   # First look for the input files in the build tree, otherwise in the
23034   # src tree.
23035   ac_file_inputs=`IFS=:
23036     for f in $ac_file_in; do
23037       case $f in
23038       -) echo $tmp/stdin ;;
23039       [\\/$]*)
23040          # Absolute (can't be DOS-style, as IFS=:)
23041          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23042 echo "$as_me: error: cannot find input file: $f" >&2;}
23043    { (exit 1); exit 1; }; }
23044          echo $f;;
23045       *) # Relative
23046          if test -f "$f"; then
23047            # Build tree
23048            echo $f
23049          elif test -f "$srcdir/$f"; then
23050            # Source tree
23051            echo $srcdir/$f
23052          else
23053            # /dev/null tree
23054            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23055 echo "$as_me: error: cannot find input file: $f" >&2;}
23056    { (exit 1); exit 1; }; }
23057          fi;;
23058       esac
23059     done` || { (exit 1); exit 1; }
23060 _ACEOF
23061 cat >>$CONFIG_STATUS <<_ACEOF
23062   sed "$ac_vpsub
23063 $extrasub
23064 _ACEOF
23065 cat >>$CONFIG_STATUS <<\_ACEOF
23066 :t
23067 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23068 s,@configure_input@,$configure_input,;t t
23069 s,@srcdir@,$ac_srcdir,;t t
23070 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23071 s,@top_srcdir@,$ac_top_srcdir,;t t
23072 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23073 s,@builddir@,$ac_builddir,;t t
23074 s,@abs_builddir@,$ac_abs_builddir,;t t
23075 s,@top_builddir@,$ac_top_builddir,;t t
23076 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23077 s,@INSTALL@,$ac_INSTALL,;t t
23078 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23079   rm -f $tmp/stdin
23080   if test x"$ac_file" != x-; then
23081     mv $tmp/out $ac_file
23082   else
23083     cat $tmp/out
23084     rm -f $tmp/out
23085   fi
23086
23087 done
23088 _ACEOF
23089 cat >>$CONFIG_STATUS <<\_ACEOF
23090
23091 #
23092 # CONFIG_HEADER section.
23093 #
23094
23095 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23096 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23097 #
23098 # ac_d sets the value in "#define NAME VALUE" lines.
23099 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
23100 ac_dB='[        ].*$,\1#\2'
23101 ac_dC=' '
23102 ac_dD=',;t'
23103 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23104 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23105 ac_uB='$,\1#\2define\3'
23106 ac_uC=' '
23107 ac_uD=',;t'
23108
23109 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23110   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23111   case $ac_file in
23112   - | *:- | *:-:* ) # input from stdin
23113         cat >$tmp/stdin
23114         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23115         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23116   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23117         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23118   * )   ac_file_in=$ac_file.in ;;
23119   esac
23120
23121   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23122 echo "$as_me: creating $ac_file" >&6;}
23123
23124   # First look for the input files in the build tree, otherwise in the
23125   # src tree.
23126   ac_file_inputs=`IFS=:
23127     for f in $ac_file_in; do
23128       case $f in
23129       -) echo $tmp/stdin ;;
23130       [\\/$]*)
23131          # Absolute (can't be DOS-style, as IFS=:)
23132          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23133 echo "$as_me: error: cannot find input file: $f" >&2;}
23134    { (exit 1); exit 1; }; }
23135          echo $f;;
23136       *) # Relative
23137          if test -f "$f"; then
23138            # Build tree
23139            echo $f
23140          elif test -f "$srcdir/$f"; then
23141            # Source tree
23142            echo $srcdir/$f
23143          else
23144            # /dev/null tree
23145            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23146 echo "$as_me: error: cannot find input file: $f" >&2;}
23147    { (exit 1); exit 1; }; }
23148          fi;;
23149       esac
23150     done` || { (exit 1); exit 1; }
23151   # Remove the trailing spaces.
23152   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
23153
23154 _ACEOF
23155
23156 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23157 # `conftest.undefs', that substitutes the proper values into
23158 # config.h.in to produce config.h.  The first handles `#define'
23159 # templates, and the second `#undef' templates.
23160 # And first: Protect against being on the right side of a sed subst in
23161 # config.status.  Protect against being in an unquoted here document
23162 # in config.status.
23163 rm -f conftest.defines conftest.undefs
23164 # Using a here document instead of a string reduces the quoting nightmare.
23165 # Putting comments in sed scripts is not portable.
23166 #
23167 # `end' is used to avoid that the second main sed command (meant for
23168 # 0-ary CPP macros) applies to n-ary macro definitions.
23169 # See the Autoconf documentation for `clear'.
23170 cat >confdef2sed.sed <<\_ACEOF
23171 s/[\\&,]/\\&/g
23172 s,[\\$`],\\&,g
23173 t clear
23174 : clear
23175 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23176 t end
23177 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23178 : end
23179 _ACEOF
23180 # If some macros were called several times there might be several times
23181 # the same #defines, which is useless.  Nevertheless, we may not want to
23182 # sort them, since we want the *last* AC-DEFINE to be honored.
23183 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23184 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23185 rm -f confdef2sed.sed
23186
23187 # This sed command replaces #undef with comments.  This is necessary, for
23188 # example, in the case of _POSIX_SOURCE, which is predefined and required
23189 # on some systems where configure will not decide to define it.
23190 cat >>conftest.undefs <<\_ACEOF
23191 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23192 _ACEOF
23193
23194 # Break up conftest.defines because some shells have a limit on the size
23195 # of here documents, and old seds have small limits too (100 cmds).
23196 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23197 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23198 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23199 echo '  :' >>$CONFIG_STATUS
23200 rm -f conftest.tail
23201 while grep . conftest.defines >/dev/null
23202 do
23203   # Write a limited-size here document to $tmp/defines.sed.
23204   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23205   # Speed up: don't consider the non `#define' lines.
23206   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
23207   # Work around the forget-to-reset-the-flag bug.
23208   echo 't clr' >>$CONFIG_STATUS
23209   echo ': clr' >>$CONFIG_STATUS
23210   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23211   echo 'CEOF
23212   sed -f $tmp/defines.sed $tmp/in >$tmp/out
23213   rm -f $tmp/in
23214   mv $tmp/out $tmp/in
23215 ' >>$CONFIG_STATUS
23216   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23217   rm -f conftest.defines
23218   mv conftest.tail conftest.defines
23219 done
23220 rm -f conftest.defines
23221 echo '  fi # grep' >>$CONFIG_STATUS
23222 echo >>$CONFIG_STATUS
23223
23224 # Break up conftest.undefs because some shells have a limit on the size
23225 # of here documents, and old seds have small limits too (100 cmds).
23226 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23227 rm -f conftest.tail
23228 while grep . conftest.undefs >/dev/null
23229 do
23230   # Write a limited-size here document to $tmp/undefs.sed.
23231   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23232   # Speed up: don't consider the non `#undef'
23233   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
23234   # Work around the forget-to-reset-the-flag bug.
23235   echo 't clr' >>$CONFIG_STATUS
23236   echo ': clr' >>$CONFIG_STATUS
23237   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23238   echo 'CEOF
23239   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23240   rm -f $tmp/in
23241   mv $tmp/out $tmp/in
23242 ' >>$CONFIG_STATUS
23243   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23244   rm -f conftest.undefs
23245   mv conftest.tail conftest.undefs
23246 done
23247 rm -f conftest.undefs
23248
23249 cat >>$CONFIG_STATUS <<\_ACEOF
23250   # Let's still pretend it is `configure' which instantiates (i.e., don't
23251   # use $as_me), people would be surprised to read:
23252   #    /* config.h.  Generated by config.status.  */
23253   if test x"$ac_file" = x-; then
23254     echo "/* Generated by configure.  */" >$tmp/config.h
23255   else
23256     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23257   fi
23258   cat $tmp/in >>$tmp/config.h
23259   rm -f $tmp/in
23260   if test x"$ac_file" != x-; then
23261     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23262       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23263 echo "$as_me: $ac_file is unchanged" >&6;}
23264     else
23265       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23266 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23267          X"$ac_file" : 'X\(//\)[^/]' \| \
23268          X"$ac_file" : 'X\(//\)$' \| \
23269          X"$ac_file" : 'X\(/\)' \| \
23270          .     : '\(.\)' 2>/dev/null ||
23271 echo X"$ac_file" |
23272     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23273           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23274           /^X\(\/\/\)$/{ s//\1/; q; }
23275           /^X\(\/\).*/{ s//\1/; q; }
23276           s/.*/./; q'`
23277       { if $as_mkdir_p; then
23278     mkdir -p "$ac_dir"
23279   else
23280     as_dir="$ac_dir"
23281     as_dirs=
23282     while test ! -d "$as_dir"; do
23283       as_dirs="$as_dir $as_dirs"
23284       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23285 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23286          X"$as_dir" : 'X\(//\)[^/]' \| \
23287          X"$as_dir" : 'X\(//\)$' \| \
23288          X"$as_dir" : 'X\(/\)' \| \
23289          .     : '\(.\)' 2>/dev/null ||
23290 echo X"$as_dir" |
23291     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23292           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23293           /^X\(\/\/\)$/{ s//\1/; q; }
23294           /^X\(\/\).*/{ s//\1/; q; }
23295           s/.*/./; q'`
23296     done
23297     test ! -n "$as_dirs" || mkdir $as_dirs
23298   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23299 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23300    { (exit 1); exit 1; }; }; }
23301
23302       rm -f $ac_file
23303       mv $tmp/config.h $ac_file
23304     fi
23305   else
23306     cat $tmp/config.h
23307     rm -f $tmp/config.h
23308   fi
23309 done
23310 _ACEOF
23311 cat >>$CONFIG_STATUS <<\_ACEOF
23312
23313 #
23314 # CONFIG_COMMANDS section.
23315 #
23316 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23317   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23318   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23319   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23320 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23321          X"$ac_dest" : 'X\(//\)[^/]' \| \
23322          X"$ac_dest" : 'X\(//\)$' \| \
23323          X"$ac_dest" : 'X\(/\)' \| \
23324          .     : '\(.\)' 2>/dev/null ||
23325 echo X"$ac_dest" |
23326     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23327           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23328           /^X\(\/\/\)$/{ s//\1/; q; }
23329           /^X\(\/\).*/{ s//\1/; q; }
23330           s/.*/./; q'`
23331   ac_builddir=.
23332
23333 if test "$ac_dir" != .; then
23334   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23335   # A "../" for each directory in $ac_dir_suffix.
23336   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23337 else
23338   ac_dir_suffix= ac_top_builddir=
23339 fi
23340
23341 case $srcdir in
23342   .)  # No --srcdir option.  We are building in place.
23343     ac_srcdir=.
23344     if test -z "$ac_top_builddir"; then
23345        ac_top_srcdir=.
23346     else
23347        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23348     fi ;;
23349   [\\/]* | ?:[\\/]* )  # Absolute path.
23350     ac_srcdir=$srcdir$ac_dir_suffix;
23351     ac_top_srcdir=$srcdir ;;
23352   *) # Relative path.
23353     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23354     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23355 esac
23356 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23357 # absolute.
23358 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23359 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23360 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23361 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23362
23363
23364   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23365 echo "$as_me: executing $ac_dest commands" >&6;}
23366   case $ac_dest in
23367     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
23368     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
23369     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
23370     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23371     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
23372     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23373     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
23374     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
23375     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
23376     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
23377     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
23378     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
23379     test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
23380     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
23381     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
23382     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
23383     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
23384     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
23385     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
23386     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
23387     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
23388     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
23389     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
23390     test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
23391     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
23392     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
23393     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 ;;
23394     test/Programs/External/SPEC/Makefile.spec95 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec95 test/Programs/External/SPEC/Makefile.spec95 ;;
23395     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
23396     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
23397     test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ;;
23398     test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ;;
23399     test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ;;
23400     test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ;;
23401     test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ;;
23402     test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ;;
23403     test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ;;
23404     test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ;;
23405     test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ;;
23406     test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ;;
23407     test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ;;
23408     test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ;;
23409     test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ;;
23410     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
23411     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
23412     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
23413     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
23414     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
23415   esac
23416 done
23417 _ACEOF
23418
23419 cat >>$CONFIG_STATUS <<\_ACEOF
23420
23421 { (exit 0); exit 0; }
23422 _ACEOF
23423 chmod +x $CONFIG_STATUS
23424 ac_clean_files=$ac_clean_files_save
23425
23426
23427 # configure is writing to config.log, and then calls config.status.
23428 # config.status does its own redirection, appending to config.log.
23429 # Unfortunately, on DOS this fails, as config.log is still kept open
23430 # by configure, so config.status won't be able to write to it; its
23431 # output is simply discarded.  So we exec the FD to /dev/null,
23432 # effectively closing config.log, so it can be properly (re)opened and
23433 # appended to by config.status.  When coming back to configure, we
23434 # need to make the FD available again.
23435 if test "$no_create" != yes; then
23436   ac_cs_success=:
23437   ac_config_status_args=
23438   test "$silent" = yes &&
23439     ac_config_status_args="$ac_config_status_args --quiet"
23440   exec 5>/dev/null
23441   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23442   exec 5>>config.log
23443   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23444   # would make configure fail if this is the last instruction.
23445   $ac_cs_success || { (exit 1); exit 1; }
23446 fi
23447
23448 #
23449 # CONFIG_SUBDIRS section.
23450 #
23451 if test "$no_recursion" != yes; then
23452
23453   # Remove --cache-file and --srcdir arguments so they do not pile up.
23454   ac_sub_configure_args=
23455   ac_prev=
23456   for ac_arg in $ac_configure_args; do
23457     if test -n "$ac_prev"; then
23458       ac_prev=
23459       continue
23460     fi
23461     case $ac_arg in
23462     -cache-file | --cache-file | --cache-fil | --cache-fi \
23463     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23464       ac_prev=cache_file ;;
23465     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23466     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23467     | --c=*)
23468       ;;
23469     --config-cache | -C)
23470       ;;
23471     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23472       ac_prev=srcdir ;;
23473     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23474       ;;
23475     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23476       ac_prev=prefix ;;
23477     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23478       ;;
23479     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23480     esac
23481   done
23482
23483   # Always prepend --prefix to ensure using the same prefix
23484   # in subdir configurations.
23485   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23486
23487   ac_popdir=`pwd`
23488   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23489
23490     # Do not complain, so a configure script can configure whichever
23491     # parts of a large source tree are present.
23492     test -d $srcdir/$ac_dir || continue
23493
23494     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23495 echo "$as_me: configuring in $ac_dir" >&6;}
23496     { if $as_mkdir_p; then
23497     mkdir -p "$ac_dir"
23498   else
23499     as_dir="$ac_dir"
23500     as_dirs=
23501     while test ! -d "$as_dir"; do
23502       as_dirs="$as_dir $as_dirs"
23503       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23504 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23505          X"$as_dir" : 'X\(//\)[^/]' \| \
23506          X"$as_dir" : 'X\(//\)$' \| \
23507          X"$as_dir" : 'X\(/\)' \| \
23508          .     : '\(.\)' 2>/dev/null ||
23509 echo X"$as_dir" |
23510     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23511           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23512           /^X\(\/\/\)$/{ s//\1/; q; }
23513           /^X\(\/\).*/{ s//\1/; q; }
23514           s/.*/./; q'`
23515     done
23516     test ! -n "$as_dirs" || mkdir $as_dirs
23517   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23518 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23519    { (exit 1); exit 1; }; }; }
23520
23521     ac_builddir=.
23522
23523 if test "$ac_dir" != .; then
23524   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23525   # A "../" for each directory in $ac_dir_suffix.
23526   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23527 else
23528   ac_dir_suffix= ac_top_builddir=
23529 fi
23530
23531 case $srcdir in
23532   .)  # No --srcdir option.  We are building in place.
23533     ac_srcdir=.
23534     if test -z "$ac_top_builddir"; then
23535        ac_top_srcdir=.
23536     else
23537        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23538     fi ;;
23539   [\\/]* | ?:[\\/]* )  # Absolute path.
23540     ac_srcdir=$srcdir$ac_dir_suffix;
23541     ac_top_srcdir=$srcdir ;;
23542   *) # Relative path.
23543     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23544     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23545 esac
23546 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23547 # absolute.
23548 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23549 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23550 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23551 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23552
23553
23554     cd $ac_dir
23555
23556     # Check for guested configure; otherwise get Cygnus style configure.
23557     if test -f $ac_srcdir/configure.gnu; then
23558       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23559     elif test -f $ac_srcdir/configure; then
23560       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23561     elif test -f $ac_srcdir/configure.in; then
23562       ac_sub_configure=$ac_configure
23563     else
23564       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23565 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23566       ac_sub_configure=
23567     fi
23568
23569     # The recursion is here.
23570     if test -n "$ac_sub_configure"; then
23571       # Make the cache file name correct relative to the subdirectory.
23572       case $cache_file in
23573       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23574       *) # Relative path.
23575         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23576       esac
23577
23578       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23579 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23580       # The eval makes quoting arguments work.
23581       eval $ac_sub_configure $ac_sub_configure_args \
23582            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23583         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23584 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23585    { (exit 1); exit 1; }; }
23586     fi
23587
23588     cd $ac_popdir
23589   done
23590 fi
23591
23592
23593 if test $llvmgccwarn = yes
23594 then
23595         { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
23596 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
23597         { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
23598 echo "$as_me: WARNING: ***** appear to be working." >&2;}
23599         { echo "$as_me:$LINENO: WARNING: ***** " >&5
23600 echo "$as_me: WARNING: ***** " >&2;}
23601         { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
23602 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
23603         { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
23604 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
23605         { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
23606 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
23607 fi
23608