blob: 6169e2b912f6b08fc293077abbf8372c2cc24b77 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
John Criswell0c38eaf2003-09-10 15:17:25 +00003# Generated by GNU Autoconf 2.57 for [LLVM] [1.0].
John Criswell7a73b802003-06-30 21:59:07 +00004#
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.
John Criswell0c38eaf2003-09-10 15:17:25 +000011## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if 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+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
25
26# Support unset when possible.
27if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for 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
45do
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
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo 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.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if 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
99fi
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
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
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
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
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
154done
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
189case `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= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if 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
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 as_mkdir_p=false
224fi
225
226as_executable_p="test -f"
227
228# Sed expression to map a string onto a valid CPP name.
229as_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.
232as_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.
237as_nl='
238'
239IFS=" $as_nl"
240
241# CDPATH.
242$as_unset CDPATH
243
John Criswell7a73b802003-06-30 21:59:07 +0000244
John Criswell7a73b802003-06-30 21:59:07 +0000245
246# Check that we are running under the correct shell.
247SHELL=${CONFIG_SHELL-/bin/sh}
248
249case X$ECHO in
250X*--fallback-echo)
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 ;;
254esac
255
256echo=${ECHO-echo}
257if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
259 shift
260elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
262 :
John Criswell47fdd832003-07-14 16:52:07 +0000263elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000264 # Yippee, $echo works!
265 :
266else
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
269fi
270
271if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
273 shift
274 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000275$*
John Criswell7a73b802003-06-30 21:59:07 +0000276EOF
277 exit 0
278fi
279
280# The HP-UX ksh and POSIX shell print the target directory to stdout
281# if CDPATH is set.
282if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284if test -z "$ECHO"; then
285if 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
296fi
297
298if 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 :
302else
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
John Criswell47fdd832003-07-14 16:52:07 +0000309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000310 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000311 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000312 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
John Criswell47fdd832003-07-14 16:52:07 +0000320 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000321
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
382fi
383fi
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.
387ECHO=$echo
388if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390fi
391
392
393
John Criswell47fdd832003-07-14 16:52:07 +0000394
395tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
396
397tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398
John Criswell7a73b802003-06-30 21:59:07 +0000399# Name of the host.
400# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401# so uname gets run too.
402ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404exec 6>&1
405
406#
407# Initializations.
408#
409ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000410ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000411cross_compiling=no
412subdirs=
413MFLAGS=
414MAKEFLAGS=
415SHELL=${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.
423PACKAGE_NAME='[LLVM]'
424PACKAGE_TARNAME='--llvm--'
425PACKAGE_VERSION='[1.0]'
426PACKAGE_STRING='[LLVM] [1.0]'
427PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
John Criswell12399a12003-09-30 15:55:44 +0000429ac_subdirs_all="$ac_subdirs_all projects/reopt"
John Criswell559a6c12003-09-30 16:31:48 +0000430ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
John Criswell7a73b802003-06-30 21:59:07 +0000431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445# include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450# include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461# include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
468ac_unique_file=""Makefile.config.in""
John Criswellce2141f2003-10-02 19:02:30 +0000469ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RPWD SED RM MKDIR DATE MV DOT ETAGS PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED USE_SPEC UPB DISABLE_LLC_DIFFS JIT SPEC_ROOT BCR PAPIDIR PURIFY LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000470ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000471
472# Initialize some variables set by options.
473ac_init_help=
474ac_init_version=false
475# The variables have the same names as the options, with
476# dashes changed to underlines.
477cache_file=/dev/null
478exec_prefix=NONE
479no_create=
480no_recursion=
481prefix=NONE
482program_prefix=NONE
483program_suffix=NONE
484program_transform_name=s,x,x,
485silent=
486site=
487srcdir=
488verbose=
489x_includes=NONE
490x_libraries=NONE
491
492# Installation directory options.
493# These are left unexpanded so users can "make install exec_prefix=/foo"
494# and all the variables that are supposed to be based on exec_prefix
495# by default will actually change.
496# Use braces instead of parens because sh, perl, etc. also accept them.
497bindir='${exec_prefix}/bin'
498sbindir='${exec_prefix}/sbin'
499libexecdir='${exec_prefix}/libexec'
500datadir='${prefix}/share'
501sysconfdir='${prefix}/etc'
502sharedstatedir='${prefix}/com'
503localstatedir='${prefix}/var'
504libdir='${exec_prefix}/lib'
505includedir='${prefix}/include'
506oldincludedir='/usr/include'
507infodir='${prefix}/info'
508mandir='${prefix}/man'
509
510ac_prev=
511for ac_option
512do
513 # If the previous option needs an argument, assign it.
514 if test -n "$ac_prev"; then
515 eval "$ac_prev=\$ac_option"
516 ac_prev=
517 continue
518 fi
519
520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522 # Accept the important Cygnus configure options, so we can diagnose typos.
523
524 case $ac_option in
525
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 ac_prev=bindir ;;
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 bindir=$ac_optarg ;;
530
531 -build | --build | --buil | --bui | --bu)
532 ac_prev=build_alias ;;
533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534 build_alias=$ac_optarg ;;
535
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541 cache_file=$ac_optarg ;;
542
543 --config-cache | -C)
544 cache_file=config.cache ;;
545
546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 ac_prev=datadir ;;
548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 | --da=*)
550 datadir=$ac_optarg ;;
551
552 -disable-* | --disable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 eval "enable_$ac_feature=no" ;;
560
561 -enable-* | --enable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 case $ac_option in
569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 *) ac_optarg=yes ;;
571 esac
572 eval "enable_$ac_feature='$ac_optarg'" ;;
573
574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576 | --exec | --exe | --ex)
577 ac_prev=exec_prefix ;;
578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580 | --exec=* | --exe=* | --ex=*)
581 exec_prefix=$ac_optarg ;;
582
583 -gas | --gas | --ga | --g)
584 # Obsolete; use --with-gas.
585 with_gas=yes ;;
586
587 -help | --help | --hel | --he | -h)
588 ac_init_help=long ;;
589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590 ac_init_help=recursive ;;
591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592 ac_init_help=short ;;
593
594 -host | --host | --hos | --ho)
595 ac_prev=host_alias ;;
596 -host=* | --host=* | --hos=* | --ho=*)
597 host_alias=$ac_optarg ;;
598
599 -includedir | --includedir | --includedi | --included | --include \
600 | --includ | --inclu | --incl | --inc)
601 ac_prev=includedir ;;
602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603 | --includ=* | --inclu=* | --incl=* | --inc=*)
604 includedir=$ac_optarg ;;
605
606 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 ac_prev=infodir ;;
608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609 infodir=$ac_optarg ;;
610
611 -libdir | --libdir | --libdi | --libd)
612 ac_prev=libdir ;;
613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 libdir=$ac_optarg ;;
615
616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617 | --libexe | --libex | --libe)
618 ac_prev=libexecdir ;;
619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620 | --libexe=* | --libex=* | --libe=*)
621 libexecdir=$ac_optarg ;;
622
623 -localstatedir | --localstatedir | --localstatedi | --localstated \
624 | --localstate | --localstat | --localsta | --localst \
625 | --locals | --local | --loca | --loc | --lo)
626 ac_prev=localstatedir ;;
627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630 localstatedir=$ac_optarg ;;
631
632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 ac_prev=mandir ;;
634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635 mandir=$ac_optarg ;;
636
637 -nfp | --nfp | --nf)
638 # Obsolete; use --without-fp.
639 with_fp=no ;;
640
641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642 | --no-cr | --no-c | -n)
643 no_create=yes ;;
644
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 no_recursion=yes ;;
648
649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651 | --oldin | --oldi | --old | --ol | --o)
652 ac_prev=oldincludedir ;;
653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656 oldincludedir=$ac_optarg ;;
657
658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 ac_prev=prefix ;;
660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 prefix=$ac_optarg ;;
662
663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
664 | --program-pre | --program-pr | --program-p)
665 ac_prev=program_prefix ;;
666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668 program_prefix=$ac_optarg ;;
669
670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
671 | --program-suf | --program-su | --program-s)
672 ac_prev=program_suffix ;;
673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675 program_suffix=$ac_optarg ;;
676
677 -program-transform-name | --program-transform-name \
678 | --program-transform-nam | --program-transform-na \
679 | --program-transform-n | --program-transform- \
680 | --program-transform | --program-transfor \
681 | --program-transfo | --program-transf \
682 | --program-trans | --program-tran \
683 | --progr-tra | --program-tr | --program-t)
684 ac_prev=program_transform_name ;;
685 -program-transform-name=* | --program-transform-name=* \
686 | --program-transform-nam=* | --program-transform-na=* \
687 | --program-transform-n=* | --program-transform-=* \
688 | --program-transform=* | --program-transfor=* \
689 | --program-transfo=* | --program-transf=* \
690 | --program-trans=* | --program-tran=* \
691 | --progr-tra=* | --program-tr=* | --program-t=*)
692 program_transform_name=$ac_optarg ;;
693
694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695 | -silent | --silent | --silen | --sile | --sil)
696 silent=yes ;;
697
698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 ac_prev=sbindir ;;
700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 | --sbi=* | --sb=*)
702 sbindir=$ac_optarg ;;
703
704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706 | --sharedst | --shareds | --shared | --share | --shar \
707 | --sha | --sh)
708 ac_prev=sharedstatedir ;;
709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 | --sha=* | --sh=*)
713 sharedstatedir=$ac_optarg ;;
714
715 -site | --site | --sit)
716 ac_prev=site ;;
717 -site=* | --site=* | --sit=*)
718 site=$ac_optarg ;;
719
720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 ac_prev=srcdir ;;
722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 srcdir=$ac_optarg ;;
724
725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726 | --syscon | --sysco | --sysc | --sys | --sy)
727 ac_prev=sysconfdir ;;
728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730 sysconfdir=$ac_optarg ;;
731
732 -target | --target | --targe | --targ | --tar | --ta | --t)
733 ac_prev=target_alias ;;
734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735 target_alias=$ac_optarg ;;
736
737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 verbose=yes ;;
739
740 -version | --version | --versio | --versi | --vers | -V)
741 ac_init_version=: ;;
742
743 -with-* | --with-*)
744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 case $ac_option in
751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 *) ac_optarg=yes ;;
753 esac
754 eval "with_$ac_package='$ac_optarg'" ;;
755
756 -without-* | --without-*)
757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758 # Reject names that are not valid shell variable names.
759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid package name: $ac_package" >&2
761 { (exit 1); exit 1; }; }
762 ac_package=`echo $ac_package | sed 's/-/_/g'`
763 eval "with_$ac_package=no" ;;
764
765 --x)
766 # Obsolete; use --with-x.
767 with_x=yes ;;
768
769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770 | --x-incl | --x-inc | --x-in | --x-i)
771 ac_prev=x_includes ;;
772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774 x_includes=$ac_optarg ;;
775
776 -x-libraries | --x-libraries | --x-librarie | --x-librari \
777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778 ac_prev=x_libraries ;;
779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781 x_libraries=$ac_optarg ;;
782
783 -*) { echo "$as_me: error: unrecognized option: $ac_option
784Try \`$0 --help' for more information." >&2
785 { (exit 1); exit 1; }; }
786 ;;
787
788 *=*)
789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793 { (exit 1); exit 1; }; }
794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795 eval "$ac_envvar='$ac_optarg'"
796 export $ac_envvar ;;
797
798 *)
799 # FIXME: should be removed in autoconf 3.0.
800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804 ;;
805
806 esac
807done
808
809if test -n "$ac_prev"; then
810 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811 { echo "$as_me: error: missing argument to $ac_option" >&2
812 { (exit 1); exit 1; }; }
813fi
814
815# Be sure to have absolute paths.
816for ac_var in exec_prefix prefix
817do
818 eval ac_val=$`echo $ac_var`
819 case $ac_val in
820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822 { (exit 1); exit 1; }; };;
823 esac
824done
825
826# Be sure to have absolute paths.
827for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828 localstatedir libdir includedir oldincludedir infodir mandir
829do
830 eval ac_val=$`echo $ac_var`
831 case $ac_val in
832 [\\/$]* | ?:[\\/]* ) ;;
833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834 { (exit 1); exit 1; }; };;
835 esac
836done
837
838# There might be people who depend on the old broken behavior: `$host'
839# used to hold the argument of --host etc.
840# FIXME: To remove some day.
841build=$build_alias
842host=$host_alias
843target=$target_alias
844
845# FIXME: To remove some day.
846if test "x$host_alias" != x; then
847 if test "x$build_alias" = x; then
848 cross_compiling=maybe
849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850 If a cross compiler is detected then cross compile mode will be used." >&2
851 elif test "x$build_alias" != "x$host_alias"; then
852 cross_compiling=yes
853 fi
854fi
855
856ac_tool_prefix=
857test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859test "$silent" = yes && exec 6>/dev/null
860
861
862# Find the source files, if location was not specified.
863if test -z "$srcdir"; then
864 ac_srcdir_defaulted=yes
865 # Try the directory containing this script, then its parent.
866 ac_confdir=`(dirname "$0") 2>/dev/null ||
867$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868 X"$0" : 'X\(//\)[^/]' \| \
869 X"$0" : 'X\(//\)$' \| \
870 X"$0" : 'X\(/\)' \| \
871 . : '\(.\)' 2>/dev/null ||
872echo X"$0" |
873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875 /^X\(\/\/\)$/{ s//\1/; q; }
876 /^X\(\/\).*/{ s//\1/; q; }
877 s/.*/./; q'`
878 srcdir=$ac_confdir
879 if test ! -r $srcdir/$ac_unique_file; then
880 srcdir=..
881 fi
882else
883 ac_srcdir_defaulted=no
884fi
885if test ! -r $srcdir/$ac_unique_file; then
886 if test "$ac_srcdir_defaulted" = yes; then
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888 { (exit 1); exit 1; }; }
889 else
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891 { (exit 1); exit 1; }; }
892 fi
893fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000894(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000897srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898ac_env_build_alias_set=${build_alias+set}
899ac_env_build_alias_value=$build_alias
900ac_cv_env_build_alias_set=${build_alias+set}
901ac_cv_env_build_alias_value=$build_alias
902ac_env_host_alias_set=${host_alias+set}
903ac_env_host_alias_value=$host_alias
904ac_cv_env_host_alias_set=${host_alias+set}
905ac_cv_env_host_alias_value=$host_alias
906ac_env_target_alias_set=${target_alias+set}
907ac_env_target_alias_value=$target_alias
908ac_cv_env_target_alias_set=${target_alias+set}
909ac_cv_env_target_alias_value=$target_alias
910ac_env_CXX_set=${CXX+set}
911ac_env_CXX_value=$CXX
912ac_cv_env_CXX_set=${CXX+set}
913ac_cv_env_CXX_value=$CXX
914ac_env_CXXFLAGS_set=${CXXFLAGS+set}
915ac_env_CXXFLAGS_value=$CXXFLAGS
916ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
917ac_cv_env_CXXFLAGS_value=$CXXFLAGS
918ac_env_LDFLAGS_set=${LDFLAGS+set}
919ac_env_LDFLAGS_value=$LDFLAGS
920ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921ac_cv_env_LDFLAGS_value=$LDFLAGS
922ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_env_CPPFLAGS_value=$CPPFLAGS
924ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926ac_env_CC_set=${CC+set}
927ac_env_CC_value=$CC
928ac_cv_env_CC_set=${CC+set}
929ac_cv_env_CC_value=$CC
930ac_env_CFLAGS_set=${CFLAGS+set}
931ac_env_CFLAGS_value=$CFLAGS
932ac_cv_env_CFLAGS_set=${CFLAGS+set}
933ac_cv_env_CFLAGS_value=$CFLAGS
934ac_env_CPP_set=${CPP+set}
935ac_env_CPP_value=$CPP
936ac_cv_env_CPP_set=${CPP+set}
937ac_cv_env_CPP_value=$CPP
John Criswell47fdd832003-07-14 16:52:07 +0000938ac_env_CXXCPP_set=${CXXCPP+set}
939ac_env_CXXCPP_value=$CXXCPP
940ac_cv_env_CXXCPP_set=${CXXCPP+set}
941ac_cv_env_CXXCPP_value=$CXXCPP
942ac_env_F77_set=${F77+set}
943ac_env_F77_value=$F77
944ac_cv_env_F77_set=${F77+set}
945ac_cv_env_F77_value=$F77
946ac_env_FFLAGS_set=${FFLAGS+set}
947ac_env_FFLAGS_value=$FFLAGS
948ac_cv_env_FFLAGS_set=${FFLAGS+set}
949ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000950
951#
952# Report the --help message.
953#
954if test "$ac_init_help" = "long"; then
955 # Omit some internal or obsolete options to make the list less imposing.
956 # This message is too long to be a string in the A/UX 3.1 sh.
957 cat <<_ACEOF
958\`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
959
960Usage: $0 [OPTION]... [VAR=VALUE]...
961
962To assign environment variables (e.g., CC, CFLAGS...), specify them as
963VAR=VALUE. See below for descriptions of some of the useful variables.
964
965Defaults for the options are specified in brackets.
966
967Configuration:
968 -h, --help display this help and exit
969 --help=short display options specific to this package
970 --help=recursive display the short help of all the included packages
971 -V, --version display version information and exit
972 -q, --quiet, --silent do not print \`checking...' messages
973 --cache-file=FILE cache test results in FILE [disabled]
974 -C, --config-cache alias for \`--cache-file=config.cache'
975 -n, --no-create do not create output files
976 --srcdir=DIR find the sources in DIR [configure dir or \`..']
977
978_ACEOF
979
980 cat <<_ACEOF
981Installation directories:
982 --prefix=PREFIX install architecture-independent files in PREFIX
983 [$ac_default_prefix]
984 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985 [PREFIX]
986
987By default, \`make install' will install all the files in
988\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
989an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990for instance \`--prefix=\$HOME'.
991
992For better control, use the options below.
993
994Fine tuning of the installation directories:
995 --bindir=DIR user executables [EPREFIX/bin]
996 --sbindir=DIR system admin executables [EPREFIX/sbin]
997 --libexecdir=DIR program executables [EPREFIX/libexec]
998 --datadir=DIR read-only architecture-independent data [PREFIX/share]
999 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1000 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1001 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1002 --libdir=DIR object code libraries [EPREFIX/lib]
1003 --includedir=DIR C header files [PREFIX/include]
1004 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1005 --infodir=DIR info documentation [PREFIX/info]
1006 --mandir=DIR man documentation [PREFIX/man]
1007_ACEOF
1008
1009 cat <<\_ACEOF
1010
1011System types:
1012 --build=BUILD configure for building on BUILD [guessed]
1013 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1014 --target=TARGET configure for building compilers for TARGET [HOST]
1015_ACEOF
1016fi
1017
1018if test -n "$ac_init_help"; then
1019 case $ac_init_help in
1020 short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1021 esac
1022 cat <<\_ACEOF
1023
1024Optional Features:
1025 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001027 --enable-shared[=PKGS]
1028 build shared libraries [default=yes]
1029 --enable-static[=PKGS]
1030 build static libraries [default=yes]
1031 --enable-fast-install[=PKGS]
1032 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001033 --disable-libtool-lock avoid locking (might break parallel builds)
1034 --enable-purify Compile with purify (default is NO)
John Criswell7a73b802003-06-30 21:59:07 +00001035 --enable-optimized Compile with optimizations enabled (default is NO)
1036 --enable-spec Compile SPEC benchmarks (default is NO)
1037 --enable-precompiled_bytecode
1038 Use pre-compiled bytecode (default is NO)
John Criswellf02dbf02003-07-22 20:07:49 +00001039 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
John Criswellc78022e2003-07-29 19:11:58 +00001040 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001041
1042Optional Packages:
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001045 --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]
John Criswell7a73b802003-06-30 21:59:07 +00001050 --with-spec Location of SPEC benchmarks
1051 --with-llvmgccdir Location of LLVM GCC front-end
1052 --with-bcrepos Location of Bytecode Repository
1053 --with-papi Location of PAPI
John Criswellc78022e2003-07-29 19:11:58 +00001054 --with-purify Location of purify program
John Criswell7a73b802003-06-30 21:59:07 +00001055
1056Some influential environment variables:
1057 CXX C++ compiler command
1058 CXXFLAGS C++ compiler flags
1059 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1060 nonstandard directory <lib dir>
1061 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062 headers in a nonstandard directory <include dir>
1063 CC C compiler command
1064 CFLAGS C compiler flags
1065 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001066 CXXCPP C++ preprocessor
1067 F77 Fortran 77 compiler command
1068 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001069
1070Use these variables to override the choices made by `configure' or to help
1071it to find libraries and programs with nonstandard names/locations.
1072
1073Report bugs to <llvmbugs@cs.uiuc.edu>.
1074_ACEOF
1075fi
1076
1077if test "$ac_init_help" = "recursive"; then
1078 # If there are subdirs, report their specific --help.
1079 ac_popdir=`pwd`
1080 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081 test -d $ac_dir || continue
1082 ac_builddir=.
1083
1084if test "$ac_dir" != .; then
1085 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086 # A "../" for each directory in $ac_dir_suffix.
1087 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088else
1089 ac_dir_suffix= ac_top_builddir=
1090fi
1091
1092case $srcdir in
1093 .) # No --srcdir option. We are building in place.
1094 ac_srcdir=.
1095 if test -z "$ac_top_builddir"; then
1096 ac_top_srcdir=.
1097 else
1098 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099 fi ;;
1100 [\\/]* | ?:[\\/]* ) # Absolute path.
1101 ac_srcdir=$srcdir$ac_dir_suffix;
1102 ac_top_srcdir=$srcdir ;;
1103 *) # Relative path.
1104 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1106esac
1107# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1108# absolute.
1109ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +00001110ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +00001111ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1112ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1113
1114 cd $ac_dir
1115 # Check for guested configure; otherwise get Cygnus style configure.
1116 if test -f $ac_srcdir/configure.gnu; then
1117 echo
1118 $SHELL $ac_srcdir/configure.gnu --help=recursive
1119 elif test -f $ac_srcdir/configure; then
1120 echo
1121 $SHELL $ac_srcdir/configure --help=recursive
1122 elif test -f $ac_srcdir/configure.ac ||
1123 test -f $ac_srcdir/configure.in; then
1124 echo
1125 $ac_configure --help
1126 else
1127 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1128 fi
1129 cd $ac_popdir
1130 done
1131fi
1132
1133test -n "$ac_init_help" && exit 0
1134if $ac_init_version; then
1135 cat <<\_ACEOF
1136[LLVM] configure [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +00001137generated by GNU Autoconf 2.57
John Criswell7a73b802003-06-30 21:59:07 +00001138
1139Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1140Free Software Foundation, Inc.
1141This configure script is free software; the Free Software Foundation
1142gives unlimited permission to copy, distribute and modify it.
1143_ACEOF
1144 exit 0
1145fi
1146exec 5>config.log
1147cat >&5 <<_ACEOF
1148This file contains any messages produced by compilers while
1149running configure, to aid debugging if configure makes a mistake.
1150
1151It was created by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +00001152generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001153
1154 $ $0 $@
1155
1156_ACEOF
1157{
1158cat <<_ASUNAME
1159## --------- ##
1160## Platform. ##
1161## --------- ##
1162
1163hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1164uname -m = `(uname -m) 2>/dev/null || echo unknown`
1165uname -r = `(uname -r) 2>/dev/null || echo unknown`
1166uname -s = `(uname -s) 2>/dev/null || echo unknown`
1167uname -v = `(uname -v) 2>/dev/null || echo unknown`
1168
1169/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1170/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1171
1172/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1173/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1174/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1175hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1176/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1177/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1178/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1179
1180_ASUNAME
1181
1182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1183for as_dir in $PATH
1184do
1185 IFS=$as_save_IFS
1186 test -z "$as_dir" && as_dir=.
1187 echo "PATH: $as_dir"
1188done
1189
1190} >&5
1191
1192cat >&5 <<_ACEOF
1193
1194
1195## ----------- ##
1196## Core tests. ##
1197## ----------- ##
1198
1199_ACEOF
1200
1201
1202# Keep a trace of the command line.
1203# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001204# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001205# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001206# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001207ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001208ac_configure_args0=
1209ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001210ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001211ac_must_keep_next=false
1212for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001213do
John Criswell0c38eaf2003-09-10 15:17:25 +00001214 for ac_arg
1215 do
1216 case $ac_arg in
1217 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219 | -silent | --silent | --silen | --sile | --sil)
1220 continue ;;
1221 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1222 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1223 esac
1224 case $ac_pass in
1225 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1226 2)
1227 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1228 if test $ac_must_keep_next = true; then
1229 ac_must_keep_next=false # Got value, back to normal.
1230 else
1231 case $ac_arg in
1232 *=* | --config-cache | -C | -disable-* | --disable-* \
1233 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1234 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1235 | -with-* | --with-* | -without-* | --without-* | --x)
1236 case "$ac_configure_args0 " in
1237 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1238 esac
1239 ;;
1240 -* ) ac_must_keep_next=true ;;
1241 esac
1242 fi
1243 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1244 # Get rid of the leading space.
1245 ac_sep=" "
1246 ;;
1247 esac
1248 done
John Criswell7a73b802003-06-30 21:59:07 +00001249done
John Criswell0c38eaf2003-09-10 15:17:25 +00001250$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1251$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001252
1253# When interrupted or exit'd, cleanup temporary files, and complete
1254# config.log. We remove comments because anyway the quotes in there
1255# would cause problems or look ugly.
1256# WARNING: Be sure not to use single quotes in there, as some shells,
1257# such as our DU 5.0 friend, will then `close' the trap.
1258trap 'exit_status=$?
1259 # Save into config.log some information that might help in debugging.
1260 {
1261 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001262
John Criswell7a73b802003-06-30 21:59:07 +00001263 cat <<\_ASBOX
1264## ---------------- ##
1265## Cache variables. ##
1266## ---------------- ##
1267_ASBOX
1268 echo
1269 # The following way of writing the cache mishandles newlines in values,
1270{
1271 (set) 2>&1 |
1272 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1273 *ac_space=\ *)
1274 sed -n \
1275 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1277 ;;
1278 *)
1279 sed -n \
1280 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1281 ;;
1282 esac;
1283}
1284 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001285
1286 cat <<\_ASBOX
1287## ----------------- ##
1288## Output variables. ##
1289## ----------------- ##
1290_ASBOX
1291 echo
1292 for ac_var in $ac_subst_vars
1293 do
1294 eval ac_val=$`echo $ac_var`
1295 echo "$ac_var='"'"'$ac_val'"'"'"
1296 done | sort
1297 echo
1298
1299 if test -n "$ac_subst_files"; then
1300 cat <<\_ASBOX
1301## ------------- ##
1302## Output files. ##
1303## ------------- ##
1304_ASBOX
1305 echo
1306 for ac_var in $ac_subst_files
1307 do
1308 eval ac_val=$`echo $ac_var`
1309 echo "$ac_var='"'"'$ac_val'"'"'"
1310 done | sort
1311 echo
1312 fi
1313
John Criswell7a73b802003-06-30 21:59:07 +00001314 if test -s confdefs.h; then
1315 cat <<\_ASBOX
1316## ----------- ##
1317## confdefs.h. ##
1318## ----------- ##
1319_ASBOX
1320 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001321 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001322 echo
1323 fi
1324 test "$ac_signal" != 0 &&
1325 echo "$as_me: caught signal $ac_signal"
1326 echo "$as_me: exit $exit_status"
1327 } >&5
1328 rm -f core core.* *.core &&
1329 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1330 exit $exit_status
1331 ' 0
1332for ac_signal in 1 2 13 15; do
1333 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1334done
1335ac_signal=0
1336
1337# confdefs.h avoids OS command line length limits that DEFS can exceed.
1338rm -rf conftest* confdefs.h
1339# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340echo >confdefs.h
1341
1342# Predefined preprocessor variables.
1343
1344cat >>confdefs.h <<_ACEOF
1345#define PACKAGE_NAME "$PACKAGE_NAME"
1346_ACEOF
1347
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_VERSION "$PACKAGE_VERSION"
1356_ACEOF
1357
1358
1359cat >>confdefs.h <<_ACEOF
1360#define PACKAGE_STRING "$PACKAGE_STRING"
1361_ACEOF
1362
1363
1364cat >>confdefs.h <<_ACEOF
1365#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1366_ACEOF
1367
1368
1369# Let the site file select an alternate cache file if it wants to.
1370# Prefer explicitly selected file to automatically selected ones.
1371if test -z "$CONFIG_SITE"; then
1372 if test "x$prefix" != xNONE; then
1373 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1374 else
1375 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1376 fi
1377fi
1378for ac_site_file in $CONFIG_SITE; do
1379 if test -r "$ac_site_file"; then
1380 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1381echo "$as_me: loading site script $ac_site_file" >&6;}
1382 sed 's/^/| /' "$ac_site_file" >&5
1383 . "$ac_site_file"
1384 fi
1385done
1386
1387if test -r "$cache_file"; then
1388 # Some versions of bash will fail to source /dev/null (special
1389 # files actually), so we avoid doing that.
1390 if test -f "$cache_file"; then
1391 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1392echo "$as_me: loading cache $cache_file" >&6;}
1393 case $cache_file in
1394 [\\/]* | ?:[\\/]* ) . $cache_file;;
1395 *) . ./$cache_file;;
1396 esac
1397 fi
1398else
1399 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1400echo "$as_me: creating cache $cache_file" >&6;}
1401 >$cache_file
1402fi
1403
1404# Check that the precious variables saved in the cache have kept the same
1405# value.
1406ac_cache_corrupted=false
1407for ac_var in `(set) 2>&1 |
1408 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1409 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1410 eval ac_new_set=\$ac_env_${ac_var}_set
1411 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1412 eval ac_new_val="\$ac_env_${ac_var}_value"
1413 case $ac_old_set,$ac_new_set in
1414 set,)
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1416echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1418 ,set)
1419 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1420echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1421 ac_cache_corrupted=: ;;
1422 ,);;
1423 *)
1424 if test "x$ac_old_val" != "x$ac_new_val"; then
1425 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1426echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1427 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1428echo "$as_me: former value: $ac_old_val" >&2;}
1429 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1430echo "$as_me: current value: $ac_new_val" >&2;}
1431 ac_cache_corrupted=:
1432 fi;;
1433 esac
1434 # Pass precious variables to config.status.
1435 if test "$ac_new_set" = set; then
1436 case $ac_new_val in
1437 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1438 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1439 *) ac_arg=$ac_var=$ac_new_val ;;
1440 esac
1441 case " $ac_configure_args " in
1442 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1443 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1444 esac
1445 fi
1446done
1447if $ac_cache_corrupted; then
1448 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1449echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1450 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1451echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1452 { (exit 1); exit 1; }; }
1453fi
1454
1455ac_ext=c
1456ac_cpp='$CPP $CPPFLAGS'
1457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1459ac_compiler_gnu=$ac_cv_c_compiler_gnu
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
John Criswell0c38eaf2003-09-10 15:17:25 +00001487
John Criswell7a73b802003-06-30 21:59:07 +00001488ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001489for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001490 if test -f $ac_dir/install-sh; then
1491 ac_aux_dir=$ac_dir
1492 ac_install_sh="$ac_aux_dir/install-sh -c"
1493 break
1494 elif test -f $ac_dir/install.sh; then
1495 ac_aux_dir=$ac_dir
1496 ac_install_sh="$ac_aux_dir/install.sh -c"
1497 break
1498 elif test -f $ac_dir/shtool; then
1499 ac_aux_dir=$ac_dir
1500 ac_install_sh="$ac_aux_dir/shtool install -c"
1501 break
1502 fi
1503done
1504if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001505 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1506echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001507 { (exit 1); exit 1; }; }
1508fi
1509ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1510ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1511ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512
John Criswell392aaa32003-07-22 19:18:09 +00001513
John Criswell1b824322003-09-15 17:19:42 +00001514if test ${srcdir} != "."
John Criswell93e1c722003-09-15 17:04:06 +00001515then
John Criswell1b824322003-09-15 17:19:42 +00001516 if test -f ${srcdir}/include/Config/config.h
1517 then
1518 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001519echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1520 { (exit 1); exit 1; }; }
John Criswell1b824322003-09-15 17:19:42 +00001521 fi
John Criswell93e1c722003-09-15 17:04:06 +00001522fi
1523
John Criswell12399a12003-09-30 15:55:44 +00001524if test -d ${srcdir}/projects/reopt
1525then
1526
1527
1528subdirs="$subdirs projects/reopt"
1529
1530fi
1531
John Criswell559a6c12003-09-30 16:31:48 +00001532if test -d ${srcdir}/projects/poolalloc
1533then
1534
1535
1536subdirs="$subdirs projects/poolalloc"
1537
1538fi
1539
John Criswell0c38eaf2003-09-10 15:17:25 +00001540 ac_config_headers="$ac_config_headers include/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001541
John Criswell0c38eaf2003-09-10 15:17:25 +00001542 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001543
1544
John Criswell0c38eaf2003-09-10 15:17:25 +00001545 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001546
1547
John Criswell0c38eaf2003-09-10 15:17:25 +00001548 ac_config_commands="$ac_config_commands Makefile.rules"
John Criswellc764fbc2003-09-06 15:17:13 +00001549
1550
John Criswell0c38eaf2003-09-10 15:17:25 +00001551 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001552
1553
John Criswell0c38eaf2003-09-10 15:17:25 +00001554 ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001555
1556
John Criswell0c38eaf2003-09-10 15:17:25 +00001557 ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001558
1559
John Criswell0c38eaf2003-09-10 15:17:25 +00001560 ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001561
1562
John Criswell0c38eaf2003-09-10 15:17:25 +00001563 ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001564
1565
John Criswell0c38eaf2003-09-10 15:17:25 +00001566 ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001567
1568
John Criswell0c38eaf2003-09-10 15:17:25 +00001569 ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001570
1571
John Criswell0c38eaf2003-09-10 15:17:25 +00001572 ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001573
1574
John Criswell0c38eaf2003-09-10 15:17:25 +00001575 ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001576
1577
John Criswell0c38eaf2003-09-10 15:17:25 +00001578 ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001579
1580
John Criswell0c38eaf2003-09-10 15:17:25 +00001581 ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001582
1583
John Criswell0c38eaf2003-09-10 15:17:25 +00001584 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001585
1586
John Criswell0c38eaf2003-09-10 15:17:25 +00001587 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001588
1589
John Criswell0c38eaf2003-09-10 15:17:25 +00001590 ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001591
1592
John Criswell0c38eaf2003-09-10 15:17:25 +00001593 ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001594
1595
John Criswell0c38eaf2003-09-10 15:17:25 +00001596 ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001597
1598
John Criswell0c38eaf2003-09-10 15:17:25 +00001599 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001600
1601
John Criswell0c38eaf2003-09-10 15:17:25 +00001602 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001603
1604
John Criswell0c38eaf2003-09-10 15:17:25 +00001605 ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001606
1607
John Criswell0c38eaf2003-09-10 15:17:25 +00001608 ac_config_commands="$ac_config_commands lib/Target/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001609
1610
John Criswell0c38eaf2003-09-10 15:17:25 +00001611 ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001612
1613
John Criswell0c38eaf2003-09-10 15:17:25 +00001614 ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001615
1616
John Criswell0c38eaf2003-09-10 15:17:25 +00001617 ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001618
1619
John Criswell0c38eaf2003-09-10 15:17:25 +00001620 ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001621
1622
John Criswell0c38eaf2003-09-10 15:17:25 +00001623 ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001624
1625
John Criswell0c38eaf2003-09-10 15:17:25 +00001626 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001627
1628
John Criswell0c38eaf2003-09-10 15:17:25 +00001629 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001630
1631
John Criswell0c38eaf2003-09-10 15:17:25 +00001632 ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001633
1634
John Criswell0c38eaf2003-09-10 15:17:25 +00001635 ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001636
1637
John Criswell0c38eaf2003-09-10 15:17:25 +00001638 ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001639
1640
John Criswell0c38eaf2003-09-10 15:17:25 +00001641 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001642
1643
John Criswell0c38eaf2003-09-10 15:17:25 +00001644 ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001645
1646
John Criswell0c38eaf2003-09-10 15:17:25 +00001647 ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001648
1649
John Criswell0c38eaf2003-09-10 15:17:25 +00001650 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001651
1652
John Criswell613758d2003-09-11 18:03:50 +00001653 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1654
1655
John Criswell0c38eaf2003-09-10 15:17:25 +00001656 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001657
1658
John Criswell0c38eaf2003-09-10 15:17:25 +00001659 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001660
1661
John Criswell0c38eaf2003-09-10 15:17:25 +00001662 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001663
1664
John Criswell0c38eaf2003-09-10 15:17:25 +00001665 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001666
1667
John Criswell613758d2003-09-11 18:03:50 +00001668 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1669
1670
John Criswell0c38eaf2003-09-10 15:17:25 +00001671 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001672
1673
John Criswell613758d2003-09-11 18:03:50 +00001674 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1675
1676
1677 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1678
1679
John Criswell0c38eaf2003-09-10 15:17:25 +00001680 ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001681
1682
John Criswell0c38eaf2003-09-10 15:17:25 +00001683 ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001684
1685
John Criswell0c38eaf2003-09-10 15:17:25 +00001686 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001687
1688
John Criswell0c38eaf2003-09-10 15:17:25 +00001689 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001690
1691
John Criswell08acb9b2003-09-16 02:12:45 +00001692 ac_config_commands="$ac_config_commands test/QMTestDB/QMTest/llvm.py"
1693
1694
John Criswell0c38eaf2003-09-10 15:17:25 +00001695 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001696
1697
John Criswell0c38eaf2003-09-10 15:17:25 +00001698 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
John Criswellc764fbc2003-09-06 15:17:13 +00001699
1700
John Criswell0c38eaf2003-09-10 15:17:25 +00001701 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001702
1703
John Criswell0c38eaf2003-09-10 15:17:25 +00001704 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001705
1706
John Criswell0c38eaf2003-09-10 15:17:25 +00001707 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001708
1709
John Criswell0c38eaf2003-09-10 15:17:25 +00001710 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001711
1712
John Criswell0c38eaf2003-09-10 15:17:25 +00001713 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001714
1715
John Criswell0c38eaf2003-09-10 15:17:25 +00001716 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001717
1718
John Criswell0c38eaf2003-09-10 15:17:25 +00001719 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001720
1721
John Criswell0c38eaf2003-09-10 15:17:25 +00001722 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001723
1724
John Criswell0c38eaf2003-09-10 15:17:25 +00001725 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001726
1727
John Criswell0c38eaf2003-09-10 15:17:25 +00001728 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001729
1730
John Criswell0c38eaf2003-09-10 15:17:25 +00001731 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001732
1733
John Criswell0c38eaf2003-09-10 15:17:25 +00001734 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001735
1736
John Criswell0c38eaf2003-09-10 15:17:25 +00001737 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
John Criswellc764fbc2003-09-06 15:17:13 +00001738
1739
John Criswell0c38eaf2003-09-10 15:17:25 +00001740 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001741
1742
John Criswell0c38eaf2003-09-10 15:17:25 +00001743 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001744
1745
John Criswell0c38eaf2003-09-10 15:17:25 +00001746 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001747
1748
John Criswell613758d2003-09-11 18:03:50 +00001749 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1750
1751
John Criswell0c38eaf2003-09-10 15:17:25 +00001752 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001753
1754
John Criswell0c38eaf2003-09-10 15:17:25 +00001755 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001756
1757
John Criswell0c38eaf2003-09-10 15:17:25 +00001758 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001759
1760
John Criswell0c38eaf2003-09-10 15:17:25 +00001761 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001762
1763
John Criswell0c38eaf2003-09-10 15:17:25 +00001764 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001765
1766
John Criswell0c38eaf2003-09-10 15:17:25 +00001767 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001768
1769
John Criswell0c38eaf2003-09-10 15:17:25 +00001770 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001771
1772
John Criswell0c38eaf2003-09-10 15:17:25 +00001773 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001774
1775
John Criswell0c38eaf2003-09-10 15:17:25 +00001776 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001777
1778
John Criswell0c38eaf2003-09-10 15:17:25 +00001779 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001780
1781
John Criswell0c38eaf2003-09-10 15:17:25 +00001782 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001783
1784
John Criswell0c38eaf2003-09-10 15:17:25 +00001785 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001786
1787
John Criswell0c38eaf2003-09-10 15:17:25 +00001788 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001789
1790
John Criswell0c38eaf2003-09-10 15:17:25 +00001791 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001792
1793
John Criswell0c38eaf2003-09-10 15:17:25 +00001794 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001795
1796
John Criswell0c38eaf2003-09-10 15:17:25 +00001797 ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001798
1799
John Criswell0c38eaf2003-09-10 15:17:25 +00001800 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001801
1802
John Criswell0c38eaf2003-09-10 15:17:25 +00001803 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001804
1805
John Criswell48e3cb92003-09-12 16:31:43 +00001806 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001807
1808
John Criswell48e3cb92003-09-12 16:31:43 +00001809 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001810
1811
John Criswell39e83892003-09-12 16:36:17 +00001812 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1813
1814
1815 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1816
1817
John Criswell48e3cb92003-09-12 16:31:43 +00001818 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001819
1820
John Criswell48e3cb92003-09-12 16:31:43 +00001821 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001822
1823
John Criswell48e3cb92003-09-12 16:31:43 +00001824 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001825
1826
John Criswell48e3cb92003-09-12 16:31:43 +00001827 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001828
1829
John Criswell48e3cb92003-09-12 16:31:43 +00001830 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001831
1832
John Criswell48e3cb92003-09-12 16:31:43 +00001833 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001834
1835
John Criswell48e3cb92003-09-12 16:31:43 +00001836 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001837
1838
John Criswell48e3cb92003-09-12 16:31:43 +00001839 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001840
1841
John Criswell48e3cb92003-09-12 16:31:43 +00001842 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001843
1844
John Criswell48e3cb92003-09-12 16:31:43 +00001845 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001846
1847
John Criswell48e3cb92003-09-12 16:31:43 +00001848 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001849
1850
John Criswell48e3cb92003-09-12 16:31:43 +00001851 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001852
1853
John Criswell48e3cb92003-09-12 16:31:43 +00001854 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001855
1856
John Criswell48e3cb92003-09-12 16:31:43 +00001857 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001858
1859
John Criswell48e3cb92003-09-12 16:31:43 +00001860 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001861
1862
John Criswell48e3cb92003-09-12 16:31:43 +00001863 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001864
1865
John Criswell48e3cb92003-09-12 16:31:43 +00001866 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001867
1868
John Criswell48e3cb92003-09-12 16:31:43 +00001869 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001870
1871
John Criswell48e3cb92003-09-12 16:31:43 +00001872 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001873
1874
John Criswell48e3cb92003-09-12 16:31:43 +00001875 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001876
1877
John Criswell48e3cb92003-09-12 16:31:43 +00001878 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001879
1880
John Criswell48e3cb92003-09-12 16:31:43 +00001881 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1882
1883
1884 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1885
1886
1887 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001888
1889
John Criswell39e83892003-09-12 16:36:17 +00001890 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001891
1892
John Criswell48e3cb92003-09-12 16:31:43 +00001893 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001894
1895
John Criswell48e3cb92003-09-12 16:31:43 +00001896 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001897
1898
John Criswell48e3cb92003-09-12 16:31:43 +00001899 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001900
1901
John Criswell48e3cb92003-09-12 16:31:43 +00001902 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001903
1904
John Criswell48e3cb92003-09-12 16:31:43 +00001905 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001906
1907
John Criswell48e3cb92003-09-12 16:31:43 +00001908 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001909
1910
John Criswell48e3cb92003-09-12 16:31:43 +00001911 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001912
1913
John Criswell48e3cb92003-09-12 16:31:43 +00001914 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001915
1916
John Criswell0c38eaf2003-09-10 15:17:25 +00001917 ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001918
1919
John Criswell0c38eaf2003-09-10 15:17:25 +00001920 ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001921
1922
John Criswell0c38eaf2003-09-10 15:17:25 +00001923 ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001924
1925
John Criswell0c38eaf2003-09-10 15:17:25 +00001926 ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001927
1928
John Criswell0c38eaf2003-09-10 15:17:25 +00001929 ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001930
1931
John Criswell0c38eaf2003-09-10 15:17:25 +00001932 ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001933
1934
John Criswell0c38eaf2003-09-10 15:17:25 +00001935 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001936
1937
John Criswell0c38eaf2003-09-10 15:17:25 +00001938 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001939
1940
John Criswellffaaf3b2003-09-10 18:38:44 +00001941 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1942
1943
1944 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1945
1946
1947 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1948
1949
1950 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1951
1952
1953 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1954
1955
1956 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1957
1958
John Criswell0c38eaf2003-09-10 15:17:25 +00001959 ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001960
1961
John Criswell0c38eaf2003-09-10 15:17:25 +00001962 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001963
1964
John Criswell0afe8252003-09-11 20:53:48 +00001965 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1966
1967
John Criswell67181ca2003-09-26 14:53:17 +00001968 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
1969
1970
John Criswell68886d42003-09-26 19:51:42 +00001971 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C/Makefile"
1972
1973
1974 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/Makefile"
1975
1976
John Criswellc66bbd52003-09-29 21:35:32 +00001977 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/EH/Makefile"
1978
1979
John Criswell0c38eaf2003-09-10 15:17:25 +00001980 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001981
1982
John Criswell0c38eaf2003-09-10 15:17:25 +00001983 ac_config_commands="$ac_config_commands tools/analyze/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001984
1985
John Criswell0c38eaf2003-09-10 15:17:25 +00001986 ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001987
1988
John Criswell0c38eaf2003-09-10 15:17:25 +00001989 ac_config_commands="$ac_config_commands tools/extract/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001990
1991
John Criswell0c38eaf2003-09-10 15:17:25 +00001992 ac_config_commands="$ac_config_commands tools/gccas/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001993
1994
John Criswell0c38eaf2003-09-10 15:17:25 +00001995 ac_config_commands="$ac_config_commands tools/gccld/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001996
1997
John Criswell0c38eaf2003-09-10 15:17:25 +00001998 ac_config_commands="$ac_config_commands tools/llc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001999
2000
John Criswell0c38eaf2003-09-10 15:17:25 +00002001 ac_config_commands="$ac_config_commands tools/llee/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002002
2003
John Criswellddb7b4e2003-09-16 15:54:19 +00002004 ac_config_commands="$ac_config_commands tools/lli/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002005
2006
Chris Lattnerebd70302003-09-13 03:29:53 +00002007 ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
2008
2009
John Criswellddb7b4e2003-09-16 15:54:19 +00002010 ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
2011
2012
John Criswell0c38eaf2003-09-10 15:17:25 +00002013 ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002014
2015
John Criswellddb7b4e2003-09-16 15:54:19 +00002016 ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
2017
2018
2019 ac_config_commands="$ac_config_commands tools/opt/Makefile"
2020
2021
John Criswell0c38eaf2003-09-10 15:17:25 +00002022 ac_config_commands="$ac_config_commands www/docs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002023
2024
John Criswell0c38eaf2003-09-10 15:17:25 +00002025 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002026
2027
John Criswell0c38eaf2003-09-10 15:17:25 +00002028 ac_config_commands="$ac_config_commands projects/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002029
2030
John Criswell0c38eaf2003-09-10 15:17:25 +00002031 ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002032
2033
John Criswell0c38eaf2003-09-10 15:17:25 +00002034 ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
John Criswellc764fbc2003-09-06 15:17:13 +00002035
2036
John Criswell0c38eaf2003-09-10 15:17:25 +00002037 ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002038
2039
John Criswell0c38eaf2003-09-10 15:17:25 +00002040 ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002041
2042
John Criswell0c38eaf2003-09-10 15:17:25 +00002043 ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002044
2045
John Criswell0c38eaf2003-09-10 15:17:25 +00002046 ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002047
2048
John Criswell0c38eaf2003-09-10 15:17:25 +00002049 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002050
2051
John Criswell0c38eaf2003-09-10 15:17:25 +00002052 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002053
2054
John Criswell0c38eaf2003-09-10 15:17:25 +00002055 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002056
2057
John Criswell0c38eaf2003-09-10 15:17:25 +00002058 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002059
2060
Chris Lattner9bf62392003-10-06 02:13:00 +00002061 ac_config_commands="$ac_config_commands lib/Support/Makefile"
John Criswell4e079782003-09-29 14:52:28 +00002062
2063
Chris Lattner9bf62392003-10-06 02:13:00 +00002064 ac_config_commands="$ac_config_commands utils/Makefile"
John Criswell4e079782003-09-29 14:52:28 +00002065
2066
Chris Lattner9bf62392003-10-06 02:13:00 +00002067 ac_config_commands="$ac_config_commands utils/Burg/Makefile"
John Criswell4e079782003-09-29 14:52:28 +00002068
2069
Chris Lattner9bf62392003-10-06 02:13:00 +00002070 ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
John Criswell4e079782003-09-29 14:52:28 +00002071
2072
Chris Lattner9bf62392003-10-06 02:13:00 +00002073 ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
John Criswell4e079782003-09-29 14:52:28 +00002074
2075
John Criswell392aaa32003-07-22 19:18:09 +00002076
2077
John Criswell7a73b802003-06-30 21:59:07 +00002078# Find a good install program. We prefer a C program (faster),
2079# so one script is as good as another. But avoid the broken or
2080# incompatible versions:
2081# SysV /etc/install, /usr/sbin/install
2082# SunOS /usr/etc/install
2083# IRIX /sbin/install
2084# AIX /bin/install
2085# AmigaOS /C/install, which installs bootblocks on floppy discs
2086# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2087# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2088# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2089# ./install, which can be erroneously created by make from ./install.sh.
2090echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2091echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2092if test -z "$INSTALL"; then
2093if test "${ac_cv_path_install+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2095else
2096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097for as_dir in $PATH
2098do
2099 IFS=$as_save_IFS
2100 test -z "$as_dir" && as_dir=.
2101 # Account for people who put trailing slashes in PATH elements.
2102case $as_dir/ in
2103 ./ | .// | /cC/* | \
2104 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2105 /usr/ucb/* ) ;;
2106 *)
2107 # OSF1 and SCO ODT 3.0 have their own names for install.
2108 # Don't use installbsd from OSF since it installs stuff as root
2109 # by default.
2110 for ac_prog in ginstall scoinst install; do
2111 for ac_exec_ext in '' $ac_executable_extensions; do
2112 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2113 if test $ac_prog = install &&
2114 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2115 # AIX install. It has an incompatible calling convention.
2116 :
2117 elif test $ac_prog = install &&
2118 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2119 # program-specific install script used by HP pwplus--don't use.
2120 :
2121 else
2122 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2123 break 3
2124 fi
2125 fi
2126 done
2127 done
2128 ;;
2129esac
2130done
2131
2132
2133fi
2134 if test "${ac_cv_path_install+set}" = set; then
2135 INSTALL=$ac_cv_path_install
2136 else
2137 # As a last resort, use the slow shell script. We don't cache a
2138 # path for INSTALL within a source directory, because that will
2139 # break other packages using the cache if that directory is
2140 # removed, or if the path is relative.
2141 INSTALL=$ac_install_sh
2142 fi
2143fi
2144echo "$as_me:$LINENO: result: $INSTALL" >&5
2145echo "${ECHO_T}$INSTALL" >&6
2146
2147# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2148# It thinks the first close brace ends the variable substitution.
2149test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2150
2151test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2152
2153test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2154
2155
2156# Make sure we can run config.sub.
2157$ac_config_sub sun4 >/dev/null 2>&1 ||
2158 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2159echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2160 { (exit 1); exit 1; }; }
2161
2162echo "$as_me:$LINENO: checking build system type" >&5
2163echo $ECHO_N "checking build system type... $ECHO_C" >&6
2164if test "${ac_cv_build+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2166else
2167 ac_cv_build_alias=$build_alias
2168test -z "$ac_cv_build_alias" &&
2169 ac_cv_build_alias=`$ac_config_guess`
2170test -z "$ac_cv_build_alias" &&
2171 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2172echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2173 { (exit 1); exit 1; }; }
2174ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2175 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2176echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2177 { (exit 1); exit 1; }; }
2178
2179fi
2180echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2181echo "${ECHO_T}$ac_cv_build" >&6
2182build=$ac_cv_build
2183build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2184build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2185build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2186
2187
2188echo "$as_me:$LINENO: checking host system type" >&5
2189echo $ECHO_N "checking host system type... $ECHO_C" >&6
2190if test "${ac_cv_host+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2192else
2193 ac_cv_host_alias=$host_alias
2194test -z "$ac_cv_host_alias" &&
2195 ac_cv_host_alias=$ac_cv_build_alias
2196ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2197 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2198echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2199 { (exit 1); exit 1; }; }
2200
2201fi
2202echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2203echo "${ECHO_T}$ac_cv_host" >&6
2204host=$ac_cv_host
2205host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2206host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2207host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2208
2209
2210echo "$as_me:$LINENO: checking target system type" >&5
2211echo $ECHO_N "checking target system type... $ECHO_C" >&6
2212if test "${ac_cv_target+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2214else
2215 ac_cv_target_alias=$target_alias
2216test "x$ac_cv_target_alias" = "x" &&
2217 ac_cv_target_alias=$ac_cv_host_alias
2218ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2219 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2220echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2221 { (exit 1); exit 1; }; }
2222
2223fi
2224echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2225echo "${ECHO_T}$ac_cv_target" >&6
2226target=$ac_cv_target
2227target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2228target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2229target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2230
2231
2232# The aliases save the names the user supplied, while $host etc.
2233# will get canonicalized.
2234test -n "$target_alias" &&
2235 test "$program_prefix$program_suffix$program_transform_name" = \
2236 NONENONEs,x,x, &&
2237 program_prefix=${target_alias}-
2238
2239case $build in
2240 *i*86*) OS=Linux
2241
John Criswellf02dbf02003-07-22 20:07:49 +00002242 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00002243
2244 ;;
2245
2246 *sparc*) OS=SunOS
2247
2248 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2249
2250 ;;
2251
2252 *) OS=Unknown
2253
2254 ;;
2255esac
2256
2257case $target in
2258 *sparc*solaris*) target=sparcv9-sun-solaris2.8
2259
2260 ;;
2261esac
2262
John Criswell76595452003-07-01 22:07:39 +00002263case $target in
2264 *i*86*) ARCH=x86
2265
2266 ;;
2267 *sparc*solaris*) ARCH=Sparc
2268
2269 ;;
2270esac
2271
John Criswell7a73b802003-06-30 21:59:07 +00002272
2273ac_ext=cc
2274ac_cpp='$CXXCPP $CPPFLAGS'
2275ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2276ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2277ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2278if test -n "$ac_tool_prefix"; then
2279 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2280 do
2281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2282set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2283echo "$as_me:$LINENO: checking for $ac_word" >&5
2284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2285if test "${ac_cv_prog_CXX+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2287else
2288 if test -n "$CXX"; then
2289 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2290else
2291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292for as_dir in $PATH
2293do
2294 IFS=$as_save_IFS
2295 test -z "$as_dir" && as_dir=.
2296 for ac_exec_ext in '' $ac_executable_extensions; do
2297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2298 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2300 break 2
2301 fi
2302done
2303done
2304
2305fi
2306fi
2307CXX=$ac_cv_prog_CXX
2308if test -n "$CXX"; then
2309 echo "$as_me:$LINENO: result: $CXX" >&5
2310echo "${ECHO_T}$CXX" >&6
2311else
2312 echo "$as_me:$LINENO: result: no" >&5
2313echo "${ECHO_T}no" >&6
2314fi
2315
2316 test -n "$CXX" && break
2317 done
2318fi
2319if test -z "$CXX"; then
2320 ac_ct_CXX=$CXX
2321 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2322do
2323 # Extract the first word of "$ac_prog", so it can be a program name with args.
2324set dummy $ac_prog; ac_word=$2
2325echo "$as_me:$LINENO: checking for $ac_word" >&5
2326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2327if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2329else
2330 if test -n "$ac_ct_CXX"; then
2331 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2332else
2333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334for as_dir in $PATH
2335do
2336 IFS=$as_save_IFS
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2340 ac_cv_prog_ac_ct_CXX="$ac_prog"
2341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342 break 2
2343 fi
2344done
2345done
2346
2347fi
2348fi
2349ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2350if test -n "$ac_ct_CXX"; then
2351 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2352echo "${ECHO_T}$ac_ct_CXX" >&6
2353else
2354 echo "$as_me:$LINENO: result: no" >&5
2355echo "${ECHO_T}no" >&6
2356fi
2357
2358 test -n "$ac_ct_CXX" && break
2359done
2360test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2361
2362 CXX=$ac_ct_CXX
2363fi
2364
2365
2366# Provide some information about the compiler.
2367echo "$as_me:$LINENO:" \
2368 "checking for C++ compiler version" >&5
2369ac_compiler=`set X $ac_compile; echo $2`
2370{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2371 (eval $ac_compiler --version </dev/null >&5) 2>&5
2372 ac_status=$?
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }
2375{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2376 (eval $ac_compiler -v </dev/null >&5) 2>&5
2377 ac_status=$?
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); }
2380{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2381 (eval $ac_compiler -V </dev/null >&5) 2>&5
2382 ac_status=$?
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }
2385
2386cat >conftest.$ac_ext <<_ACEOF
2387#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002388/* confdefs.h. */
2389_ACEOF
2390cat confdefs.h >>conftest.$ac_ext
2391cat >>conftest.$ac_ext <<_ACEOF
2392/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002393
John Criswell7a73b802003-06-30 21:59:07 +00002394int
2395main ()
2396{
2397
2398 ;
2399 return 0;
2400}
2401_ACEOF
2402ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002403ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002404# Try to create an executable without -o first, disregard a.out.
2405# It will help us diagnose broken compilers, and finding out an intuition
2406# of exeext.
2407echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2408echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2409ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2410if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2411 (eval $ac_link_default) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; then
2415 # Find the output, starting from the most likely. This scheme is
2416# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2417# resort.
2418
2419# Be careful to initialize this variable, since it used to be cached.
2420# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2421ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002422# b.out is created by i960 compilers.
2423for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2424do
2425 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002426 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002427 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2428 ;;
2429 conftest.$ac_ext )
2430 # This is the source file.
2431 ;;
2432 [ab].out )
2433 # We found the default executable, but exeext='' is most
2434 # certainly right.
2435 break;;
2436 *.* )
2437 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2438 # FIXME: I believe we export ac_cv_exeext for Libtool,
2439 # but it would be cool to find out if it's true. Does anybody
2440 # maintain Libtool? --akim.
2441 export ac_cv_exeext
2442 break;;
2443 * )
2444 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002445 esac
2446done
2447else
2448 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002449sed 's/^/| /' conftest.$ac_ext >&5
2450
2451{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2452See \`config.log' for more details." >&5
2453echo "$as_me: error: C++ compiler cannot create executables
2454See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002455 { (exit 77); exit 77; }; }
2456fi
2457
2458ac_exeext=$ac_cv_exeext
2459echo "$as_me:$LINENO: result: $ac_file" >&5
2460echo "${ECHO_T}$ac_file" >&6
2461
2462# Check the compiler produces executables we can run. If not, either
2463# the compiler is broken, or we cross compile.
2464echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2465echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2466# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2467# If not cross compiling, check that we can run a simple program.
2468if test "$cross_compiling" != yes; then
2469 if { ac_try='./$ac_file'
2470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 (eval $ac_try) 2>&5
2472 ac_status=$?
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; }; then
2475 cross_compiling=no
2476 else
2477 if test "$cross_compiling" = maybe; then
2478 cross_compiling=yes
2479 else
2480 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002481If you meant to cross compile, use \`--host'.
2482See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002483echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002484If you meant to cross compile, use \`--host'.
2485See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002486 { (exit 1); exit 1; }; }
2487 fi
2488 fi
2489fi
2490echo "$as_me:$LINENO: result: yes" >&5
2491echo "${ECHO_T}yes" >&6
2492
John Criswell0c38eaf2003-09-10 15:17:25 +00002493rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002494ac_clean_files=$ac_clean_files_save
2495# Check the compiler produces executables we can run. If not, either
2496# the compiler is broken, or we cross compile.
2497echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2498echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2499echo "$as_me:$LINENO: result: $cross_compiling" >&5
2500echo "${ECHO_T}$cross_compiling" >&6
2501
2502echo "$as_me:$LINENO: checking for suffix of executables" >&5
2503echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2505 (eval $ac_link) 2>&5
2506 ac_status=$?
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; then
2509 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2510# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2511# work properly (i.e., refer to `conftest.exe'), while it won't with
2512# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002513for ac_file in conftest.exe conftest conftest.*; do
2514 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002515 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002517 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2518 export ac_cv_exeext
2519 break;;
2520 * ) break;;
2521 esac
2522done
2523else
John Criswell0c38eaf2003-09-10 15:17:25 +00002524 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2525See \`config.log' for more details." >&5
2526echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2527See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002528 { (exit 1); exit 1; }; }
2529fi
2530
2531rm -f conftest$ac_cv_exeext
2532echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2533echo "${ECHO_T}$ac_cv_exeext" >&6
2534
2535rm -f conftest.$ac_ext
2536EXEEXT=$ac_cv_exeext
2537ac_exeext=$EXEEXT
2538echo "$as_me:$LINENO: checking for suffix of object files" >&5
2539echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2540if test "${ac_cv_objext+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2542else
2543 cat >conftest.$ac_ext <<_ACEOF
2544#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002545/* confdefs.h. */
2546_ACEOF
2547cat confdefs.h >>conftest.$ac_ext
2548cat >>conftest.$ac_ext <<_ACEOF
2549/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002550
John Criswell7a73b802003-06-30 21:59:07 +00002551int
2552main ()
2553{
2554
2555 ;
2556 return 0;
2557}
2558_ACEOF
2559rm -f conftest.o conftest.obj
2560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2561 (eval $ac_compile) 2>&5
2562 ac_status=$?
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; then
2565 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2566 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002567 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002568 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2569 break;;
2570 esac
2571done
2572else
2573 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002574sed 's/^/| /' conftest.$ac_ext >&5
2575
2576{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2577See \`config.log' for more details." >&5
2578echo "$as_me: error: cannot compute suffix of object files: cannot compile
2579See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002580 { (exit 1); exit 1; }; }
2581fi
2582
2583rm -f conftest.$ac_cv_objext conftest.$ac_ext
2584fi
2585echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2586echo "${ECHO_T}$ac_cv_objext" >&6
2587OBJEXT=$ac_cv_objext
2588ac_objext=$OBJEXT
2589echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2590echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2591if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2593else
2594 cat >conftest.$ac_ext <<_ACEOF
2595#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002596/* confdefs.h. */
2597_ACEOF
2598cat confdefs.h >>conftest.$ac_ext
2599cat >>conftest.$ac_ext <<_ACEOF
2600/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002601
John Criswell7a73b802003-06-30 21:59:07 +00002602int
2603main ()
2604{
2605#ifndef __GNUC__
2606 choke me
2607#endif
2608
2609 ;
2610 return 0;
2611}
2612_ACEOF
2613rm -f conftest.$ac_objext
2614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2615 (eval $ac_compile) 2>&5
2616 ac_status=$?
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); } &&
2619 { ac_try='test -s conftest.$ac_objext'
2620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 (eval $ac_try) 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; }; then
2625 ac_compiler_gnu=yes
2626else
2627 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002628sed 's/^/| /' conftest.$ac_ext >&5
2629
John Criswell7a73b802003-06-30 21:59:07 +00002630ac_compiler_gnu=no
2631fi
2632rm -f conftest.$ac_objext conftest.$ac_ext
2633ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2634
2635fi
2636echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2637echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2638GXX=`test $ac_compiler_gnu = yes && echo yes`
2639ac_test_CXXFLAGS=${CXXFLAGS+set}
2640ac_save_CXXFLAGS=$CXXFLAGS
2641CXXFLAGS="-g"
2642echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2643echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2644if test "${ac_cv_prog_cxx_g+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2646else
2647 cat >conftest.$ac_ext <<_ACEOF
2648#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002649/* confdefs.h. */
2650_ACEOF
2651cat confdefs.h >>conftest.$ac_ext
2652cat >>conftest.$ac_ext <<_ACEOF
2653/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002654
John Criswell7a73b802003-06-30 21:59:07 +00002655int
2656main ()
2657{
2658
2659 ;
2660 return 0;
2661}
2662_ACEOF
2663rm -f conftest.$ac_objext
2664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2665 (eval $ac_compile) 2>&5
2666 ac_status=$?
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); } &&
2669 { ac_try='test -s conftest.$ac_objext'
2670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671 (eval $ac_try) 2>&5
2672 ac_status=$?
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }; }; then
2675 ac_cv_prog_cxx_g=yes
2676else
2677 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002678sed 's/^/| /' conftest.$ac_ext >&5
2679
John Criswell7a73b802003-06-30 21:59:07 +00002680ac_cv_prog_cxx_g=no
2681fi
2682rm -f conftest.$ac_objext conftest.$ac_ext
2683fi
2684echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2685echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2686if test "$ac_test_CXXFLAGS" = set; then
2687 CXXFLAGS=$ac_save_CXXFLAGS
2688elif test $ac_cv_prog_cxx_g = yes; then
2689 if test "$GXX" = yes; then
2690 CXXFLAGS="-g -O2"
2691 else
2692 CXXFLAGS="-g"
2693 fi
2694else
2695 if test "$GXX" = yes; then
2696 CXXFLAGS="-O2"
2697 else
2698 CXXFLAGS=
2699 fi
2700fi
2701for ac_declaration in \
2702 ''\
2703 '#include <stdlib.h>' \
2704 'extern "C" void std::exit (int) throw (); using std::exit;' \
2705 'extern "C" void std::exit (int); using std::exit;' \
2706 'extern "C" void exit (int) throw ();' \
2707 'extern "C" void exit (int);' \
2708 'void exit (int);'
2709do
2710 cat >conftest.$ac_ext <<_ACEOF
2711#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002712/* confdefs.h. */
2713_ACEOF
2714cat confdefs.h >>conftest.$ac_ext
2715cat >>conftest.$ac_ext <<_ACEOF
2716/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002717#include <stdlib.h>
2718$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002719int
2720main ()
2721{
2722exit (42);
2723 ;
2724 return 0;
2725}
2726_ACEOF
2727rm -f conftest.$ac_objext
2728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729 (eval $ac_compile) 2>&5
2730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); } &&
2733 { ac_try='test -s conftest.$ac_objext'
2734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735 (eval $ac_try) 2>&5
2736 ac_status=$?
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; }; then
2739 :
2740else
2741 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002742sed 's/^/| /' conftest.$ac_ext >&5
2743
John Criswell7a73b802003-06-30 21:59:07 +00002744continue
2745fi
2746rm -f conftest.$ac_objext conftest.$ac_ext
2747 cat >conftest.$ac_ext <<_ACEOF
2748#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002749/* confdefs.h. */
2750_ACEOF
2751cat confdefs.h >>conftest.$ac_ext
2752cat >>conftest.$ac_ext <<_ACEOF
2753/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002754$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002755int
2756main ()
2757{
2758exit (42);
2759 ;
2760 return 0;
2761}
2762_ACEOF
2763rm -f conftest.$ac_objext
2764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765 (eval $ac_compile) 2>&5
2766 ac_status=$?
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); } &&
2769 { ac_try='test -s conftest.$ac_objext'
2770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771 (eval $ac_try) 2>&5
2772 ac_status=$?
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }; }; then
2775 break
2776else
2777 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002778sed 's/^/| /' conftest.$ac_ext >&5
2779
John Criswell7a73b802003-06-30 21:59:07 +00002780fi
2781rm -f conftest.$ac_objext conftest.$ac_ext
2782done
2783rm -f conftest*
2784if test -n "$ac_declaration"; then
2785 echo '#ifdef __cplusplus' >>confdefs.h
2786 echo $ac_declaration >>confdefs.h
2787 echo '#endif' >>confdefs.h
2788fi
2789
2790ac_ext=c
2791ac_cpp='$CPP $CPPFLAGS'
2792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2794ac_compiler_gnu=$ac_cv_c_compiler_gnu
2795
2796ac_ext=c
2797ac_cpp='$CPP $CPPFLAGS'
2798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2800ac_compiler_gnu=$ac_cv_c_compiler_gnu
2801if test -n "$ac_tool_prefix"; then
2802 for ac_prog in gcc
2803 do
2804 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2805set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2806echo "$as_me:$LINENO: checking for $ac_word" >&5
2807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2808if test "${ac_cv_prog_CC+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2810else
2811 if test -n "$CC"; then
2812 ac_cv_prog_CC="$CC" # Let the user override the test.
2813else
2814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815for as_dir in $PATH
2816do
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2824 fi
2825done
2826done
2827
2828fi
2829fi
2830CC=$ac_cv_prog_CC
2831if test -n "$CC"; then
2832 echo "$as_me:$LINENO: result: $CC" >&5
2833echo "${ECHO_T}$CC" >&6
2834else
2835 echo "$as_me:$LINENO: result: no" >&5
2836echo "${ECHO_T}no" >&6
2837fi
2838
2839 test -n "$CC" && break
2840 done
2841fi
2842if test -z "$CC"; then
2843 ac_ct_CC=$CC
2844 for ac_prog in gcc
2845do
2846 # Extract the first word of "$ac_prog", so it can be a program name with args.
2847set dummy $ac_prog; ac_word=$2
2848echo "$as_me:$LINENO: checking for $ac_word" >&5
2849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2850if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2852else
2853 if test -n "$ac_ct_CC"; then
2854 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2855else
2856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857for as_dir in $PATH
2858do
2859 IFS=$as_save_IFS
2860 test -z "$as_dir" && as_dir=.
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2863 ac_cv_prog_ac_ct_CC="$ac_prog"
2864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 break 2
2866 fi
2867done
2868done
2869
2870fi
2871fi
2872ac_ct_CC=$ac_cv_prog_ac_ct_CC
2873if test -n "$ac_ct_CC"; then
2874 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2875echo "${ECHO_T}$ac_ct_CC" >&6
2876else
2877 echo "$as_me:$LINENO: result: no" >&5
2878echo "${ECHO_T}no" >&6
2879fi
2880
2881 test -n "$ac_ct_CC" && break
2882done
2883
2884 CC=$ac_ct_CC
2885fi
2886
2887
John Criswell0c38eaf2003-09-10 15:17:25 +00002888test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2889See \`config.log' for more details." >&5
2890echo "$as_me: error: no acceptable C compiler found in \$PATH
2891See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002892 { (exit 1); exit 1; }; }
2893
2894# Provide some information about the compiler.
2895echo "$as_me:$LINENO:" \
2896 "checking for C compiler version" >&5
2897ac_compiler=`set X $ac_compile; echo $2`
2898{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2899 (eval $ac_compiler --version </dev/null >&5) 2>&5
2900 ac_status=$?
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }
2903{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2904 (eval $ac_compiler -v </dev/null >&5) 2>&5
2905 ac_status=$?
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }
2908{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2909 (eval $ac_compiler -V </dev/null >&5) 2>&5
2910 ac_status=$?
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }
2913
2914echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2915echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2916if test "${ac_cv_c_compiler_gnu+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918else
2919 cat >conftest.$ac_ext <<_ACEOF
2920#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002921/* confdefs.h. */
2922_ACEOF
2923cat confdefs.h >>conftest.$ac_ext
2924cat >>conftest.$ac_ext <<_ACEOF
2925/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002926
John Criswell7a73b802003-06-30 21:59:07 +00002927int
2928main ()
2929{
2930#ifndef __GNUC__
2931 choke me
2932#endif
2933
2934 ;
2935 return 0;
2936}
2937_ACEOF
2938rm -f conftest.$ac_objext
2939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2940 (eval $ac_compile) 2>&5
2941 ac_status=$?
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } &&
2944 { ac_try='test -s conftest.$ac_objext'
2945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946 (eval $ac_try) 2>&5
2947 ac_status=$?
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; }; then
2950 ac_compiler_gnu=yes
2951else
2952 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002953sed 's/^/| /' conftest.$ac_ext >&5
2954
John Criswell7a73b802003-06-30 21:59:07 +00002955ac_compiler_gnu=no
2956fi
2957rm -f conftest.$ac_objext conftest.$ac_ext
2958ac_cv_c_compiler_gnu=$ac_compiler_gnu
2959
2960fi
2961echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2962echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2963GCC=`test $ac_compiler_gnu = yes && echo yes`
2964ac_test_CFLAGS=${CFLAGS+set}
2965ac_save_CFLAGS=$CFLAGS
2966CFLAGS="-g"
2967echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2968echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2969if test "${ac_cv_prog_cc_g+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
2971else
2972 cat >conftest.$ac_ext <<_ACEOF
2973#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002974/* confdefs.h. */
2975_ACEOF
2976cat confdefs.h >>conftest.$ac_ext
2977cat >>conftest.$ac_ext <<_ACEOF
2978/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002979
John Criswell7a73b802003-06-30 21:59:07 +00002980int
2981main ()
2982{
2983
2984 ;
2985 return 0;
2986}
2987_ACEOF
2988rm -f conftest.$ac_objext
2989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2990 (eval $ac_compile) 2>&5
2991 ac_status=$?
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); } &&
2994 { ac_try='test -s conftest.$ac_objext'
2995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996 (eval $ac_try) 2>&5
2997 ac_status=$?
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); }; }; then
3000 ac_cv_prog_cc_g=yes
3001else
3002 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003003sed 's/^/| /' conftest.$ac_ext >&5
3004
John Criswell7a73b802003-06-30 21:59:07 +00003005ac_cv_prog_cc_g=no
3006fi
3007rm -f conftest.$ac_objext conftest.$ac_ext
3008fi
3009echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3010echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3011if test "$ac_test_CFLAGS" = set; then
3012 CFLAGS=$ac_save_CFLAGS
3013elif test $ac_cv_prog_cc_g = yes; then
3014 if test "$GCC" = yes; then
3015 CFLAGS="-g -O2"
3016 else
3017 CFLAGS="-g"
3018 fi
3019else
3020 if test "$GCC" = yes; then
3021 CFLAGS="-O2"
3022 else
3023 CFLAGS=
3024 fi
3025fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003026echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3027echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3028if test "${ac_cv_prog_cc_stdc+set}" = set; then
3029 echo $ECHO_N "(cached) $ECHO_C" >&6
3030else
3031 ac_cv_prog_cc_stdc=no
3032ac_save_CC=$CC
3033cat >conftest.$ac_ext <<_ACEOF
3034#line $LINENO "configure"
3035/* confdefs.h. */
3036_ACEOF
3037cat confdefs.h >>conftest.$ac_ext
3038cat >>conftest.$ac_ext <<_ACEOF
3039/* end confdefs.h. */
3040#include <stdarg.h>
3041#include <stdio.h>
3042#include <sys/types.h>
3043#include <sys/stat.h>
3044/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3045struct buf { int x; };
3046FILE * (*rcsopen) (struct buf *, struct stat *, int);
3047static char *e (p, i)
3048 char **p;
3049 int i;
3050{
3051 return p[i];
3052}
3053static char *f (char * (*g) (char **, int), char **p, ...)
3054{
3055 char *s;
3056 va_list v;
3057 va_start (v,p);
3058 s = g (p, va_arg (v,int));
3059 va_end (v);
3060 return s;
3061}
3062int test (int i, double x);
3063struct s1 {int (*f) (int a);};
3064struct s2 {int (*f) (double a);};
3065int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3066int argc;
3067char **argv;
3068int
3069main ()
3070{
3071return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3072 ;
3073 return 0;
3074}
3075_ACEOF
3076# Don't try gcc -ansi; that turns off useful extensions and
3077# breaks some systems' header files.
3078# AIX -qlanglvl=ansi
3079# Ultrix and OSF/1 -std1
3080# HP-UX 10.20 and later -Ae
3081# HP-UX older versions -Aa -D_HPUX_SOURCE
3082# SVR4 -Xc -D__EXTENSIONS__
3083for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3084do
3085 CC="$ac_save_CC $ac_arg"
3086 rm -f conftest.$ac_objext
3087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3088 (eval $ac_compile) 2>&5
3089 ac_status=$?
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); } &&
3092 { ac_try='test -s conftest.$ac_objext'
3093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094 (eval $ac_try) 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; }; then
3098 ac_cv_prog_cc_stdc=$ac_arg
3099break
3100else
3101 echo "$as_me: failed program was:" >&5
3102sed 's/^/| /' conftest.$ac_ext >&5
3103
3104fi
3105rm -f conftest.$ac_objext
3106done
3107rm -f conftest.$ac_ext conftest.$ac_objext
3108CC=$ac_save_CC
3109
3110fi
3111
3112case "x$ac_cv_prog_cc_stdc" in
3113 x|xno)
3114 echo "$as_me:$LINENO: result: none needed" >&5
3115echo "${ECHO_T}none needed" >&6 ;;
3116 *)
3117 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3118echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3119 CC="$CC $ac_cv_prog_cc_stdc" ;;
3120esac
3121
John Criswell7a73b802003-06-30 21:59:07 +00003122# Some people use a C++ compiler to compile C. Since we use `exit',
3123# in C++ we need to declare it. In case someone uses the same compiler
3124# for both compiling C and C++ we need to have the C++ compiler decide
3125# the declaration of exit, since it's the most demanding environment.
3126cat >conftest.$ac_ext <<_ACEOF
3127#ifndef __cplusplus
3128 choke me
3129#endif
3130_ACEOF
3131rm -f conftest.$ac_objext
3132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3133 (eval $ac_compile) 2>&5
3134 ac_status=$?
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } &&
3137 { ac_try='test -s conftest.$ac_objext'
3138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139 (eval $ac_try) 2>&5
3140 ac_status=$?
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; }; then
3143 for ac_declaration in \
3144 ''\
3145 '#include <stdlib.h>' \
3146 'extern "C" void std::exit (int) throw (); using std::exit;' \
3147 'extern "C" void std::exit (int); using std::exit;' \
3148 'extern "C" void exit (int) throw ();' \
3149 'extern "C" void exit (int);' \
3150 'void exit (int);'
3151do
3152 cat >conftest.$ac_ext <<_ACEOF
3153#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003154/* confdefs.h. */
3155_ACEOF
3156cat confdefs.h >>conftest.$ac_ext
3157cat >>conftest.$ac_ext <<_ACEOF
3158/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003159#include <stdlib.h>
3160$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003161int
3162main ()
3163{
3164exit (42);
3165 ;
3166 return 0;
3167}
3168_ACEOF
3169rm -f conftest.$ac_objext
3170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3171 (eval $ac_compile) 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } &&
3175 { ac_try='test -s conftest.$ac_objext'
3176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177 (eval $ac_try) 2>&5
3178 ac_status=$?
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; }; then
3181 :
3182else
3183 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003184sed 's/^/| /' conftest.$ac_ext >&5
3185
John Criswell7a73b802003-06-30 21:59:07 +00003186continue
3187fi
3188rm -f conftest.$ac_objext conftest.$ac_ext
3189 cat >conftest.$ac_ext <<_ACEOF
3190#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003191/* confdefs.h. */
3192_ACEOF
3193cat confdefs.h >>conftest.$ac_ext
3194cat >>conftest.$ac_ext <<_ACEOF
3195/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003196$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003197int
3198main ()
3199{
3200exit (42);
3201 ;
3202 return 0;
3203}
3204_ACEOF
3205rm -f conftest.$ac_objext
3206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3207 (eval $ac_compile) 2>&5
3208 ac_status=$?
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); } &&
3211 { ac_try='test -s conftest.$ac_objext'
3212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3213 (eval $ac_try) 2>&5
3214 ac_status=$?
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }; }; then
3217 break
3218else
3219 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003220sed 's/^/| /' conftest.$ac_ext >&5
3221
John Criswell7a73b802003-06-30 21:59:07 +00003222fi
3223rm -f conftest.$ac_objext conftest.$ac_ext
3224done
3225rm -f conftest*
3226if test -n "$ac_declaration"; then
3227 echo '#ifdef __cplusplus' >>confdefs.h
3228 echo $ac_declaration >>confdefs.h
3229 echo '#endif' >>confdefs.h
3230fi
3231
3232else
3233 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003234sed 's/^/| /' conftest.$ac_ext >&5
3235
John Criswell7a73b802003-06-30 21:59:07 +00003236fi
3237rm -f conftest.$ac_objext conftest.$ac_ext
3238ac_ext=c
3239ac_cpp='$CPP $CPPFLAGS'
3240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243
3244ac_ext=c
3245ac_cpp='$CPP $CPPFLAGS'
3246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3248ac_compiler_gnu=$ac_cv_c_compiler_gnu
3249echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3250echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3251# On Suns, sometimes $CPP names a directory.
3252if test -n "$CPP" && test -d "$CPP"; then
3253 CPP=
3254fi
3255if test -z "$CPP"; then
3256 if test "${ac_cv_prog_CPP+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3258else
3259 # Double quotes because CPP needs to be expanded
3260 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3261 do
3262 ac_preproc_ok=false
3263for ac_c_preproc_warn_flag in '' yes
3264do
3265 # Use a header file that comes with gcc, so configuring glibc
3266 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003267 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3268 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003269 # On the NeXT, cc -E runs the code through the compiler's parser,
3270 # not just through cpp. "Syntax error" is here to catch this case.
3271 cat >conftest.$ac_ext <<_ACEOF
3272#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003273/* confdefs.h. */
3274_ACEOF
3275cat confdefs.h >>conftest.$ac_ext
3276cat >>conftest.$ac_ext <<_ACEOF
3277/* end confdefs.h. */
3278#ifdef __STDC__
3279# include <limits.h>
3280#else
3281# include <assert.h>
3282#endif
John Criswell7a73b802003-06-30 21:59:07 +00003283 Syntax error
3284_ACEOF
3285if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3287 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003288 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003289 rm -f conftest.er1
3290 cat conftest.err >&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); } >/dev/null; then
3293 if test -s conftest.err; then
3294 ac_cpp_err=$ac_c_preproc_warn_flag
3295 else
3296 ac_cpp_err=
3297 fi
3298else
3299 ac_cpp_err=yes
3300fi
3301if test -z "$ac_cpp_err"; then
3302 :
3303else
3304 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003305sed 's/^/| /' conftest.$ac_ext >&5
3306
John Criswell7a73b802003-06-30 21:59:07 +00003307 # Broken: fails on valid input.
3308continue
3309fi
3310rm -f conftest.err conftest.$ac_ext
3311
3312 # OK, works on sane cases. Now check whether non-existent headers
3313 # can be detected and how.
3314 cat >conftest.$ac_ext <<_ACEOF
3315#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003316/* confdefs.h. */
3317_ACEOF
3318cat confdefs.h >>conftest.$ac_ext
3319cat >>conftest.$ac_ext <<_ACEOF
3320/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003321#include <ac_nonexistent.h>
3322_ACEOF
3323if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3325 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003326 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003327 rm -f conftest.er1
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } >/dev/null; then
3331 if test -s conftest.err; then
3332 ac_cpp_err=$ac_c_preproc_warn_flag
3333 else
3334 ac_cpp_err=
3335 fi
3336else
3337 ac_cpp_err=yes
3338fi
3339if test -z "$ac_cpp_err"; then
3340 # Broken: success on invalid input.
3341continue
3342else
3343 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003344sed 's/^/| /' conftest.$ac_ext >&5
3345
John Criswell7a73b802003-06-30 21:59:07 +00003346 # Passes both tests.
3347ac_preproc_ok=:
3348break
3349fi
3350rm -f conftest.err conftest.$ac_ext
3351
3352done
3353# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3354rm -f conftest.err conftest.$ac_ext
3355if $ac_preproc_ok; then
3356 break
3357fi
3358
3359 done
3360 ac_cv_prog_CPP=$CPP
3361
3362fi
3363 CPP=$ac_cv_prog_CPP
3364else
3365 ac_cv_prog_CPP=$CPP
3366fi
3367echo "$as_me:$LINENO: result: $CPP" >&5
3368echo "${ECHO_T}$CPP" >&6
3369ac_preproc_ok=false
3370for ac_c_preproc_warn_flag in '' yes
3371do
3372 # Use a header file that comes with gcc, so configuring glibc
3373 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3375 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003376 # On the NeXT, cc -E runs the code through the compiler's parser,
3377 # not just through cpp. "Syntax error" is here to catch this case.
3378 cat >conftest.$ac_ext <<_ACEOF
3379#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003380/* confdefs.h. */
3381_ACEOF
3382cat confdefs.h >>conftest.$ac_ext
3383cat >>conftest.$ac_ext <<_ACEOF
3384/* end confdefs.h. */
3385#ifdef __STDC__
3386# include <limits.h>
3387#else
3388# include <assert.h>
3389#endif
John Criswell7a73b802003-06-30 21:59:07 +00003390 Syntax error
3391_ACEOF
3392if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3394 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003395 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003396 rm -f conftest.er1
3397 cat conftest.err >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } >/dev/null; then
3400 if test -s conftest.err; then
3401 ac_cpp_err=$ac_c_preproc_warn_flag
3402 else
3403 ac_cpp_err=
3404 fi
3405else
3406 ac_cpp_err=yes
3407fi
3408if test -z "$ac_cpp_err"; then
3409 :
3410else
3411 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003412sed 's/^/| /' conftest.$ac_ext >&5
3413
John Criswell7a73b802003-06-30 21:59:07 +00003414 # Broken: fails on valid input.
3415continue
3416fi
3417rm -f conftest.err conftest.$ac_ext
3418
3419 # OK, works on sane cases. Now check whether non-existent headers
3420 # can be detected and how.
3421 cat >conftest.$ac_ext <<_ACEOF
3422#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003423/* confdefs.h. */
3424_ACEOF
3425cat confdefs.h >>conftest.$ac_ext
3426cat >>conftest.$ac_ext <<_ACEOF
3427/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003428#include <ac_nonexistent.h>
3429_ACEOF
3430if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3432 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003433 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003434 rm -f conftest.er1
3435 cat conftest.err >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } >/dev/null; then
3438 if test -s conftest.err; then
3439 ac_cpp_err=$ac_c_preproc_warn_flag
3440 else
3441 ac_cpp_err=
3442 fi
3443else
3444 ac_cpp_err=yes
3445fi
3446if test -z "$ac_cpp_err"; then
3447 # Broken: success on invalid input.
3448continue
3449else
3450 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003451sed 's/^/| /' conftest.$ac_ext >&5
3452
John Criswell7a73b802003-06-30 21:59:07 +00003453 # Passes both tests.
3454ac_preproc_ok=:
3455break
3456fi
3457rm -f conftest.err conftest.$ac_ext
3458
3459done
3460# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3461rm -f conftest.err conftest.$ac_ext
3462if $ac_preproc_ok; then
3463 :
3464else
John Criswell0c38eaf2003-09-10 15:17:25 +00003465 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3466See \`config.log' for more details." >&5
3467echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3468See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003469 { (exit 1); exit 1; }; }
3470fi
3471
3472ac_ext=c
3473ac_cpp='$CPP $CPPFLAGS'
3474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3476ac_compiler_gnu=$ac_cv_c_compiler_gnu
3477
3478
3479if test "$GCC" != "yes"
3480then
3481 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3482echo "$as_me: error: gcc required but not found" >&2;}
3483 { (exit 1); exit 1; }; }
3484fi
3485
3486if test "$GXX" != "yes"
3487then
3488 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3489echo "$as_me: error: g++ required but not found" >&2;}
3490 { (exit 1); exit 1; }; }
3491fi
3492
John Criswellde00db22003-08-25 16:49:54 +00003493gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3494if test "$gccmajor" -lt "3"
3495then
3496 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3497echo "$as_me: error: gcc 3.x required" >&2;}
3498 { (exit 1); exit 1; }; }
3499fi
3500
John Criswell7a73b802003-06-30 21:59:07 +00003501 echo "$as_me:$LINENO: checking for GNU make" >&5
3502echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3503if test "${_cv_gnu_make_command+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3505else
3506 _cv_gnu_make_command='' ;
3507 for a in "$MAKE" make gmake gnumake ; do
3508 if test -z "$a" ; then continue ; fi ;
3509 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3510 _cv_gnu_make_command=$a ;
3511 break;
3512 fi
3513 done ;
3514
3515fi
3516echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3517echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3518 if test "x$_cv_gnu_make_command" != "x" ; then
3519 ifGNUmake='' ;
3520 else
3521 ifGNUmake='#' ;
3522 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3523echo "${ECHO_T}\"Not found\"" >&6;
3524 fi
3525
3526
3527if test -z "$_cv_gnu_make_command"
3528then
3529 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3530echo "$as_me: error: GNU Make required but not found" >&2;}
3531 { (exit 1); exit 1; }; }
3532fi
3533
3534
3535echo "$as_me:$LINENO: checking " >&5
3536echo $ECHO_N "checking ... $ECHO_C" >&6
3537if test "${ac_cv_has_flex+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3539else
3540 for ac_prog in flex lex
3541do
3542 # Extract the first word of "$ac_prog", so it can be a program name with args.
3543set dummy $ac_prog; ac_word=$2
3544echo "$as_me:$LINENO: checking for $ac_word" >&5
3545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3546if test "${ac_cv_prog_LEX+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3548else
3549 if test -n "$LEX"; then
3550 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3551else
3552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553for as_dir in $PATH
3554do
3555 IFS=$as_save_IFS
3556 test -z "$as_dir" && as_dir=.
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3559 ac_cv_prog_LEX="$ac_prog"
3560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 break 2
3562 fi
3563done
3564done
3565
3566fi
3567fi
3568LEX=$ac_cv_prog_LEX
3569if test -n "$LEX"; then
3570 echo "$as_me:$LINENO: result: $LEX" >&5
3571echo "${ECHO_T}$LEX" >&6
3572else
3573 echo "$as_me:$LINENO: result: no" >&5
3574echo "${ECHO_T}no" >&6
3575fi
3576
3577 test -n "$LEX" && break
3578done
3579test -n "$LEX" || LEX=":"
3580
3581if test -z "$LEXLIB"
3582then
3583 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3584echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3585if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3587else
3588 ac_check_lib_save_LIBS=$LIBS
3589LIBS="-lfl $LIBS"
3590cat >conftest.$ac_ext <<_ACEOF
3591#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003592/* confdefs.h. */
3593_ACEOF
3594cat confdefs.h >>conftest.$ac_ext
3595cat >>conftest.$ac_ext <<_ACEOF
3596/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003597
3598/* Override any gcc2 internal prototype to avoid an error. */
3599#ifdef __cplusplus
3600extern "C"
3601#endif
3602/* We use char because int might match the return type of a gcc2
3603 builtin and then its argument prototype would still apply. */
3604char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003605int
3606main ()
3607{
3608yywrap ();
3609 ;
3610 return 0;
3611}
3612_ACEOF
3613rm -f conftest.$ac_objext conftest$ac_exeext
3614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3615 (eval $ac_link) 2>&5
3616 ac_status=$?
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); } &&
3619 { ac_try='test -s conftest$ac_exeext'
3620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621 (eval $ac_try) 2>&5
3622 ac_status=$?
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); }; }; then
3625 ac_cv_lib_fl_yywrap=yes
3626else
3627 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003628sed 's/^/| /' conftest.$ac_ext >&5
3629
John Criswell7a73b802003-06-30 21:59:07 +00003630ac_cv_lib_fl_yywrap=no
3631fi
3632rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3633LIBS=$ac_check_lib_save_LIBS
3634fi
3635echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3636echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3637if test $ac_cv_lib_fl_yywrap = yes; then
3638 LEXLIB="-lfl"
3639else
3640 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3641echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3642if test "${ac_cv_lib_l_yywrap+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3644else
3645 ac_check_lib_save_LIBS=$LIBS
3646LIBS="-ll $LIBS"
3647cat >conftest.$ac_ext <<_ACEOF
3648#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003649/* confdefs.h. */
3650_ACEOF
3651cat confdefs.h >>conftest.$ac_ext
3652cat >>conftest.$ac_ext <<_ACEOF
3653/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003654
3655/* Override any gcc2 internal prototype to avoid an error. */
3656#ifdef __cplusplus
3657extern "C"
3658#endif
3659/* We use char because int might match the return type of a gcc2
3660 builtin and then its argument prototype would still apply. */
3661char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003662int
3663main ()
3664{
3665yywrap ();
3666 ;
3667 return 0;
3668}
3669_ACEOF
3670rm -f conftest.$ac_objext conftest$ac_exeext
3671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3672 (eval $ac_link) 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); } &&
3676 { ac_try='test -s conftest$ac_exeext'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678 (eval $ac_try) 2>&5
3679 ac_status=$?
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3682 ac_cv_lib_l_yywrap=yes
3683else
3684 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003685sed 's/^/| /' conftest.$ac_ext >&5
3686
John Criswell7a73b802003-06-30 21:59:07 +00003687ac_cv_lib_l_yywrap=no
3688fi
3689rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3690LIBS=$ac_check_lib_save_LIBS
3691fi
3692echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3693echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3694if test $ac_cv_lib_l_yywrap = yes; then
3695 LEXLIB="-ll"
3696fi
3697
3698fi
3699
3700fi
3701
3702if test "x$LEX" != "x:"; then
3703 echo "$as_me:$LINENO: checking lex output file root" >&5
3704echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3705if test "${ac_cv_prog_lex_root+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3707else
3708 # The minimal lex program is just a single line: %%. But some broken lexes
3709# (Solaris, I think it was) want two %% lines, so accommodate them.
3710cat >conftest.l <<_ACEOF
3711%%
3712%%
3713_ACEOF
3714{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3715 (eval $LEX conftest.l) 2>&5
3716 ac_status=$?
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }
3719if test -f lex.yy.c; then
3720 ac_cv_prog_lex_root=lex.yy
3721elif test -f lexyy.c; then
3722 ac_cv_prog_lex_root=lexyy
3723else
3724 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3725echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3726 { (exit 1); exit 1; }; }
3727fi
3728fi
3729echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3730echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3731rm -f conftest.l
3732LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3733
3734echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3735echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3736if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738else
3739 # POSIX says lex can declare yytext either as a pointer or an array; the
3740# default is implementation-dependent. Figure out which it is, since
3741# not all implementations provide the %pointer and %array declarations.
3742ac_cv_prog_lex_yytext_pointer=no
3743echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3744ac_save_LIBS=$LIBS
3745LIBS="$LIBS $LEXLIB"
3746cat >conftest.$ac_ext <<_ACEOF
3747`cat $LEX_OUTPUT_ROOT.c`
3748_ACEOF
3749rm -f conftest.$ac_objext conftest$ac_exeext
3750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3751 (eval $ac_link) 2>&5
3752 ac_status=$?
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); } &&
3755 { ac_try='test -s conftest$ac_exeext'
3756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757 (eval $ac_try) 2>&5
3758 ac_status=$?
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); }; }; then
3761 ac_cv_prog_lex_yytext_pointer=yes
3762else
3763 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003764sed 's/^/| /' conftest.$ac_ext >&5
3765
John Criswell7a73b802003-06-30 21:59:07 +00003766fi
3767rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3768LIBS=$ac_save_LIBS
3769rm -f "${LEX_OUTPUT_ROOT}.c"
3770
3771fi
3772echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3773echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3774if test $ac_cv_prog_lex_yytext_pointer = yes; then
3775
3776cat >>confdefs.h <<\_ACEOF
3777#define YYTEXT_POINTER 1
3778_ACEOF
3779
3780fi
3781
3782fi
3783
3784fi
3785echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3786echo "${ECHO_T}$ac_cv_has_flex" >&6
3787if test "$LEX" != "flex"; then
3788 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3789echo "$as_me: error: flex not found but required" >&2;}
3790 { (exit 1); exit 1; }; }
3791fi
3792
3793echo "$as_me:$LINENO: checking " >&5
3794echo $ECHO_N "checking ... $ECHO_C" >&6
3795if test "${ac_cv_has_bison+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3797else
3798 for ac_prog in 'bison -y' byacc
3799do
3800 # Extract the first word of "$ac_prog", so it can be a program name with args.
3801set dummy $ac_prog; ac_word=$2
3802echo "$as_me:$LINENO: checking for $ac_word" >&5
3803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3804if test "${ac_cv_prog_YACC+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3806else
3807 if test -n "$YACC"; then
3808 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3809else
3810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811for as_dir in $PATH
3812do
3813 IFS=$as_save_IFS
3814 test -z "$as_dir" && as_dir=.
3815 for ac_exec_ext in '' $ac_executable_extensions; do
3816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3817 ac_cv_prog_YACC="$ac_prog"
3818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3819 break 2
3820 fi
3821done
3822done
3823
3824fi
3825fi
3826YACC=$ac_cv_prog_YACC
3827if test -n "$YACC"; then
3828 echo "$as_me:$LINENO: result: $YACC" >&5
3829echo "${ECHO_T}$YACC" >&6
3830else
3831 echo "$as_me:$LINENO: result: no" >&5
3832echo "${ECHO_T}no" >&6
3833fi
3834
3835 test -n "$YACC" && break
3836done
3837test -n "$YACC" || YACC="yacc"
3838
3839
3840fi
3841echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3842echo "${ECHO_T}$ac_cv_has_bison" >&6
3843if test "$YACC" != "bison -y"; then
3844 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3845echo "$as_me: error: bison not found but required" >&2;}
3846 { (exit 1); exit 1; }; }
3847else
3848 YACC=bison
3849
3850fi
3851
3852
3853# Check whether --enable-shared or --disable-shared was given.
3854if test "${enable_shared+set}" = set; then
3855 enableval="$enable_shared"
3856 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003857 case $enableval in
3858 yes) enable_shared=yes ;;
3859 no) enable_shared=no ;;
3860 *)
3861 enable_shared=no
3862 # Look at the argument we got. We use all the common list separators.
3863 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3864 for pkg in $enableval; do
3865 IFS="$lt_save_ifs"
3866 if test "X$pkg" = "X$p"; then
3867 enable_shared=yes
3868 fi
3869 done
3870 IFS="$lt_save_ifs"
3871 ;;
3872 esac
John Criswell7a73b802003-06-30 21:59:07 +00003873else
3874 enable_shared=yes
3875fi;
John Criswell47fdd832003-07-14 16:52:07 +00003876
John Criswell7a73b802003-06-30 21:59:07 +00003877# Check whether --enable-static or --disable-static was given.
3878if test "${enable_static+set}" = set; then
3879 enableval="$enable_static"
3880 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003881 case $enableval in
3882 yes) enable_static=yes ;;
3883 no) enable_static=no ;;
3884 *)
3885 enable_static=no
3886 # Look at the argument we got. We use all the common list separators.
3887 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3888 for pkg in $enableval; do
3889 IFS="$lt_save_ifs"
3890 if test "X$pkg" = "X$p"; then
3891 enable_static=yes
3892 fi
3893 done
3894 IFS="$lt_save_ifs"
3895 ;;
3896 esac
John Criswell7a73b802003-06-30 21:59:07 +00003897else
3898 enable_static=yes
3899fi;
John Criswell47fdd832003-07-14 16:52:07 +00003900
John Criswell7a73b802003-06-30 21:59:07 +00003901# Check whether --enable-fast-install or --disable-fast-install was given.
3902if test "${enable_fast_install+set}" = set; then
3903 enableval="$enable_fast_install"
3904 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003905 case $enableval in
3906 yes) enable_fast_install=yes ;;
3907 no) enable_fast_install=no ;;
3908 *)
3909 enable_fast_install=no
3910 # Look at the argument we got. We use all the common list separators.
3911 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3912 for pkg in $enableval; do
3913 IFS="$lt_save_ifs"
3914 if test "X$pkg" = "X$p"; then
3915 enable_fast_install=yes
3916 fi
3917 done
3918 IFS="$lt_save_ifs"
3919 ;;
3920 esac
John Criswell7a73b802003-06-30 21:59:07 +00003921else
3922 enable_fast_install=yes
3923fi;
John Criswell47fdd832003-07-14 16:52:07 +00003924
3925echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3926echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3927if test "${lt_cv_path_SED+set}" = set; then
3928 echo $ECHO_N "(cached) $ECHO_C" >&6
3929else
3930 # Loop through the user's path and test for sed and gsed.
3931# Then use that list of sed's as ones to test for truncation.
3932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933for as_dir in $PATH
3934do
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for lt_ac_prog in sed gsed; do
3938 for ac_exec_ext in '' $ac_executable_extensions; do
3939 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3940 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3941 fi
3942 done
3943 done
3944done
3945lt_ac_max=0
3946lt_ac_count=0
3947# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3948# along with /bin/sed that truncates output.
3949for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3950 test ! -f $lt_ac_sed && break
3951 cat /dev/null > conftest.in
3952 lt_ac_count=0
3953 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3954 # Check for GNU sed and select it if it is found.
3955 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3956 lt_cv_path_SED=$lt_ac_sed
3957 break
3958 fi
3959 while true; do
3960 cat conftest.in conftest.in >conftest.tmp
3961 mv conftest.tmp conftest.in
3962 cp conftest.in conftest.nl
3963 echo >>conftest.nl
3964 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3965 cmp -s conftest.out conftest.nl || break
3966 # 10000 chars as input seems more than enough
3967 test $lt_ac_count -gt 10 && break
3968 lt_ac_count=`expr $lt_ac_count + 1`
3969 if test $lt_ac_count -gt $lt_ac_max; then
3970 lt_ac_max=$lt_ac_count
3971 lt_cv_path_SED=$lt_ac_sed
3972 fi
3973 done
3974done
3975SED=$lt_cv_path_SED
3976
John Criswell7a73b802003-06-30 21:59:07 +00003977fi
3978
John Criswell47fdd832003-07-14 16:52:07 +00003979echo "$as_me:$LINENO: result: $SED" >&5
3980echo "${ECHO_T}$SED" >&6
3981
3982echo "$as_me:$LINENO: checking for egrep" >&5
3983echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3984if test "${ac_cv_prog_egrep+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3986else
3987 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3988 then ac_cv_prog_egrep='grep -E'
3989 else ac_cv_prog_egrep='egrep'
3990 fi
3991fi
3992echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3993echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3994 EGREP=$ac_cv_prog_egrep
3995
3996
John Criswell7a73b802003-06-30 21:59:07 +00003997
3998# Check whether --with-gnu-ld or --without-gnu-ld was given.
3999if test "${with_gnu_ld+set}" = set; then
4000 withval="$with_gnu_ld"
4001 test "$withval" = no || with_gnu_ld=yes
4002else
4003 with_gnu_ld=no
4004fi;
4005ac_prog=ld
4006if test "$GCC" = yes; then
4007 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00004008 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4009echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004010 case $host in
4011 *-*-mingw*)
4012 # gcc leaves a trailing carriage return which upsets mingw
4013 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4014 *)
4015 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4016 esac
4017 case $ac_prog in
4018 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00004019 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00004020 re_direlt='/[^/][^/]*/\.\./'
4021 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00004022 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00004023 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00004024 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00004025 done
4026 test -z "$LD" && LD="$ac_prog"
4027 ;;
4028 "")
4029 # If it fails, then pretend we aren't using GCC.
4030 ac_prog=ld
4031 ;;
4032 *)
4033 # If it is relative, then search for the first ld in PATH.
4034 with_gnu_ld=unknown
4035 ;;
4036 esac
4037elif test "$with_gnu_ld" = yes; then
4038 echo "$as_me:$LINENO: checking for GNU ld" >&5
4039echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4040else
4041 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4042echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4043fi
4044if test "${lt_cv_path_LD+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4046else
4047 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00004048 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004049 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00004050 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004051 test -z "$ac_dir" && ac_dir=.
4052 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4053 lt_cv_path_LD="$ac_dir/$ac_prog"
4054 # Check to see if the program is GNU ld. I'd rather use --version,
4055 # but apparently some GNU ld's only accept -v.
4056 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00004057 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4058 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004059 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00004060 ;;
4061 *)
John Criswell7a73b802003-06-30 21:59:07 +00004062 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00004063 ;;
4064 esac
John Criswell7a73b802003-06-30 21:59:07 +00004065 fi
4066 done
John Criswell47fdd832003-07-14 16:52:07 +00004067 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004068else
4069 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4070fi
4071fi
4072
4073LD="$lt_cv_path_LD"
4074if test -n "$LD"; then
4075 echo "$as_me:$LINENO: result: $LD" >&5
4076echo "${ECHO_T}$LD" >&6
4077else
4078 echo "$as_me:$LINENO: result: no" >&5
4079echo "${ECHO_T}no" >&6
4080fi
4081test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4082echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4083 { (exit 1); exit 1; }; }
4084echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4085echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4086if test "${lt_cv_prog_gnu_ld+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4088else
4089 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00004090case `"$LD" -v 2>&1 </dev/null` in
4091*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004092 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00004093 ;;
4094*)
John Criswell7a73b802003-06-30 21:59:07 +00004095 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00004096 ;;
4097esac
John Criswell7a73b802003-06-30 21:59:07 +00004098fi
4099echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4100echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4101with_gnu_ld=$lt_cv_prog_gnu_ld
4102
4103
4104echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4105echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4106if test "${lt_cv_ld_reload_flag+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4108else
4109 lt_cv_ld_reload_flag='-r'
4110fi
4111echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4112echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4113reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00004114case $reload_flag in
4115"" | " "*) ;;
4116*) reload_flag=" $reload_flag" ;;
4117esac
4118reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00004119
4120echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4121echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4122if test "${lt_cv_path_NM+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4124else
4125 if test -n "$NM"; then
4126 # Let the user override the test.
4127 lt_cv_path_NM="$NM"
4128else
John Criswell47fdd832003-07-14 16:52:07 +00004129 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004130 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00004131 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004132 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00004133 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4134 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00004135 # Check to see if the nm accepts a BSD-compat flag.
4136 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4137 # nm: unknown option "B" ignored
4138 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00004139 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4140 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00004141 lt_cv_path_NM="$tmp_nm -B"
4142 break
John Criswell47fdd832003-07-14 16:52:07 +00004143 ;;
4144 *)
4145 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4146 */dev/null*)
4147 lt_cv_path_NM="$tmp_nm -p"
4148 break
4149 ;;
4150 *)
4151 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4152 continue # so that we can try to find one that supports BSD flags
4153 ;;
4154 esac
4155 esac
John Criswell7a73b802003-06-30 21:59:07 +00004156 fi
4157 done
John Criswell47fdd832003-07-14 16:52:07 +00004158 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004159 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4160fi
4161fi
John Criswell47fdd832003-07-14 16:52:07 +00004162echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4163echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004164NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00004165
4166echo "$as_me:$LINENO: checking whether ln -s works" >&5
4167echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4168LN_S=$as_ln_s
4169if test "$LN_S" = "ln -s"; then
4170 echo "$as_me:$LINENO: result: yes" >&5
4171echo "${ECHO_T}yes" >&6
4172else
4173 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4174echo "${ECHO_T}no, using $LN_S" >&6
4175fi
4176
John Criswell47fdd832003-07-14 16:52:07 +00004177echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4178echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004179if test "${lt_cv_deplibs_check_method+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4181else
4182 lt_cv_file_magic_cmd='$MAGIC_CMD'
4183lt_cv_file_magic_test_file=
4184lt_cv_deplibs_check_method='unknown'
4185# Need to set the preceding variable on all platforms that support
4186# interlibrary dependencies.
4187# 'none' -- dependencies not supported.
4188# `unknown' -- same as none, but documents that we really don't know.
4189# 'pass_all' -- all dependencies passed with no checks.
4190# 'test_compile' -- check by making test program.
4191# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004192# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004193# If you have `file' or equivalent on your system and you're not sure
4194# whether `pass_all' will *always* work, you probably want this one.
4195
4196case $host_os in
4197aix4* | aix5*)
4198 lt_cv_deplibs_check_method=pass_all
4199 ;;
4200
4201beos*)
4202 lt_cv_deplibs_check_method=pass_all
4203 ;;
4204
4205bsdi4*)
4206 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4207 lt_cv_file_magic_cmd='/usr/bin/file -L'
4208 lt_cv_file_magic_test_file=/shlib/libc.so
4209 ;;
4210
4211cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00004212 # win32_libid is a shell function defined in ltmain.sh
4213 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4214 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00004215 ;;
4216
4217darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004218 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00004219 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4220 lt_cv_file_magic_cmd='/usr/bin/file -L'
4221 case "$host_os" in
4222 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00004223 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00004224 ;;
4225 *) # Darwin 1.3 on
4226 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4227 ;;
4228 esac
John Criswell47fdd832003-07-14 16:52:07 +00004229 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004230 ;;
4231
4232freebsd*)
4233 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4234 case $host_cpu in
4235 i*86 )
4236 # Not sure whether the presence of OpenBSD here was a mistake.
4237 # Let's accept both of them until this is cleared up.
4238 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4239 lt_cv_file_magic_cmd=/usr/bin/file
4240 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4241 ;;
4242 esac
4243 else
4244 lt_cv_deplibs_check_method=pass_all
4245 fi
4246 ;;
4247
4248gnu*)
4249 lt_cv_deplibs_check_method=pass_all
4250 ;;
4251
John Criswell47fdd832003-07-14 16:52:07 +00004252hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004253 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004254 case "$host_cpu" in
4255 ia64*)
4256 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4257 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4258 ;;
4259 hppa*64*)
4260 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]'
4261 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4262 ;;
4263 *)
4264 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4265 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4266 ;;
4267 esac
John Criswell7a73b802003-06-30 21:59:07 +00004268 ;;
4269
John Criswell47fdd832003-07-14 16:52:07 +00004270irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004271 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004272 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004273 # this will be overridden with pass_all, but let us keep it just in case
4274 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4275 ;;
4276 *)
4277 case $LD in
4278 *-32|*"-32 ") libmagic=32-bit;;
4279 *-n32|*"-n32 ") libmagic=N32;;
4280 *-64|*"-64 ") libmagic=64-bit;;
4281 *) libmagic=never-match;;
4282 esac
4283 # this will be overridden with pass_all, but let us keep it just in case
4284 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4285 ;;
4286 esac
4287 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4288 lt_cv_deplibs_check_method=pass_all
4289 ;;
4290
4291# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004292linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004293 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004294 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004295 lt_cv_deplibs_check_method=pass_all ;;
4296 *)
4297 # glibc up to 2.1.1 does not perform some relocations on ARM
4298 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4299 esac
4300 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4301 ;;
4302
4303netbsd*)
4304 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004305 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004306 else
John Criswell47fdd832003-07-14 16:52:07 +00004307 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004308 fi
4309 ;;
4310
4311newos6*)
4312 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4313 lt_cv_file_magic_cmd=/usr/bin/file
4314 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4315 ;;
4316
John Criswell47fdd832003-07-14 16:52:07 +00004317nto-qnx)
4318 lt_cv_deplibs_check_method=unknown
4319 ;;
4320
John Criswell7a73b802003-06-30 21:59:07 +00004321openbsd*)
4322 lt_cv_file_magic_cmd=/usr/bin/file
4323 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4324 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4325 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4326 else
4327 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4328 fi
4329 ;;
4330
4331osf3* | osf4* | osf5*)
4332 # this will be overridden with pass_all, but let us keep it just in case
4333 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4334 lt_cv_file_magic_test_file=/shlib/libc.so
4335 lt_cv_deplibs_check_method=pass_all
4336 ;;
4337
4338sco3.2v5*)
4339 lt_cv_deplibs_check_method=pass_all
4340 ;;
4341
4342solaris*)
4343 lt_cv_deplibs_check_method=pass_all
4344 lt_cv_file_magic_test_file=/lib/libc.so
4345 ;;
4346
John Criswell7a73b802003-06-30 21:59:07 +00004347sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4348 case $host_vendor in
4349 motorola)
4350 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]'
4351 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4352 ;;
4353 ncr)
4354 lt_cv_deplibs_check_method=pass_all
4355 ;;
4356 sequent)
4357 lt_cv_file_magic_cmd='/bin/file'
4358 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4359 ;;
4360 sni)
4361 lt_cv_file_magic_cmd='/bin/file'
4362 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4363 lt_cv_file_magic_test_file=/lib/libc.so
4364 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004365 siemens)
4366 lt_cv_deplibs_check_method=pass_all
4367 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004368 esac
4369 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004370
4371sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4372 lt_cv_deplibs_check_method=pass_all
4373 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004374esac
4375
4376fi
4377echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4378echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4379file_magic_cmd=$lt_cv_file_magic_cmd
4380deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004381test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004382
4383
4384
4385
John Criswell47fdd832003-07-14 16:52:07 +00004386# If no C compiler was specified, use CC.
4387LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004388
John Criswell47fdd832003-07-14 16:52:07 +00004389# Allow CC to be a program name with arguments.
4390compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004391
John Criswell47fdd832003-07-14 16:52:07 +00004392# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4393if test "${enable_libtool_lock+set}" = set; then
4394 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004395
John Criswell47fdd832003-07-14 16:52:07 +00004396fi;
4397test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004398
John Criswell47fdd832003-07-14 16:52:07 +00004399# Some flags need to be propagated to the compiler or linker for good
4400# libtool support.
4401case $host in
4402ia64-*-hpux*)
4403 # Find out which ABI we are using.
4404 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4406 (eval $ac_compile) 2>&5
4407 ac_status=$?
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004410 case `/usr/bin/file conftest.$ac_objext` in
4411 *ELF-32*)
4412 HPUX_IA64_MODE="32"
4413 ;;
4414 *ELF-64*)
4415 HPUX_IA64_MODE="64"
4416 ;;
4417 esac
4418 fi
4419 rm -rf conftest*
4420 ;;
4421*-*-irix6*)
4422 # Find out which ABI we are using.
John Criswell78227592003-09-30 19:41:15 +00004423 echo '#line 4429 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4425 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004426 ac_status=$?
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004428 (exit $ac_status); }; then
4429 if test "$lt_cv_prog_gnu_ld" = yes; then
4430 case `/usr/bin/file conftest.$ac_objext` in
4431 *32-bit*)
4432 LD="${LD-ld} -melf32bsmip"
4433 ;;
4434 *N32*)
4435 LD="${LD-ld} -melf32bmipn32"
4436 ;;
4437 *64-bit*)
4438 LD="${LD-ld} -melf64bmip"
4439 ;;
4440 esac
4441 else
4442 case `/usr/bin/file conftest.$ac_objext` in
4443 *32-bit*)
4444 LD="${LD-ld} -32"
4445 ;;
4446 *N32*)
4447 LD="${LD-ld} -n32"
4448 ;;
4449 *64-bit*)
4450 LD="${LD-ld} -64"
4451 ;;
4452 esac
4453 fi
4454 fi
4455 rm -rf conftest*
4456 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004457
John Criswell47fdd832003-07-14 16:52:07 +00004458x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4459 # Find out which ABI we are using.
4460 echo 'int i;' > conftest.$ac_ext
4461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4462 (eval $ac_compile) 2>&5
4463 ac_status=$?
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; then
4466 case "`/usr/bin/file conftest.o`" in
4467 *32-bit*)
4468 case $host in
4469 x86_64-*linux*)
4470 LD="${LD-ld} -m elf_i386"
4471 ;;
4472 ppc64-*linux*)
4473 LD="${LD-ld} -m elf32ppclinux"
4474 ;;
4475 s390x-*linux*)
4476 LD="${LD-ld} -m elf_s390"
4477 ;;
4478 sparc64-*linux*)
4479 LD="${LD-ld} -m elf32_sparc"
4480 ;;
4481 esac
4482 ;;
4483 *64-bit*)
4484 case $host in
4485 x86_64-*linux*)
4486 LD="${LD-ld} -m elf_x86_64"
4487 ;;
4488 ppc*-*linux*|powerpc*-*linux*)
4489 LD="${LD-ld} -m elf64ppc"
4490 ;;
4491 s390*-*linux*)
4492 LD="${LD-ld} -m elf64_s390"
4493 ;;
4494 sparc*-*linux*)
4495 LD="${LD-ld} -m elf64_sparc"
4496 ;;
4497 esac
4498 ;;
4499 esac
4500 fi
4501 rm -rf conftest*
4502 ;;
4503
4504*-*-sco3.2v5*)
4505 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4506 SAVE_CFLAGS="$CFLAGS"
4507 CFLAGS="$CFLAGS -belf"
4508 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4509echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4510if test "${lt_cv_cc_needs_belf+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4512else
4513 ac_ext=c
4514ac_cpp='$CPP $CPPFLAGS'
4515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4517ac_compiler_gnu=$ac_cv_c_compiler_gnu
4518
4519 cat >conftest.$ac_ext <<_ACEOF
4520#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004521/* confdefs.h. */
4522_ACEOF
4523cat confdefs.h >>conftest.$ac_ext
4524cat >>conftest.$ac_ext <<_ACEOF
4525/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004526
John Criswell47fdd832003-07-14 16:52:07 +00004527int
4528main ()
John Criswell7a73b802003-06-30 21:59:07 +00004529{
John Criswell7a73b802003-06-30 21:59:07 +00004530
John Criswell47fdd832003-07-14 16:52:07 +00004531 ;
4532 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004533}
John Criswell47fdd832003-07-14 16:52:07 +00004534_ACEOF
4535rm -f conftest.$ac_objext conftest$ac_exeext
4536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004537 (eval $ac_link) 2>&5
4538 ac_status=$?
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004540 (exit $ac_status); } &&
4541 { ac_try='test -s conftest$ac_exeext'
4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543 (eval $ac_try) 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; }; then
4547 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004548else
John Criswell47fdd832003-07-14 16:52:07 +00004549 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004550sed 's/^/| /' conftest.$ac_ext >&5
4551
John Criswell47fdd832003-07-14 16:52:07 +00004552lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004553fi
John Criswell47fdd832003-07-14 16:52:07 +00004554rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4555 ac_ext=c
4556ac_cpp='$CPP $CPPFLAGS'
4557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4559ac_compiler_gnu=$ac_cv_c_compiler_gnu
4560
John Criswell7a73b802003-06-30 21:59:07 +00004561fi
John Criswell47fdd832003-07-14 16:52:07 +00004562echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4563echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4564 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4565 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4566 CFLAGS="$SAVE_CFLAGS"
4567 fi
4568 ;;
4569
4570esac
4571
4572need_locks="$enable_libtool_lock"
4573
John Criswell7a73b802003-06-30 21:59:07 +00004574
4575
4576echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4577echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4578if test "${ac_cv_header_stdc+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4580else
4581 cat >conftest.$ac_ext <<_ACEOF
4582#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004583/* confdefs.h. */
4584_ACEOF
4585cat confdefs.h >>conftest.$ac_ext
4586cat >>conftest.$ac_ext <<_ACEOF
4587/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004588#include <stdlib.h>
4589#include <stdarg.h>
4590#include <string.h>
4591#include <float.h>
4592
John Criswell0c38eaf2003-09-10 15:17:25 +00004593int
4594main ()
4595{
4596
4597 ;
4598 return 0;
4599}
John Criswell7a73b802003-06-30 21:59:07 +00004600_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004601rm -f conftest.$ac_objext
4602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4603 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004604 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004606 (exit $ac_status); } &&
4607 { ac_try='test -s conftest.$ac_objext'
4608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609 (eval $ac_try) 2>&5
4610 ac_status=$?
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004613 ac_cv_header_stdc=yes
4614else
4615 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004616sed 's/^/| /' conftest.$ac_ext >&5
4617
4618ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004619fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004620rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004621
4622if test $ac_cv_header_stdc = yes; then
4623 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4624 cat >conftest.$ac_ext <<_ACEOF
4625#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004626/* confdefs.h. */
4627_ACEOF
4628cat confdefs.h >>conftest.$ac_ext
4629cat >>conftest.$ac_ext <<_ACEOF
4630/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004631#include <string.h>
4632
4633_ACEOF
4634if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004635 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004636 :
4637else
4638 ac_cv_header_stdc=no
4639fi
4640rm -f conftest*
4641
4642fi
4643
4644if test $ac_cv_header_stdc = yes; then
4645 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4646 cat >conftest.$ac_ext <<_ACEOF
4647#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004648/* confdefs.h. */
4649_ACEOF
4650cat confdefs.h >>conftest.$ac_ext
4651cat >>conftest.$ac_ext <<_ACEOF
4652/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004653#include <stdlib.h>
4654
4655_ACEOF
4656if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004657 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004658 :
4659else
4660 ac_cv_header_stdc=no
4661fi
4662rm -f conftest*
4663
4664fi
4665
4666if test $ac_cv_header_stdc = yes; then
4667 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4668 if test "$cross_compiling" = yes; then
4669 :
4670else
4671 cat >conftest.$ac_ext <<_ACEOF
4672#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004673/* confdefs.h. */
4674_ACEOF
4675cat confdefs.h >>conftest.$ac_ext
4676cat >>conftest.$ac_ext <<_ACEOF
4677/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004678#include <ctype.h>
4679#if ((' ' & 0x0FF) == 0x020)
4680# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4681# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4682#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004683# define ISLOWER(c) \
4684 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004685 || ('j' <= (c) && (c) <= 'r') \
4686 || ('s' <= (c) && (c) <= 'z'))
4687# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4688#endif
4689
4690#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4691int
4692main ()
4693{
4694 int i;
4695 for (i = 0; i < 256; i++)
4696 if (XOR (islower (i), ISLOWER (i))
4697 || toupper (i) != TOUPPER (i))
4698 exit(2);
4699 exit (0);
4700}
4701_ACEOF
4702rm -f conftest$ac_exeext
4703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4704 (eval $ac_link) 2>&5
4705 ac_status=$?
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709 (eval $ac_try) 2>&5
4710 ac_status=$?
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); }; }; then
4713 :
4714else
4715 echo "$as_me: program exited with status $ac_status" >&5
4716echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004717sed 's/^/| /' conftest.$ac_ext >&5
4718
John Criswell7a73b802003-06-30 21:59:07 +00004719( exit $ac_status )
4720ac_cv_header_stdc=no
4721fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004722rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004723fi
4724fi
4725fi
4726echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4727echo "${ECHO_T}$ac_cv_header_stdc" >&6
4728if test $ac_cv_header_stdc = yes; then
4729
4730cat >>confdefs.h <<\_ACEOF
4731#define STDC_HEADERS 1
4732_ACEOF
4733
4734fi
4735
4736# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4747 inttypes.h stdint.h unistd.h
4748do
4749as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4750echo "$as_me:$LINENO: checking for $ac_header" >&5
4751echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4752if eval "test \"\${$as_ac_Header+set}\" = set"; then
4753 echo $ECHO_N "(cached) $ECHO_C" >&6
4754else
4755 cat >conftest.$ac_ext <<_ACEOF
4756#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004757/* confdefs.h. */
4758_ACEOF
4759cat confdefs.h >>conftest.$ac_ext
4760cat >>conftest.$ac_ext <<_ACEOF
4761/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004762$ac_includes_default
4763
4764#include <$ac_header>
4765_ACEOF
4766rm -f conftest.$ac_objext
4767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4768 (eval $ac_compile) 2>&5
4769 ac_status=$?
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); } &&
4772 { ac_try='test -s conftest.$ac_objext'
4773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774 (eval $ac_try) 2>&5
4775 ac_status=$?
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); }; }; then
4778 eval "$as_ac_Header=yes"
4779else
4780 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004781sed 's/^/| /' conftest.$ac_ext >&5
4782
John Criswell7a73b802003-06-30 21:59:07 +00004783eval "$as_ac_Header=no"
4784fi
4785rm -f conftest.$ac_objext conftest.$ac_ext
4786fi
4787echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4788echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4789if test `eval echo '${'$as_ac_Header'}'` = yes; then
4790 cat >>confdefs.h <<_ACEOF
4791#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4792_ACEOF
4793
4794fi
4795
4796done
4797
4798
4799
4800for ac_header in dlfcn.h
4801do
4802as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4803if eval "test \"\${$as_ac_Header+set}\" = set"; then
4804 echo "$as_me:$LINENO: checking for $ac_header" >&5
4805echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4806if eval "test \"\${$as_ac_Header+set}\" = set"; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4808fi
4809echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4810echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4811else
4812 # Is the header compilable?
4813echo "$as_me:$LINENO: checking $ac_header usability" >&5
4814echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4815cat >conftest.$ac_ext <<_ACEOF
4816#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004817/* confdefs.h. */
4818_ACEOF
4819cat confdefs.h >>conftest.$ac_ext
4820cat >>conftest.$ac_ext <<_ACEOF
4821/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004822$ac_includes_default
4823#include <$ac_header>
4824_ACEOF
4825rm -f conftest.$ac_objext
4826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4827 (eval $ac_compile) 2>&5
4828 ac_status=$?
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } &&
4831 { ac_try='test -s conftest.$ac_objext'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833 (eval $ac_try) 2>&5
4834 ac_status=$?
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; }; then
4837 ac_header_compiler=yes
4838else
4839 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004840sed 's/^/| /' conftest.$ac_ext >&5
4841
John Criswell7a73b802003-06-30 21:59:07 +00004842ac_header_compiler=no
4843fi
4844rm -f conftest.$ac_objext conftest.$ac_ext
4845echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4846echo "${ECHO_T}$ac_header_compiler" >&6
4847
4848# Is the header present?
4849echo "$as_me:$LINENO: checking $ac_header presence" >&5
4850echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4851cat >conftest.$ac_ext <<_ACEOF
4852#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004853/* confdefs.h. */
4854_ACEOF
4855cat confdefs.h >>conftest.$ac_ext
4856cat >>conftest.$ac_ext <<_ACEOF
4857/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004858#include <$ac_header>
4859_ACEOF
4860if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4862 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004863 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004864 rm -f conftest.er1
4865 cat conftest.err >&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } >/dev/null; then
4868 if test -s conftest.err; then
4869 ac_cpp_err=$ac_c_preproc_warn_flag
4870 else
4871 ac_cpp_err=
4872 fi
4873else
4874 ac_cpp_err=yes
4875fi
4876if test -z "$ac_cpp_err"; then
4877 ac_header_preproc=yes
4878else
4879 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004880sed 's/^/| /' conftest.$ac_ext >&5
4881
John Criswell7a73b802003-06-30 21:59:07 +00004882 ac_header_preproc=no
4883fi
4884rm -f conftest.err conftest.$ac_ext
4885echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4886echo "${ECHO_T}$ac_header_preproc" >&6
4887
4888# So? What about this header?
4889case $ac_header_compiler:$ac_header_preproc in
4890 yes:no )
4891 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4892echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004894echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4895 (
4896 cat <<\_ASBOX
4897## ------------------------------------ ##
4898## Report this to bug-autoconf@gnu.org. ##
4899## ------------------------------------ ##
4900_ASBOX
4901 ) |
4902 sed "s/^/$as_me: WARNING: /" >&2
4903 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004904 no:yes )
4905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4906echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4908echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004910echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4911 (
4912 cat <<\_ASBOX
4913## ------------------------------------ ##
4914## Report this to bug-autoconf@gnu.org. ##
4915## ------------------------------------ ##
4916_ASBOX
4917 ) |
4918 sed "s/^/$as_me: WARNING: /" >&2
4919 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004920esac
4921echo "$as_me:$LINENO: checking for $ac_header" >&5
4922echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4923if eval "test \"\${$as_ac_Header+set}\" = set"; then
4924 echo $ECHO_N "(cached) $ECHO_C" >&6
4925else
4926 eval "$as_ac_Header=$ac_header_preproc"
4927fi
4928echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4929echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4930
4931fi
4932if test `eval echo '${'$as_ac_Header'}'` = yes; then
4933 cat >>confdefs.h <<_ACEOF
4934#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4935_ACEOF
4936
4937fi
4938
4939done
4940
John Criswell47fdd832003-07-14 16:52:07 +00004941ac_ext=cc
4942ac_cpp='$CXXCPP $CPPFLAGS'
4943ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4944ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4945ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4946echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4947echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4948if test -z "$CXXCPP"; then
4949 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004950 echo $ECHO_N "(cached) $ECHO_C" >&6
4951else
John Criswell47fdd832003-07-14 16:52:07 +00004952 # Double quotes because CXXCPP needs to be expanded
4953 for CXXCPP in "$CXX -E" "/lib/cpp"
4954 do
4955 ac_preproc_ok=false
4956for ac_cxx_preproc_warn_flag in '' yes
4957do
4958 # Use a header file that comes with gcc, so configuring glibc
4959 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4961 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004962 # On the NeXT, cc -E runs the code through the compiler's parser,
4963 # not just through cpp. "Syntax error" is here to catch this case.
4964 cat >conftest.$ac_ext <<_ACEOF
4965#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004966/* confdefs.h. */
4967_ACEOF
4968cat confdefs.h >>conftest.$ac_ext
4969cat >>conftest.$ac_ext <<_ACEOF
4970/* end confdefs.h. */
4971#ifdef __STDC__
4972# include <limits.h>
4973#else
4974# include <assert.h>
4975#endif
John Criswell47fdd832003-07-14 16:52:07 +00004976 Syntax error
4977_ACEOF
4978if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4980 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004981 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004982 rm -f conftest.er1
4983 cat conftest.err >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } >/dev/null; then
4986 if test -s conftest.err; then
4987 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004988 else
John Criswell47fdd832003-07-14 16:52:07 +00004989 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004990 fi
John Criswell47fdd832003-07-14 16:52:07 +00004991else
4992 ac_cpp_err=yes
4993fi
4994if test -z "$ac_cpp_err"; then
4995 :
4996else
4997 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004998sed 's/^/| /' conftest.$ac_ext >&5
4999
John Criswell47fdd832003-07-14 16:52:07 +00005000 # Broken: fails on valid input.
5001continue
5002fi
5003rm -f conftest.err conftest.$ac_ext
5004
5005 # OK, works on sane cases. Now check whether non-existent headers
5006 # can be detected and how.
5007 cat >conftest.$ac_ext <<_ACEOF
5008#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005009/* confdefs.h. */
5010_ACEOF
5011cat confdefs.h >>conftest.$ac_ext
5012cat >>conftest.$ac_ext <<_ACEOF
5013/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005014#include <ac_nonexistent.h>
5015_ACEOF
5016if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5018 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005019 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005020 rm -f conftest.er1
5021 cat conftest.err >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); } >/dev/null; then
5024 if test -s conftest.err; then
5025 ac_cpp_err=$ac_cxx_preproc_warn_flag
5026 else
5027 ac_cpp_err=
5028 fi
5029else
5030 ac_cpp_err=yes
5031fi
5032if test -z "$ac_cpp_err"; then
5033 # Broken: success on invalid input.
5034continue
5035else
5036 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005037sed 's/^/| /' conftest.$ac_ext >&5
5038
John Criswell47fdd832003-07-14 16:52:07 +00005039 # Passes both tests.
5040ac_preproc_ok=:
5041break
5042fi
5043rm -f conftest.err conftest.$ac_ext
5044
5045done
5046# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5047rm -f conftest.err conftest.$ac_ext
5048if $ac_preproc_ok; then
5049 break
John Criswell7a73b802003-06-30 21:59:07 +00005050fi
5051
John Criswell47fdd832003-07-14 16:52:07 +00005052 done
5053 ac_cv_prog_CXXCPP=$CXXCPP
5054
5055fi
5056 CXXCPP=$ac_cv_prog_CXXCPP
5057else
5058 ac_cv_prog_CXXCPP=$CXXCPP
5059fi
5060echo "$as_me:$LINENO: result: $CXXCPP" >&5
5061echo "${ECHO_T}$CXXCPP" >&6
5062ac_preproc_ok=false
5063for ac_cxx_preproc_warn_flag in '' yes
5064do
5065 # Use a header file that comes with gcc, so configuring glibc
5066 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00005067 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5068 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005069 # On the NeXT, cc -E runs the code through the compiler's parser,
5070 # not just through cpp. "Syntax error" is here to catch this case.
5071 cat >conftest.$ac_ext <<_ACEOF
5072#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005073/* confdefs.h. */
5074_ACEOF
5075cat confdefs.h >>conftest.$ac_ext
5076cat >>conftest.$ac_ext <<_ACEOF
5077/* end confdefs.h. */
5078#ifdef __STDC__
5079# include <limits.h>
5080#else
5081# include <assert.h>
5082#endif
John Criswell47fdd832003-07-14 16:52:07 +00005083 Syntax error
5084_ACEOF
5085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5087 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005088 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005089 rm -f conftest.er1
5090 cat conftest.err >&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); } >/dev/null; then
5093 if test -s conftest.err; then
5094 ac_cpp_err=$ac_cxx_preproc_warn_flag
5095 else
5096 ac_cpp_err=
5097 fi
5098else
5099 ac_cpp_err=yes
5100fi
5101if test -z "$ac_cpp_err"; then
5102 :
5103else
5104 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005105sed 's/^/| /' conftest.$ac_ext >&5
5106
John Criswell47fdd832003-07-14 16:52:07 +00005107 # Broken: fails on valid input.
5108continue
5109fi
5110rm -f conftest.err conftest.$ac_ext
5111
5112 # OK, works on sane cases. Now check whether non-existent headers
5113 # can be detected and how.
5114 cat >conftest.$ac_ext <<_ACEOF
5115#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005116/* confdefs.h. */
5117_ACEOF
5118cat confdefs.h >>conftest.$ac_ext
5119cat >>conftest.$ac_ext <<_ACEOF
5120/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005121#include <ac_nonexistent.h>
5122_ACEOF
5123if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5125 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005126 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005127 rm -f conftest.er1
5128 cat conftest.err >&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } >/dev/null; then
5131 if test -s conftest.err; then
5132 ac_cpp_err=$ac_cxx_preproc_warn_flag
5133 else
5134 ac_cpp_err=
5135 fi
5136else
5137 ac_cpp_err=yes
5138fi
5139if test -z "$ac_cpp_err"; then
5140 # Broken: success on invalid input.
5141continue
5142else
5143 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005144sed 's/^/| /' conftest.$ac_ext >&5
5145
John Criswell47fdd832003-07-14 16:52:07 +00005146 # Passes both tests.
5147ac_preproc_ok=:
5148break
5149fi
5150rm -f conftest.err conftest.$ac_ext
5151
5152done
5153# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5154rm -f conftest.err conftest.$ac_ext
5155if $ac_preproc_ok; then
5156 :
5157else
John Criswell0c38eaf2003-09-10 15:17:25 +00005158 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5159See \`config.log' for more details." >&5
5160echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5161See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005162 { (exit 1); exit 1; }; }
5163fi
5164
5165ac_ext=cc
5166ac_cpp='$CXXCPP $CPPFLAGS'
5167ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5168ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5169ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5170
5171
5172ac_ext=f
5173ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5174ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5175ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5176if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00005177 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
John Criswell47fdd832003-07-14 16:52:07 +00005178 do
5179 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5180set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5181echo "$as_me:$LINENO: checking for $ac_word" >&5
5182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5183if test "${ac_cv_prog_F77+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5185else
5186 if test -n "$F77"; then
5187 ac_cv_prog_F77="$F77" # Let the user override the test.
5188else
5189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190for as_dir in $PATH
5191do
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5199 fi
5200done
5201done
5202
5203fi
5204fi
5205F77=$ac_cv_prog_F77
5206if test -n "$F77"; then
5207 echo "$as_me:$LINENO: result: $F77" >&5
5208echo "${ECHO_T}$F77" >&6
5209else
5210 echo "$as_me:$LINENO: result: no" >&5
5211echo "${ECHO_T}no" >&6
5212fi
5213
5214 test -n "$F77" && break
5215 done
5216fi
5217if test -z "$F77"; then
5218 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00005219 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
John Criswell47fdd832003-07-14 16:52:07 +00005220do
5221 # Extract the first word of "$ac_prog", so it can be a program name with args.
5222set dummy $ac_prog; ac_word=$2
5223echo "$as_me:$LINENO: checking for $ac_word" >&5
5224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5225if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
5227else
5228 if test -n "$ac_ct_F77"; then
5229 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5230else
5231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232for as_dir in $PATH
5233do
5234 IFS=$as_save_IFS
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238 ac_cv_prog_ac_ct_F77="$ac_prog"
5239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 break 2
5241 fi
5242done
5243done
5244
5245fi
5246fi
5247ac_ct_F77=$ac_cv_prog_ac_ct_F77
5248if test -n "$ac_ct_F77"; then
5249 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5250echo "${ECHO_T}$ac_ct_F77" >&6
5251else
5252 echo "$as_me:$LINENO: result: no" >&5
5253echo "${ECHO_T}no" >&6
5254fi
5255
5256 test -n "$ac_ct_F77" && break
5257done
5258
5259 F77=$ac_ct_F77
5260fi
5261
5262
5263# Provide some information about the compiler.
John Criswell78227592003-09-30 19:41:15 +00005264echo "$as_me:5270:" \
John Criswell47fdd832003-07-14 16:52:07 +00005265 "checking for Fortran 77 compiler version" >&5
5266ac_compiler=`set X $ac_compile; echo $2`
5267{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5268 (eval $ac_compiler --version </dev/null >&5) 2>&5
5269 ac_status=$?
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }
5272{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5273 (eval $ac_compiler -v </dev/null >&5) 2>&5
5274 ac_status=$?
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }
5277{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5278 (eval $ac_compiler -V </dev/null >&5) 2>&5
5279 ac_status=$?
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }
5282
5283# If we don't use `.F' as extension, the preprocessor is not run on the
5284# input file.
5285ac_save_ext=$ac_ext
5286ac_ext=F
5287echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5288echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5289if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5291else
5292 cat >conftest.$ac_ext <<_ACEOF
5293 program main
5294#ifndef __GNUC__
5295 choke me
5296#endif
5297
5298 end
5299_ACEOF
5300rm -f conftest.$ac_objext
5301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5302 (eval $ac_compile) 2>&5
5303 ac_status=$?
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); } &&
5306 { ac_try='test -s conftest.$ac_objext'
5307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308 (eval $ac_try) 2>&5
5309 ac_status=$?
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); }; }; then
5312 ac_compiler_gnu=yes
5313else
5314 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005315sed 's/^/| /' conftest.$ac_ext >&5
5316
John Criswell47fdd832003-07-14 16:52:07 +00005317ac_compiler_gnu=no
5318fi
5319rm -f conftest.$ac_objext conftest.$ac_ext
5320ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5321
5322fi
5323echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5324echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5325ac_ext=$ac_save_ext
5326G77=`test $ac_compiler_gnu = yes && echo yes`
5327ac_test_FFLAGS=${FFLAGS+set}
5328ac_save_FFLAGS=$FFLAGS
5329FFLAGS=
5330echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5331echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5332if test "${ac_cv_prog_f77_g+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5334else
5335 FFLAGS=-g
5336cat >conftest.$ac_ext <<_ACEOF
5337 program main
5338
5339 end
5340_ACEOF
5341rm -f conftest.$ac_objext
5342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5343 (eval $ac_compile) 2>&5
5344 ac_status=$?
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } &&
5347 { ac_try='test -s conftest.$ac_objext'
5348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349 (eval $ac_try) 2>&5
5350 ac_status=$?
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); }; }; then
5353 ac_cv_prog_f77_g=yes
5354else
5355 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005356sed 's/^/| /' conftest.$ac_ext >&5
5357
John Criswell47fdd832003-07-14 16:52:07 +00005358ac_cv_prog_f77_g=no
5359fi
5360rm -f conftest.$ac_objext conftest.$ac_ext
5361
5362fi
5363echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5364echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5365if test "$ac_test_FFLAGS" = set; then
5366 FFLAGS=$ac_save_FFLAGS
5367elif test $ac_cv_prog_f77_g = yes; then
5368 if test "$G77" = yes; then
5369 FFLAGS="-g -O2"
5370 else
5371 FFLAGS="-g"
5372 fi
5373else
5374 if test "$G77" = yes; then
5375 FFLAGS="-O2"
5376 else
5377 FFLAGS=
5378 fi
5379fi
5380ac_ext=c
5381ac_cpp='$CPP $CPPFLAGS'
5382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5384ac_compiler_gnu=$ac_cv_c_compiler_gnu
5385
5386
5387
5388# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5389
5390# find the maximum length of command line arguments
5391echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5392echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5393if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5394 echo $ECHO_N "(cached) $ECHO_C" >&6
5395else
5396 i=0
5397 testring="ABCD"
5398
5399 case $build_os in
5400 msdosdjgpp*)
5401 # On DJGPP, this test can blow up pretty badly due to problems in libc
5402 # (any single argument exceeding 2000 bytes causes a buffer overrun
5403 # during glob expansion). Even if it were fixed, the result of this
5404 # check would be larger than it should be.
5405 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5406 ;;
5407
5408 gnu*)
5409 # Under GNU Hurd, this test is not required because there is
5410 # no limit to the length of command line arguments.
5411 # Libtool will interpret -1 as no limit whatsoever
5412 lt_cv_sys_max_cmd_len=-1;
5413 ;;
5414
5415 cygwin* | mingw*)
5416 # On Win9x/ME, this test blows up -- it succeeds, but takes
5417 # about 5 minutes as the teststring grows exponentially.
5418 # Worse, since 9x/ME are not pre-emptively multitasking,
5419 # you end up with a "frozen" computer, even though with patience
5420 # the test eventually succeeds (with a max line length of 256k).
5421 # Instead, let's just punt: use the minimum linelength reported by
5422 # all of the supported platforms: 8192 (on NT/2K/XP).
5423 lt_cv_sys_max_cmd_len=8192;
5424 ;;
5425
5426 *)
5427 # If test is not a shell built-in, we'll probably end up computing a
5428 # maximum length that is only half of the actual maximum length, but
5429 # we can't tell.
5430 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5431 = "XX$testring") >/dev/null 2>&1 &&
5432 new_result=`expr "X$testring" : ".*" 2>&1` &&
5433 lt_cv_sys_max_cmd_len=$new_result &&
5434 test $i != 17 # 1/2 MB should be enough
5435 do
5436 i=`expr $i + 1`
5437 testring=$testring$testring
5438 done
5439 testring=
5440 # Add a significant safety factor because C++ compilers can tack on massive
5441 # amounts of additional arguments before passing them to the linker.
5442 # It appears as though 1/2 is a usable value.
5443 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5444 ;;
5445 esac
5446
5447fi
5448
5449if test -n $lt_cv_sys_max_cmd_len ; then
5450 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5451echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5452else
5453 echo "$as_me:$LINENO: result: none" >&5
5454echo "${ECHO_T}none" >&6
5455fi
5456
5457
5458
5459
5460# Check for command to grab the raw symbol name followed by C symbol from nm.
5461echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5462echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5463if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5465else
5466
5467# These are sane defaults that work on at least a few old systems.
5468# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5469
5470# Character class describing NM global symbol codes.
5471symcode='[BCDEGRST]'
5472
5473# Regexp to match symbols that can be accessed directly from C.
5474sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5475
5476# Transform the above into a raw symbol and a C symbol.
5477symxfrm='\1 \2\3 \3'
5478
5479# Transform an extracted symbol line into a proper C declaration
5480lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5481
5482# Transform an extracted symbol line into symbol name and symbol address
5483lt_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'"
5484
5485# Define system-specific variables.
5486case $host_os in
5487aix*)
5488 symcode='[BCDT]'
5489 ;;
5490cygwin* | mingw* | pw32*)
5491 symcode='[ABCDGISTW]'
5492 ;;
5493hpux*) # Its linker distinguishes data from code symbols
5494 if test "$host_cpu" = ia64; then
5495 symcode='[ABCDEGRST]'
5496 fi
5497 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5498 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'"
5499 ;;
5500irix* | nonstopux*)
5501 symcode='[BCDEGRST]'
5502 ;;
5503osf*)
5504 symcode='[BCDEGQRST]'
5505 ;;
5506solaris* | sysv5*)
5507 symcode='[BDT]'
5508 ;;
5509sysv4)
5510 symcode='[DFNSTU]'
5511 ;;
5512esac
5513
5514# Handle CRLF in mingw tool chain
5515opt_cr=
5516case $build_os in
5517mingw*)
5518 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5519 ;;
5520esac
5521
5522# If we're using GNU nm, then use its standard symbol codes.
5523case `$NM -V 2>&1` in
5524*GNU* | *'with BFD'*)
5525 symcode='[ABCDGISTW]' ;;
5526esac
5527
5528# Try without a prefix undercore, then with it.
5529for ac_symprfx in "" "_"; do
5530
5531 # Write the raw and C identifiers.
5532 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5533
5534 # Check to see that the pipe works correctly.
5535 pipe_works=no
5536
5537 rm -f conftest*
5538 cat > conftest.$ac_ext <<EOF
5539#ifdef __cplusplus
5540extern "C" {
5541#endif
5542char nm_test_var;
5543void nm_test_func(){}
5544#ifdef __cplusplus
5545}
5546#endif
5547int main(){nm_test_var='a';nm_test_func();return(0);}
5548EOF
5549
5550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5551 (eval $ac_compile) 2>&5
5552 ac_status=$?
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }; then
5555 # Now try to grab the symbols.
5556 nlist=conftest.nm
5557 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5558 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5559 ac_status=$?
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); } && test -s "$nlist"; then
5562 # Try sorting and uniquifying the output.
5563 if sort "$nlist" | uniq > "$nlist"T; then
5564 mv -f "$nlist"T "$nlist"
5565 else
5566 rm -f "$nlist"T
5567 fi
5568
5569 # Make sure that we snagged all the symbols we need.
5570 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5571 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5572 cat <<EOF > conftest.$ac_ext
5573#ifdef __cplusplus
5574extern "C" {
5575#endif
5576
5577EOF
5578 # Now generate the symbol file.
5579 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5580
5581 cat <<EOF >> conftest.$ac_ext
5582#if defined (__STDC__) && __STDC__
5583# define lt_ptr_t void *
5584#else
5585# define lt_ptr_t char *
5586# define const
5587#endif
5588
5589/* The mapping between symbol names and symbols. */
5590const struct {
5591 const char *name;
5592 lt_ptr_t address;
5593}
5594lt_preloaded_symbols[] =
5595{
5596EOF
5597 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5598 cat <<\EOF >> conftest.$ac_ext
5599 {0, (lt_ptr_t) 0}
5600};
5601
5602#ifdef __cplusplus
5603}
5604#endif
5605EOF
5606 # Now try linking the two files.
5607 mv conftest.$ac_objext conftstm.$ac_objext
5608 lt_save_LIBS="$LIBS"
5609 lt_save_CFLAGS="$CFLAGS"
5610 LIBS="conftstm.$ac_objext"
5611 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5613 (eval $ac_link) 2>&5
5614 ac_status=$?
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5617 pipe_works=yes
5618 fi
5619 LIBS="$lt_save_LIBS"
5620 CFLAGS="$lt_save_CFLAGS"
5621 else
5622 echo "cannot find nm_test_func in $nlist" >&5
5623 fi
5624 else
5625 echo "cannot find nm_test_var in $nlist" >&5
5626 fi
5627 else
5628 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5629 fi
5630 else
5631 echo "$progname: failed program was:" >&5
5632 cat conftest.$ac_ext >&5
5633 fi
5634 rm -f conftest* conftst*
5635
5636 # Do not use the global_symbol_pipe unless it works.
5637 if test "$pipe_works" = yes; then
5638 break
5639 else
5640 lt_cv_sys_global_symbol_pipe=
5641 fi
5642done
5643
5644fi
5645
5646if test -z "$lt_cv_sys_global_symbol_pipe"; then
5647 lt_cv_sys_global_symbol_to_cdecl=
5648fi
5649if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5650 echo "$as_me:$LINENO: result: failed" >&5
5651echo "${ECHO_T}failed" >&6
5652else
5653 echo "$as_me:$LINENO: result: ok" >&5
5654echo "${ECHO_T}ok" >&6
5655fi
5656
5657echo "$as_me:$LINENO: checking for objdir" >&5
5658echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5659if test "${lt_cv_objdir+set}" = set; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5661else
5662 rm -f .libs 2>/dev/null
5663mkdir .libs 2>/dev/null
5664if test -d .libs; then
5665 lt_cv_objdir=.libs
5666else
5667 # MS-DOS does not allow filenames that begin with a dot.
5668 lt_cv_objdir=_libs
5669fi
5670rmdir .libs 2>/dev/null
5671fi
5672echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5673echo "${ECHO_T}$lt_cv_objdir" >&6
5674objdir=$lt_cv_objdir
5675
5676
5677
5678
5679
5680case $host_os in
5681aix3*)
5682 # AIX sometimes has problems with the GCC collect2 program. For some
5683 # reason, if we set the COLLECT_NAMES environment variable, the problems
5684 # vanish in a puff of smoke.
5685 if test "X${COLLECT_NAMES+set}" != Xset; then
5686 COLLECT_NAMES=
5687 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005688 fi
5689 ;;
5690esac
5691
John Criswell47fdd832003-07-14 16:52:07 +00005692# Sed substitution that helps us do robust quoting. It backslashifies
5693# metacharacters that are still active within double-quoted strings.
5694Xsed='sed -e s/^X//'
5695sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5696
5697# Same as above, but do not quote variable references.
5698double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5699
5700# Sed substitution to delay expansion of an escaped shell variable in a
5701# double_quote_subst'ed string.
5702delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5703
5704# Sed substitution to avoid accidental globbing in evaled expressions
5705no_glob_subst='s/\*/\\\*/g'
5706
5707# Constants:
5708rm="rm -f"
5709
5710# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005711default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005712can_build_shared=yes
5713
5714# All known linkers require a `.a' archive for static linking (except M$VC,
5715# which needs '.lib').
5716libext=a
5717ltmain="$ac_aux_dir/ltmain.sh"
5718ofile="$default_ofile"
5719with_gnu_ld="$lt_cv_prog_gnu_ld"
5720
5721if test -n "$ac_tool_prefix"; then
5722 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5723set dummy ${ac_tool_prefix}ar; ac_word=$2
5724echo "$as_me:$LINENO: checking for $ac_word" >&5
5725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5726if test "${ac_cv_prog_AR+set}" = set; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
5728else
5729 if test -n "$AR"; then
5730 ac_cv_prog_AR="$AR" # Let the user override the test.
5731else
5732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733for as_dir in $PATH
5734do
5735 IFS=$as_save_IFS
5736 test -z "$as_dir" && as_dir=.
5737 for ac_exec_ext in '' $ac_executable_extensions; do
5738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5739 ac_cv_prog_AR="${ac_tool_prefix}ar"
5740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5741 break 2
5742 fi
5743done
5744done
5745
5746fi
5747fi
5748AR=$ac_cv_prog_AR
5749if test -n "$AR"; then
5750 echo "$as_me:$LINENO: result: $AR" >&5
5751echo "${ECHO_T}$AR" >&6
5752else
5753 echo "$as_me:$LINENO: result: no" >&5
5754echo "${ECHO_T}no" >&6
5755fi
5756
5757fi
5758if test -z "$ac_cv_prog_AR"; then
5759 ac_ct_AR=$AR
5760 # Extract the first word of "ar", so it can be a program name with args.
5761set dummy ar; ac_word=$2
5762echo "$as_me:$LINENO: checking for $ac_word" >&5
5763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5764if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5766else
5767 if test -n "$ac_ct_AR"; then
5768 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5769else
5770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771for as_dir in $PATH
5772do
5773 IFS=$as_save_IFS
5774 test -z "$as_dir" && as_dir=.
5775 for ac_exec_ext in '' $ac_executable_extensions; do
5776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5777 ac_cv_prog_ac_ct_AR="ar"
5778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5779 break 2
5780 fi
5781done
5782done
5783
5784 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5785fi
5786fi
5787ac_ct_AR=$ac_cv_prog_ac_ct_AR
5788if test -n "$ac_ct_AR"; then
5789 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5790echo "${ECHO_T}$ac_ct_AR" >&6
5791else
5792 echo "$as_me:$LINENO: result: no" >&5
5793echo "${ECHO_T}no" >&6
5794fi
5795
5796 AR=$ac_ct_AR
5797else
5798 AR="$ac_cv_prog_AR"
5799fi
5800
John Criswell7a73b802003-06-30 21:59:07 +00005801if test -n "$ac_tool_prefix"; then
5802 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5803set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5804echo "$as_me:$LINENO: checking for $ac_word" >&5
5805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5806if test "${ac_cv_prog_RANLIB+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5808else
5809 if test -n "$RANLIB"; then
5810 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5811else
5812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813for as_dir in $PATH
5814do
5815 IFS=$as_save_IFS
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5819 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 break 2
5822 fi
5823done
5824done
5825
5826fi
5827fi
5828RANLIB=$ac_cv_prog_RANLIB
5829if test -n "$RANLIB"; then
5830 echo "$as_me:$LINENO: result: $RANLIB" >&5
5831echo "${ECHO_T}$RANLIB" >&6
5832else
5833 echo "$as_me:$LINENO: result: no" >&5
5834echo "${ECHO_T}no" >&6
5835fi
5836
5837fi
5838if test -z "$ac_cv_prog_RANLIB"; then
5839 ac_ct_RANLIB=$RANLIB
5840 # Extract the first word of "ranlib", so it can be a program name with args.
5841set dummy ranlib; ac_word=$2
5842echo "$as_me:$LINENO: checking for $ac_word" >&5
5843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5844if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5846else
5847 if test -n "$ac_ct_RANLIB"; then
5848 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5849else
5850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851for as_dir in $PATH
5852do
5853 IFS=$as_save_IFS
5854 test -z "$as_dir" && as_dir=.
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5857 ac_cv_prog_ac_ct_RANLIB="ranlib"
5858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5859 break 2
5860 fi
5861done
5862done
5863
5864 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5865fi
5866fi
5867ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5868if test -n "$ac_ct_RANLIB"; then
5869 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5870echo "${ECHO_T}$ac_ct_RANLIB" >&6
5871else
5872 echo "$as_me:$LINENO: result: no" >&5
5873echo "${ECHO_T}no" >&6
5874fi
5875
5876 RANLIB=$ac_ct_RANLIB
5877else
5878 RANLIB="$ac_cv_prog_RANLIB"
5879fi
5880
5881if test -n "$ac_tool_prefix"; then
5882 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5883set dummy ${ac_tool_prefix}strip; ac_word=$2
5884echo "$as_me:$LINENO: checking for $ac_word" >&5
5885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5886if test "${ac_cv_prog_STRIP+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5888else
5889 if test -n "$STRIP"; then
5890 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5891else
5892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893for as_dir in $PATH
5894do
5895 IFS=$as_save_IFS
5896 test -z "$as_dir" && as_dir=.
5897 for ac_exec_ext in '' $ac_executable_extensions; do
5898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5899 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5901 break 2
5902 fi
5903done
5904done
5905
5906fi
5907fi
5908STRIP=$ac_cv_prog_STRIP
5909if test -n "$STRIP"; then
5910 echo "$as_me:$LINENO: result: $STRIP" >&5
5911echo "${ECHO_T}$STRIP" >&6
5912else
5913 echo "$as_me:$LINENO: result: no" >&5
5914echo "${ECHO_T}no" >&6
5915fi
5916
5917fi
5918if test -z "$ac_cv_prog_STRIP"; then
5919 ac_ct_STRIP=$STRIP
5920 # Extract the first word of "strip", so it can be a program name with args.
5921set dummy strip; ac_word=$2
5922echo "$as_me:$LINENO: checking for $ac_word" >&5
5923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5924if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5926else
5927 if test -n "$ac_ct_STRIP"; then
5928 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5929else
5930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931for as_dir in $PATH
5932do
5933 IFS=$as_save_IFS
5934 test -z "$as_dir" && as_dir=.
5935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5937 ac_cv_prog_ac_ct_STRIP="strip"
5938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5939 break 2
5940 fi
5941done
5942done
5943
5944 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5945fi
5946fi
5947ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5948if test -n "$ac_ct_STRIP"; then
5949 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5950echo "${ECHO_T}$ac_ct_STRIP" >&6
5951else
5952 echo "$as_me:$LINENO: result: no" >&5
5953echo "${ECHO_T}no" >&6
5954fi
5955
5956 STRIP=$ac_ct_STRIP
5957else
5958 STRIP="$ac_cv_prog_STRIP"
5959fi
5960
5961
John Criswell7a73b802003-06-30 21:59:07 +00005962old_CC="$CC"
5963old_CFLAGS="$CFLAGS"
5964
5965# Set sane defaults for various variables
5966test -z "$AR" && AR=ar
5967test -z "$AR_FLAGS" && AR_FLAGS=cru
5968test -z "$AS" && AS=as
5969test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005970test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005971test -z "$DLLTOOL" && DLLTOOL=dlltool
5972test -z "$LD" && LD=ld
5973test -z "$LN_S" && LN_S="ln -s"
5974test -z "$MAGIC_CMD" && MAGIC_CMD=file
5975test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005976test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005977test -z "$OBJDUMP" && OBJDUMP=objdump
5978test -z "$RANLIB" && RANLIB=:
5979test -z "$STRIP" && STRIP=:
5980test -z "$ac_objext" && ac_objext=o
5981
John Criswell7a73b802003-06-30 21:59:07 +00005982# Determine commands to create old-style static archives.
5983old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5984old_postinstall_cmds='chmod 644 $oldlib'
5985old_postuninstall_cmds=
5986
5987if test -n "$RANLIB"; then
5988 case $host_os in
5989 openbsd*)
5990 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5991 ;;
5992 *)
5993 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5994 ;;
5995 esac
5996 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5997fi
5998
John Criswell47fdd832003-07-14 16:52:07 +00005999# Only perform the check for file, if the check method requires it
6000case $deplibs_check_method in
6001file_magic*)
6002 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6003 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6004echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6005if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006007else
John Criswell47fdd832003-07-14 16:52:07 +00006008 case $MAGIC_CMD in
6009[\\/*] | ?:[\\/]*)
6010 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6011 ;;
6012*)
6013 lt_save_MAGIC_CMD="$MAGIC_CMD"
6014 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6015 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6016 for ac_dir in $ac_dummy; do
6017 IFS="$lt_save_ifs"
6018 test -z "$ac_dir" && ac_dir=.
6019 if test -f $ac_dir/${ac_tool_prefix}file; then
6020 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6021 if test -n "$file_magic_test_file"; then
6022 case $deplibs_check_method in
6023 "file_magic "*)
6024 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6025 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6026 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6027 $EGREP "$file_magic_regex" > /dev/null; then
6028 :
6029 else
6030 cat <<EOF 1>&2
6031
6032*** Warning: the command libtool uses to detect shared libraries,
6033*** $file_magic_cmd, produces output that libtool cannot recognize.
6034*** The result is that libtool may fail to recognize shared libraries
6035*** as such. This will affect the creation of libtool libraries that
6036*** depend on shared libraries, but programs linked with such libtool
6037*** libraries will work regardless of this problem. Nevertheless, you
6038*** may want to report the problem to your system manager and/or to
6039*** bug-libtool@gnu.org
6040
6041EOF
6042 fi ;;
6043 esac
6044 fi
6045 break
6046 fi
6047 done
6048 IFS="$lt_save_ifs"
6049 MAGIC_CMD="$lt_save_MAGIC_CMD"
6050 ;;
6051esac
John Criswell7a73b802003-06-30 21:59:07 +00006052fi
John Criswell7a73b802003-06-30 21:59:07 +00006053
John Criswell47fdd832003-07-14 16:52:07 +00006054MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6055if test -n "$MAGIC_CMD"; then
6056 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6057echo "${ECHO_T}$MAGIC_CMD" >&6
6058else
6059 echo "$as_me:$LINENO: result: no" >&5
6060echo "${ECHO_T}no" >&6
6061fi
John Criswell7a73b802003-06-30 21:59:07 +00006062
John Criswell47fdd832003-07-14 16:52:07 +00006063if test -z "$lt_cv_path_MAGIC_CMD"; then
6064 if test -n "$ac_tool_prefix"; then
6065 echo "$as_me:$LINENO: checking for file" >&5
6066echo $ECHO_N "checking for file... $ECHO_C" >&6
6067if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
6069else
6070 case $MAGIC_CMD in
6071[\\/*] | ?:[\\/]*)
6072 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6073 ;;
6074*)
6075 lt_save_MAGIC_CMD="$MAGIC_CMD"
6076 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6077 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6078 for ac_dir in $ac_dummy; do
6079 IFS="$lt_save_ifs"
6080 test -z "$ac_dir" && ac_dir=.
6081 if test -f $ac_dir/file; then
6082 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6083 if test -n "$file_magic_test_file"; then
6084 case $deplibs_check_method in
6085 "file_magic "*)
6086 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6087 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6088 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6089 $EGREP "$file_magic_regex" > /dev/null; then
6090 :
6091 else
6092 cat <<EOF 1>&2
6093
6094*** Warning: the command libtool uses to detect shared libraries,
6095*** $file_magic_cmd, produces output that libtool cannot recognize.
6096*** The result is that libtool may fail to recognize shared libraries
6097*** as such. This will affect the creation of libtool libraries that
6098*** depend on shared libraries, but programs linked with such libtool
6099*** libraries will work regardless of this problem. Nevertheless, you
6100*** may want to report the problem to your system manager and/or to
6101*** bug-libtool@gnu.org
6102
6103EOF
6104 fi ;;
6105 esac
6106 fi
6107 break
6108 fi
6109 done
6110 IFS="$lt_save_ifs"
6111 MAGIC_CMD="$lt_save_MAGIC_CMD"
6112 ;;
6113esac
6114fi
6115
6116MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6117if test -n "$MAGIC_CMD"; then
6118 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6119echo "${ECHO_T}$MAGIC_CMD" >&6
6120else
6121 echo "$as_me:$LINENO: result: no" >&5
6122echo "${ECHO_T}no" >&6
6123fi
6124
6125 else
6126 MAGIC_CMD=:
6127 fi
6128fi
6129
6130 fi
6131 ;;
6132esac
6133
6134enable_dlopen=no
6135enable_win32_dll=no
6136
6137# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6138if test "${enable_libtool_lock+set}" = set; then
6139 enableval="$enable_libtool_lock"
6140
6141fi;
6142test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6143
John Criswell7a73b802003-06-30 21:59:07 +00006144
6145# Check whether --with-pic or --without-pic was given.
6146if test "${with_pic+set}" = set; then
6147 withval="$with_pic"
6148 pic_mode="$withval"
6149else
6150 pic_mode=default
6151fi;
6152test -z "$pic_mode" && pic_mode=default
6153
John Criswell47fdd832003-07-14 16:52:07 +00006154# Use C for the default configuration in the libtool script
6155tagname=
6156lt_save_CC="$CC"
6157ac_ext=c
6158ac_cpp='$CPP $CPPFLAGS'
6159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6161ac_compiler_gnu=$ac_cv_c_compiler_gnu
6162
6163
6164# Source file extension for C test sources.
6165ac_ext=c
6166
6167# Object file extension for compiled C test sources.
6168objext=o
6169objext=$objext
6170
6171# Code to be used in simple compile tests
6172lt_simple_compile_test_code="int some_variable = 0;\n"
6173
6174# Code to be used in simple link tests
6175lt_simple_link_test_code='int main(){return(0);}\n'
6176
6177
6178# If no C compiler was specified, use CC.
6179LTCC=${LTCC-"$CC"}
6180
6181# Allow CC to be a program name with arguments.
6182compiler=$CC
6183
6184
6185#
6186# Check for any special shared library compilation flags.
6187#
6188lt_prog_cc_shlib=
6189if test "$GCC" = no; then
6190 case $host_os in
6191 sco3.2v5*)
6192 lt_prog_cc_shlib='-belf'
6193 ;;
6194 esac
6195fi
6196if test -n "$lt_prog_cc_shlib"; then
6197 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6198echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6199 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6200 else
6201 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6202echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6203 lt_cv_prog_cc_can_build_shared=no
6204 fi
6205fi
6206
6207
6208#
6209# Check to make sure the static flag actually works.
6210#
6211echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6212echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6213if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006214 echo $ECHO_N "(cached) $ECHO_C" >&6
6215else
John Criswell47fdd832003-07-14 16:52:07 +00006216 lt_prog_compiler_static_works=no
6217 save_LDFLAGS="$LDFLAGS"
6218 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6219 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6220 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6221 # The compiler can only warn and ignore the option if not recognized
6222 # So say no if there are warnings
6223 if test -s conftest.err; then
6224 # Append any errors to the config.log.
6225 cat conftest.err 1>&5
6226 else
6227 lt_prog_compiler_static_works=yes
6228 fi
6229 fi
6230 $rm conftest*
6231 LDFLAGS="$save_LDFLAGS"
6232
6233fi
6234echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6235echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6236
6237if test x"$lt_prog_compiler_static_works" = xyes; then
6238 :
6239else
6240 lt_prog_compiler_static=
6241fi
6242
6243
6244
6245## CAVEAT EMPTOR:
6246## There is no encapsulation within the following macros, do not change
6247## the running order or otherwise move them around unless you know exactly
6248## what you are doing...
6249
6250lt_prog_compiler_no_builtin_flag=
6251
6252if test "$GCC" = yes; then
6253 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6254
6255 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6256echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6257if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
6259else
6260 lt_cv_prog_compiler_rtti_exceptions=no
6261 ac_outfile=conftest.$ac_objext
6262 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6263 lt_compiler_flag="-fno-rtti -fno-exceptions"
6264 # Insert the option either (1) after the last *FLAGS variable, or
6265 # (2) before a word containing "conftest.", or (3) at the end.
6266 # Note that $ac_compile itself does not contain backslashes and begins
6267 # with a dollar sign (not a hyphen), so the echo should work correctly.
6268 # The option is referenced via a variable to avoid confusing sed.
6269 lt_compile=`echo "$ac_compile" | $SED \
6270 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6272 -e 's:$: $lt_compiler_flag:'`
John Criswell78227592003-09-30 19:41:15 +00006273 (eval echo "\"\$as_me:6279: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006274 (eval "$lt_compile" 2>conftest.err)
6275 ac_status=$?
6276 cat conftest.err >&5
John Criswell78227592003-09-30 19:41:15 +00006277 echo "$as_me:6283: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006278 if (exit $ac_status) && test -s "$ac_outfile"; then
6279 # The compiler can only warn and ignore the option if not recognized
6280 # So say no if there are warnings
6281 if test ! -s conftest.err; then
6282 lt_cv_prog_compiler_rtti_exceptions=yes
6283 fi
6284 fi
6285 $rm conftest*
6286
6287fi
6288echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6289echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6290
6291if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6292 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6293else
6294 :
6295fi
6296
6297fi
6298
6299lt_prog_compiler_wl=
6300lt_prog_compiler_pic=
6301lt_prog_compiler_static=
6302
6303echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6304echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006305
6306 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006307 lt_prog_compiler_wl='-Wl,'
6308 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006309
6310 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006311 aix*)
6312 # All AIX code is PIC.
6313 if test "$host_cpu" = ia64; then
6314 # AIX 5 now supports IA64 processor
6315 lt_prog_compiler_static='-Bstatic'
6316 fi
John Criswell7a73b802003-06-30 21:59:07 +00006317 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006318
John Criswell7a73b802003-06-30 21:59:07 +00006319 amigaos*)
6320 # FIXME: we need at least 68020 code to build shared libraries, but
6321 # adding the `-m68020' flag to GCC prevents building anything better,
6322 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006323 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006324 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006325
6326 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006327 # PIC is the default for these OSes.
6328 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006329
6330 mingw* | pw32* | os2*)
6331 # This hack is so that the source file can tell whether it is being
6332 # built for inclusion in a dll (and should export symbols for example).
6333 lt_prog_compiler_pic='-DDLL_EXPORT'
6334 ;;
6335
John Criswell7a73b802003-06-30 21:59:07 +00006336 darwin* | rhapsody*)
6337 # PIC is the default on this platform
6338 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006339 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006340 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006341
6342 msdosdjgpp*)
6343 # Just because we use GCC doesn't mean we suddenly get shared libraries
6344 # on systems that don't support them.
6345 lt_prog_compiler_can_build_shared=no
6346 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006347 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006348
John Criswell7a73b802003-06-30 21:59:07 +00006349 sysv4*MP*)
6350 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006351 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006352 fi
6353 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006354
6355 hpux*)
6356 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6357 # not for PA HP-UX.
6358 case "$host_cpu" in
6359 hppa*64*|ia64*)
6360 # +Z the default
6361 ;;
6362 *)
6363 lt_prog_compiler_pic='-fPIC'
6364 ;;
6365 esac
6366 ;;
6367
John Criswell7a73b802003-06-30 21:59:07 +00006368 *)
John Criswell47fdd832003-07-14 16:52:07 +00006369 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006370 ;;
6371 esac
6372 else
John Criswell47fdd832003-07-14 16:52:07 +00006373 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006374 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006375 aix*)
6376 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006377 if test "$host_cpu" = ia64; then
6378 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006379 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006380 else
John Criswell47fdd832003-07-14 16:52:07 +00006381 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006382 fi
6383 ;;
6384
John Criswell47fdd832003-07-14 16:52:07 +00006385 mingw* | pw32* | os2*)
6386 # This hack is so that the source file can tell whether it is being
6387 # built for inclusion in a dll (and should export symbols for example).
6388 lt_prog_compiler_pic='-DDLL_EXPORT'
6389 ;;
6390
John Criswell7a73b802003-06-30 21:59:07 +00006391 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006392 lt_prog_compiler_wl='-Wl,'
6393 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6394 # not for PA HP-UX.
6395 case "$host_cpu" in
6396 hppa*64*|ia64*)
6397 # +Z the default
6398 ;;
6399 *)
6400 lt_prog_compiler_pic='+Z'
6401 ;;
6402 esac
6403 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6404 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006405 ;;
6406
John Criswell47fdd832003-07-14 16:52:07 +00006407 irix5* | irix6* | nonstopux*)
6408 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006409 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006410 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006411 ;;
6412
6413 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006414 lt_prog_compiler_pic='-KPIC'
6415 lt_prog_compiler_static='-Bstatic'
6416 ;;
6417
6418 linux*)
6419 case $CC in
6420 icc|ecc)
6421 lt_prog_compiler_wl='-Wl,'
6422 lt_prog_compiler_pic='-KPIC'
6423 lt_prog_compiler_static='-static'
6424 ;;
6425 ccc)
6426 lt_prog_compiler_wl='-Wl,'
6427 # All Alpha code is PIC.
6428 lt_prog_compiler_static='-non_shared'
6429 ;;
6430 esac
John Criswell7a73b802003-06-30 21:59:07 +00006431 ;;
6432
6433 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006434 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006435 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006436 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006437 ;;
6438
6439 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006440 lt_prog_compiler_pic='-Kpic'
6441 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006442 ;;
6443
6444 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006445 lt_prog_compiler_wl='-Wl,'
6446 lt_prog_compiler_pic='-KPIC'
6447 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006448 ;;
6449
6450 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006451 lt_prog_compiler_wl='-Qoption ld '
6452 lt_prog_compiler_pic='-PIC'
6453 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006454 ;;
6455
6456 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006457 lt_prog_compiler_wl='-Wl,'
6458 lt_prog_compiler_pic='-KPIC'
6459 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006460 ;;
6461
6462 sysv4*MP*)
6463 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006464 lt_prog_compiler_pic='-Kconform_pic'
6465 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006466 fi
6467 ;;
6468
John Criswell47fdd832003-07-14 16:52:07 +00006469 uts4*)
6470 lt_prog_compiler_pic='-pic'
6471 lt_prog_compiler_static='-Bstatic'
6472 ;;
6473
John Criswell7a73b802003-06-30 21:59:07 +00006474 *)
John Criswell47fdd832003-07-14 16:52:07 +00006475 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006476 ;;
6477 esac
6478 fi
6479
John Criswell47fdd832003-07-14 16:52:07 +00006480echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6481echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006482
John Criswell47fdd832003-07-14 16:52:07 +00006483#
6484# Check to make sure the PIC flag actually works.
6485#
6486if test -n "$lt_prog_compiler_pic"; then
6487 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6488echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6489if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006490 echo $ECHO_N "(cached) $ECHO_C" >&6
6491else
John Criswell47fdd832003-07-14 16:52:07 +00006492 lt_prog_compiler_pic_works=no
6493 ac_outfile=conftest.$ac_objext
6494 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6495 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6496 # Insert the option either (1) after the last *FLAGS variable, or
6497 # (2) before a word containing "conftest.", or (3) at the end.
6498 # Note that $ac_compile itself does not contain backslashes and begins
6499 # with a dollar sign (not a hyphen), so the echo should work correctly.
6500 # The option is referenced via a variable to avoid confusing sed.
6501 lt_compile=`echo "$ac_compile" | $SED \
6502 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6504 -e 's:$: $lt_compiler_flag:'`
John Criswell78227592003-09-30 19:41:15 +00006505 (eval echo "\"\$as_me:6511: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006506 (eval "$lt_compile" 2>conftest.err)
6507 ac_status=$?
6508 cat conftest.err >&5
John Criswell78227592003-09-30 19:41:15 +00006509 echo "$as_me:6515: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006510 if (exit $ac_status) && test -s "$ac_outfile"; then
6511 # The compiler can only warn and ignore the option if not recognized
6512 # So say no if there are warnings
6513 if test ! -s conftest.err; then
6514 lt_prog_compiler_pic_works=yes
6515 fi
6516 fi
6517 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006518
John Criswell47fdd832003-07-14 16:52:07 +00006519fi
6520echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6521echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006522
John Criswell47fdd832003-07-14 16:52:07 +00006523if test x"$lt_prog_compiler_pic_works" = xyes; then
6524 case $lt_prog_compiler_pic in
6525 "" | " "*) ;;
6526 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6527 esac
John Criswell7a73b802003-06-30 21:59:07 +00006528else
John Criswell47fdd832003-07-14 16:52:07 +00006529 lt_prog_compiler_pic=
6530 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006531fi
6532
John Criswell7a73b802003-06-30 21:59:07 +00006533fi
John Criswell47fdd832003-07-14 16:52:07 +00006534case "$host_os" in
6535 # For platforms which do not support PIC, -DPIC is meaningless:
6536 *djgpp*)
6537 lt_prog_compiler_pic=
6538 ;;
6539 *)
6540 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6541 ;;
6542esac
John Criswell7a73b802003-06-30 21:59:07 +00006543
John Criswell7a73b802003-06-30 21:59:07 +00006544echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6545echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006546if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006547 echo $ECHO_N "(cached) $ECHO_C" >&6
6548else
John Criswell47fdd832003-07-14 16:52:07 +00006549 lt_cv_prog_compiler_c_o=no
6550 $rm -r conftest 2>/dev/null
6551 mkdir conftest
6552 cd conftest
6553 mkdir out
6554 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006555
John Criswell47fdd832003-07-14 16:52:07 +00006556 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6557 # that will create temporary files in the current directory regardless of
6558 # the output directory. Thus, making CWD read-only will cause this test
6559 # to fail, enabling locking or at least warning the user not to do parallel
6560 # builds.
6561 chmod -w .
6562
6563 lt_compiler_flag="-o out/conftest2.$ac_objext"
6564 # Insert the option either (1) after the last *FLAGS variable, or
6565 # (2) before a word containing "conftest.", or (3) at the end.
6566 # Note that $ac_compile itself does not contain backslashes and begins
6567 # with a dollar sign (not a hyphen), so the echo should work correctly.
6568 lt_compile=`echo "$ac_compile" | $SED \
6569 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6570 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6571 -e 's:$: $lt_compiler_flag:'`
John Criswell78227592003-09-30 19:41:15 +00006572 (eval echo "\"\$as_me:6578: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006573 (eval "$lt_compile" 2>out/conftest.err)
6574 ac_status=$?
6575 cat out/conftest.err >&5
John Criswell78227592003-09-30 19:41:15 +00006576 echo "$as_me:6582: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006577 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6578 then
6579 # The compiler can only warn and ignore the option if not recognized
6580 # So say no if there are warnings
6581 if test ! -s out/conftest.err; then
6582 lt_cv_prog_compiler_c_o=yes
6583 fi
6584 fi
6585 chmod u+w .
6586 $rm conftest* out/*
6587 rmdir out
6588 cd ..
6589 rmdir conftest
6590 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006591
6592fi
John Criswell47fdd832003-07-14 16:52:07 +00006593echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6594echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006595
John Criswell7a73b802003-06-30 21:59:07 +00006596
John Criswell7a73b802003-06-30 21:59:07 +00006597hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006598if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006599 # do not overwrite the value of need_locks provided by the user
6600 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6601echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6602 hard_links=yes
6603 $rm conftest*
6604 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6605 touch conftest.a
6606 ln conftest.a conftest.b 2>&5 || hard_links=no
6607 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6608 echo "$as_me:$LINENO: result: $hard_links" >&5
6609echo "${ECHO_T}$hard_links" >&6
6610 if test "$hard_links" = no; then
6611 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6612echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6613 need_locks=warn
6614 fi
6615else
6616 need_locks=no
6617fi
John Criswell7a73b802003-06-30 21:59:07 +00006618
John Criswell47fdd832003-07-14 16:52:07 +00006619echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6620echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6621
6622 runpath_var=
6623 allow_undefined_flag=
6624 enable_shared_with_static_runtimes=no
6625 archive_cmds=
6626 archive_expsym_cmds=
6627 old_archive_From_new_cmds=
6628 old_archive_from_expsyms_cmds=
6629 export_dynamic_flag_spec=
6630 whole_archive_flag_spec=
6631 thread_safe_flag_spec=
6632 hardcode_libdir_flag_spec=
6633 hardcode_libdir_flag_spec_ld=
6634 hardcode_libdir_separator=
6635 hardcode_direct=no
6636 hardcode_minus_L=no
6637 hardcode_shlibpath_var=unsupported
6638 link_all_deplibs=unknown
6639 hardcode_automatic=no
6640 module_cmds=
6641 module_expsym_cmds=
6642 always_export_symbols=no
6643 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6644 # include_expsyms should be a list of space-separated symbols to be *always*
6645 # included in the symbol list
6646 include_expsyms=
6647 # exclude_expsyms can be an extended regexp of symbols to exclude
6648 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6649 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6650 # as well as any symbol that contains `d'.
6651 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6652 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6653 # platforms (ab)use it in PIC code, but their linkers get confused if
6654 # the symbol is explicitly referenced. Since portable code cannot
6655 # rely on this symbol name, it's probably fine to never include it in
6656 # preloaded symbol tables.
6657 extract_expsyms_cmds=
6658
6659 case $host_os in
6660 cygwin* | mingw* | pw32*)
6661 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6662 # When not using gcc, we currently assume that we are using
6663 # Microsoft Visual C++.
6664 if test "$GCC" != yes; then
6665 with_gnu_ld=no
6666 fi
6667 ;;
6668 openbsd*)
6669 with_gnu_ld=no
6670 ;;
6671 esac
6672
6673 ld_shlibs=yes
6674 if test "$with_gnu_ld" = yes; then
6675 # If archive_cmds runs LD, not CC, wlarc should be empty
6676 wlarc='${wl}'
6677
6678 # See if GNU ld supports shared libraries.
6679 case $host_os in
6680 aix3* | aix4* | aix5*)
6681 # On AIX/PPC, the GNU linker is very broken
6682 if test "$host_cpu" != ia64; then
6683 ld_shlibs=no
6684 cat <<EOF 1>&2
6685
6686*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6687*** to be unable to reliably create shared libraries on AIX.
6688*** Therefore, libtool is disabling shared libraries support. If you
6689*** really care for shared libraries, you may want to modify your PATH
6690*** so that a non-GNU linker is found, and then restart.
6691
6692EOF
6693 fi
6694 ;;
6695
6696 amigaos*)
6697 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)'
6698 hardcode_libdir_flag_spec='-L$libdir'
6699 hardcode_minus_L=yes
6700
6701 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6702 # that the semantics of dynamic libraries on AmigaOS, at least up
6703 # to version 4, is to share data among multiple programs linked
6704 # with the same dynamic library. Since this doesn't match the
6705 # behavior of shared libraries on other platforms, we can't use
6706 # them.
6707 ld_shlibs=no
6708 ;;
6709
6710 beos*)
6711 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6712 allow_undefined_flag=unsupported
6713 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6714 # support --undefined. This deserves some investigation. FIXME
6715 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6716 else
6717 ld_shlibs=no
6718 fi
6719 ;;
6720
6721 cygwin* | mingw* | pw32*)
6722 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6723 # as there is no search path for DLLs.
6724 hardcode_libdir_flag_spec='-L$libdir'
6725 allow_undefined_flag=unsupported
6726 always_export_symbols=no
6727 enable_shared_with_static_runtimes=yes
6728 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6729
6730 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6731 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6732 # If the export-symbols file already is a .def file (1st line
6733 # is EXPORTS), use it as is; otherwise, prepend...
6734 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6735 cp $export_symbols $output_objdir/$soname.def;
6736 else
6737 echo EXPORTS > $output_objdir/$soname.def;
6738 cat $export_symbols >> $output_objdir/$soname.def;
6739 fi~
6740 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6741 else
6742 ld_shlibs=no
6743 fi
6744 ;;
6745
6746 netbsd*)
6747 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6748 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6749 wlarc=
6750 else
6751 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6752 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6753 fi
6754 ;;
6755
6756 solaris* | sysv5*)
6757 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6758 ld_shlibs=no
6759 cat <<EOF 1>&2
6760
6761*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6762*** create shared libraries on Solaris systems. Therefore, libtool
6763*** is disabling shared libraries support. We urge you to upgrade GNU
6764*** binutils to release 2.9.1 or newer. Another option is to modify
6765*** your PATH or compiler configuration so that the native linker is
6766*** used, and then restart.
6767
6768EOF
6769 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6770 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6771 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6772 else
6773 ld_shlibs=no
6774 fi
6775 ;;
6776
6777 sunos4*)
6778 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6779 wlarc=
6780 hardcode_direct=yes
6781 hardcode_shlibpath_var=no
6782 ;;
6783
6784 *)
6785 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6786 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6787 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6788 else
6789 ld_shlibs=no
6790 fi
6791 ;;
6792 esac
6793
6794 if test "$ld_shlibs" = yes; then
6795 runpath_var=LD_RUN_PATH
6796 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6797 export_dynamic_flag_spec='${wl}--export-dynamic'
6798 # ancient GNU ld didn't support --whole-archive et. al.
6799 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6800 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6801 else
6802 whole_archive_flag_spec=
6803 fi
6804 fi
6805 else
6806 # PORTME fill in a description of your system's linker (not GNU ld)
6807 case $host_os in
6808 aix3*)
6809 allow_undefined_flag=unsupported
6810 always_export_symbols=yes
6811 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'
6812 # Note: this linker hardcodes the directories in LIBPATH if there
6813 # are no directories specified by -L.
6814 hardcode_minus_L=yes
6815 if test "$GCC" = yes && test -z "$link_static_flag"; then
6816 # Neither direct hardcoding nor static linking is supported with a
6817 # broken collect2.
6818 hardcode_direct=unsupported
6819 fi
6820 ;;
6821
6822 aix4* | aix5*)
6823 if test "$host_cpu" = ia64; then
6824 # On IA64, the linker does run time linking by default, so we don't
6825 # have to do anything special.
6826 aix_use_runtimelinking=no
6827 exp_sym_flag='-Bexport'
6828 no_entry_flag=""
6829 else
6830 # If we're using GNU nm, then we don't want the "-C" option.
6831 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6832 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6833 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'
6834 else
6835 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'
6836 fi
6837 aix_use_runtimelinking=no
6838
6839 # Test if we are trying to use run time linking or normal
6840 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6841 # need to do runtime linking.
6842 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6843 for ld_flag in $LDFLAGS; do
6844 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6845 aix_use_runtimelinking=yes
6846 break
6847 fi
6848 done
6849 esac
6850
6851 exp_sym_flag='-bexport'
6852 no_entry_flag='-bnoentry'
6853 fi
6854
6855 # When large executables or shared objects are built, AIX ld can
6856 # have problems creating the table of contents. If linking a library
6857 # or program results in "error TOC overflow" add -mminimal-toc to
6858 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6859 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6860
6861 archive_cmds=''
6862 hardcode_direct=yes
6863 hardcode_libdir_separator=':'
6864 link_all_deplibs=yes
6865
6866 if test "$GCC" = yes; then
6867 case $host_os in aix4.012|aix4.012.*)
6868 # We only want to do this on AIX 4.2 and lower, the check
6869 # below for broken collect2 doesn't work under 4.3+
6870 collect2name=`${CC} -print-prog-name=collect2`
6871 if test -f "$collect2name" && \
6872 strings "$collect2name" | grep resolve_lib_name >/dev/null
6873 then
6874 # We have reworked collect2
6875 hardcode_direct=yes
6876 else
6877 # We have old collect2
6878 hardcode_direct=unsupported
6879 # It fails to find uninstalled libraries when the uninstalled
6880 # path is not listed in the libpath. Setting hardcode_minus_L
6881 # to unsupported forces relinking
6882 hardcode_minus_L=yes
6883 hardcode_libdir_flag_spec='-L$libdir'
6884 hardcode_libdir_separator=
6885 fi
6886 esac
6887 shared_flag='-shared'
6888 else
6889 # not using gcc
6890 if test "$host_cpu" = ia64; then
6891 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6892 # chokes on -Wl,-G. The following line is correct:
6893 shared_flag='-G'
6894 else
6895 if test "$aix_use_runtimelinking" = yes; then
6896 shared_flag='${wl}-G'
6897 else
6898 shared_flag='${wl}-bM:SRE'
6899 fi
6900 fi
6901 fi
6902
6903 # It seems that -bexpall does not export symbols beginning with
6904 # underscore (_), so it is better to generate a list of symbols to export.
6905 always_export_symbols=yes
6906 if test "$aix_use_runtimelinking" = yes; then
6907 # Warning - without using the other runtime loading flags (-brtl),
6908 # -berok will link without error, but may produce a broken library.
6909 allow_undefined_flag='-berok'
6910 # Determine the default libpath from the value encoded in an empty executable.
6911 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006912#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006913/* confdefs.h. */
6914_ACEOF
6915cat confdefs.h >>conftest.$ac_ext
6916cat >>conftest.$ac_ext <<_ACEOF
6917/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006918
John Criswell7a73b802003-06-30 21:59:07 +00006919int
6920main ()
6921{
John Criswell47fdd832003-07-14 16:52:07 +00006922
John Criswell7a73b802003-06-30 21:59:07 +00006923 ;
6924 return 0;
6925}
6926_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006927rm -f conftest.$ac_objext conftest$ac_exeext
6928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6929 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006930 ac_status=$?
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006933 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6935 (eval $ac_try) 2>&5
6936 ac_status=$?
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006939
John Criswell47fdd832003-07-14 16:52:07 +00006940aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6941}'`
6942# Check for a 64-bit object if we didn't find anything.
6943if 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; }
6944}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006945else
6946 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006947sed 's/^/| /' conftest.$ac_ext >&5
6948
John Criswell7a73b802003-06-30 21:59:07 +00006949fi
John Criswell47fdd832003-07-14 16:52:07 +00006950rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6951if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006952
John Criswell47fdd832003-07-14 16:52:07 +00006953 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6954 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"
6955 else
6956 if test "$host_cpu" = ia64; then
6957 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6958 allow_undefined_flag="-z nodefs"
6959 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"
6960 else
6961 # Determine the default libpath from the value encoded in an empty executable.
6962 cat >conftest.$ac_ext <<_ACEOF
6963#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006964/* confdefs.h. */
6965_ACEOF
6966cat confdefs.h >>conftest.$ac_ext
6967cat >>conftest.$ac_ext <<_ACEOF
6968/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006969
John Criswell47fdd832003-07-14 16:52:07 +00006970int
6971main ()
6972{
John Criswell7a73b802003-06-30 21:59:07 +00006973
John Criswell47fdd832003-07-14 16:52:07 +00006974 ;
6975 return 0;
6976}
6977_ACEOF
6978rm -f conftest.$ac_objext conftest$ac_exeext
6979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6980 (eval $ac_link) 2>&5
6981 ac_status=$?
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); } &&
6984 { ac_try='test -s conftest$ac_exeext'
6985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986 (eval $ac_try) 2>&5
6987 ac_status=$?
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006990
John Criswell47fdd832003-07-14 16:52:07 +00006991aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6992}'`
6993# Check for a 64-bit object if we didn't find anything.
6994if 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; }
6995}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006996else
John Criswell47fdd832003-07-14 16:52:07 +00006997 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006998sed 's/^/| /' conftest.$ac_ext >&5
6999
John Criswell47fdd832003-07-14 16:52:07 +00007000fi
7001rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7002if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00007003
John Criswell47fdd832003-07-14 16:52:07 +00007004 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7005 # Warning - without using the other run time loading flags,
7006 # -berok will link without error, but may produce a broken library.
7007 no_undefined_flag=' ${wl}-bernotok'
7008 allow_undefined_flag=' ${wl}-berok'
7009 # -bexpall does not export symbols beginning with underscore (_)
7010 always_export_symbols=yes
7011 # Exported symbols can be pulled into shared objects from archives
7012 whole_archive_flag_spec=' '
7013 archive_cmds_need_lc=yes
7014 # This is similar to how AIX traditionally builds it's shared libraries.
7015 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'
John Criswell7a73b802003-06-30 21:59:07 +00007016 fi
7017 fi
John Criswell7a73b802003-06-30 21:59:07 +00007018 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007019
7020 amigaos*)
7021 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)'
7022 hardcode_libdir_flag_spec='-L$libdir'
7023 hardcode_minus_L=yes
7024 # see comment about different semantics on the GNU ld section
7025 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00007026 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007027
John Criswell47fdd832003-07-14 16:52:07 +00007028 bsdi4*)
7029 export_dynamic_flag_spec=-rdynamic
7030 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007031
John Criswell47fdd832003-07-14 16:52:07 +00007032 cygwin* | mingw* | pw32*)
7033 # When not using gcc, we currently assume that we are using
7034 # Microsoft Visual C++.
7035 # hardcode_libdir_flag_spec is actually meaningless, as there is
7036 # no search path for DLLs.
7037 hardcode_libdir_flag_spec=' '
7038 allow_undefined_flag=unsupported
7039 # Tell ltmain to make .lib files, not .a files.
7040 libext=lib
7041 # Tell ltmain to make .dll files, not .so files.
7042 shrext=".dll"
7043 # FIXME: Setting linknames here is a bad hack.
7044 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7045 # The linker will automatically build a .lib file if we build a DLL.
7046 old_archive_From_new_cmds='true'
7047 # FIXME: Should let the user specify the lib program.
7048 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7049 fix_srcfile_path='`cygpath -w "$srcfile"`'
7050 enable_shared_with_static_runtimes=yes
7051 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007052
John Criswell47fdd832003-07-14 16:52:07 +00007053 darwin* | rhapsody*)
7054 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7055 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00007056 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00007057 rhapsody* | darwin1.[012])
7058 allow_undefined_flag='-undefined suppress'
7059 ;;
7060 *) # Darwin 1.3 on
7061 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00007062 ;;
7063 esac
John Criswell47fdd832003-07-14 16:52:07 +00007064 # FIXME: Relying on posixy $() will cause problems for
7065 # cross-compilation, but unfortunately the echo tests do not
7066 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7067 # `"' quotes if we put them in here... so don't!
7068 lt_int_apple_cc_single_mod=no
7069 output_verbose_link_cmd='echo'
7070 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7071 lt_int_apple_cc_single_mod=yes
7072 fi
7073 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7074 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7075 else
7076 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'
7077 fi
7078 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7079 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7080 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7081 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}'
7082 else
7083 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}'
7084 fi
7085 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}'
7086 hardcode_direct=no
7087 hardcode_automatic=yes
7088 hardcode_shlibpath_var=unsupported
7089 whole_archive_flag_spec='-all_load $convenience'
7090 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007091 fi
John Criswell47fdd832003-07-14 16:52:07 +00007092 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007093
John Criswell47fdd832003-07-14 16:52:07 +00007094 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007095 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007096 hardcode_libdir_flag_spec='-L$libdir'
7097 hardcode_shlibpath_var=no
7098 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007099
John Criswell47fdd832003-07-14 16:52:07 +00007100 freebsd1*)
7101 ld_shlibs=no
7102 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007103
John Criswell47fdd832003-07-14 16:52:07 +00007104 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7105 # support. Future versions do this automatically, but an explicit c++rt0.o
7106 # does not break anything, and helps significantly (at the cost of a little
7107 # extra space).
7108 freebsd2.2*)
7109 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7110 hardcode_libdir_flag_spec='-R$libdir'
7111 hardcode_direct=yes
7112 hardcode_shlibpath_var=no
7113 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007114
John Criswell47fdd832003-07-14 16:52:07 +00007115 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7116 freebsd2*)
7117 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7118 hardcode_direct=yes
7119 hardcode_minus_L=yes
7120 hardcode_shlibpath_var=no
7121 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007122
John Criswell47fdd832003-07-14 16:52:07 +00007123 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7124 freebsd*)
7125 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7126 hardcode_libdir_flag_spec='-R$libdir'
7127 hardcode_direct=yes
7128 hardcode_shlibpath_var=no
7129 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007130
John Criswell47fdd832003-07-14 16:52:07 +00007131 hpux9*)
7132 if test "$GCC" = yes; then
7133 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'
7134 else
7135 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'
7136 fi
7137 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7138 hardcode_libdir_separator=:
7139 hardcode_direct=yes
7140
7141 # hardcode_minus_L: Not really in the search PATH,
7142 # but as the default location of the library.
7143 hardcode_minus_L=yes
7144 export_dynamic_flag_spec='${wl}-E'
7145 ;;
7146
7147 hpux10* | hpux11*)
7148 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7149 case "$host_cpu" in
7150 hppa*64*|ia64*)
7151 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7152 ;;
7153 *)
7154 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7155 ;;
7156 esac
7157 else
7158 case "$host_cpu" in
7159 hppa*64*|ia64*)
7160 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7161 ;;
7162 *)
7163 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7164 ;;
7165 esac
7166 fi
7167 if test "$with_gnu_ld" = no; then
7168 case "$host_cpu" in
7169 hppa*64*)
7170 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7171 hardcode_libdir_flag_spec_ld='+b $libdir'
7172 hardcode_libdir_separator=:
7173 hardcode_direct=no
7174 hardcode_shlibpath_var=no
7175 ;;
7176 ia64*)
7177 hardcode_libdir_flag_spec='-L$libdir'
7178 hardcode_direct=no
7179 hardcode_shlibpath_var=no
7180
7181 # hardcode_minus_L: Not really in the search PATH,
7182 # but as the default location of the library.
7183 hardcode_minus_L=yes
7184 ;;
7185 *)
7186 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7187 hardcode_libdir_separator=:
7188 hardcode_direct=yes
7189 export_dynamic_flag_spec='${wl}-E'
7190
7191 # hardcode_minus_L: Not really in the search PATH,
7192 # but as the default location of the library.
7193 hardcode_minus_L=yes
7194 ;;
7195 esac
7196 fi
7197 ;;
7198
7199 irix5* | irix6* | nonstopux*)
7200 if test "$GCC" = yes; then
7201 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'
7202 else
7203 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'
7204 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7205 fi
7206 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7207 hardcode_libdir_separator=:
7208 link_all_deplibs=yes
7209 ;;
7210
7211 netbsd*)
7212 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7213 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7214 else
7215 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7216 fi
7217 hardcode_libdir_flag_spec='-R$libdir'
7218 hardcode_direct=yes
7219 hardcode_shlibpath_var=no
7220 ;;
7221
7222 newsos6)
7223 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7224 hardcode_direct=yes
7225 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7226 hardcode_libdir_separator=:
7227 hardcode_shlibpath_var=no
7228 ;;
7229
7230 openbsd*)
7231 hardcode_direct=yes
7232 hardcode_shlibpath_var=no
7233 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7234 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7235 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7236 export_dynamic_flag_spec='${wl}-E'
7237 else
7238 case $host_os in
7239 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7240 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7241 hardcode_libdir_flag_spec='-R$libdir'
7242 ;;
7243 *)
7244 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7245 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7246 ;;
7247 esac
7248 fi
7249 ;;
7250
7251 os2*)
7252 hardcode_libdir_flag_spec='-L$libdir'
7253 hardcode_minus_L=yes
7254 allow_undefined_flag=unsupported
7255 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'
7256 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7257 ;;
7258
7259 osf3*)
7260 if test "$GCC" = yes; then
7261 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7262 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'
7263 else
7264 allow_undefined_flag=' -expect_unresolved \*'
7265 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'
7266 fi
7267 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7268 hardcode_libdir_separator=:
7269 ;;
7270
7271 osf4* | osf5*) # as osf3* with the addition of -msym flag
7272 if test "$GCC" = yes; then
7273 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7274 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'
7275 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7276 else
7277 allow_undefined_flag=' -expect_unresolved \*'
7278 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'
7279 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7280 $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'
7281
7282 # Both c and cxx compiler support -rpath directly
7283 hardcode_libdir_flag_spec='-rpath $libdir'
7284 fi
7285 hardcode_libdir_separator=:
7286 ;;
7287
7288 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007289 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7290 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007291 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007292 runpath_var=LD_RUN_PATH
7293 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007294 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007295
John Criswell47fdd832003-07-14 16:52:07 +00007296 solaris*)
7297 no_undefined_flag=' -z text'
7298 if test "$GCC" = yes; then
7299 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7300 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7301 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7302 else
7303 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7304 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7305 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7306 fi
7307 hardcode_libdir_flag_spec='-R$libdir'
7308 hardcode_shlibpath_var=no
7309 case $host_os in
7310 solaris2.[0-5] | solaris2.[0-5].*) ;;
7311 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7312 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7313 esac
7314 link_all_deplibs=yes
7315 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007316
John Criswell47fdd832003-07-14 16:52:07 +00007317 sunos4*)
7318 if test "x$host_vendor" = xsequent; then
7319 # Use $CC to link under sequent, because it throws in some extra .o
7320 # files that make .init and .fini sections work.
7321 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7322 else
7323 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7324 fi
7325 hardcode_libdir_flag_spec='-L$libdir'
7326 hardcode_direct=yes
7327 hardcode_minus_L=yes
7328 hardcode_shlibpath_var=no
7329 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007330
John Criswell47fdd832003-07-14 16:52:07 +00007331 sysv4)
7332 case $host_vendor in
7333 sni)
7334 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7335 hardcode_direct=yes # is this really true???
7336 ;;
7337 siemens)
7338 ## LD is ld it makes a PLAMLIB
7339 ## CC just makes a GrossModule.
7340 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7341 reload_cmds='$CC -r -o $output$reload_objs'
7342 hardcode_direct=no
7343 ;;
7344 motorola)
7345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7346 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7347 ;;
7348 esac
7349 runpath_var='LD_RUN_PATH'
7350 hardcode_shlibpath_var=no
7351 ;;
7352
7353 sysv4.3*)
7354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7355 hardcode_shlibpath_var=no
7356 export_dynamic_flag_spec='-Bexport'
7357 ;;
7358
7359 sysv4*MP*)
7360 if test -d /usr/nec; then
7361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7362 hardcode_shlibpath_var=no
7363 runpath_var=LD_RUN_PATH
7364 hardcode_runpath_var=yes
7365 ld_shlibs=yes
7366 fi
7367 ;;
7368
7369 sysv4.2uw2*)
7370 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7371 hardcode_direct=yes
7372 hardcode_minus_L=no
7373 hardcode_shlibpath_var=no
7374 hardcode_runpath_var=yes
7375 runpath_var=LD_RUN_PATH
7376 ;;
7377
7378 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7379 no_undefined_flag='${wl}-z ${wl}text'
7380 if test "$GCC" = yes; then
7381 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7382 else
7383 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7384 fi
7385 runpath_var='LD_RUN_PATH'
7386 hardcode_shlibpath_var=no
7387 ;;
7388
7389 sysv5*)
7390 no_undefined_flag=' -z text'
7391 # $CC -shared without GNU ld will not create a library from C++
7392 # object files and a static libstdc++, better avoid it by now
7393 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7394 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7395 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7396 hardcode_libdir_flag_spec=
7397 hardcode_shlibpath_var=no
7398 runpath_var='LD_RUN_PATH'
7399 ;;
7400
7401 uts4*)
7402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7403 hardcode_libdir_flag_spec='-L$libdir'
7404 hardcode_shlibpath_var=no
7405 ;;
7406
7407 *)
7408 ld_shlibs=no
7409 ;;
7410 esac
7411 fi
7412
John Criswell7a73b802003-06-30 21:59:07 +00007413echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7414echo "${ECHO_T}$ld_shlibs" >&6
7415test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007416
John Criswell47fdd832003-07-14 16:52:07 +00007417variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7418if test "$GCC" = yes; then
7419 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7420fi
7421
7422#
7423# Do we need to explicitly link libc?
7424#
7425case "x$archive_cmds_need_lc" in
7426x|xyes)
7427 # Assume -lc should be added
7428 archive_cmds_need_lc=yes
7429
7430 if test "$enable_shared" = yes && test "$GCC" = yes; then
7431 case $archive_cmds in
7432 *'~'*)
7433 # FIXME: we may have to deal with multi-command sequences.
7434 ;;
7435 '$CC '*)
7436 # Test whether the compiler implicitly links with -lc since on some
7437 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7438 # to ld, don't add -lc before -lgcc.
7439 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7440echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7441 $rm conftest*
7442 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7443
7444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7445 (eval $ac_compile) 2>&5
7446 ac_status=$?
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); } 2>conftest.err; then
7449 soname=conftest
7450 lib=conftest
7451 libobjs=conftest.$ac_objext
7452 deplibs=
7453 wl=$lt_prog_compiler_wl
7454 compiler_flags=-v
7455 linker_flags=-v
7456 verstring=
7457 output_objdir=.
7458 libname=conftest
7459 lt_save_allow_undefined_flag=$allow_undefined_flag
7460 allow_undefined_flag=
7461 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7462 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7463 ac_status=$?
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); }
7466 then
7467 archive_cmds_need_lc=no
7468 else
7469 archive_cmds_need_lc=yes
7470 fi
7471 allow_undefined_flag=$lt_save_allow_undefined_flag
7472 else
7473 cat conftest.err 1>&5
7474 fi
7475 $rm conftest*
7476 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7477echo "${ECHO_T}$archive_cmds_need_lc" >&6
7478 ;;
7479 esac
7480 fi
7481 ;;
7482esac
7483
John Criswell7a73b802003-06-30 21:59:07 +00007484echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7485echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7486hardcode_action=
7487if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007488 test -n "$runpath_var " || \
7489 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007490
7491 # We can hardcode non-existant directories.
7492 if test "$hardcode_direct" != no &&
7493 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7494 # have to relink, otherwise we might link with an installed library
7495 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007496 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007497 test "$hardcode_minus_L" != no; then
7498 # Linking always hardcodes the temporary library directory.
7499 hardcode_action=relink
7500 else
7501 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7502 hardcode_action=immediate
7503 fi
7504else
7505 # We cannot hardcode anything, or else we can only hardcode existing
7506 # directories.
7507 hardcode_action=unsupported
7508fi
7509echo "$as_me:$LINENO: result: $hardcode_action" >&5
7510echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007511
John Criswell47fdd832003-07-14 16:52:07 +00007512if test "$hardcode_action" = relink; then
7513 # Fast installation is not supported
7514 enable_fast_install=no
7515elif test "$shlibpath_overrides_runpath" = yes ||
7516 test "$enable_shared" = no; then
7517 # Fast installation is not necessary
7518 enable_fast_install=needless
7519fi
7520
John Criswell7a73b802003-06-30 21:59:07 +00007521striplib=
7522old_striplib=
7523echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7524echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7525if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7526 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7527 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7528 echo "$as_me:$LINENO: result: yes" >&5
7529echo "${ECHO_T}yes" >&6
7530else
John Criswell47fdd832003-07-14 16:52:07 +00007531# FIXME - insert some real tests, host_os isn't really good enough
7532 case $host_os in
7533 darwin*)
7534 if test -n "$STRIP" ; then
7535 striplib="$STRIP -x"
7536 echo "$as_me:$LINENO: result: yes" >&5
7537echo "${ECHO_T}yes" >&6
7538 else
John Criswell7a73b802003-06-30 21:59:07 +00007539 echo "$as_me:$LINENO: result: no" >&5
7540echo "${ECHO_T}no" >&6
7541fi
John Criswell47fdd832003-07-14 16:52:07 +00007542 ;;
7543 *)
7544 echo "$as_me:$LINENO: result: no" >&5
7545echo "${ECHO_T}no" >&6
7546 ;;
7547 esac
7548fi
John Criswell7a73b802003-06-30 21:59:07 +00007549
John Criswell7a73b802003-06-30 21:59:07 +00007550echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7551echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7552library_names_spec=
7553libname_spec='lib$name'
7554soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007555shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007556postinstall_cmds=
7557postuninstall_cmds=
7558finish_cmds=
7559finish_eval=
7560shlibpath_var=
7561shlibpath_overrides_runpath=unknown
7562version_type=none
7563dynamic_linker="$host_os ld.so"
7564sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007565if test "$GCC" = yes; then
7566 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7567 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7568 # if the path contains ";" then we assume it to be the separator
7569 # otherwise default to the standard path separator (i.e. ":") - it is
7570 # assumed that no part of a normal pathname contains ";" but that should
7571 # okay in the real world where ";" in dirpaths is itself problematic.
7572 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7573 else
7574 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7575 fi
7576else
7577 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7578fi
7579need_lib_prefix=unknown
7580hardcode_into_libs=no
7581
7582# when you set need_version to no, make sure it does not cause -set_version
7583# flags to be left without arguments
7584need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007585
7586case $host_os in
7587aix3*)
7588 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007589 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007590 shlibpath_var=LIBPATH
7591
John Criswell47fdd832003-07-14 16:52:07 +00007592 # AIX 3 has no versioning support, so we append a major version to the name.
7593 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007594 ;;
7595
7596aix4* | aix5*)
7597 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007598 need_lib_prefix=no
7599 need_version=no
7600 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007601 if test "$host_cpu" = ia64; then
7602 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007603 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007604 shlibpath_var=LD_LIBRARY_PATH
7605 else
7606 # With GCC up to 2.95.x, collect2 would create an import file
7607 # for dependence libraries. The import file would start with
7608 # the line `#! .'. This would cause the generated library to
7609 # depend on `.', always an invalid library. This was fixed in
7610 # development snapshots of GCC prior to 3.0.
7611 case $host_os in
7612 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007613 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7614 echo ' yes '
7615 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7616 :
7617 else
7618 can_build_shared=no
7619 fi
7620 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007621 esac
John Criswell47fdd832003-07-14 16:52:07 +00007622 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7623 # soname into executable. Probably we can add versioning support to
7624 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007625 if test "$aix_use_runtimelinking" = yes; then
7626 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7627 # instead of lib<name>.a to let people know that these are not
7628 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007630 else
7631 # We preserve .a as extension for shared libraries through AIX4.2
7632 # and later when we are not doing run time linking.
7633 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007634 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007635 fi
7636 shlibpath_var=LIBPATH
7637 fi
7638 ;;
7639
7640amigaos*)
7641 library_names_spec='$libname.ixlibrary $libname.a'
7642 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7643 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'
7644 ;;
7645
7646beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007647 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007648 dynamic_linker="$host_os ld.so"
7649 shlibpath_var=LIBRARY_PATH
7650 ;;
7651
7652bsdi4*)
7653 version_type=linux
7654 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7656 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007657 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7658 shlibpath_var=LD_LIBRARY_PATH
7659 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7660 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007661 # the default ld.so.conf also contains /usr/contrib/lib and
7662 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7663 # libtool to hard-code these into programs
7664 ;;
7665
7666cygwin* | mingw* | pw32*)
7667 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007668 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007669 need_version=no
7670 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007671
John Criswell7a73b802003-06-30 21:59:07 +00007672 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007673 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007674 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007675 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7676 postinstall_cmds='base_file=`basename \${file}`~
7677 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007678 dldir=$destdir/`dirname \$dlpath`~
7679 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007680 $install_prog $dir/$dlname \$dldir/$dlname'
7681 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007682 dlpath=$dir/\$dldll~
7683 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007684 shlibpath_overrides_runpath=yes
7685
7686 case $host_os in
7687 cygwin*)
7688 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7689 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7690 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7691 ;;
7692 mingw*)
7693 # MinGW DLLs use traditional 'lib' prefix
7694 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7695 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7696 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7697 # It is most probably a Windows format PATH printed by
7698 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7699 # path with ; separators, and with drive letters. We can handle the
7700 # drive letters (cygwin fileutils understands them), so leave them,
7701 # especially as we might pass files found there to a mingw objdump,
7702 # which wouldn't understand a cygwinified path. Ahh.
7703 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7704 else
7705 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7706 fi
7707 ;;
7708 pw32*)
7709 # pw32 DLLs use 'pw' prefix rather than 'lib'
7710 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7711 ;;
7712 esac
John Criswell7a73b802003-06-30 21:59:07 +00007713 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007714
John Criswell7a73b802003-06-30 21:59:07 +00007715 *)
John Criswell47fdd832003-07-14 16:52:07 +00007716 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007717 ;;
7718 esac
7719 dynamic_linker='Win32 ld.exe'
7720 # FIXME: first we should search . and the directory the executable is in
7721 shlibpath_var=PATH
7722 ;;
7723
7724darwin* | rhapsody*)
7725 dynamic_linker="$host_os dyld"
7726 version_type=darwin
7727 need_lib_prefix=no
7728 need_version=no
7729 # FIXME: Relying on posixy $() will cause problems for
7730 # cross-compilation, but unfortunately the echo tests do not
7731 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007732 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7733 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007734 shlibpath_overrides_runpath=yes
7735 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007736 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7737 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7738 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7739 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"`
7740 fi
7741 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7742 ;;
7743
7744dgux*)
7745 version_type=linux
7746 need_lib_prefix=no
7747 need_version=no
7748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7749 soname_spec='${libname}${release}${shared_ext}$major'
7750 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007751 ;;
7752
7753freebsd1*)
7754 dynamic_linker=no
7755 ;;
7756
7757freebsd*)
7758 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7759 version_type=freebsd-$objformat
7760 case $version_type in
7761 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007763 need_version=no
7764 need_lib_prefix=no
7765 ;;
7766 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007767 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007768 need_version=yes
7769 ;;
7770 esac
7771 shlibpath_var=LD_LIBRARY_PATH
7772 case $host_os in
7773 freebsd2*)
7774 shlibpath_overrides_runpath=yes
7775 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007776 freebsd3.01* | freebsdelf3.01*)
7777 shlibpath_overrides_runpath=yes
7778 hardcode_into_libs=yes
7779 ;;
7780 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007781 shlibpath_overrides_runpath=no
7782 hardcode_into_libs=yes
7783 ;;
7784 esac
7785 ;;
7786
7787gnu*)
7788 version_type=linux
7789 need_lib_prefix=no
7790 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7792 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007793 shlibpath_var=LD_LIBRARY_PATH
7794 hardcode_into_libs=yes
7795 ;;
7796
7797hpux9* | hpux10* | hpux11*)
7798 # Give a soname corresponding to the major version so that dld.sl refuses to
7799 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007800 version_type=sunos
7801 need_lib_prefix=no
7802 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007803 case "$host_cpu" in
7804 ia64*)
7805 shrext='.so'
7806 hardcode_into_libs=yes
7807 dynamic_linker="$host_os dld.so"
7808 shlibpath_var=LD_LIBRARY_PATH
7809 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7811 soname_spec='${libname}${release}${shared_ext}$major'
7812 if test "X$HPUX_IA64_MODE" = X32; then
7813 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7814 else
7815 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7816 fi
7817 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7818 ;;
7819 hppa*64*)
7820 shrext='.sl'
7821 hardcode_into_libs=yes
7822 dynamic_linker="$host_os dld.sl"
7823 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7824 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7826 soname_spec='${libname}${release}${shared_ext}$major'
7827 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7828 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7829 ;;
7830 *)
7831 shrext='.sl'
7832 dynamic_linker="$host_os dld.sl"
7833 shlibpath_var=SHLIB_PATH
7834 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7836 soname_spec='${libname}${release}${shared_ext}$major'
7837 ;;
7838 esac
John Criswell7a73b802003-06-30 21:59:07 +00007839 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7840 postinstall_cmds='chmod 555 $lib'
7841 ;;
7842
John Criswell47fdd832003-07-14 16:52:07 +00007843irix5* | irix6* | nonstopux*)
7844 case $host_os in
7845 nonstopux*) version_type=nonstopux ;;
7846 *)
7847 if test "$lt_cv_prog_gnu_ld" = yes; then
7848 version_type=linux
7849 else
7850 version_type=irix
7851 fi ;;
7852 esac
John Criswell7a73b802003-06-30 21:59:07 +00007853 need_lib_prefix=no
7854 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007855 soname_spec='${libname}${release}${shared_ext}$major'
7856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007857 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007858 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007859 libsuff= shlibsuff=
7860 ;;
7861 *)
7862 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007863 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7864 libsuff= shlibsuff= libmagic=32-bit;;
7865 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7866 libsuff=32 shlibsuff=N32 libmagic=N32;;
7867 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7868 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007869 *) libsuff= shlibsuff= libmagic=never-match;;
7870 esac
7871 ;;
7872 esac
7873 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7874 shlibpath_overrides_runpath=no
7875 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7876 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007877 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007878 ;;
7879
7880# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007881linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007882 dynamic_linker=no
7883 ;;
7884
7885# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007886linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007887 version_type=linux
7888 need_lib_prefix=no
7889 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7891 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007892 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7893 shlibpath_var=LD_LIBRARY_PATH
7894 shlibpath_overrides_runpath=no
7895 # This implies no fast_install, which is unacceptable.
7896 # Some rework will be needed to allow for fast_install
7897 # before this can be enabled.
7898 hardcode_into_libs=yes
7899
7900 # We used to test for /lib/ld.so.1 and disable shared libraries on
7901 # powerpc, because MkLinux only supported shared libraries with the
7902 # GNU dynamic linker. Since this was broken with cross compilers,
7903 # most powerpc-linux boxes support dynamic linking these days and
7904 # people can always --disable-shared, the test was removed, and we
7905 # assume the GNU/Linux dynamic linker is in use.
7906 dynamic_linker='GNU/Linux ld.so'
7907 ;;
7908
7909netbsd*)
7910 version_type=sunos
7911 need_lib_prefix=no
7912 need_version=no
7913 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7916 dynamic_linker='NetBSD (a.out) ld.so'
7917 else
John Criswell47fdd832003-07-14 16:52:07 +00007918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7919 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007920 dynamic_linker='NetBSD ld.elf_so'
7921 fi
7922 shlibpath_var=LD_LIBRARY_PATH
7923 shlibpath_overrides_runpath=yes
7924 hardcode_into_libs=yes
7925 ;;
7926
7927newsos6)
7928 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7930 shlibpath_var=LD_LIBRARY_PATH
7931 shlibpath_overrides_runpath=yes
7932 ;;
7933
7934nto-qnx)
7935 version_type=linux
7936 need_lib_prefix=no
7937 need_version=no
7938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7939 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007940 shlibpath_var=LD_LIBRARY_PATH
7941 shlibpath_overrides_runpath=yes
7942 ;;
7943
7944openbsd*)
7945 version_type=sunos
7946 need_lib_prefix=no
7947 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7949 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7950 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007951 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
John Criswell47fdd832003-07-14 16:52:07 +00007952 case $host_os in
7953 openbsd2.[89] | openbsd2.[89].*)
7954 shlibpath_overrides_runpath=no
7955 ;;
7956 *)
7957 shlibpath_overrides_runpath=yes
7958 ;;
7959 esac
John Criswell7a73b802003-06-30 21:59:07 +00007960 else
7961 shlibpath_overrides_runpath=yes
7962 fi
John Criswell7a73b802003-06-30 21:59:07 +00007963 ;;
7964
7965os2*)
7966 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007967 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007968 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007969 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007970 dynamic_linker='OS/2 ld.exe'
7971 shlibpath_var=LIBPATH
7972 ;;
7973
7974osf3* | osf4* | osf5*)
7975 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007976 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007977 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007978 soname_spec='${libname}${release}${shared_ext}$major'
7979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007980 shlibpath_var=LD_LIBRARY_PATH
7981 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7982 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7983 ;;
7984
7985sco3.2v5*)
7986 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007987 soname_spec='${libname}${release}${shared_ext}$major'
7988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007989 shlibpath_var=LD_LIBRARY_PATH
7990 ;;
7991
7992solaris*)
7993 version_type=linux
7994 need_lib_prefix=no
7995 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7997 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007998 shlibpath_var=LD_LIBRARY_PATH
7999 shlibpath_overrides_runpath=yes
8000 hardcode_into_libs=yes
8001 # ldd complains unless libraries are executable
8002 postinstall_cmds='chmod +x $lib'
8003 ;;
8004
8005sunos4*)
8006 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00008007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00008008 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8009 shlibpath_var=LD_LIBRARY_PATH
8010 shlibpath_overrides_runpath=yes
8011 if test "$with_gnu_ld" = yes; then
8012 need_lib_prefix=no
8013 fi
8014 need_version=yes
8015 ;;
8016
8017sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8018 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8020 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008021 shlibpath_var=LD_LIBRARY_PATH
8022 case $host_vendor in
8023 sni)
8024 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00008025 need_lib_prefix=no
8026 export_dynamic_flag_spec='${wl}-Blargedynsym'
8027 runpath_var=LD_RUN_PATH
8028 ;;
8029 siemens)
8030 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00008031 ;;
8032 motorola)
8033 need_lib_prefix=no
8034 need_version=no
8035 shlibpath_overrides_runpath=no
8036 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8037 ;;
8038 esac
8039 ;;
8040
John Criswell7a73b802003-06-30 21:59:07 +00008041sysv4*MP*)
8042 if test -d /usr/nec ;then
8043 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008044 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8045 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00008046 shlibpath_var=LD_LIBRARY_PATH
8047 fi
8048 ;;
8049
John Criswell47fdd832003-07-14 16:52:07 +00008050uts4*)
8051 version_type=linux
8052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8053 soname_spec='${libname}${release}${shared_ext}$major'
8054 shlibpath_var=LD_LIBRARY_PATH
8055 ;;
8056
John Criswell7a73b802003-06-30 21:59:07 +00008057*)
8058 dynamic_linker=no
8059 ;;
8060esac
8061echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8062echo "${ECHO_T}$dynamic_linker" >&6
8063test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00008064
8065if test "x$enable_dlopen" != xyes; then
8066 enable_dlopen=unknown
8067 enable_dlopen_self=unknown
8068 enable_dlopen_self_static=unknown
8069else
8070 lt_cv_dlopen=no
8071 lt_cv_dlopen_libs=
8072
8073 case $host_os in
8074 beos*)
8075 lt_cv_dlopen="load_add_on"
8076 lt_cv_dlopen_libs=
8077 lt_cv_dlopen_self=yes
8078 ;;
8079
John Criswell47fdd832003-07-14 16:52:07 +00008080 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008081 lt_cv_dlopen="LoadLibrary"
8082 lt_cv_dlopen_libs=
8083 ;;
8084
John Criswell47fdd832003-07-14 16:52:07 +00008085 cygwin*)
8086 lt_cv_dlopen="dlopen"
8087 lt_cv_dlopen_libs=
8088 ;;
8089
8090 darwin*)
8091 # if libdl is installed we need to link against it
8092 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8093echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8094if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8096else
8097 ac_check_lib_save_LIBS=$LIBS
8098LIBS="-ldl $LIBS"
8099cat >conftest.$ac_ext <<_ACEOF
8100#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008101/* confdefs.h. */
8102_ACEOF
8103cat confdefs.h >>conftest.$ac_ext
8104cat >>conftest.$ac_ext <<_ACEOF
8105/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008106
8107/* Override any gcc2 internal prototype to avoid an error. */
8108#ifdef __cplusplus
8109extern "C"
8110#endif
8111/* We use char because int might match the return type of a gcc2
8112 builtin and then its argument prototype would still apply. */
8113char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008114int
8115main ()
8116{
8117dlopen ();
8118 ;
8119 return 0;
8120}
8121_ACEOF
8122rm -f conftest.$ac_objext conftest$ac_exeext
8123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8124 (eval $ac_link) 2>&5
8125 ac_status=$?
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } &&
8128 { ac_try='test -s conftest$ac_exeext'
8129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130 (eval $ac_try) 2>&5
8131 ac_status=$?
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; }; then
8134 ac_cv_lib_dl_dlopen=yes
8135else
8136 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008137sed 's/^/| /' conftest.$ac_ext >&5
8138
John Criswell47fdd832003-07-14 16:52:07 +00008139ac_cv_lib_dl_dlopen=no
8140fi
8141rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8142LIBS=$ac_check_lib_save_LIBS
8143fi
8144echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8145echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8146if test $ac_cv_lib_dl_dlopen = yes; then
8147 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8148else
8149
8150 lt_cv_dlopen="dyld"
8151 lt_cv_dlopen_libs=
8152 lt_cv_dlopen_self=yes
8153
8154fi
8155
8156 ;;
8157
John Criswell7a73b802003-06-30 21:59:07 +00008158 *)
8159 echo "$as_me:$LINENO: checking for shl_load" >&5
8160echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8161if test "${ac_cv_func_shl_load+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8163else
8164 cat >conftest.$ac_ext <<_ACEOF
8165#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008166/* confdefs.h. */
8167_ACEOF
8168cat confdefs.h >>conftest.$ac_ext
8169cat >>conftest.$ac_ext <<_ACEOF
8170/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008171/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008172 which can conflict with char shl_load (); below.
8173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8174 <limits.h> exists even on freestanding compilers. */
8175#ifdef __STDC__
8176# include <limits.h>
8177#else
8178# include <assert.h>
8179#endif
John Criswell7a73b802003-06-30 21:59:07 +00008180/* Override any gcc2 internal prototype to avoid an error. */
8181#ifdef __cplusplus
8182extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008183{
John Criswell7a73b802003-06-30 21:59:07 +00008184#endif
8185/* We use char because int might match the return type of a gcc2
8186 builtin and then its argument prototype would still apply. */
8187char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008188/* The GNU C library defines this for functions which it implements
8189 to always fail with ENOSYS. Some functions are actually named
8190 something starting with __ and the normal name is an alias. */
8191#if defined (__stub_shl_load) || defined (__stub___shl_load)
8192choke me
8193#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008194char (*f) () = shl_load;
8195#endif
8196#ifdef __cplusplus
8197}
John Criswell7a73b802003-06-30 21:59:07 +00008198#endif
8199
John Criswell0c38eaf2003-09-10 15:17:25 +00008200int
8201main ()
8202{
8203return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008204 ;
8205 return 0;
8206}
8207_ACEOF
8208rm -f conftest.$ac_objext conftest$ac_exeext
8209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8210 (eval $ac_link) 2>&5
8211 ac_status=$?
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); } &&
8214 { ac_try='test -s conftest$ac_exeext'
8215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8216 (eval $ac_try) 2>&5
8217 ac_status=$?
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); }; }; then
8220 ac_cv_func_shl_load=yes
8221else
8222 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008223sed 's/^/| /' conftest.$ac_ext >&5
8224
John Criswell7a73b802003-06-30 21:59:07 +00008225ac_cv_func_shl_load=no
8226fi
8227rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8228fi
8229echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8230echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8231if test $ac_cv_func_shl_load = yes; then
8232 lt_cv_dlopen="shl_load"
8233else
8234 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8235echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8236if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8237 echo $ECHO_N "(cached) $ECHO_C" >&6
8238else
8239 ac_check_lib_save_LIBS=$LIBS
8240LIBS="-ldld $LIBS"
8241cat >conftest.$ac_ext <<_ACEOF
8242#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008243/* confdefs.h. */
8244_ACEOF
8245cat confdefs.h >>conftest.$ac_ext
8246cat >>conftest.$ac_ext <<_ACEOF
8247/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008248
8249/* Override any gcc2 internal prototype to avoid an error. */
8250#ifdef __cplusplus
8251extern "C"
8252#endif
8253/* We use char because int might match the return type of a gcc2
8254 builtin and then its argument prototype would still apply. */
8255char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008256int
8257main ()
8258{
8259shl_load ();
8260 ;
8261 return 0;
8262}
8263_ACEOF
8264rm -f conftest.$ac_objext conftest$ac_exeext
8265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8266 (eval $ac_link) 2>&5
8267 ac_status=$?
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); } &&
8270 { ac_try='test -s conftest$ac_exeext'
8271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8272 (eval $ac_try) 2>&5
8273 ac_status=$?
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); }; }; then
8276 ac_cv_lib_dld_shl_load=yes
8277else
8278 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008279sed 's/^/| /' conftest.$ac_ext >&5
8280
John Criswell7a73b802003-06-30 21:59:07 +00008281ac_cv_lib_dld_shl_load=no
8282fi
8283rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8284LIBS=$ac_check_lib_save_LIBS
8285fi
8286echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8287echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8288if test $ac_cv_lib_dld_shl_load = yes; then
8289 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8290else
8291 echo "$as_me:$LINENO: checking for dlopen" >&5
8292echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8293if test "${ac_cv_func_dlopen+set}" = set; then
8294 echo $ECHO_N "(cached) $ECHO_C" >&6
8295else
8296 cat >conftest.$ac_ext <<_ACEOF
8297#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008298/* confdefs.h. */
8299_ACEOF
8300cat confdefs.h >>conftest.$ac_ext
8301cat >>conftest.$ac_ext <<_ACEOF
8302/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008303/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008304 which can conflict with char dlopen (); below.
8305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8306 <limits.h> exists even on freestanding compilers. */
8307#ifdef __STDC__
8308# include <limits.h>
8309#else
8310# include <assert.h>
8311#endif
John Criswell7a73b802003-06-30 21:59:07 +00008312/* Override any gcc2 internal prototype to avoid an error. */
8313#ifdef __cplusplus
8314extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008315{
John Criswell7a73b802003-06-30 21:59:07 +00008316#endif
8317/* We use char because int might match the return type of a gcc2
8318 builtin and then its argument prototype would still apply. */
8319char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008320/* The GNU C library defines this for functions which it implements
8321 to always fail with ENOSYS. Some functions are actually named
8322 something starting with __ and the normal name is an alias. */
8323#if defined (__stub_dlopen) || defined (__stub___dlopen)
8324choke me
8325#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008326char (*f) () = dlopen;
8327#endif
8328#ifdef __cplusplus
8329}
John Criswell7a73b802003-06-30 21:59:07 +00008330#endif
8331
John Criswell0c38eaf2003-09-10 15:17:25 +00008332int
8333main ()
8334{
8335return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008336 ;
8337 return 0;
8338}
8339_ACEOF
8340rm -f conftest.$ac_objext conftest$ac_exeext
8341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8342 (eval $ac_link) 2>&5
8343 ac_status=$?
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } &&
8346 { ac_try='test -s conftest$ac_exeext'
8347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348 (eval $ac_try) 2>&5
8349 ac_status=$?
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); }; }; then
8352 ac_cv_func_dlopen=yes
8353else
8354 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008355sed 's/^/| /' conftest.$ac_ext >&5
8356
John Criswell7a73b802003-06-30 21:59:07 +00008357ac_cv_func_dlopen=no
8358fi
8359rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8360fi
8361echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8362echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8363if test $ac_cv_func_dlopen = yes; then
8364 lt_cv_dlopen="dlopen"
8365else
8366 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8367echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8368if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
8370else
8371 ac_check_lib_save_LIBS=$LIBS
8372LIBS="-ldl $LIBS"
8373cat >conftest.$ac_ext <<_ACEOF
8374#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008375/* confdefs.h. */
8376_ACEOF
8377cat confdefs.h >>conftest.$ac_ext
8378cat >>conftest.$ac_ext <<_ACEOF
8379/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008380
8381/* Override any gcc2 internal prototype to avoid an error. */
8382#ifdef __cplusplus
8383extern "C"
8384#endif
8385/* We use char because int might match the return type of a gcc2
8386 builtin and then its argument prototype would still apply. */
8387char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008388int
8389main ()
8390{
8391dlopen ();
8392 ;
8393 return 0;
8394}
8395_ACEOF
8396rm -f conftest.$ac_objext conftest$ac_exeext
8397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8398 (eval $ac_link) 2>&5
8399 ac_status=$?
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } &&
8402 { ac_try='test -s conftest$ac_exeext'
8403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404 (eval $ac_try) 2>&5
8405 ac_status=$?
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); }; }; then
8408 ac_cv_lib_dl_dlopen=yes
8409else
8410 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008411sed 's/^/| /' conftest.$ac_ext >&5
8412
John Criswell7a73b802003-06-30 21:59:07 +00008413ac_cv_lib_dl_dlopen=no
8414fi
8415rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8416LIBS=$ac_check_lib_save_LIBS
8417fi
8418echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8419echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8420if test $ac_cv_lib_dl_dlopen = yes; then
8421 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8422else
8423 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8424echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8425if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8427else
8428 ac_check_lib_save_LIBS=$LIBS
8429LIBS="-lsvld $LIBS"
8430cat >conftest.$ac_ext <<_ACEOF
8431#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008432/* confdefs.h. */
8433_ACEOF
8434cat confdefs.h >>conftest.$ac_ext
8435cat >>conftest.$ac_ext <<_ACEOF
8436/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008437
8438/* Override any gcc2 internal prototype to avoid an error. */
8439#ifdef __cplusplus
8440extern "C"
8441#endif
8442/* We use char because int might match the return type of a gcc2
8443 builtin and then its argument prototype would still apply. */
8444char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008445int
8446main ()
8447{
8448dlopen ();
8449 ;
8450 return 0;
8451}
8452_ACEOF
8453rm -f conftest.$ac_objext conftest$ac_exeext
8454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8455 (eval $ac_link) 2>&5
8456 ac_status=$?
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); } &&
8459 { ac_try='test -s conftest$ac_exeext'
8460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461 (eval $ac_try) 2>&5
8462 ac_status=$?
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); }; }; then
8465 ac_cv_lib_svld_dlopen=yes
8466else
8467 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008468sed 's/^/| /' conftest.$ac_ext >&5
8469
John Criswell7a73b802003-06-30 21:59:07 +00008470ac_cv_lib_svld_dlopen=no
8471fi
8472rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8473LIBS=$ac_check_lib_save_LIBS
8474fi
8475echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8476echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8477if test $ac_cv_lib_svld_dlopen = yes; then
8478 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8479else
8480 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8481echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8482if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8483 echo $ECHO_N "(cached) $ECHO_C" >&6
8484else
8485 ac_check_lib_save_LIBS=$LIBS
8486LIBS="-ldld $LIBS"
8487cat >conftest.$ac_ext <<_ACEOF
8488#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008489/* confdefs.h. */
8490_ACEOF
8491cat confdefs.h >>conftest.$ac_ext
8492cat >>conftest.$ac_ext <<_ACEOF
8493/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008494
8495/* Override any gcc2 internal prototype to avoid an error. */
8496#ifdef __cplusplus
8497extern "C"
8498#endif
8499/* We use char because int might match the return type of a gcc2
8500 builtin and then its argument prototype would still apply. */
8501char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008502int
8503main ()
8504{
8505dld_link ();
8506 ;
8507 return 0;
8508}
8509_ACEOF
8510rm -f conftest.$ac_objext conftest$ac_exeext
8511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8512 (eval $ac_link) 2>&5
8513 ac_status=$?
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); } &&
8516 { ac_try='test -s conftest$ac_exeext'
8517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518 (eval $ac_try) 2>&5
8519 ac_status=$?
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); }; }; then
8522 ac_cv_lib_dld_dld_link=yes
8523else
8524 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008525sed 's/^/| /' conftest.$ac_ext >&5
8526
John Criswell7a73b802003-06-30 21:59:07 +00008527ac_cv_lib_dld_dld_link=no
8528fi
8529rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8530LIBS=$ac_check_lib_save_LIBS
8531fi
8532echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8533echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8534if test $ac_cv_lib_dld_dld_link = yes; then
8535 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8536fi
8537
8538
8539fi
8540
8541
8542fi
8543
8544
8545fi
8546
8547
8548fi
8549
8550
8551fi
8552
8553 ;;
8554 esac
8555
8556 if test "x$lt_cv_dlopen" != xno; then
8557 enable_dlopen=yes
8558 else
8559 enable_dlopen=no
8560 fi
8561
8562 case $lt_cv_dlopen in
8563 dlopen)
8564 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008565 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008566
8567 save_LDFLAGS="$LDFLAGS"
8568 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8569
8570 save_LIBS="$LIBS"
8571 LIBS="$lt_cv_dlopen_libs $LIBS"
8572
8573 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8574echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8575if test "${lt_cv_dlopen_self+set}" = set; then
8576 echo $ECHO_N "(cached) $ECHO_C" >&6
8577else
8578 if test "$cross_compiling" = yes; then :
8579 lt_cv_dlopen_self=cross
8580else
John Criswell47fdd832003-07-14 16:52:07 +00008581 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008582 lt_status=$lt_dlunknown
8583 cat > conftest.$ac_ext <<EOF
John Criswell78227592003-09-30 19:41:15 +00008584#line 8590 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008585#include "confdefs.h"
8586
8587#if HAVE_DLFCN_H
8588#include <dlfcn.h>
8589#endif
8590
8591#include <stdio.h>
8592
8593#ifdef RTLD_GLOBAL
8594# define LT_DLGLOBAL RTLD_GLOBAL
8595#else
8596# ifdef DL_GLOBAL
8597# define LT_DLGLOBAL DL_GLOBAL
8598# else
8599# define LT_DLGLOBAL 0
8600# endif
8601#endif
8602
8603/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8604 find out it does not work in some platform. */
8605#ifndef LT_DLLAZY_OR_NOW
8606# ifdef RTLD_LAZY
8607# define LT_DLLAZY_OR_NOW RTLD_LAZY
8608# else
8609# ifdef DL_LAZY
8610# define LT_DLLAZY_OR_NOW DL_LAZY
8611# else
8612# ifdef RTLD_NOW
8613# define LT_DLLAZY_OR_NOW RTLD_NOW
8614# else
8615# ifdef DL_NOW
8616# define LT_DLLAZY_OR_NOW DL_NOW
8617# else
8618# define LT_DLLAZY_OR_NOW 0
8619# endif
8620# endif
8621# endif
8622# endif
8623#endif
8624
8625#ifdef __cplusplus
8626extern "C" void exit (int);
8627#endif
8628
8629void fnord() { int i=42;}
8630int main ()
8631{
8632 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8633 int status = $lt_dlunknown;
8634
8635 if (self)
8636 {
8637 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8638 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8639 /* dlclose (self); */
8640 }
8641
8642 exit (status);
8643}
8644EOF
8645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8646 (eval $ac_link) 2>&5
8647 ac_status=$?
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8650 (./conftest; exit; ) 2>/dev/null
8651 lt_status=$?
8652 case x$lt_status in
8653 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8654 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8655 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8656 esac
8657 else :
8658 # compilation failed
8659 lt_cv_dlopen_self=no
8660 fi
8661fi
8662rm -fr conftest*
8663
8664
8665fi
8666echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8667echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8668
8669 if test "x$lt_cv_dlopen_self" = xyes; then
8670 LDFLAGS="$LDFLAGS $link_static_flag"
8671 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8672echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8673if test "${lt_cv_dlopen_self_static+set}" = set; then
8674 echo $ECHO_N "(cached) $ECHO_C" >&6
8675else
8676 if test "$cross_compiling" = yes; then :
8677 lt_cv_dlopen_self_static=cross
8678else
John Criswell47fdd832003-07-14 16:52:07 +00008679 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008680 lt_status=$lt_dlunknown
8681 cat > conftest.$ac_ext <<EOF
John Criswell78227592003-09-30 19:41:15 +00008682#line 8688 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008683#include "confdefs.h"
8684
8685#if HAVE_DLFCN_H
8686#include <dlfcn.h>
8687#endif
8688
8689#include <stdio.h>
8690
8691#ifdef RTLD_GLOBAL
8692# define LT_DLGLOBAL RTLD_GLOBAL
8693#else
8694# ifdef DL_GLOBAL
8695# define LT_DLGLOBAL DL_GLOBAL
8696# else
8697# define LT_DLGLOBAL 0
8698# endif
8699#endif
8700
8701/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8702 find out it does not work in some platform. */
8703#ifndef LT_DLLAZY_OR_NOW
8704# ifdef RTLD_LAZY
8705# define LT_DLLAZY_OR_NOW RTLD_LAZY
8706# else
8707# ifdef DL_LAZY
8708# define LT_DLLAZY_OR_NOW DL_LAZY
8709# else
8710# ifdef RTLD_NOW
8711# define LT_DLLAZY_OR_NOW RTLD_NOW
8712# else
8713# ifdef DL_NOW
8714# define LT_DLLAZY_OR_NOW DL_NOW
8715# else
8716# define LT_DLLAZY_OR_NOW 0
8717# endif
8718# endif
8719# endif
8720# endif
8721#endif
8722
8723#ifdef __cplusplus
8724extern "C" void exit (int);
8725#endif
8726
8727void fnord() { int i=42;}
8728int main ()
8729{
8730 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8731 int status = $lt_dlunknown;
8732
8733 if (self)
8734 {
8735 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8736 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8737 /* dlclose (self); */
8738 }
8739
8740 exit (status);
8741}
8742EOF
8743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8744 (eval $ac_link) 2>&5
8745 ac_status=$?
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8748 (./conftest; exit; ) 2>/dev/null
8749 lt_status=$?
8750 case x$lt_status in
8751 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8752 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8753 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8754 esac
8755 else :
8756 # compilation failed
8757 lt_cv_dlopen_self_static=no
8758 fi
8759fi
8760rm -fr conftest*
8761
8762
8763fi
8764echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8765echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8766 fi
8767
8768 CPPFLAGS="$save_CPPFLAGS"
8769 LDFLAGS="$save_LDFLAGS"
8770 LIBS="$save_LIBS"
8771 ;;
8772 esac
8773
8774 case $lt_cv_dlopen_self in
8775 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8776 *) enable_dlopen_self=unknown ;;
8777 esac
8778
8779 case $lt_cv_dlopen_self_static in
8780 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8781 *) enable_dlopen_self_static=unknown ;;
8782 esac
8783fi
8784
8785
John Criswell47fdd832003-07-14 16:52:07 +00008786# Report which librarie types wil actually be built
8787echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8788echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8789echo "$as_me:$LINENO: result: $can_build_shared" >&5
8790echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008791
John Criswell47fdd832003-07-14 16:52:07 +00008792echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8793echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8794test "$can_build_shared" = "no" && enable_shared=no
8795
8796# On AIX, shared libraries and static libraries use the same namespace, and
8797# are all built from PIC.
8798case "$host_os" in
8799aix3*)
8800 test "$enable_shared" = yes && enable_static=no
8801 if test -n "$RANLIB"; then
8802 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8803 postinstall_cmds='$RANLIB $lib'
8804 fi
8805 ;;
8806
8807aix4*)
8808 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8809 test "$enable_shared" = yes && enable_static=no
8810 fi
8811 ;;
8812 darwin* | rhapsody*)
8813 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8814 archive_cmds_need_lc=no
8815 case "$host_os" in
8816 rhapsody* | darwin1.[012])
8817 allow_undefined_flag='-undefined suppress'
8818 ;;
8819 *) # Darwin 1.3 on
8820 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8821 ;;
8822 esac
8823 # FIXME: Relying on posixy $() will cause problems for
8824 # cross-compilation, but unfortunately the echo tests do not
8825 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8826 # `"' quotes if we put them in here... so don't!
8827 output_verbose_link_cmd='echo'
8828 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8829 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8830 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8831 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}'
8832 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}'
8833 hardcode_direct=no
8834 hardcode_automatic=yes
8835 hardcode_shlibpath_var=unsupported
8836 whole_archive_flag_spec='-all_load $convenience'
8837 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008838 fi
John Criswell7a73b802003-06-30 21:59:07 +00008839 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008840esac
8841echo "$as_me:$LINENO: result: $enable_shared" >&5
8842echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008843
John Criswell47fdd832003-07-14 16:52:07 +00008844echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8845echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8846# Make sure either enable_shared or enable_static is yes.
8847test "$enable_shared" = yes || enable_static=yes
8848echo "$as_me:$LINENO: result: $enable_static" >&5
8849echo "${ECHO_T}$enable_static" >&6
8850
8851# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008852# libtool distribution, otherwise you forgot to ship ltmain.sh
8853# with your package, and you will get complaints that there are
8854# no rules to generate ltmain.sh.
8855if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008856 # See if we are running on zsh, and set the options which allow our commands through
8857 # without removal of \ escapes.
8858 if test -n "${ZSH_VERSION+set}" ; then
8859 setopt NO_GLOB_SUBST
8860 fi
John Criswell7a73b802003-06-30 21:59:07 +00008861 # Now quote all the things that may contain metacharacters while being
8862 # careful not to overquote the AC_SUBSTed values. We take copies of the
8863 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008864 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8865 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8866 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8867 deplibs_check_method reload_flag reload_cmds need_locks \
8868 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8869 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008870 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008871 old_postinstall_cmds old_postuninstall_cmds \
8872 compiler \
8873 CC \
8874 LD \
8875 lt_prog_compiler_wl \
8876 lt_prog_compiler_pic \
8877 lt_prog_compiler_static \
8878 lt_prog_compiler_no_builtin_flag \
8879 export_dynamic_flag_spec \
8880 thread_safe_flag_spec \
8881 whole_archive_flag_spec \
8882 enable_shared_with_static_runtimes \
8883 old_archive_cmds \
8884 old_archive_from_new_cmds \
8885 predep_objects \
8886 postdep_objects \
8887 predeps \
8888 postdeps \
8889 compiler_lib_search_path \
8890 archive_cmds \
8891 archive_expsym_cmds \
8892 postinstall_cmds \
8893 postuninstall_cmds \
8894 old_archive_from_expsyms_cmds \
8895 allow_undefined_flag \
8896 no_undefined_flag \
8897 export_symbols_cmds \
8898 hardcode_libdir_flag_spec \
8899 hardcode_libdir_flag_spec_ld \
8900 hardcode_libdir_separator \
8901 hardcode_automatic \
8902 module_cmds \
8903 module_expsym_cmds \
8904 lt_cv_prog_compiler_c_o \
8905 exclude_expsyms \
8906 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008907
8908 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008909 old_archive_cmds | \
8910 old_archive_from_new_cmds | \
8911 archive_cmds | \
8912 archive_expsym_cmds | \
8913 module_cmds | \
8914 module_expsym_cmds | \
8915 old_archive_from_expsyms_cmds | \
8916 export_symbols_cmds | \
8917 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008918 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008919 old_postinstall_cmds | old_postuninstall_cmds | \
8920 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008921 # Double-quote double-evaled strings.
8922 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8923 ;;
8924 *)
8925 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8926 ;;
8927 esac
8928 done
8929
John Criswell47fdd832003-07-14 16:52:07 +00008930 case $lt_echo in
8931 *'\$0 --fallback-echo"')
8932 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8933 ;;
8934 esac
8935
8936cfgfile="${ofile}T"
8937 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8938 $rm -f "$cfgfile"
8939 { echo "$as_me:$LINENO: creating $ofile" >&5
8940echo "$as_me: creating $ofile" >&6;}
8941
8942 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008943#! $SHELL
8944
John Criswell47fdd832003-07-14 16:52:07 +00008945# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008946# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8947# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8948#
John Criswell47fdd832003-07-14 16:52:07 +00008949# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8950# Free Software Foundation, Inc.
8951#
8952# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008953# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8954#
8955# This program is free software; you can redistribute it and/or modify
8956# it under the terms of the GNU General Public License as published by
8957# the Free Software Foundation; either version 2 of the License, or
8958# (at your option) any later version.
8959#
8960# This program is distributed in the hope that it will be useful, but
8961# WITHOUT ANY WARRANTY; without even the implied warranty of
8962# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8963# General Public License for more details.
8964#
8965# You should have received a copy of the GNU General Public License
8966# along with this program; if not, write to the Free Software
8967# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8968#
8969# As a special exception to the GNU General Public License, if you
8970# distribute this file as part of a program that contains a
8971# configuration script generated by Autoconf, you may include it under
8972# the same distribution terms that you use for the rest of that program.
8973
John Criswell47fdd832003-07-14 16:52:07 +00008974# A sed program that does not truncate output.
8975SED=$lt_SED
8976
John Criswell7a73b802003-06-30 21:59:07 +00008977# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008978Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008979
8980# The HP-UX ksh and POSIX shell print the target directory to stdout
8981# if CDPATH is set.
8982if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8983
John Criswell47fdd832003-07-14 16:52:07 +00008984# The names of the tagged configurations supported by this script.
8985available_tags=
8986
John Criswell7a73b802003-06-30 21:59:07 +00008987# ### BEGIN LIBTOOL CONFIG
8988
8989# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8990
8991# Shell to use when invoking shell scripts.
8992SHELL=$lt_SHELL
8993
8994# Whether or not to build shared libraries.
8995build_libtool_libs=$enable_shared
8996
8997# Whether or not to build static libraries.
8998build_old_libs=$enable_static
8999
9000# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00009001build_libtool_need_lc=$archive_cmds_need_lc
9002
9003# Whether or not to disallow shared libs when runtime libs are static
9004allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00009005
9006# Whether or not to optimize for fast installation.
9007fast_install=$enable_fast_install
9008
9009# The host system.
9010host_alias=$host_alias
9011host=$host
9012
9013# An echo program that does not interpret backslashes.
9014echo=$lt_echo
9015
9016# The archiver.
9017AR=$lt_AR
9018AR_FLAGS=$lt_AR_FLAGS
9019
John Criswell47fdd832003-07-14 16:52:07 +00009020# A C compiler.
9021LTCC=$lt_LTCC
9022
9023# A language-specific compiler.
9024CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00009025
9026# Is the compiler the GNU C compiler?
9027with_gcc=$GCC
9028
John Criswell47fdd832003-07-14 16:52:07 +00009029# An ERE matcher.
9030EGREP=$lt_EGREP
9031
John Criswell7a73b802003-06-30 21:59:07 +00009032# The linker used to build libraries.
9033LD=$lt_LD
9034
9035# Whether we need hard or soft links.
9036LN_S=$lt_LN_S
9037
9038# A BSD-compatible nm program.
9039NM=$lt_NM
9040
9041# A symbol stripping program
9042STRIP=$STRIP
9043
9044# Used to examine libraries when file_magic_cmd begins "file"
9045MAGIC_CMD=$MAGIC_CMD
9046
9047# Used on cygwin: DLL creation program.
9048DLLTOOL="$DLLTOOL"
9049
9050# Used on cygwin: object dumper.
9051OBJDUMP="$OBJDUMP"
9052
9053# Used on cygwin: assembler.
9054AS="$AS"
9055
9056# The name of the directory that contains temporary libtool files.
9057objdir=$objdir
9058
9059# How to create reloadable object files.
9060reload_flag=$lt_reload_flag
9061reload_cmds=$lt_reload_cmds
9062
9063# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009064wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009065
9066# Object file suffix (normally "o").
9067objext="$ac_objext"
9068
9069# Old archive suffix (normally "a").
9070libext="$libext"
9071
John Criswell47fdd832003-07-14 16:52:07 +00009072# Shared library suffix (normally ".so").
9073shrext='$shrext'
9074
John Criswell7a73b802003-06-30 21:59:07 +00009075# Executable file suffix (normally "").
9076exeext="$exeext"
9077
9078# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009079pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009080pic_mode=$pic_mode
9081
John Criswell47fdd832003-07-14 16:52:07 +00009082# What is the maximum length of a command?
9083max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009084
John Criswell47fdd832003-07-14 16:52:07 +00009085# Does compiler simultaneously support -c and -o options?
9086compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009087
9088# Must we lock files when doing compilation ?
9089need_locks=$lt_need_locks
9090
9091# Do we need the lib prefix for modules?
9092need_lib_prefix=$need_lib_prefix
9093
9094# Do we need a version for libraries?
9095need_version=$need_version
9096
9097# Whether dlopen is supported.
9098dlopen_support=$enable_dlopen
9099
9100# Whether dlopen of programs is supported.
9101dlopen_self=$enable_dlopen_self
9102
9103# Whether dlopen of statically linked programs is supported.
9104dlopen_self_static=$enable_dlopen_self_static
9105
9106# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009107link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009108
9109# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009110no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009111
9112# Compiler flag to allow reflexive dlopens.
9113export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9114
9115# Compiler flag to generate shared objects directly from archives.
9116whole_archive_flag_spec=$lt_whole_archive_flag_spec
9117
9118# Compiler flag to generate thread-safe objects.
9119thread_safe_flag_spec=$lt_thread_safe_flag_spec
9120
9121# Library versioning type.
9122version_type=$version_type
9123
9124# Format of library name prefix.
9125libname_spec=$lt_libname_spec
9126
9127# List of archive names. First name is the real one, the rest are links.
9128# The last name is the one that the linker finds with -lNAME.
9129library_names_spec=$lt_library_names_spec
9130
9131# The coded name of the library, if different from the real name.
9132soname_spec=$lt_soname_spec
9133
9134# Commands used to build and install an old-style archive.
9135RANLIB=$lt_RANLIB
9136old_archive_cmds=$lt_old_archive_cmds
9137old_postinstall_cmds=$lt_old_postinstall_cmds
9138old_postuninstall_cmds=$lt_old_postuninstall_cmds
9139
9140# Create an old-style archive from a shared archive.
9141old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9142
9143# Create a temporary old-style archive to link instead of a shared archive.
9144old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9145
9146# Commands used to build and install a shared archive.
9147archive_cmds=$lt_archive_cmds
9148archive_expsym_cmds=$lt_archive_expsym_cmds
9149postinstall_cmds=$lt_postinstall_cmds
9150postuninstall_cmds=$lt_postuninstall_cmds
9151
John Criswell47fdd832003-07-14 16:52:07 +00009152# Commands used to build a loadable module (assumed same as above if empty)
9153module_cmds=$lt_module_cmds
9154module_expsym_cmds=$lt_module_expsym_cmds
9155
John Criswell7a73b802003-06-30 21:59:07 +00009156# Commands to strip libraries.
9157old_striplib=$lt_old_striplib
9158striplib=$lt_striplib
9159
John Criswell47fdd832003-07-14 16:52:07 +00009160# Dependencies to place before the objects being linked to create a
9161# shared library.
9162predep_objects=$lt_predep_objects
9163
9164# Dependencies to place after the objects being linked to create a
9165# shared library.
9166postdep_objects=$lt_postdep_objects
9167
9168# Dependencies to place before the objects being linked to create a
9169# shared library.
9170predeps=$lt_predeps
9171
9172# Dependencies to place after the objects being linked to create a
9173# shared library.
9174postdeps=$lt_postdeps
9175
9176# The library search path used internally by the compiler when linking
9177# a shared library.
9178compiler_lib_search_path=$lt_compiler_lib_search_path
9179
John Criswell7a73b802003-06-30 21:59:07 +00009180# Method to check whether dependent libraries are shared objects.
9181deplibs_check_method=$lt_deplibs_check_method
9182
9183# Command to use when deplibs_check_method == file_magic.
9184file_magic_cmd=$lt_file_magic_cmd
9185
9186# Flag that allows shared libraries with undefined symbols to be built.
9187allow_undefined_flag=$lt_allow_undefined_flag
9188
9189# Flag that forces no undefined symbols.
9190no_undefined_flag=$lt_no_undefined_flag
9191
9192# Commands used to finish a libtool library installation in a directory.
9193finish_cmds=$lt_finish_cmds
9194
9195# Same as above, but a single script fragment to be evaled but not shown.
9196finish_eval=$lt_finish_eval
9197
9198# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009199global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009200
9201# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009202global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009203
9204# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009205global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009206
9207# This is the shared library runtime path variable.
9208runpath_var=$runpath_var
9209
9210# This is the shared library path variable.
9211shlibpath_var=$shlibpath_var
9212
9213# Is shlibpath searched before the hard-coded library search path?
9214shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9215
9216# How to hardcode a shared library path into an executable.
9217hardcode_action=$hardcode_action
9218
9219# Whether we should hardcode library paths into libraries.
9220hardcode_into_libs=$hardcode_into_libs
9221
9222# Flag to hardcode \$libdir into a binary during linking.
9223# This must work even if \$libdir does not exist.
9224hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9225
John Criswell47fdd832003-07-14 16:52:07 +00009226# If ld is used when linking, flag to hardcode \$libdir into
9227# a binary during linking. This must work even if \$libdir does
9228# not exist.
9229hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9230
John Criswell7a73b802003-06-30 21:59:07 +00009231# Whether we need a single -rpath flag with a separated argument.
9232hardcode_libdir_separator=$lt_hardcode_libdir_separator
9233
John Criswell47fdd832003-07-14 16:52:07 +00009234# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009235# resulting binary.
9236hardcode_direct=$hardcode_direct
9237
9238# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9239# resulting binary.
9240hardcode_minus_L=$hardcode_minus_L
9241
9242# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9243# the resulting binary.
9244hardcode_shlibpath_var=$hardcode_shlibpath_var
9245
John Criswell47fdd832003-07-14 16:52:07 +00009246# Set to yes if building a shared library automatically hardcodes DIR into the library
9247# and all subsequent libraries and executables linked against it.
9248hardcode_automatic=$hardcode_automatic
9249
John Criswell7a73b802003-06-30 21:59:07 +00009250# Variables whose values should be saved in libtool wrapper scripts and
9251# restored at relink time.
9252variables_saved_for_relink="$variables_saved_for_relink"
9253
9254# Whether libtool must link a program against all its dependency libraries.
9255link_all_deplibs=$link_all_deplibs
9256
9257# Compile-time system search path for libraries
9258sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9259
9260# Run-time system search path for libraries
9261sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9262
9263# Fix the shell variable \$srcfile for the compiler.
9264fix_srcfile_path="$fix_srcfile_path"
9265
9266# Set to yes if exported symbols are required.
9267always_export_symbols=$always_export_symbols
9268
9269# The commands to list exported symbols.
9270export_symbols_cmds=$lt_export_symbols_cmds
9271
9272# The commands to extract the exported symbol list from a shared archive.
9273extract_expsyms_cmds=$lt_extract_expsyms_cmds
9274
9275# Symbols that should not be listed in the preloaded symbols.
9276exclude_expsyms=$lt_exclude_expsyms
9277
9278# Symbols that must always be exported.
9279include_expsyms=$lt_include_expsyms
9280
9281# ### END LIBTOOL CONFIG
9282
9283__EOF__
9284
John Criswell47fdd832003-07-14 16:52:07 +00009285
John Criswell7a73b802003-06-30 21:59:07 +00009286 case $host_os in
9287 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009288 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009289
9290# AIX sometimes has problems with the GCC collect2 program. For some
9291# reason, if we set the COLLECT_NAMES environment variable, the problems
9292# vanish in a puff of smoke.
9293if test "X${COLLECT_NAMES+set}" != Xset; then
9294 COLLECT_NAMES=
9295 export COLLECT_NAMES
9296fi
9297EOF
9298 ;;
9299 esac
9300
John Criswell7a73b802003-06-30 21:59:07 +00009301 # We use sed instead of cat because bash on DJGPP gets confused if
9302 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9303 # text mode, it properly converts lines to CR/LF. This bash problem
9304 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009305 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009306
John Criswell47fdd832003-07-14 16:52:07 +00009307 mv -f "$cfgfile" "$ofile" || \
9308 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009309 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009310
9311else
9312 # If there is no Makefile yet, we rely on a make rule to execute
9313 # `config.status --recheck' to rerun these tests and create the
9314 # libtool script then.
9315 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009316fi
John Criswell7a73b802003-06-30 21:59:07 +00009317
9318
John Criswell47fdd832003-07-14 16:52:07 +00009319ac_ext=c
9320ac_cpp='$CPP $CPPFLAGS'
9321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9323ac_compiler_gnu=$ac_cv_c_compiler_gnu
9324
9325CC="$lt_save_CC"
9326
9327
9328# Check whether --with-tags or --without-tags was given.
9329if test "${with_tags+set}" = set; then
9330 withval="$with_tags"
9331 tagnames="$withval"
9332fi;
9333
9334if test -f "$ltmain" && test -n "$tagnames"; then
9335 if test ! -f "${ofile}"; then
9336 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9337echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9338 fi
9339
9340 if test -z "$LTCC"; then
9341 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9342 if test -z "$LTCC"; then
9343 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9344echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9345 else
9346 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9347echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9348 fi
9349 fi
9350
9351 # Extract list of available tagged configurations in $ofile.
9352 # Note that this assumes the entire list is on one line.
9353 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9354
9355 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9356 for tagname in $tagnames; do
9357 IFS="$lt_save_ifs"
9358 # Check whether tagname contains only valid characters
9359 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9360 "") ;;
9361 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9362echo "$as_me: error: invalid tag name: $tagname" >&2;}
9363 { (exit 1); exit 1; }; }
9364 ;;
9365 esac
9366
9367 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9368 then
9369 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9370echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9371 { (exit 1); exit 1; }; }
9372 fi
9373
9374 # Update the list of available tags.
9375 if test -n "$tagname"; then
9376 echo appending configuration tag \"$tagname\" to $ofile
9377
9378 case $tagname in
9379 CXX)
9380 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9381 ac_ext=cc
9382ac_cpp='$CXXCPP $CPPFLAGS'
9383ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9384ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9385ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9386
9387
9388
9389
9390archive_cmds_need_lc_CXX=no
9391allow_undefined_flag_CXX=
9392always_export_symbols_CXX=no
9393archive_expsym_cmds_CXX=
9394export_dynamic_flag_spec_CXX=
9395hardcode_direct_CXX=no
9396hardcode_libdir_flag_spec_CXX=
9397hardcode_libdir_flag_spec_ld_CXX=
9398hardcode_libdir_separator_CXX=
9399hardcode_minus_L_CXX=no
9400hardcode_automatic_CXX=no
9401module_cmds_CXX=
9402module_expsym_cmds_CXX=
9403link_all_deplibs_CXX=unknown
9404old_archive_cmds_CXX=$old_archive_cmds
9405no_undefined_flag_CXX=
9406whole_archive_flag_spec_CXX=
9407enable_shared_with_static_runtimes_CXX=no
9408
9409# Dependencies to place before and after the object being linked:
9410predep_objects_CXX=
9411postdep_objects_CXX=
9412predeps_CXX=
9413postdeps_CXX=
9414compiler_lib_search_path_CXX=
9415
9416# Source file extension for C++ test sources.
9417ac_ext=cc
9418
9419# Object file extension for compiled C++ test sources.
9420objext=o
9421objext_CXX=$objext
9422
9423# Code to be used in simple compile tests
9424lt_simple_compile_test_code="int some_variable = 0;\n"
9425
9426# Code to be used in simple link tests
9427lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9428
9429# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9430
9431# If no C compiler was specified, use CC.
9432LTCC=${LTCC-"$CC"}
9433
9434# Allow CC to be a program name with arguments.
9435compiler=$CC
9436
9437
9438# Allow CC to be a program name with arguments.
9439lt_save_CC=$CC
9440lt_save_LD=$LD
9441lt_save_GCC=$GCC
9442GCC=$GXX
9443lt_save_with_gnu_ld=$with_gnu_ld
9444lt_save_path_LD=$lt_cv_path_LD
9445if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9446 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9447else
9448 unset lt_cv_prog_gnu_ld
9449fi
9450if test -n "${lt_cv_path_LDCXX+set}"; then
9451 lt_cv_path_LD=$lt_cv_path_LDCXX
9452else
9453 unset lt_cv_path_LD
9454fi
9455test -z "${LDCXX+set}" || LD=$LDCXX
9456CC=${CXX-"c++"}
9457compiler=$CC
9458compiler_CXX=$CC
9459cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9460
9461# We don't want -fno-exception wen compiling C++ code, so set the
9462# no_builtin_flag separately
9463if test "$GXX" = yes; then
9464 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9465else
9466 lt_prog_compiler_no_builtin_flag_CXX=
9467fi
9468
9469if test "$GXX" = yes; then
9470 # Set up default GNU C++ configuration
9471
9472
9473# Check whether --with-gnu-ld or --without-gnu-ld was given.
9474if test "${with_gnu_ld+set}" = set; then
9475 withval="$with_gnu_ld"
9476 test "$withval" = no || with_gnu_ld=yes
9477else
9478 with_gnu_ld=no
9479fi;
9480ac_prog=ld
9481if test "$GCC" = yes; then
9482 # Check if gcc -print-prog-name=ld gives a path.
9483 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9484echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9485 case $host in
9486 *-*-mingw*)
9487 # gcc leaves a trailing carriage return which upsets mingw
9488 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9489 *)
9490 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9491 esac
9492 case $ac_prog in
9493 # Accept absolute paths.
9494 [\\/]* | ?:[\\/]*)
9495 re_direlt='/[^/][^/]*/\.\./'
9496 # Canonicalize the path of ld
9497 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9498 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9499 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9500 done
9501 test -z "$LD" && LD="$ac_prog"
9502 ;;
9503 "")
9504 # If it fails, then pretend we aren't using GCC.
9505 ac_prog=ld
9506 ;;
9507 *)
9508 # If it is relative, then search for the first ld in PATH.
9509 with_gnu_ld=unknown
9510 ;;
9511 esac
9512elif test "$with_gnu_ld" = yes; then
9513 echo "$as_me:$LINENO: checking for GNU ld" >&5
9514echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9515else
9516 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9517echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9518fi
9519if test "${lt_cv_path_LD+set}" = set; then
9520 echo $ECHO_N "(cached) $ECHO_C" >&6
9521else
9522 if test -z "$LD"; then
9523 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9524 for ac_dir in $PATH; do
9525 IFS="$lt_save_ifs"
9526 test -z "$ac_dir" && ac_dir=.
9527 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9528 lt_cv_path_LD="$ac_dir/$ac_prog"
9529 # Check to see if the program is GNU ld. I'd rather use --version,
9530 # but apparently some GNU ld's only accept -v.
9531 # Break only if it was the GNU/non-GNU ld that we prefer.
9532 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9533 *GNU* | *'with BFD'*)
9534 test "$with_gnu_ld" != no && break
9535 ;;
9536 *)
9537 test "$with_gnu_ld" != yes && break
9538 ;;
9539 esac
9540 fi
9541 done
9542 IFS="$lt_save_ifs"
9543else
9544 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9545fi
9546fi
9547
9548LD="$lt_cv_path_LD"
9549if test -n "$LD"; then
9550 echo "$as_me:$LINENO: result: $LD" >&5
9551echo "${ECHO_T}$LD" >&6
9552else
9553 echo "$as_me:$LINENO: result: no" >&5
9554echo "${ECHO_T}no" >&6
9555fi
9556test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9557echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9558 { (exit 1); exit 1; }; }
9559echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9560echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9561if test "${lt_cv_prog_gnu_ld+set}" = set; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
9563else
9564 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9565case `"$LD" -v 2>&1 </dev/null` in
9566*GNU* | *'with BFD'*)
9567 lt_cv_prog_gnu_ld=yes
9568 ;;
9569*)
9570 lt_cv_prog_gnu_ld=no
9571 ;;
9572esac
9573fi
9574echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9575echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9576with_gnu_ld=$lt_cv_prog_gnu_ld
9577
9578
9579
9580 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9581 # archiving commands below assume that GNU ld is being used.
9582 if test "$with_gnu_ld" = yes; then
9583 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9584 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'
9585
9586 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9587 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9588
9589 # If archive_cmds runs LD, not CC, wlarc should be empty
9590 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9591 # investigate it a little bit more. (MM)
9592 wlarc='${wl}'
9593
9594 # ancient GNU ld didn't support --whole-archive et. al.
9595 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9596 grep 'no-whole-archive' > /dev/null; then
9597 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9598 else
9599 whole_archive_flag_spec_CXX=
9600 fi
9601 else
9602 with_gnu_ld=no
9603 wlarc=
9604
9605 # A generic and very simple default shared library creation
9606 # command for GNU C++ for the case where it uses the native
9607 # linker, instead of GNU ld. If possible, this setting should
9608 # overridden to take advantage of the native linker features on
9609 # the platform it is being used on.
9610 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9611 fi
9612
9613 # Commands to make compiler produce verbose output that lists
9614 # what "hidden" libraries, object files and flags are used when
9615 # linking a shared library.
9616 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9617
9618else
9619 GXX=no
9620 with_gnu_ld=no
9621 wlarc=
9622fi
9623
9624# PORTME: fill in a description of your system's C++ link characteristics
9625echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9626echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9627ld_shlibs_CXX=yes
9628case $host_os in
9629 aix3*)
9630 # FIXME: insert proper C++ library support
9631 ld_shlibs_CXX=no
9632 ;;
9633 aix4* | aix5*)
9634 if test "$host_cpu" = ia64; then
9635 # On IA64, the linker does run time linking by default, so we don't
9636 # have to do anything special.
9637 aix_use_runtimelinking=no
9638 exp_sym_flag='-Bexport'
9639 no_entry_flag=""
9640 else
9641 aix_use_runtimelinking=no
9642
9643 # Test if we are trying to use run time linking or normal
9644 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9645 # need to do runtime linking.
9646 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9647 for ld_flag in $LDFLAGS; do
9648 case $ld_flag in
9649 *-brtl*)
9650 aix_use_runtimelinking=yes
9651 break
9652 ;;
9653 esac
9654 done
9655 esac
9656
9657 exp_sym_flag='-bexport'
9658 no_entry_flag='-bnoentry'
9659 fi
9660
9661 # When large executables or shared objects are built, AIX ld can
9662 # have problems creating the table of contents. If linking a library
9663 # or program results in "error TOC overflow" add -mminimal-toc to
9664 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9665 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9666
9667 archive_cmds_CXX=''
9668 hardcode_direct_CXX=yes
9669 hardcode_libdir_separator_CXX=':'
9670 link_all_deplibs_CXX=yes
9671
9672 if test "$GXX" = yes; then
9673 case $host_os in aix4.012|aix4.012.*)
9674 # We only want to do this on AIX 4.2 and lower, the check
9675 # below for broken collect2 doesn't work under 4.3+
9676 collect2name=`${CC} -print-prog-name=collect2`
9677 if test -f "$collect2name" && \
9678 strings "$collect2name" | grep resolve_lib_name >/dev/null
9679 then
9680 # We have reworked collect2
9681 hardcode_direct_CXX=yes
9682 else
9683 # We have old collect2
9684 hardcode_direct_CXX=unsupported
9685 # It fails to find uninstalled libraries when the uninstalled
9686 # path is not listed in the libpath. Setting hardcode_minus_L
9687 # to unsupported forces relinking
9688 hardcode_minus_L_CXX=yes
9689 hardcode_libdir_flag_spec_CXX='-L$libdir'
9690 hardcode_libdir_separator_CXX=
9691 fi
9692 esac
9693 shared_flag='-shared'
9694 else
9695 # not using gcc
9696 if test "$host_cpu" = ia64; then
9697 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9698 # chokes on -Wl,-G. The following line is correct:
9699 shared_flag='-G'
9700 else
9701 if test "$aix_use_runtimelinking" = yes; then
9702 shared_flag='${wl}-G'
9703 else
9704 shared_flag='${wl}-bM:SRE'
9705 fi
9706 fi
9707 fi
9708
9709 # It seems that -bexpall does not export symbols beginning with
9710 # underscore (_), so it is better to generate a list of symbols to export.
9711 always_export_symbols_CXX=yes
9712 if test "$aix_use_runtimelinking" = yes; then
9713 # Warning - without using the other runtime loading flags (-brtl),
9714 # -berok will link without error, but may produce a broken library.
9715 allow_undefined_flag_CXX='-berok'
9716 # Determine the default libpath from the value encoded in an empty executable.
9717 cat >conftest.$ac_ext <<_ACEOF
9718#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009719/* confdefs.h. */
9720_ACEOF
9721cat confdefs.h >>conftest.$ac_ext
9722cat >>conftest.$ac_ext <<_ACEOF
9723/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009724
John Criswell47fdd832003-07-14 16:52:07 +00009725int
9726main ()
9727{
9728
9729 ;
9730 return 0;
9731}
9732_ACEOF
9733rm -f conftest.$ac_objext conftest$ac_exeext
9734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9735 (eval $ac_link) 2>&5
9736 ac_status=$?
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); } &&
9739 { ac_try='test -s conftest$ac_exeext'
9740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741 (eval $ac_try) 2>&5
9742 ac_status=$?
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; }; then
9745
9746aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9747}'`
9748# Check for a 64-bit object if we didn't find anything.
9749if 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; }
9750}'`; fi
9751else
9752 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009753sed 's/^/| /' conftest.$ac_ext >&5
9754
John Criswell47fdd832003-07-14 16:52:07 +00009755fi
9756rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9757if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9758
9759 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9760
9761 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"
9762 else
9763 if test "$host_cpu" = ia64; then
9764 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9765 allow_undefined_flag_CXX="-z nodefs"
9766 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"
9767 else
9768 # Determine the default libpath from the value encoded in an empty executable.
9769 cat >conftest.$ac_ext <<_ACEOF
9770#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009771/* confdefs.h. */
9772_ACEOF
9773cat confdefs.h >>conftest.$ac_ext
9774cat >>conftest.$ac_ext <<_ACEOF
9775/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009776
John Criswell47fdd832003-07-14 16:52:07 +00009777int
9778main ()
9779{
9780
9781 ;
9782 return 0;
9783}
9784_ACEOF
9785rm -f conftest.$ac_objext conftest$ac_exeext
9786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9787 (eval $ac_link) 2>&5
9788 ac_status=$?
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); } &&
9791 { ac_try='test -s conftest$ac_exeext'
9792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9793 (eval $ac_try) 2>&5
9794 ac_status=$?
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); }; }; then
9797
9798aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9799}'`
9800# Check for a 64-bit object if we didn't find anything.
9801if 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; }
9802}'`; fi
9803else
9804 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009805sed 's/^/| /' conftest.$ac_ext >&5
9806
John Criswell47fdd832003-07-14 16:52:07 +00009807fi
9808rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9809if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9810
9811 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9812 # Warning - without using the other run time loading flags,
9813 # -berok will link without error, but may produce a broken library.
9814 no_undefined_flag_CXX=' ${wl}-bernotok'
9815 allow_undefined_flag_CXX=' ${wl}-berok'
9816 # -bexpall does not export symbols beginning with underscore (_)
9817 always_export_symbols_CXX=yes
9818 # Exported symbols can be pulled into shared objects from archives
9819 whole_archive_flag_spec_CXX=' '
9820 archive_cmds_need_lc_CXX=yes
9821 # This is similar to how AIX traditionally builds it's shared libraries.
9822 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'
9823 fi
9824 fi
9825 ;;
9826 chorus*)
9827 case $cc_basename in
9828 *)
9829 # FIXME: insert proper C++ library support
9830 ld_shlibs_CXX=no
9831 ;;
9832 esac
9833 ;;
9834
9835 cygwin* | mingw* | pw32*)
9836 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9837 # as there is no search path for DLLs.
9838 hardcode_libdir_flag_spec_CXX='-L$libdir'
9839 allow_undefined_flag_CXX=unsupported
9840 always_export_symbols_CXX=no
9841 enable_shared_with_static_runtimes_CXX=yes
9842
9843 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9844 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'
9845 # If the export-symbols file already is a .def file (1st line
9846 # is EXPORTS), use it as is; otherwise, prepend...
9847 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9848 cp $export_symbols $output_objdir/$soname.def;
9849 else
9850 echo EXPORTS > $output_objdir/$soname.def;
9851 cat $export_symbols >> $output_objdir/$soname.def;
9852 fi~
9853 $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'
9854 else
9855 ld_shlibs_CXX=no
9856 fi
9857 ;;
9858
9859 darwin* | rhapsody*)
9860 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9861 archive_cmds_need_lc_CXX=no
9862 case "$host_os" in
9863 rhapsody* | darwin1.[012])
9864 allow_undefined_flag_CXX='-undefined suppress'
9865 ;;
9866 *) # Darwin 1.3 on
9867 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9868 ;;
9869 esac
9870 lt_int_apple_cc_single_mod=no
9871 output_verbose_link_cmd='echo'
9872 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9873 lt_int_apple_cc_single_mod=yes
9874 fi
9875 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9876 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9877 else
9878 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'
9879 fi
9880 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9881
9882 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9883 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9884 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}'
9885 else
9886 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}'
9887 fi
9888 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}'
9889 hardcode_direct_CXX=no
9890 hardcode_automatic_CXX=yes
9891 hardcode_shlibpath_var_CXX=unsupported
9892 whole_archive_flag_spec_CXX='-all_load $convenience'
9893 link_all_deplibs_CXX=yes
9894 fi
9895 ;;
9896
9897 dgux*)
9898 case $cc_basename in
9899 ec++)
9900 # FIXME: insert proper C++ library support
9901 ld_shlibs_CXX=no
9902 ;;
9903 ghcx)
9904 # Green Hills C++ Compiler
9905 # FIXME: insert proper C++ library support
9906 ld_shlibs_CXX=no
9907 ;;
9908 *)
9909 # FIXME: insert proper C++ library support
9910 ld_shlibs_CXX=no
9911 ;;
9912 esac
9913 ;;
9914 freebsd12*)
9915 # C++ shared libraries reported to be fairly broken before switch to ELF
9916 ld_shlibs_CXX=no
9917 ;;
9918 freebsd-elf*)
9919 archive_cmds_need_lc_CXX=no
9920 ;;
9921 freebsd*)
9922 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9923 # conventions
9924 ld_shlibs_CXX=yes
9925 ;;
9926 gnu*)
9927 ;;
9928 hpux9*)
9929 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9930 hardcode_libdir_separator_CXX=:
9931 export_dynamic_flag_spec_CXX='${wl}-E'
9932 hardcode_direct_CXX=yes
9933 hardcode_minus_L_CXX=yes # Not in the search PATH,
9934 # but as the default
9935 # location of the library.
9936
9937 case $cc_basename in
9938 CC)
9939 # FIXME: insert proper C++ library support
9940 ld_shlibs_CXX=no
9941 ;;
9942 aCC)
9943 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'
9944 # Commands to make compiler produce verbose output that lists
9945 # what "hidden" libraries, object files and flags are used when
9946 # linking a shared library.
9947 #
9948 # There doesn't appear to be a way to prevent this compiler from
9949 # explicitly linking system object files so we need to strip them
9950 # from the output so that they don't get included in the library
9951 # dependencies.
9952 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'
9953 ;;
9954 *)
9955 if test "$GXX" = yes; then
9956 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'
9957 else
9958 # FIXME: insert proper C++ library support
9959 ld_shlibs_CXX=no
9960 fi
9961 ;;
9962 esac
9963 ;;
9964 hpux10*|hpux11*)
9965 if test $with_gnu_ld = no; then
9966 case "$host_cpu" in
9967 hppa*64*)
9968 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9969 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9970 hardcode_libdir_separator_CXX=:
9971 ;;
9972 ia64*)
9973 hardcode_libdir_flag_spec_CXX='-L$libdir'
9974 ;;
9975 *)
9976 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9977 hardcode_libdir_separator_CXX=:
9978 export_dynamic_flag_spec_CXX='${wl}-E'
9979 ;;
9980 esac
9981 fi
9982 case "$host_cpu" in
9983 hppa*64*)
9984 hardcode_direct_CXX=no
9985 hardcode_shlibpath_var_CXX=no
9986 ;;
9987 ia64*)
9988 hardcode_direct_CXX=no
9989 hardcode_shlibpath_var_CXX=no
9990 hardcode_minus_L_CXX=yes # Not in the search PATH,
9991 # but as the default
9992 # location of the library.
9993 ;;
9994 *)
9995 hardcode_direct_CXX=yes
9996 hardcode_minus_L_CXX=yes # Not in the search PATH,
9997 # but as the default
9998 # location of the library.
9999 ;;
10000 esac
10001
10002 case $cc_basename in
10003 CC)
10004 # FIXME: insert proper C++ library support
10005 ld_shlibs_CXX=no
10006 ;;
10007 aCC)
10008 case "$host_cpu" in
10009 hppa*64*|ia64*)
10010 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10011 ;;
10012 *)
10013 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10014 ;;
10015 esac
10016 # Commands to make compiler produce verbose output that lists
10017 # what "hidden" libraries, object files and flags are used when
10018 # linking a shared library.
10019 #
10020 # There doesn't appear to be a way to prevent this compiler from
10021 # explicitly linking system object files so we need to strip them
10022 # from the output so that they don't get included in the library
10023 # dependencies.
10024 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'
10025 ;;
10026 *)
10027 if test "$GXX" = yes; then
10028 if test $with_gnu_ld = no; then
10029 case "$host_cpu" in
10030 ia64*|hppa*64*)
10031 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10032 ;;
10033 *)
10034 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'
10035 ;;
10036 esac
10037 fi
10038 else
10039 # FIXME: insert proper C++ library support
10040 ld_shlibs_CXX=no
10041 fi
10042 ;;
10043 esac
10044 ;;
10045 irix5* | irix6*)
10046 case $cc_basename in
10047 CC)
10048 # SGI C++
10049 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'
10050
10051 # Archives containing C++ object files must be created using
10052 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10053 # necessary to make sure instantiated templates are included
10054 # in the archive.
10055 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10056 ;;
10057 *)
10058 if test "$GXX" = yes; then
10059 if test "$with_gnu_ld" = no; then
10060 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'
10061 else
10062 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10063 fi
10064 fi
10065 link_all_deplibs_CXX=yes
10066 ;;
10067 esac
10068 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10069 hardcode_libdir_separator_CXX=:
10070 ;;
10071 linux*)
10072 case $cc_basename in
10073 KCC)
10074 # Kuck and Associates, Inc. (KAI) C++ Compiler
10075
10076 # KCC will only create a shared library if the output file
10077 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10078 # to its proper name (with version) after linking.
10079 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'
10080 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'
10081 # Commands to make compiler produce verbose output that lists
10082 # what "hidden" libraries, object files and flags are used when
10083 # linking a shared library.
10084 #
10085 # There doesn't appear to be a way to prevent this compiler from
10086 # explicitly linking system object files so we need to strip them
10087 # from the output so that they don't get included in the library
10088 # dependencies.
10089 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'
10090
10091 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10092 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10093
10094 # Archives containing C++ object files must be created using
10095 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10096 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10097 ;;
10098 icpc)
10099 # Intel C++
10100 with_gnu_ld=yes
10101 archive_cmds_need_lc_CXX=no
10102 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10103 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'
10104 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10105 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10106 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10107 ;;
10108 cxx)
10109 # Compaq C++
10110 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10111 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'
10112
10113 runpath_var=LD_RUN_PATH
10114 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10115 hardcode_libdir_separator_CXX=:
10116
10117 # Commands to make compiler produce verbose output that lists
10118 # what "hidden" libraries, object files and flags are used when
10119 # linking a shared library.
10120 #
10121 # There doesn't appear to be a way to prevent this compiler from
10122 # explicitly linking system object files so we need to strip them
10123 # from the output so that they don't get included in the library
10124 # dependencies.
10125 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'
10126 ;;
10127 esac
10128 ;;
10129 lynxos*)
10130 # FIXME: insert proper C++ library support
10131 ld_shlibs_CXX=no
10132 ;;
10133 m88k*)
10134 # FIXME: insert proper C++ library support
10135 ld_shlibs_CXX=no
10136 ;;
10137 mvs*)
10138 case $cc_basename in
10139 cxx)
10140 # FIXME: insert proper C++ library support
10141 ld_shlibs_CXX=no
10142 ;;
10143 *)
10144 # FIXME: insert proper C++ library support
10145 ld_shlibs_CXX=no
10146 ;;
10147 esac
10148 ;;
10149 netbsd*)
10150 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10151 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10152 wlarc=
10153 hardcode_libdir_flag_spec_CXX='-R$libdir'
10154 hardcode_direct_CXX=yes
10155 hardcode_shlibpath_var_CXX=no
10156 fi
10157 # Workaround some broken pre-1.5 toolchains
10158 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10159 ;;
10160 osf3*)
10161 case $cc_basename in
10162 KCC)
10163 # Kuck and Associates, Inc. (KAI) C++ Compiler
10164
10165 # KCC will only create a shared library if the output file
10166 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10167 # to its proper name (with version) after linking.
10168 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'
10169
10170 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10171 hardcode_libdir_separator_CXX=:
10172
10173 # Archives containing C++ object files must be created using
10174 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10175 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10176
10177 ;;
10178 RCC)
10179 # Rational C++ 2.4.1
10180 # FIXME: insert proper C++ library support
10181 ld_shlibs_CXX=no
10182 ;;
10183 cxx)
10184 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10185 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'
10186
10187 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10188 hardcode_libdir_separator_CXX=:
10189
10190 # Commands to make compiler produce verbose output that lists
10191 # what "hidden" libraries, object files and flags are used when
10192 # linking a shared library.
10193 #
10194 # There doesn't appear to be a way to prevent this compiler from
10195 # explicitly linking system object files so we need to strip them
10196 # from the output so that they don't get included in the library
10197 # dependencies.
10198 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'
10199 ;;
10200 *)
10201 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10202 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10203 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'
10204
10205 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10206 hardcode_libdir_separator_CXX=:
10207
10208 # Commands to make compiler produce verbose output that lists
10209 # what "hidden" libraries, object files and flags are used when
10210 # linking a shared library.
10211 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10212
10213 else
10214 # FIXME: insert proper C++ library support
10215 ld_shlibs_CXX=no
10216 fi
10217 ;;
10218 esac
10219 ;;
10220 osf4* | osf5*)
10221 case $cc_basename in
10222 KCC)
10223 # Kuck and Associates, Inc. (KAI) C++ Compiler
10224
10225 # KCC will only create a shared library if the output file
10226 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10227 # to its proper name (with version) after linking.
10228 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'
10229
10230 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10231 hardcode_libdir_separator_CXX=:
10232
10233 # Archives containing C++ object files must be created using
10234 # the KAI C++ compiler.
10235 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10236 ;;
10237 RCC)
10238 # Rational C++ 2.4.1
10239 # FIXME: insert proper C++ library support
10240 ld_shlibs_CXX=no
10241 ;;
10242 cxx)
10243 allow_undefined_flag_CXX=' -expect_unresolved \*'
10244 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'
10245 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10246 echo "-hidden">> $lib.exp~
10247 $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~
10248 $rm $lib.exp'
10249
10250 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10251 hardcode_libdir_separator_CXX=:
10252
10253 # Commands to make compiler produce verbose output that lists
10254 # what "hidden" libraries, object files and flags are used when
10255 # linking a shared library.
10256 #
10257 # There doesn't appear to be a way to prevent this compiler from
10258 # explicitly linking system object files so we need to strip them
10259 # from the output so that they don't get included in the library
10260 # dependencies.
10261 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'
10262 ;;
10263 *)
10264 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10265 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10266 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'
10267
10268 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10269 hardcode_libdir_separator_CXX=:
10270
10271 # Commands to make compiler produce verbose output that lists
10272 # what "hidden" libraries, object files and flags are used when
10273 # linking a shared library.
10274 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10275
10276 else
10277 # FIXME: insert proper C++ library support
10278 ld_shlibs_CXX=no
10279 fi
10280 ;;
10281 esac
10282 ;;
10283 psos*)
10284 # FIXME: insert proper C++ library support
10285 ld_shlibs_CXX=no
10286 ;;
10287 sco*)
10288 archive_cmds_need_lc_CXX=no
10289 case $cc_basename in
10290 CC)
10291 # FIXME: insert proper C++ library support
10292 ld_shlibs_CXX=no
10293 ;;
10294 *)
10295 # FIXME: insert proper C++ library support
10296 ld_shlibs_CXX=no
10297 ;;
10298 esac
10299 ;;
10300 sunos4*)
10301 case $cc_basename in
10302 CC)
10303 # Sun C++ 4.x
10304 # FIXME: insert proper C++ library support
10305 ld_shlibs_CXX=no
10306 ;;
10307 lcc)
10308 # Lucid
10309 # FIXME: insert proper C++ library support
10310 ld_shlibs_CXX=no
10311 ;;
10312 *)
10313 # FIXME: insert proper C++ library support
10314 ld_shlibs_CXX=no
10315 ;;
10316 esac
10317 ;;
10318 solaris*)
10319 case $cc_basename in
10320 CC)
10321 # Sun C++ 4.2, 5.x and Centerline C++
10322 no_undefined_flag_CXX=' -zdefs'
10323 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10324 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10325 $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'
10326
10327 hardcode_libdir_flag_spec_CXX='-R$libdir'
10328 hardcode_shlibpath_var_CXX=no
10329 case $host_os in
10330 solaris2.0-5 | solaris2.0-5.*) ;;
10331 *)
10332 # The C++ compiler is used as linker so we must use $wl
10333 # flag to pass the commands to the underlying system
10334 # linker.
10335 # Supported since Solaris 2.6 (maybe 2.5.1?)
10336 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10337 ;;
10338 esac
10339 link_all_deplibs_CXX=yes
10340
10341 # Commands to make compiler produce verbose output that lists
10342 # what "hidden" libraries, object files and flags are used when
10343 # linking a shared library.
10344 #
10345 # There doesn't appear to be a way to prevent this compiler from
10346 # explicitly linking system object files so we need to strip them
10347 # from the output so that they don't get included in the library
10348 # dependencies.
10349 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'
10350
10351 # Archives containing C++ object files must be created using
10352 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10353 # necessary to make sure instantiated templates are included
10354 # in the archive.
10355 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10356 ;;
10357 gcx)
10358 # Green Hills C++ Compiler
10359 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10360
10361 # The C++ compiler must be used to create the archive.
10362 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10363 ;;
10364 *)
10365 # GNU C++ compiler with Solaris linker
10366 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10367 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10368 if $CC --version | grep -v '^2\.7' > /dev/null; then
10369 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10370 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10371 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10372
10373 # Commands to make compiler produce verbose output that lists
10374 # what "hidden" libraries, object files and flags are used when
10375 # linking a shared library.
10376 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10377 else
10378 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10379 # platform.
10380 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10381 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10382 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10383
10384 # Commands to make compiler produce verbose output that lists
10385 # what "hidden" libraries, object files and flags are used when
10386 # linking a shared library.
10387 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10388 fi
10389
10390 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10391 fi
10392 ;;
10393 esac
10394 ;;
10395 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10396 archive_cmds_need_lc_CXX=no
10397 ;;
10398 tandem*)
10399 case $cc_basename in
10400 NCC)
10401 # NonStop-UX NCC 3.20
10402 # FIXME: insert proper C++ library support
10403 ld_shlibs_CXX=no
10404 ;;
10405 *)
10406 # FIXME: insert proper C++ library support
10407 ld_shlibs_CXX=no
10408 ;;
10409 esac
10410 ;;
10411 vxworks*)
10412 # FIXME: insert proper C++ library support
10413 ld_shlibs_CXX=no
10414 ;;
10415 *)
10416 # FIXME: insert proper C++ library support
10417 ld_shlibs_CXX=no
10418 ;;
10419esac
10420echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10421echo "${ECHO_T}$ld_shlibs_CXX" >&6
10422test "$ld_shlibs_CXX" = no && can_build_shared=no
10423
10424GCC_CXX="$GXX"
10425LD_CXX="$LD"
10426
10427## CAVEAT EMPTOR:
10428## There is no encapsulation within the following macros, do not change
10429## the running order or otherwise move them around unless you know exactly
10430## what you are doing...
10431
10432cat > conftest.$ac_ext <<EOF
10433class Foo
10434{
10435public:
10436 Foo (void) { a = 0; }
10437private:
10438 int a;
10439};
10440EOF
10441
10442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10443 (eval $ac_compile) 2>&5
10444 ac_status=$?
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); }; then
10447 # Parse the compiler output and extract the necessary
10448 # objects, libraries and library flags.
10449
10450 # Sentinel used to keep track of whether or not we are before
10451 # the conftest object file.
10452 pre_test_object_deps_done=no
10453
10454 # The `*' in the case matches for architectures that use `case' in
10455 # $output_verbose_cmd can trigger glob expansion during the loop
10456 # eval without this substitution.
10457 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10458
10459 for p in `eval $output_verbose_link_cmd`; do
10460 case $p in
10461
10462 -L* | -R* | -l*)
10463 # Some compilers place space between "-{L,R}" and the path.
10464 # Remove the space.
10465 if test $p = "-L" \
10466 || test $p = "-R"; then
10467 prev=$p
10468 continue
10469 else
10470 prev=
10471 fi
10472
10473 if test "$pre_test_object_deps_done" = no; then
10474 case $p in
10475 -L* | -R*)
10476 # Internal compiler library paths should come after those
10477 # provided the user. The postdeps already come after the
10478 # user supplied libs so there is no need to process them.
10479 if test -z "$compiler_lib_search_path_CXX"; then
10480 compiler_lib_search_path_CXX="${prev}${p}"
10481 else
10482 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10483 fi
10484 ;;
10485 # The "-l" case would never come before the object being
10486 # linked, so don't bother handling this case.
10487 esac
10488 else
10489 if test -z "$postdeps_CXX"; then
10490 postdeps_CXX="${prev}${p}"
10491 else
10492 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10493 fi
10494 fi
10495 ;;
10496
10497 *.$objext)
10498 # This assumes that the test object file only shows up
10499 # once in the compiler output.
10500 if test "$p" = "conftest.$objext"; then
10501 pre_test_object_deps_done=yes
10502 continue
10503 fi
10504
10505 if test "$pre_test_object_deps_done" = no; then
10506 if test -z "$predep_objects_CXX"; then
10507 predep_objects_CXX="$p"
10508 else
10509 predep_objects_CXX="$predep_objects_CXX $p"
10510 fi
10511 else
10512 if test -z "$postdep_objects_CXX"; then
10513 postdep_objects_CXX="$p"
10514 else
10515 postdep_objects_CXX="$postdep_objects_CXX $p"
10516 fi
10517 fi
10518 ;;
10519
10520 *) ;; # Ignore the rest.
10521
10522 esac
10523 done
10524
10525 # Clean up.
10526 rm -f a.out a.exe
10527else
10528 echo "libtool.m4: error: problem compiling CXX test program"
10529fi
10530
10531$rm -f confest.$objext
10532
10533case " $postdeps_CXX " in
10534*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10535esac
10536
10537lt_prog_compiler_wl_CXX=
10538lt_prog_compiler_pic_CXX=
10539lt_prog_compiler_static_CXX=
10540
10541echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10542echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10543
10544 # C++ specific cases for pic, static, wl, etc.
10545 if test "$GXX" = yes; then
10546 lt_prog_compiler_wl_CXX='-Wl,'
10547 lt_prog_compiler_static_CXX='-static'
10548
10549 case $host_os in
10550 aix*)
10551 # All AIX code is PIC.
10552 if test "$host_cpu" = ia64; then
10553 # AIX 5 now supports IA64 processor
10554 lt_prog_compiler_static_CXX='-Bstatic'
10555 fi
10556 ;;
10557 amigaos*)
10558 # FIXME: we need at least 68020 code to build shared libraries, but
10559 # adding the `-m68020' flag to GCC prevents building anything better,
10560 # like `-m68040'.
10561 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10562 ;;
10563 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10564 # PIC is the default for these OSes.
10565 ;;
10566 mingw* | os2* | pw32*)
10567 # This hack is so that the source file can tell whether it is being
10568 # built for inclusion in a dll (and should export symbols for example).
10569 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10570 ;;
10571 darwin* | rhapsody*)
10572 # PIC is the default on this platform
10573 # Common symbols not allowed in MH_DYLIB files
10574 lt_prog_compiler_pic_CXX='-fno-common'
10575 ;;
10576 *djgpp*)
10577 # DJGPP does not support shared libraries at all
10578 lt_prog_compiler_pic_CXX=
10579 ;;
10580 sysv4*MP*)
10581 if test -d /usr/nec; then
10582 lt_prog_compiler_pic_CXX=-Kconform_pic
10583 fi
10584 ;;
10585 hpux*)
10586 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10587 # not for PA HP-UX.
10588 case "$host_cpu" in
10589 hppa*64*|ia64*)
10590 ;;
10591 *)
10592 lt_prog_compiler_pic_CXX='-fPIC'
10593 ;;
10594 esac
10595 ;;
10596 *)
10597 lt_prog_compiler_pic_CXX='-fPIC'
10598 ;;
10599 esac
10600 else
10601 case $host_os in
10602 aix4* | aix5*)
10603 # All AIX code is PIC.
10604 if test "$host_cpu" = ia64; then
10605 # AIX 5 now supports IA64 processor
10606 lt_prog_compiler_static_CXX='-Bstatic'
10607 else
10608 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10609 fi
10610 ;;
10611 chorus*)
10612 case $cc_basename in
10613 cxch68)
10614 # Green Hills C++ Compiler
10615 # _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"
10616 ;;
10617 esac
10618 ;;
10619 dgux*)
10620 case $cc_basename in
10621 ec++)
10622 lt_prog_compiler_pic_CXX='-KPIC'
10623 ;;
10624 ghcx)
10625 # Green Hills C++ Compiler
10626 lt_prog_compiler_pic_CXX='-pic'
10627 ;;
10628 *)
10629 ;;
10630 esac
10631 ;;
10632 freebsd*)
10633 # FreeBSD uses GNU C++
10634 ;;
10635 hpux9* | hpux10* | hpux11*)
10636 case $cc_basename in
10637 CC)
10638 lt_prog_compiler_wl_CXX='-Wl,'
10639 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10640 if test "$host_cpu" != ia64; then
10641 lt_prog_compiler_pic_CXX='+Z'
10642 fi
10643 ;;
10644 aCC)
10645 lt_prog_compiler_wl_CXX='-Wl,'
10646 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10647 case "$host_cpu" in
10648 hppa*64*|ia64*)
10649 # +Z the default
10650 ;;
10651 *)
10652 lt_prog_compiler_pic_CXX='+Z'
10653 ;;
10654 esac
10655 ;;
10656 *)
10657 ;;
10658 esac
10659 ;;
10660 irix5* | irix6* | nonstopux*)
10661 case $cc_basename in
10662 CC)
10663 lt_prog_compiler_wl_CXX='-Wl,'
10664 lt_prog_compiler_static_CXX='-non_shared'
10665 # CC pic flag -KPIC is the default.
10666 ;;
10667 *)
10668 ;;
10669 esac
10670 ;;
10671 linux*)
10672 case $cc_basename in
10673 KCC)
10674 # KAI C++ Compiler
10675 lt_prog_compiler_wl_CXX='--backend -Wl,'
10676 lt_prog_compiler_pic_CXX='-fPIC'
10677 ;;
10678 icpc)
10679 # Intel C++
10680 lt_prog_compiler_wl_CXX='-Wl,'
10681 lt_prog_compiler_pic_CXX='-KPIC'
10682 lt_prog_compiler_static_CXX='-static'
10683 ;;
10684 cxx)
10685 # Compaq C++
10686 # Make sure the PIC flag is empty. It appears that all Alpha
10687 # Linux and Compaq Tru64 Unix objects are PIC.
10688 lt_prog_compiler_pic_CXX=
10689 lt_prog_compiler_static_CXX='-non_shared'
10690 ;;
10691 *)
10692 ;;
10693 esac
10694 ;;
10695 lynxos*)
10696 ;;
10697 m88k*)
10698 ;;
10699 mvs*)
10700 case $cc_basename in
10701 cxx)
10702 lt_prog_compiler_pic_CXX='-W c,exportall'
10703 ;;
10704 *)
10705 ;;
10706 esac
10707 ;;
10708 netbsd*)
10709 ;;
10710 osf3* | osf4* | osf5*)
10711 case $cc_basename in
10712 KCC)
10713 lt_prog_compiler_wl_CXX='--backend -Wl,'
10714 ;;
10715 RCC)
10716 # Rational C++ 2.4.1
10717 lt_prog_compiler_pic_CXX='-pic'
10718 ;;
10719 cxx)
10720 # Digital/Compaq C++
10721 lt_prog_compiler_wl_CXX='-Wl,'
10722 # Make sure the PIC flag is empty. It appears that all Alpha
10723 # Linux and Compaq Tru64 Unix objects are PIC.
10724 lt_prog_compiler_pic_CXX=
10725 lt_prog_compiler_static_CXX='-non_shared'
10726 ;;
10727 *)
10728 ;;
10729 esac
10730 ;;
10731 psos*)
10732 ;;
10733 sco*)
10734 case $cc_basename in
10735 CC)
10736 lt_prog_compiler_pic_CXX='-fPIC'
10737 ;;
10738 *)
10739 ;;
10740 esac
10741 ;;
10742 solaris*)
10743 case $cc_basename in
10744 CC)
10745 # Sun C++ 4.2, 5.x and Centerline C++
10746 lt_prog_compiler_pic_CXX='-KPIC'
10747 lt_prog_compiler_static_CXX='-Bstatic'
10748 lt_prog_compiler_wl_CXX='-Qoption ld '
10749 ;;
10750 gcx)
10751 # Green Hills C++ Compiler
10752 lt_prog_compiler_pic_CXX='-PIC'
10753 ;;
10754 *)
10755 ;;
10756 esac
10757 ;;
10758 sunos4*)
10759 case $cc_basename in
10760 CC)
10761 # Sun C++ 4.x
10762 lt_prog_compiler_pic_CXX='-pic'
10763 lt_prog_compiler_static_CXX='-Bstatic'
10764 ;;
10765 lcc)
10766 # Lucid
10767 lt_prog_compiler_pic_CXX='-pic'
10768 ;;
10769 *)
10770 ;;
10771 esac
10772 ;;
10773 tandem*)
10774 case $cc_basename in
10775 NCC)
10776 # NonStop-UX NCC 3.20
10777 lt_prog_compiler_pic_CXX='-KPIC'
10778 ;;
10779 *)
10780 ;;
10781 esac
10782 ;;
10783 unixware*)
10784 ;;
10785 vxworks*)
10786 ;;
10787 *)
10788 lt_prog_compiler_can_build_shared_CXX=no
10789 ;;
10790 esac
10791 fi
10792
10793echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10794echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10795
10796#
10797# Check to make sure the PIC flag actually works.
10798#
10799if test -n "$lt_prog_compiler_pic_CXX"; then
10800 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10801echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10802if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
10804else
10805 lt_prog_compiler_pic_works_CXX=no
10806 ac_outfile=conftest.$ac_objext
10807 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10808 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10809 # Insert the option either (1) after the last *FLAGS variable, or
10810 # (2) before a word containing "conftest.", or (3) at the end.
10811 # Note that $ac_compile itself does not contain backslashes and begins
10812 # with a dollar sign (not a hyphen), so the echo should work correctly.
10813 # The option is referenced via a variable to avoid confusing sed.
10814 lt_compile=`echo "$ac_compile" | $SED \
10815 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10817 -e 's:$: $lt_compiler_flag:'`
John Criswell78227592003-09-30 19:41:15 +000010818 (eval echo "\"\$as_me:10824: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010819 (eval "$lt_compile" 2>conftest.err)
10820 ac_status=$?
10821 cat conftest.err >&5
John Criswell78227592003-09-30 19:41:15 +000010822 echo "$as_me:10828: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010823 if (exit $ac_status) && test -s "$ac_outfile"; then
10824 # The compiler can only warn and ignore the option if not recognized
10825 # So say no if there are warnings
10826 if test ! -s conftest.err; then
10827 lt_prog_compiler_pic_works_CXX=yes
10828 fi
10829 fi
10830 $rm conftest*
10831
10832fi
10833echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10834echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10835
10836if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10837 case $lt_prog_compiler_pic_CXX in
10838 "" | " "*) ;;
10839 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10840 esac
10841else
10842 lt_prog_compiler_pic_CXX=
10843 lt_prog_compiler_can_build_shared_CXX=no
10844fi
10845
10846fi
10847case "$host_os" in
10848 # For platforms which do not support PIC, -DPIC is meaningless:
10849 *djgpp*)
10850 lt_prog_compiler_pic_CXX=
10851 ;;
10852 *)
10853 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10854 ;;
10855esac
10856
10857echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10858echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10859if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10860 echo $ECHO_N "(cached) $ECHO_C" >&6
10861else
10862 lt_cv_prog_compiler_c_o_CXX=no
10863 $rm -r conftest 2>/dev/null
10864 mkdir conftest
10865 cd conftest
10866 mkdir out
10867 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10868
10869 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10870 # that will create temporary files in the current directory regardless of
10871 # the output directory. Thus, making CWD read-only will cause this test
10872 # to fail, enabling locking or at least warning the user not to do parallel
10873 # builds.
10874 chmod -w .
10875
10876 lt_compiler_flag="-o out/conftest2.$ac_objext"
10877 # Insert the option either (1) after the last *FLAGS variable, or
10878 # (2) before a word containing "conftest.", or (3) at the end.
10879 # Note that $ac_compile itself does not contain backslashes and begins
10880 # with a dollar sign (not a hyphen), so the echo should work correctly.
10881 lt_compile=`echo "$ac_compile" | $SED \
10882 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10883 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10884 -e 's:$: $lt_compiler_flag:'`
John Criswell78227592003-09-30 19:41:15 +000010885 (eval echo "\"\$as_me:10891: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010886 (eval "$lt_compile" 2>out/conftest.err)
10887 ac_status=$?
10888 cat out/conftest.err >&5
John Criswell78227592003-09-30 19:41:15 +000010889 echo "$as_me:10895: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010890 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10891 then
10892 # The compiler can only warn and ignore the option if not recognized
10893 # So say no if there are warnings
10894 if test ! -s out/conftest.err; then
10895 lt_cv_prog_compiler_c_o_CXX=yes
10896 fi
10897 fi
10898 chmod u+w .
10899 $rm conftest* out/*
10900 rmdir out
10901 cd ..
10902 rmdir conftest
10903 $rm conftest*
10904
10905fi
10906echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10907echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10908
10909
10910hard_links="nottested"
10911if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10912 # do not overwrite the value of need_locks provided by the user
10913 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10914echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10915 hard_links=yes
10916 $rm conftest*
10917 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10918 touch conftest.a
10919 ln conftest.a conftest.b 2>&5 || hard_links=no
10920 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10921 echo "$as_me:$LINENO: result: $hard_links" >&5
10922echo "${ECHO_T}$hard_links" >&6
10923 if test "$hard_links" = no; then
10924 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10925echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10926 need_locks=warn
10927 fi
10928else
10929 need_locks=no
10930fi
10931
10932echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10933echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10934
10935 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10936 case $host_os in
10937 aix4* | aix5*)
10938 # If we're using GNU nm, then we don't want the "-C" option.
10939 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10940 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10941 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'
10942 else
10943 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'
10944 fi
10945 ;;
10946 pw32*)
10947 export_symbols_cmds_CXX="$ltdll_cmds"
10948 ;;
10949 cygwin* | mingw*)
10950 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10951 ;;
10952 *)
10953 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10954 ;;
10955 esac
10956
10957echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10958echo "${ECHO_T}$ld_shlibs_CXX" >&6
10959test "$ld_shlibs_CXX" = no && can_build_shared=no
10960
10961variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10962if test "$GCC" = yes; then
10963 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10964fi
10965
10966#
10967# Do we need to explicitly link libc?
10968#
10969case "x$archive_cmds_need_lc_CXX" in
10970x|xyes)
10971 # Assume -lc should be added
10972 archive_cmds_need_lc_CXX=yes
10973
10974 if test "$enable_shared" = yes && test "$GCC" = yes; then
10975 case $archive_cmds_CXX in
10976 *'~'*)
10977 # FIXME: we may have to deal with multi-command sequences.
10978 ;;
10979 '$CC '*)
10980 # Test whether the compiler implicitly links with -lc since on some
10981 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10982 # to ld, don't add -lc before -lgcc.
10983 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10984echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10985 $rm conftest*
10986 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10987
10988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10989 (eval $ac_compile) 2>&5
10990 ac_status=$?
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } 2>conftest.err; then
10993 soname=conftest
10994 lib=conftest
10995 libobjs=conftest.$ac_objext
10996 deplibs=
10997 wl=$lt_prog_compiler_wl_CXX
10998 compiler_flags=-v
10999 linker_flags=-v
11000 verstring=
11001 output_objdir=.
11002 libname=conftest
11003 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11004 allow_undefined_flag_CXX=
11005 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11006 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11007 ac_status=$?
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); }
11010 then
11011 archive_cmds_need_lc_CXX=no
11012 else
11013 archive_cmds_need_lc_CXX=yes
11014 fi
11015 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11016 else
11017 cat conftest.err 1>&5
11018 fi
11019 $rm conftest*
11020 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11021echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11022 ;;
11023 esac
11024 fi
11025 ;;
11026esac
11027
11028echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11029echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11030hardcode_action_CXX=
11031if test -n "$hardcode_libdir_flag_spec_CXX" || \
11032 test -n "$runpath_var CXX" || \
11033 test "X$hardcode_automatic_CXX"="Xyes" ; then
11034
11035 # We can hardcode non-existant directories.
11036 if test "$hardcode_direct_CXX" != no &&
11037 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11038 # have to relink, otherwise we might link with an installed library
11039 # when we should be linking with a yet-to-be-installed one
11040 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11041 test "$hardcode_minus_L_CXX" != no; then
11042 # Linking always hardcodes the temporary library directory.
11043 hardcode_action_CXX=relink
11044 else
11045 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11046 hardcode_action_CXX=immediate
11047 fi
11048else
11049 # We cannot hardcode anything, or else we can only hardcode existing
11050 # directories.
11051 hardcode_action_CXX=unsupported
11052fi
11053echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11054echo "${ECHO_T}$hardcode_action_CXX" >&6
11055
11056if test "$hardcode_action_CXX" = relink; then
11057 # Fast installation is not supported
11058 enable_fast_install=no
11059elif test "$shlibpath_overrides_runpath" = yes ||
11060 test "$enable_shared" = no; then
11061 # Fast installation is not necessary
11062 enable_fast_install=needless
11063fi
11064
11065striplib=
11066old_striplib=
11067echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11068echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11069if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11070 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11071 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11072 echo "$as_me:$LINENO: result: yes" >&5
11073echo "${ECHO_T}yes" >&6
11074else
11075# FIXME - insert some real tests, host_os isn't really good enough
11076 case $host_os in
11077 darwin*)
11078 if test -n "$STRIP" ; then
11079 striplib="$STRIP -x"
11080 echo "$as_me:$LINENO: result: yes" >&5
11081echo "${ECHO_T}yes" >&6
11082 else
11083 echo "$as_me:$LINENO: result: no" >&5
11084echo "${ECHO_T}no" >&6
11085fi
11086 ;;
11087 *)
11088 echo "$as_me:$LINENO: result: no" >&5
11089echo "${ECHO_T}no" >&6
11090 ;;
11091 esac
11092fi
11093
11094echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11095echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11096library_names_spec=
11097libname_spec='lib$name'
11098soname_spec=
11099shrext=".so"
11100postinstall_cmds=
11101postuninstall_cmds=
11102finish_cmds=
11103finish_eval=
11104shlibpath_var=
11105shlibpath_overrides_runpath=unknown
11106version_type=none
11107dynamic_linker="$host_os ld.so"
11108sys_lib_dlsearch_path_spec="/lib /usr/lib"
11109if test "$GCC" = yes; then
11110 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11111 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11112 # if the path contains ";" then we assume it to be the separator
11113 # otherwise default to the standard path separator (i.e. ":") - it is
11114 # assumed that no part of a normal pathname contains ";" but that should
11115 # okay in the real world where ";" in dirpaths is itself problematic.
11116 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11117 else
11118 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11119 fi
11120else
11121 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11122fi
11123need_lib_prefix=unknown
11124hardcode_into_libs=no
11125
11126# when you set need_version to no, make sure it does not cause -set_version
11127# flags to be left without arguments
11128need_version=unknown
11129
11130case $host_os in
11131aix3*)
11132 version_type=linux
11133 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11134 shlibpath_var=LIBPATH
11135
11136 # AIX 3 has no versioning support, so we append a major version to the name.
11137 soname_spec='${libname}${release}${shared_ext}$major'
11138 ;;
11139
11140aix4* | aix5*)
11141 version_type=linux
11142 need_lib_prefix=no
11143 need_version=no
11144 hardcode_into_libs=yes
11145 if test "$host_cpu" = ia64; then
11146 # AIX 5 supports IA64
11147 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11148 shlibpath_var=LD_LIBRARY_PATH
11149 else
11150 # With GCC up to 2.95.x, collect2 would create an import file
11151 # for dependence libraries. The import file would start with
11152 # the line `#! .'. This would cause the generated library to
11153 # depend on `.', always an invalid library. This was fixed in
11154 # development snapshots of GCC prior to 3.0.
11155 case $host_os in
11156 aix4 | aix4.[01] | aix4.[01].*)
11157 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11158 echo ' yes '
11159 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11160 :
11161 else
11162 can_build_shared=no
11163 fi
11164 ;;
11165 esac
11166 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11167 # soname into executable. Probably we can add versioning support to
11168 # collect2, so additional links can be useful in future.
11169 if test "$aix_use_runtimelinking" = yes; then
11170 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11171 # instead of lib<name>.a to let people know that these are not
11172 # typical AIX shared libraries.
11173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11174 else
11175 # We preserve .a as extension for shared libraries through AIX4.2
11176 # and later when we are not doing run time linking.
11177 library_names_spec='${libname}${release}.a $libname.a'
11178 soname_spec='${libname}${release}${shared_ext}$major'
11179 fi
11180 shlibpath_var=LIBPATH
11181 fi
11182 ;;
11183
11184amigaos*)
11185 library_names_spec='$libname.ixlibrary $libname.a'
11186 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11187 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'
11188 ;;
11189
11190beos*)
11191 library_names_spec='${libname}${shared_ext}'
11192 dynamic_linker="$host_os ld.so"
11193 shlibpath_var=LIBRARY_PATH
11194 ;;
11195
11196bsdi4*)
11197 version_type=linux
11198 need_version=no
11199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11200 soname_spec='${libname}${release}${shared_ext}$major'
11201 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11202 shlibpath_var=LD_LIBRARY_PATH
11203 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11204 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11205 # the default ld.so.conf also contains /usr/contrib/lib and
11206 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11207 # libtool to hard-code these into programs
11208 ;;
11209
11210cygwin* | mingw* | pw32*)
11211 version_type=windows
11212 shrext=".dll"
11213 need_version=no
11214 need_lib_prefix=no
11215
11216 case $GCC,$host_os in
11217 yes,cygwin* | yes,mingw* | yes,pw32*)
11218 library_names_spec='$libname.dll.a'
11219 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11220 postinstall_cmds='base_file=`basename \${file}`~
11221 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11222 dldir=$destdir/`dirname \$dlpath`~
11223 test -d \$dldir || mkdir -p \$dldir~
11224 $install_prog $dir/$dlname \$dldir/$dlname'
11225 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11226 dlpath=$dir/\$dldll~
11227 $rm \$dlpath'
11228 shlibpath_overrides_runpath=yes
11229
11230 case $host_os in
11231 cygwin*)
11232 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11233 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11234 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11235 ;;
11236 mingw*)
11237 # MinGW DLLs use traditional 'lib' prefix
11238 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11239 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11240 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11241 # It is most probably a Windows format PATH printed by
11242 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11243 # path with ; separators, and with drive letters. We can handle the
11244 # drive letters (cygwin fileutils understands them), so leave them,
11245 # especially as we might pass files found there to a mingw objdump,
11246 # which wouldn't understand a cygwinified path. Ahh.
11247 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11248 else
11249 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11250 fi
11251 ;;
11252 pw32*)
11253 # pw32 DLLs use 'pw' prefix rather than 'lib'
11254 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11255 ;;
11256 esac
11257 ;;
11258
11259 *)
11260 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11261 ;;
11262 esac
11263 dynamic_linker='Win32 ld.exe'
11264 # FIXME: first we should search . and the directory the executable is in
11265 shlibpath_var=PATH
11266 ;;
11267
11268darwin* | rhapsody*)
11269 dynamic_linker="$host_os dyld"
11270 version_type=darwin
11271 need_lib_prefix=no
11272 need_version=no
11273 # FIXME: Relying on posixy $() will cause problems for
11274 # cross-compilation, but unfortunately the echo tests do not
11275 # yet detect zsh echo's removal of \ escapes.
11276 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11277 soname_spec='${libname}${release}${major}$shared_ext'
11278 shlibpath_overrides_runpath=yes
11279 shlibpath_var=DYLD_LIBRARY_PATH
11280 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11281 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11282 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11283 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"`
11284 fi
11285 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11286 ;;
11287
11288dgux*)
11289 version_type=linux
11290 need_lib_prefix=no
11291 need_version=no
11292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11293 soname_spec='${libname}${release}${shared_ext}$major'
11294 shlibpath_var=LD_LIBRARY_PATH
11295 ;;
11296
11297freebsd1*)
11298 dynamic_linker=no
11299 ;;
11300
11301freebsd*)
11302 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11303 version_type=freebsd-$objformat
11304 case $version_type in
11305 freebsd-elf*)
11306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11307 need_version=no
11308 need_lib_prefix=no
11309 ;;
11310 freebsd-*)
11311 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11312 need_version=yes
11313 ;;
11314 esac
11315 shlibpath_var=LD_LIBRARY_PATH
11316 case $host_os in
11317 freebsd2*)
11318 shlibpath_overrides_runpath=yes
11319 ;;
11320 freebsd3.01* | freebsdelf3.01*)
11321 shlibpath_overrides_runpath=yes
11322 hardcode_into_libs=yes
11323 ;;
11324 *) # from 3.2 on
11325 shlibpath_overrides_runpath=no
11326 hardcode_into_libs=yes
11327 ;;
11328 esac
11329 ;;
11330
11331gnu*)
11332 version_type=linux
11333 need_lib_prefix=no
11334 need_version=no
11335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11336 soname_spec='${libname}${release}${shared_ext}$major'
11337 shlibpath_var=LD_LIBRARY_PATH
11338 hardcode_into_libs=yes
11339 ;;
11340
11341hpux9* | hpux10* | hpux11*)
11342 # Give a soname corresponding to the major version so that dld.sl refuses to
11343 # link against other versions.
11344 version_type=sunos
11345 need_lib_prefix=no
11346 need_version=no
11347 case "$host_cpu" in
11348 ia64*)
11349 shrext='.so'
11350 hardcode_into_libs=yes
11351 dynamic_linker="$host_os dld.so"
11352 shlibpath_var=LD_LIBRARY_PATH
11353 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11355 soname_spec='${libname}${release}${shared_ext}$major'
11356 if test "X$HPUX_IA64_MODE" = X32; then
11357 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11358 else
11359 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11360 fi
11361 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11362 ;;
11363 hppa*64*)
11364 shrext='.sl'
11365 hardcode_into_libs=yes
11366 dynamic_linker="$host_os dld.sl"
11367 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11368 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11370 soname_spec='${libname}${release}${shared_ext}$major'
11371 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11372 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11373 ;;
11374 *)
11375 shrext='.sl'
11376 dynamic_linker="$host_os dld.sl"
11377 shlibpath_var=SHLIB_PATH
11378 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11380 soname_spec='${libname}${release}${shared_ext}$major'
11381 ;;
11382 esac
11383 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11384 postinstall_cmds='chmod 555 $lib'
11385 ;;
11386
11387irix5* | irix6* | nonstopux*)
11388 case $host_os in
11389 nonstopux*) version_type=nonstopux ;;
11390 *)
11391 if test "$lt_cv_prog_gnu_ld" = yes; then
11392 version_type=linux
11393 else
11394 version_type=irix
11395 fi ;;
11396 esac
11397 need_lib_prefix=no
11398 need_version=no
11399 soname_spec='${libname}${release}${shared_ext}$major'
11400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11401 case $host_os in
11402 irix5* | nonstopux*)
11403 libsuff= shlibsuff=
11404 ;;
11405 *)
11406 case $LD in # libtool.m4 will add one of these switches to LD
11407 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11408 libsuff= shlibsuff= libmagic=32-bit;;
11409 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11410 libsuff=32 shlibsuff=N32 libmagic=N32;;
11411 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11412 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11413 *) libsuff= shlibsuff= libmagic=never-match;;
11414 esac
11415 ;;
11416 esac
11417 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11418 shlibpath_overrides_runpath=no
11419 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11420 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11421 hardcode_into_libs=yes
11422 ;;
11423
11424# No shared lib support for Linux oldld, aout, or coff.
11425linux*oldld* | linux*aout* | linux*coff*)
11426 dynamic_linker=no
11427 ;;
11428
11429# This must be Linux ELF.
11430linux*)
11431 version_type=linux
11432 need_lib_prefix=no
11433 need_version=no
11434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11435 soname_spec='${libname}${release}${shared_ext}$major'
11436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11437 shlibpath_var=LD_LIBRARY_PATH
11438 shlibpath_overrides_runpath=no
11439 # This implies no fast_install, which is unacceptable.
11440 # Some rework will be needed to allow for fast_install
11441 # before this can be enabled.
11442 hardcode_into_libs=yes
11443
11444 # We used to test for /lib/ld.so.1 and disable shared libraries on
11445 # powerpc, because MkLinux only supported shared libraries with the
11446 # GNU dynamic linker. Since this was broken with cross compilers,
11447 # most powerpc-linux boxes support dynamic linking these days and
11448 # people can always --disable-shared, the test was removed, and we
11449 # assume the GNU/Linux dynamic linker is in use.
11450 dynamic_linker='GNU/Linux ld.so'
11451 ;;
11452
11453netbsd*)
11454 version_type=sunos
11455 need_lib_prefix=no
11456 need_version=no
11457 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11459 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11460 dynamic_linker='NetBSD (a.out) ld.so'
11461 else
11462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11463 soname_spec='${libname}${release}${shared_ext}$major'
11464 dynamic_linker='NetBSD ld.elf_so'
11465 fi
11466 shlibpath_var=LD_LIBRARY_PATH
11467 shlibpath_overrides_runpath=yes
11468 hardcode_into_libs=yes
11469 ;;
11470
11471newsos6)
11472 version_type=linux
11473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11474 shlibpath_var=LD_LIBRARY_PATH
11475 shlibpath_overrides_runpath=yes
11476 ;;
11477
11478nto-qnx)
11479 version_type=linux
11480 need_lib_prefix=no
11481 need_version=no
11482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11483 soname_spec='${libname}${release}${shared_ext}$major'
11484 shlibpath_var=LD_LIBRARY_PATH
11485 shlibpath_overrides_runpath=yes
11486 ;;
11487
11488openbsd*)
11489 version_type=sunos
11490 need_lib_prefix=no
11491 need_version=no
11492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11494 shlibpath_var=LD_LIBRARY_PATH
11495 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11496 case $host_os in
11497 openbsd2.[89] | openbsd2.[89].*)
11498 shlibpath_overrides_runpath=no
11499 ;;
11500 *)
11501 shlibpath_overrides_runpath=yes
11502 ;;
11503 esac
11504 else
11505 shlibpath_overrides_runpath=yes
11506 fi
11507 ;;
11508
11509os2*)
11510 libname_spec='$name'
11511 shrext=".dll"
11512 need_lib_prefix=no
11513 library_names_spec='$libname${shared_ext} $libname.a'
11514 dynamic_linker='OS/2 ld.exe'
11515 shlibpath_var=LIBPATH
11516 ;;
11517
11518osf3* | osf4* | osf5*)
11519 version_type=osf
11520 need_lib_prefix=no
11521 need_version=no
11522 soname_spec='${libname}${release}${shared_ext}$major'
11523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11524 shlibpath_var=LD_LIBRARY_PATH
11525 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11526 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11527 ;;
11528
11529sco3.2v5*)
11530 version_type=osf
11531 soname_spec='${libname}${release}${shared_ext}$major'
11532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11533 shlibpath_var=LD_LIBRARY_PATH
11534 ;;
11535
11536solaris*)
11537 version_type=linux
11538 need_lib_prefix=no
11539 need_version=no
11540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11541 soname_spec='${libname}${release}${shared_ext}$major'
11542 shlibpath_var=LD_LIBRARY_PATH
11543 shlibpath_overrides_runpath=yes
11544 hardcode_into_libs=yes
11545 # ldd complains unless libraries are executable
11546 postinstall_cmds='chmod +x $lib'
11547 ;;
11548
11549sunos4*)
11550 version_type=sunos
11551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11552 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11553 shlibpath_var=LD_LIBRARY_PATH
11554 shlibpath_overrides_runpath=yes
11555 if test "$with_gnu_ld" = yes; then
11556 need_lib_prefix=no
11557 fi
11558 need_version=yes
11559 ;;
11560
11561sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11562 version_type=linux
11563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11564 soname_spec='${libname}${release}${shared_ext}$major'
11565 shlibpath_var=LD_LIBRARY_PATH
11566 case $host_vendor in
11567 sni)
11568 shlibpath_overrides_runpath=no
11569 need_lib_prefix=no
11570 export_dynamic_flag_spec='${wl}-Blargedynsym'
11571 runpath_var=LD_RUN_PATH
11572 ;;
11573 siemens)
11574 need_lib_prefix=no
11575 ;;
11576 motorola)
11577 need_lib_prefix=no
11578 need_version=no
11579 shlibpath_overrides_runpath=no
11580 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11581 ;;
11582 esac
11583 ;;
11584
11585sysv4*MP*)
11586 if test -d /usr/nec ;then
11587 version_type=linux
11588 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11589 soname_spec='$libname${shared_ext}.$major'
11590 shlibpath_var=LD_LIBRARY_PATH
11591 fi
11592 ;;
11593
11594uts4*)
11595 version_type=linux
11596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11597 soname_spec='${libname}${release}${shared_ext}$major'
11598 shlibpath_var=LD_LIBRARY_PATH
11599 ;;
11600
11601*)
11602 dynamic_linker=no
11603 ;;
11604esac
11605echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11606echo "${ECHO_T}$dynamic_linker" >&6
11607test "$dynamic_linker" = no && can_build_shared=no
11608
11609if test "x$enable_dlopen" != xyes; then
11610 enable_dlopen=unknown
11611 enable_dlopen_self=unknown
11612 enable_dlopen_self_static=unknown
11613else
11614 lt_cv_dlopen=no
11615 lt_cv_dlopen_libs=
11616
11617 case $host_os in
11618 beos*)
11619 lt_cv_dlopen="load_add_on"
11620 lt_cv_dlopen_libs=
11621 lt_cv_dlopen_self=yes
11622 ;;
11623
11624 mingw* | pw32*)
11625 lt_cv_dlopen="LoadLibrary"
11626 lt_cv_dlopen_libs=
11627 ;;
11628
11629 cygwin*)
11630 lt_cv_dlopen="dlopen"
11631 lt_cv_dlopen_libs=
11632 ;;
11633
11634 darwin*)
11635 # if libdl is installed we need to link against it
11636 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11637echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11638if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11640else
11641 ac_check_lib_save_LIBS=$LIBS
11642LIBS="-ldl $LIBS"
11643cat >conftest.$ac_ext <<_ACEOF
11644#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011645/* confdefs.h. */
11646_ACEOF
11647cat confdefs.h >>conftest.$ac_ext
11648cat >>conftest.$ac_ext <<_ACEOF
11649/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011650
11651/* Override any gcc2 internal prototype to avoid an error. */
11652#ifdef __cplusplus
11653extern "C"
11654#endif
11655/* We use char because int might match the return type of a gcc2
11656 builtin and then its argument prototype would still apply. */
11657char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011658int
11659main ()
11660{
11661dlopen ();
11662 ;
11663 return 0;
11664}
11665_ACEOF
11666rm -f conftest.$ac_objext conftest$ac_exeext
11667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11668 (eval $ac_link) 2>&5
11669 ac_status=$?
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); } &&
11672 { ac_try='test -s conftest$ac_exeext'
11673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674 (eval $ac_try) 2>&5
11675 ac_status=$?
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; }; then
11678 ac_cv_lib_dl_dlopen=yes
11679else
11680 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011681sed 's/^/| /' conftest.$ac_ext >&5
11682
John Criswell47fdd832003-07-14 16:52:07 +000011683ac_cv_lib_dl_dlopen=no
11684fi
11685rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11686LIBS=$ac_check_lib_save_LIBS
11687fi
11688echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11689echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11690if test $ac_cv_lib_dl_dlopen = yes; then
11691 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11692else
11693
11694 lt_cv_dlopen="dyld"
11695 lt_cv_dlopen_libs=
11696 lt_cv_dlopen_self=yes
11697
11698fi
11699
11700 ;;
11701
11702 *)
11703 echo "$as_me:$LINENO: checking for shl_load" >&5
11704echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11705if test "${ac_cv_func_shl_load+set}" = set; then
11706 echo $ECHO_N "(cached) $ECHO_C" >&6
11707else
11708 cat >conftest.$ac_ext <<_ACEOF
11709#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011710/* confdefs.h. */
11711_ACEOF
11712cat confdefs.h >>conftest.$ac_ext
11713cat >>conftest.$ac_ext <<_ACEOF
11714/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011715/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011716 which can conflict with char shl_load (); below.
11717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11718 <limits.h> exists even on freestanding compilers. */
11719#ifdef __STDC__
11720# include <limits.h>
11721#else
11722# include <assert.h>
11723#endif
John Criswell47fdd832003-07-14 16:52:07 +000011724/* Override any gcc2 internal prototype to avoid an error. */
11725#ifdef __cplusplus
11726extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011727{
John Criswell47fdd832003-07-14 16:52:07 +000011728#endif
11729/* We use char because int might match the return type of a gcc2
11730 builtin and then its argument prototype would still apply. */
11731char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011732/* The GNU C library defines this for functions which it implements
11733 to always fail with ENOSYS. Some functions are actually named
11734 something starting with __ and the normal name is an alias. */
11735#if defined (__stub_shl_load) || defined (__stub___shl_load)
11736choke me
11737#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011738char (*f) () = shl_load;
11739#endif
11740#ifdef __cplusplus
11741}
John Criswell47fdd832003-07-14 16:52:07 +000011742#endif
11743
John Criswell0c38eaf2003-09-10 15:17:25 +000011744int
11745main ()
11746{
11747return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011748 ;
11749 return 0;
11750}
11751_ACEOF
11752rm -f conftest.$ac_objext conftest$ac_exeext
11753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11754 (eval $ac_link) 2>&5
11755 ac_status=$?
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } &&
11758 { ac_try='test -s conftest$ac_exeext'
11759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11760 (eval $ac_try) 2>&5
11761 ac_status=$?
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); }; }; then
11764 ac_cv_func_shl_load=yes
11765else
11766 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011767sed 's/^/| /' conftest.$ac_ext >&5
11768
John Criswell47fdd832003-07-14 16:52:07 +000011769ac_cv_func_shl_load=no
11770fi
11771rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11772fi
11773echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11774echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11775if test $ac_cv_func_shl_load = yes; then
11776 lt_cv_dlopen="shl_load"
11777else
11778 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11779echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11780if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11781 echo $ECHO_N "(cached) $ECHO_C" >&6
11782else
11783 ac_check_lib_save_LIBS=$LIBS
11784LIBS="-ldld $LIBS"
11785cat >conftest.$ac_ext <<_ACEOF
11786#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011787/* confdefs.h. */
11788_ACEOF
11789cat confdefs.h >>conftest.$ac_ext
11790cat >>conftest.$ac_ext <<_ACEOF
11791/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011792
11793/* Override any gcc2 internal prototype to avoid an error. */
11794#ifdef __cplusplus
11795extern "C"
11796#endif
11797/* We use char because int might match the return type of a gcc2
11798 builtin and then its argument prototype would still apply. */
11799char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011800int
11801main ()
11802{
11803shl_load ();
11804 ;
11805 return 0;
11806}
11807_ACEOF
11808rm -f conftest.$ac_objext conftest$ac_exeext
11809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11810 (eval $ac_link) 2>&5
11811 ac_status=$?
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); } &&
11814 { ac_try='test -s conftest$ac_exeext'
11815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11816 (eval $ac_try) 2>&5
11817 ac_status=$?
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); }; }; then
11820 ac_cv_lib_dld_shl_load=yes
11821else
11822 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011823sed 's/^/| /' conftest.$ac_ext >&5
11824
John Criswell47fdd832003-07-14 16:52:07 +000011825ac_cv_lib_dld_shl_load=no
11826fi
11827rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11828LIBS=$ac_check_lib_save_LIBS
11829fi
11830echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11831echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11832if test $ac_cv_lib_dld_shl_load = yes; then
11833 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11834else
11835 echo "$as_me:$LINENO: checking for dlopen" >&5
11836echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11837if test "${ac_cv_func_dlopen+set}" = set; then
11838 echo $ECHO_N "(cached) $ECHO_C" >&6
11839else
11840 cat >conftest.$ac_ext <<_ACEOF
11841#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011842/* confdefs.h. */
11843_ACEOF
11844cat confdefs.h >>conftest.$ac_ext
11845cat >>conftest.$ac_ext <<_ACEOF
11846/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011847/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011848 which can conflict with char dlopen (); below.
11849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11850 <limits.h> exists even on freestanding compilers. */
11851#ifdef __STDC__
11852# include <limits.h>
11853#else
11854# include <assert.h>
11855#endif
John Criswell47fdd832003-07-14 16:52:07 +000011856/* Override any gcc2 internal prototype to avoid an error. */
11857#ifdef __cplusplus
11858extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011859{
John Criswell47fdd832003-07-14 16:52:07 +000011860#endif
11861/* We use char because int might match the return type of a gcc2
11862 builtin and then its argument prototype would still apply. */
11863char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011864/* The GNU C library defines this for functions which it implements
11865 to always fail with ENOSYS. Some functions are actually named
11866 something starting with __ and the normal name is an alias. */
11867#if defined (__stub_dlopen) || defined (__stub___dlopen)
11868choke me
11869#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011870char (*f) () = dlopen;
11871#endif
11872#ifdef __cplusplus
11873}
John Criswell47fdd832003-07-14 16:52:07 +000011874#endif
11875
John Criswell0c38eaf2003-09-10 15:17:25 +000011876int
11877main ()
11878{
11879return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011880 ;
11881 return 0;
11882}
11883_ACEOF
11884rm -f conftest.$ac_objext conftest$ac_exeext
11885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11886 (eval $ac_link) 2>&5
11887 ac_status=$?
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); } &&
11890 { ac_try='test -s conftest$ac_exeext'
11891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11892 (eval $ac_try) 2>&5
11893 ac_status=$?
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); }; }; then
11896 ac_cv_func_dlopen=yes
11897else
11898 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011899sed 's/^/| /' conftest.$ac_ext >&5
11900
John Criswell47fdd832003-07-14 16:52:07 +000011901ac_cv_func_dlopen=no
11902fi
11903rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11904fi
11905echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11906echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11907if test $ac_cv_func_dlopen = yes; then
11908 lt_cv_dlopen="dlopen"
11909else
11910 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11911echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11912if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11913 echo $ECHO_N "(cached) $ECHO_C" >&6
11914else
11915 ac_check_lib_save_LIBS=$LIBS
11916LIBS="-ldl $LIBS"
11917cat >conftest.$ac_ext <<_ACEOF
11918#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011919/* confdefs.h. */
11920_ACEOF
11921cat confdefs.h >>conftest.$ac_ext
11922cat >>conftest.$ac_ext <<_ACEOF
11923/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011924
11925/* Override any gcc2 internal prototype to avoid an error. */
11926#ifdef __cplusplus
11927extern "C"
11928#endif
11929/* We use char because int might match the return type of a gcc2
11930 builtin and then its argument prototype would still apply. */
11931char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011932int
11933main ()
11934{
11935dlopen ();
11936 ;
11937 return 0;
11938}
11939_ACEOF
11940rm -f conftest.$ac_objext conftest$ac_exeext
11941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11942 (eval $ac_link) 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } &&
11946 { ac_try='test -s conftest$ac_exeext'
11947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948 (eval $ac_try) 2>&5
11949 ac_status=$?
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 ac_cv_lib_dl_dlopen=yes
11953else
11954 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011955sed 's/^/| /' conftest.$ac_ext >&5
11956
John Criswell47fdd832003-07-14 16:52:07 +000011957ac_cv_lib_dl_dlopen=no
11958fi
11959rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11960LIBS=$ac_check_lib_save_LIBS
11961fi
11962echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11963echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11964if test $ac_cv_lib_dl_dlopen = yes; then
11965 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11966else
11967 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11968echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11969if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11970 echo $ECHO_N "(cached) $ECHO_C" >&6
11971else
11972 ac_check_lib_save_LIBS=$LIBS
11973LIBS="-lsvld $LIBS"
11974cat >conftest.$ac_ext <<_ACEOF
11975#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011976/* confdefs.h. */
11977_ACEOF
11978cat confdefs.h >>conftest.$ac_ext
11979cat >>conftest.$ac_ext <<_ACEOF
11980/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011981
11982/* Override any gcc2 internal prototype to avoid an error. */
11983#ifdef __cplusplus
11984extern "C"
11985#endif
11986/* We use char because int might match the return type of a gcc2
11987 builtin and then its argument prototype would still apply. */
11988char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011989int
11990main ()
11991{
11992dlopen ();
11993 ;
11994 return 0;
11995}
11996_ACEOF
11997rm -f conftest.$ac_objext conftest$ac_exeext
11998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11999 (eval $ac_link) 2>&5
12000 ac_status=$?
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); } &&
12003 { ac_try='test -s conftest$ac_exeext'
12004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12005 (eval $ac_try) 2>&5
12006 ac_status=$?
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); }; }; then
12009 ac_cv_lib_svld_dlopen=yes
12010else
12011 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012012sed 's/^/| /' conftest.$ac_ext >&5
12013
John Criswell47fdd832003-07-14 16:52:07 +000012014ac_cv_lib_svld_dlopen=no
12015fi
12016rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12017LIBS=$ac_check_lib_save_LIBS
12018fi
12019echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12020echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12021if test $ac_cv_lib_svld_dlopen = yes; then
12022 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12023else
12024 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12025echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12026if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12027 echo $ECHO_N "(cached) $ECHO_C" >&6
12028else
12029 ac_check_lib_save_LIBS=$LIBS
12030LIBS="-ldld $LIBS"
12031cat >conftest.$ac_ext <<_ACEOF
12032#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000012033/* confdefs.h. */
12034_ACEOF
12035cat confdefs.h >>conftest.$ac_ext
12036cat >>conftest.$ac_ext <<_ACEOF
12037/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012038
12039/* Override any gcc2 internal prototype to avoid an error. */
12040#ifdef __cplusplus
12041extern "C"
12042#endif
12043/* We use char because int might match the return type of a gcc2
12044 builtin and then its argument prototype would still apply. */
12045char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012046int
12047main ()
12048{
12049dld_link ();
12050 ;
12051 return 0;
12052}
12053_ACEOF
12054rm -f conftest.$ac_objext conftest$ac_exeext
12055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12056 (eval $ac_link) 2>&5
12057 ac_status=$?
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } &&
12060 { ac_try='test -s conftest$ac_exeext'
12061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12062 (eval $ac_try) 2>&5
12063 ac_status=$?
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); }; }; then
12066 ac_cv_lib_dld_dld_link=yes
12067else
12068 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012069sed 's/^/| /' conftest.$ac_ext >&5
12070
John Criswell47fdd832003-07-14 16:52:07 +000012071ac_cv_lib_dld_dld_link=no
12072fi
12073rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12074LIBS=$ac_check_lib_save_LIBS
12075fi
12076echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12077echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12078if test $ac_cv_lib_dld_dld_link = yes; then
12079 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12080fi
12081
12082
12083fi
12084
12085
12086fi
12087
12088
12089fi
12090
12091
12092fi
12093
12094
12095fi
12096
12097 ;;
12098 esac
12099
12100 if test "x$lt_cv_dlopen" != xno; then
12101 enable_dlopen=yes
12102 else
12103 enable_dlopen=no
12104 fi
12105
12106 case $lt_cv_dlopen in
12107 dlopen)
12108 save_CPPFLAGS="$CPPFLAGS"
12109 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12110
12111 save_LDFLAGS="$LDFLAGS"
12112 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12113
12114 save_LIBS="$LIBS"
12115 LIBS="$lt_cv_dlopen_libs $LIBS"
12116
12117 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12118echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12119if test "${lt_cv_dlopen_self+set}" = set; then
12120 echo $ECHO_N "(cached) $ECHO_C" >&6
12121else
12122 if test "$cross_compiling" = yes; then :
12123 lt_cv_dlopen_self=cross
12124else
12125 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12126 lt_status=$lt_dlunknown
12127 cat > conftest.$ac_ext <<EOF
John Criswell78227592003-09-30 19:41:15 +000012128#line 12134 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012129#include "confdefs.h"
12130
12131#if HAVE_DLFCN_H
12132#include <dlfcn.h>
12133#endif
12134
12135#include <stdio.h>
12136
12137#ifdef RTLD_GLOBAL
12138# define LT_DLGLOBAL RTLD_GLOBAL
12139#else
12140# ifdef DL_GLOBAL
12141# define LT_DLGLOBAL DL_GLOBAL
12142# else
12143# define LT_DLGLOBAL 0
12144# endif
12145#endif
12146
12147/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12148 find out it does not work in some platform. */
12149#ifndef LT_DLLAZY_OR_NOW
12150# ifdef RTLD_LAZY
12151# define LT_DLLAZY_OR_NOW RTLD_LAZY
12152# else
12153# ifdef DL_LAZY
12154# define LT_DLLAZY_OR_NOW DL_LAZY
12155# else
12156# ifdef RTLD_NOW
12157# define LT_DLLAZY_OR_NOW RTLD_NOW
12158# else
12159# ifdef DL_NOW
12160# define LT_DLLAZY_OR_NOW DL_NOW
12161# else
12162# define LT_DLLAZY_OR_NOW 0
12163# endif
12164# endif
12165# endif
12166# endif
12167#endif
12168
12169#ifdef __cplusplus
12170extern "C" void exit (int);
12171#endif
12172
12173void fnord() { int i=42;}
12174int main ()
12175{
12176 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12177 int status = $lt_dlunknown;
12178
12179 if (self)
12180 {
12181 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12182 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12183 /* dlclose (self); */
12184 }
12185
12186 exit (status);
12187}
12188EOF
12189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12190 (eval $ac_link) 2>&5
12191 ac_status=$?
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12194 (./conftest; exit; ) 2>/dev/null
12195 lt_status=$?
12196 case x$lt_status in
12197 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12198 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12199 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12200 esac
12201 else :
12202 # compilation failed
12203 lt_cv_dlopen_self=no
12204 fi
12205fi
12206rm -fr conftest*
12207
12208
12209fi
12210echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12211echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12212
12213 if test "x$lt_cv_dlopen_self" = xyes; then
12214 LDFLAGS="$LDFLAGS $link_static_flag"
12215 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12216echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12217if test "${lt_cv_dlopen_self_static+set}" = set; then
12218 echo $ECHO_N "(cached) $ECHO_C" >&6
12219else
12220 if test "$cross_compiling" = yes; then :
12221 lt_cv_dlopen_self_static=cross
12222else
12223 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12224 lt_status=$lt_dlunknown
12225 cat > conftest.$ac_ext <<EOF
John Criswell78227592003-09-30 19:41:15 +000012226#line 12232 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012227#include "confdefs.h"
12228
12229#if HAVE_DLFCN_H
12230#include <dlfcn.h>
12231#endif
12232
12233#include <stdio.h>
12234
12235#ifdef RTLD_GLOBAL
12236# define LT_DLGLOBAL RTLD_GLOBAL
12237#else
12238# ifdef DL_GLOBAL
12239# define LT_DLGLOBAL DL_GLOBAL
12240# else
12241# define LT_DLGLOBAL 0
12242# endif
12243#endif
12244
12245/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12246 find out it does not work in some platform. */
12247#ifndef LT_DLLAZY_OR_NOW
12248# ifdef RTLD_LAZY
12249# define LT_DLLAZY_OR_NOW RTLD_LAZY
12250# else
12251# ifdef DL_LAZY
12252# define LT_DLLAZY_OR_NOW DL_LAZY
12253# else
12254# ifdef RTLD_NOW
12255# define LT_DLLAZY_OR_NOW RTLD_NOW
12256# else
12257# ifdef DL_NOW
12258# define LT_DLLAZY_OR_NOW DL_NOW
12259# else
12260# define LT_DLLAZY_OR_NOW 0
12261# endif
12262# endif
12263# endif
12264# endif
12265#endif
12266
12267#ifdef __cplusplus
12268extern "C" void exit (int);
12269#endif
12270
12271void fnord() { int i=42;}
12272int main ()
12273{
12274 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12275 int status = $lt_dlunknown;
12276
12277 if (self)
12278 {
12279 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12280 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12281 /* dlclose (self); */
12282 }
12283
12284 exit (status);
12285}
12286EOF
12287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12288 (eval $ac_link) 2>&5
12289 ac_status=$?
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12292 (./conftest; exit; ) 2>/dev/null
12293 lt_status=$?
12294 case x$lt_status in
12295 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12296 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12297 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12298 esac
12299 else :
12300 # compilation failed
12301 lt_cv_dlopen_self_static=no
12302 fi
12303fi
12304rm -fr conftest*
12305
12306
12307fi
12308echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12309echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12310 fi
12311
12312 CPPFLAGS="$save_CPPFLAGS"
12313 LDFLAGS="$save_LDFLAGS"
12314 LIBS="$save_LIBS"
12315 ;;
12316 esac
12317
12318 case $lt_cv_dlopen_self in
12319 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12320 *) enable_dlopen_self=unknown ;;
12321 esac
12322
12323 case $lt_cv_dlopen_self_static in
12324 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12325 *) enable_dlopen_self_static=unknown ;;
12326 esac
12327fi
12328
12329
12330# The else clause should only fire when bootstrapping the
12331# libtool distribution, otherwise you forgot to ship ltmain.sh
12332# with your package, and you will get complaints that there are
12333# no rules to generate ltmain.sh.
12334if test -f "$ltmain"; then
12335 # See if we are running on zsh, and set the options which allow our commands through
12336 # without removal of \ escapes.
12337 if test -n "${ZSH_VERSION+set}" ; then
12338 setopt NO_GLOB_SUBST
12339 fi
12340 # Now quote all the things that may contain metacharacters while being
12341 # careful not to overquote the AC_SUBSTed values. We take copies of the
12342 # variables and quote the copies for generation of the libtool script.
12343 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12344 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12345 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12346 deplibs_check_method reload_flag reload_cmds need_locks \
12347 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12348 lt_cv_sys_global_symbol_to_c_name_address \
12349 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12350 old_postinstall_cmds old_postuninstall_cmds \
12351 compiler_CXX \
12352 CC_CXX \
12353 LD_CXX \
12354 lt_prog_compiler_wl_CXX \
12355 lt_prog_compiler_pic_CXX \
12356 lt_prog_compiler_static_CXX \
12357 lt_prog_compiler_no_builtin_flag_CXX \
12358 export_dynamic_flag_spec_CXX \
12359 thread_safe_flag_spec_CXX \
12360 whole_archive_flag_spec_CXX \
12361 enable_shared_with_static_runtimes_CXX \
12362 old_archive_cmds_CXX \
12363 old_archive_from_new_cmds_CXX \
12364 predep_objects_CXX \
12365 postdep_objects_CXX \
12366 predeps_CXX \
12367 postdeps_CXX \
12368 compiler_lib_search_path_CXX \
12369 archive_cmds_CXX \
12370 archive_expsym_cmds_CXX \
12371 postinstall_cmds_CXX \
12372 postuninstall_cmds_CXX \
12373 old_archive_from_expsyms_cmds_CXX \
12374 allow_undefined_flag_CXX \
12375 no_undefined_flag_CXX \
12376 export_symbols_cmds_CXX \
12377 hardcode_libdir_flag_spec_CXX \
12378 hardcode_libdir_flag_spec_ld_CXX \
12379 hardcode_libdir_separator_CXX \
12380 hardcode_automatic_CXX \
12381 module_cmds_CXX \
12382 module_expsym_cmds_CXX \
12383 lt_cv_prog_compiler_c_o_CXX \
12384 exclude_expsyms_CXX \
12385 include_expsyms_CXX; do
12386
12387 case $var in
12388 old_archive_cmds_CXX | \
12389 old_archive_from_new_cmds_CXX | \
12390 archive_cmds_CXX | \
12391 archive_expsym_cmds_CXX | \
12392 module_cmds_CXX | \
12393 module_expsym_cmds_CXX | \
12394 old_archive_from_expsyms_cmds_CXX | \
12395 export_symbols_cmds_CXX | \
12396 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12397 postinstall_cmds | postuninstall_cmds | \
12398 old_postinstall_cmds | old_postuninstall_cmds | \
12399 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12400 # Double-quote double-evaled strings.
12401 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12402 ;;
12403 *)
12404 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12405 ;;
12406 esac
12407 done
12408
12409 case $lt_echo in
12410 *'\$0 --fallback-echo"')
12411 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12412 ;;
12413 esac
12414
12415cfgfile="$ofile"
12416
12417 cat <<__EOF__ >> "$cfgfile"
12418# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12419
12420# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12421
12422# Shell to use when invoking shell scripts.
12423SHELL=$lt_SHELL
12424
12425# Whether or not to build shared libraries.
12426build_libtool_libs=$enable_shared
12427
12428# Whether or not to build static libraries.
12429build_old_libs=$enable_static
12430
12431# Whether or not to add -lc for building shared libraries.
12432build_libtool_need_lc=$archive_cmds_need_lc_CXX
12433
12434# Whether or not to disallow shared libs when runtime libs are static
12435allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12436
12437# Whether or not to optimize for fast installation.
12438fast_install=$enable_fast_install
12439
12440# The host system.
12441host_alias=$host_alias
12442host=$host
12443
12444# An echo program that does not interpret backslashes.
12445echo=$lt_echo
12446
12447# The archiver.
12448AR=$lt_AR
12449AR_FLAGS=$lt_AR_FLAGS
12450
12451# A C compiler.
12452LTCC=$lt_LTCC
12453
12454# A language-specific compiler.
12455CC=$lt_compiler_CXX
12456
12457# Is the compiler the GNU C compiler?
12458with_gcc=$GCC_CXX
12459
12460# An ERE matcher.
12461EGREP=$lt_EGREP
12462
12463# The linker used to build libraries.
12464LD=$lt_LD_CXX
12465
12466# Whether we need hard or soft links.
12467LN_S=$lt_LN_S
12468
12469# A BSD-compatible nm program.
12470NM=$lt_NM
12471
12472# A symbol stripping program
12473STRIP=$STRIP
12474
12475# Used to examine libraries when file_magic_cmd begins "file"
12476MAGIC_CMD=$MAGIC_CMD
12477
12478# Used on cygwin: DLL creation program.
12479DLLTOOL="$DLLTOOL"
12480
12481# Used on cygwin: object dumper.
12482OBJDUMP="$OBJDUMP"
12483
12484# Used on cygwin: assembler.
12485AS="$AS"
12486
12487# The name of the directory that contains temporary libtool files.
12488objdir=$objdir
12489
12490# How to create reloadable object files.
12491reload_flag=$lt_reload_flag
12492reload_cmds=$lt_reload_cmds
12493
12494# How to pass a linker flag through the compiler.
12495wl=$lt_lt_prog_compiler_wl_CXX
12496
12497# Object file suffix (normally "o").
12498objext="$ac_objext"
12499
12500# Old archive suffix (normally "a").
12501libext="$libext"
12502
12503# Shared library suffix (normally ".so").
12504shrext='$shrext'
12505
12506# Executable file suffix (normally "").
12507exeext="$exeext"
12508
12509# Additional compiler flags for building library objects.
12510pic_flag=$lt_lt_prog_compiler_pic_CXX
12511pic_mode=$pic_mode
12512
12513# What is the maximum length of a command?
12514max_cmd_len=$lt_cv_sys_max_cmd_len
12515
12516# Does compiler simultaneously support -c and -o options?
12517compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12518
12519# Must we lock files when doing compilation ?
12520need_locks=$lt_need_locks
12521
12522# Do we need the lib prefix for modules?
12523need_lib_prefix=$need_lib_prefix
12524
12525# Do we need a version for libraries?
12526need_version=$need_version
12527
12528# Whether dlopen is supported.
12529dlopen_support=$enable_dlopen
12530
12531# Whether dlopen of programs is supported.
12532dlopen_self=$enable_dlopen_self
12533
12534# Whether dlopen of statically linked programs is supported.
12535dlopen_self_static=$enable_dlopen_self_static
12536
12537# Compiler flag to prevent dynamic linking.
12538link_static_flag=$lt_lt_prog_compiler_static_CXX
12539
12540# Compiler flag to turn off builtin functions.
12541no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12542
12543# Compiler flag to allow reflexive dlopens.
12544export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12545
12546# Compiler flag to generate shared objects directly from archives.
12547whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12548
12549# Compiler flag to generate thread-safe objects.
12550thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12551
12552# Library versioning type.
12553version_type=$version_type
12554
12555# Format of library name prefix.
12556libname_spec=$lt_libname_spec
12557
12558# List of archive names. First name is the real one, the rest are links.
12559# The last name is the one that the linker finds with -lNAME.
12560library_names_spec=$lt_library_names_spec
12561
12562# The coded name of the library, if different from the real name.
12563soname_spec=$lt_soname_spec
12564
12565# Commands used to build and install an old-style archive.
12566RANLIB=$lt_RANLIB
12567old_archive_cmds=$lt_old_archive_cmds_CXX
12568old_postinstall_cmds=$lt_old_postinstall_cmds
12569old_postuninstall_cmds=$lt_old_postuninstall_cmds
12570
12571# Create an old-style archive from a shared archive.
12572old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12573
12574# Create a temporary old-style archive to link instead of a shared archive.
12575old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12576
12577# Commands used to build and install a shared archive.
12578archive_cmds=$lt_archive_cmds_CXX
12579archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12580postinstall_cmds=$lt_postinstall_cmds
12581postuninstall_cmds=$lt_postuninstall_cmds
12582
12583# Commands used to build a loadable module (assumed same as above if empty)
12584module_cmds=$lt_module_cmds_CXX
12585module_expsym_cmds=$lt_module_expsym_cmds_CXX
12586
12587# Commands to strip libraries.
12588old_striplib=$lt_old_striplib
12589striplib=$lt_striplib
12590
12591# Dependencies to place before the objects being linked to create a
12592# shared library.
12593predep_objects=$lt_predep_objects_CXX
12594
12595# Dependencies to place after the objects being linked to create a
12596# shared library.
12597postdep_objects=$lt_postdep_objects_CXX
12598
12599# Dependencies to place before the objects being linked to create a
12600# shared library.
12601predeps=$lt_predeps_CXX
12602
12603# Dependencies to place after the objects being linked to create a
12604# shared library.
12605postdeps=$lt_postdeps_CXX
12606
12607# The library search path used internally by the compiler when linking
12608# a shared library.
12609compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12610
12611# Method to check whether dependent libraries are shared objects.
12612deplibs_check_method=$lt_deplibs_check_method
12613
12614# Command to use when deplibs_check_method == file_magic.
12615file_magic_cmd=$lt_file_magic_cmd
12616
12617# Flag that allows shared libraries with undefined symbols to be built.
12618allow_undefined_flag=$lt_allow_undefined_flag_CXX
12619
12620# Flag that forces no undefined symbols.
12621no_undefined_flag=$lt_no_undefined_flag_CXX
12622
12623# Commands used to finish a libtool library installation in a directory.
12624finish_cmds=$lt_finish_cmds
12625
12626# Same as above, but a single script fragment to be evaled but not shown.
12627finish_eval=$lt_finish_eval
12628
12629# Take the output of nm and produce a listing of raw symbols and C names.
12630global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12631
12632# Transform the output of nm in a proper C declaration
12633global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12634
12635# Transform the output of nm in a C name address pair
12636global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12637
12638# This is the shared library runtime path variable.
12639runpath_var=$runpath_var
12640
12641# This is the shared library path variable.
12642shlibpath_var=$shlibpath_var
12643
12644# Is shlibpath searched before the hard-coded library search path?
12645shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12646
12647# How to hardcode a shared library path into an executable.
12648hardcode_action=$hardcode_action_CXX
12649
12650# Whether we should hardcode library paths into libraries.
12651hardcode_into_libs=$hardcode_into_libs
12652
12653# Flag to hardcode \$libdir into a binary during linking.
12654# This must work even if \$libdir does not exist.
12655hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12656
12657# If ld is used when linking, flag to hardcode \$libdir into
12658# a binary during linking. This must work even if \$libdir does
12659# not exist.
12660hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12661
12662# Whether we need a single -rpath flag with a separated argument.
12663hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12664
12665# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12666# resulting binary.
12667hardcode_direct=$hardcode_direct_CXX
12668
12669# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12670# resulting binary.
12671hardcode_minus_L=$hardcode_minus_L_CXX
12672
12673# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12674# the resulting binary.
12675hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12676
12677# Set to yes if building a shared library automatically hardcodes DIR into the library
12678# and all subsequent libraries and executables linked against it.
12679hardcode_automatic=$hardcode_automatic_CXX
12680
12681# Variables whose values should be saved in libtool wrapper scripts and
12682# restored at relink time.
12683variables_saved_for_relink="$variables_saved_for_relink"
12684
12685# Whether libtool must link a program against all its dependency libraries.
12686link_all_deplibs=$link_all_deplibs_CXX
12687
12688# Compile-time system search path for libraries
12689sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12690
12691# Run-time system search path for libraries
12692sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12693
12694# Fix the shell variable \$srcfile for the compiler.
12695fix_srcfile_path="$fix_srcfile_path_CXX"
12696
12697# Set to yes if exported symbols are required.
12698always_export_symbols=$always_export_symbols_CXX
12699
12700# The commands to list exported symbols.
12701export_symbols_cmds=$lt_export_symbols_cmds_CXX
12702
12703# The commands to extract the exported symbol list from a shared archive.
12704extract_expsyms_cmds=$lt_extract_expsyms_cmds
12705
12706# Symbols that should not be listed in the preloaded symbols.
12707exclude_expsyms=$lt_exclude_expsyms_CXX
12708
12709# Symbols that must always be exported.
12710include_expsyms=$lt_include_expsyms_CXX
12711
12712# ### END LIBTOOL TAG CONFIG: $tagname
12713
12714__EOF__
12715
12716
12717else
12718 # If there is no Makefile yet, we rely on a make rule to execute
12719 # `config.status --recheck' to rerun these tests and create the
12720 # libtool script then.
12721 test -f Makefile && make "$ltmain"
12722fi
12723
12724
12725ac_ext=c
12726ac_cpp='$CPP $CPPFLAGS'
12727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12729ac_compiler_gnu=$ac_cv_c_compiler_gnu
12730
12731CC=$lt_save_CC
12732LDCXX=$LD
12733LD=$lt_save_LD
12734GCC=$lt_save_GCC
12735with_gnu_ldcxx=$with_gnu_ld
12736with_gnu_ld=$lt_save_with_gnu_ld
12737lt_cv_path_LDCXX=$lt_cv_path_LD
12738lt_cv_path_LD=$lt_save_path_LD
12739lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12740lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12741
12742 else
12743 tagname=""
12744 fi
12745 ;;
12746
12747 F77)
12748 if test -n "$F77" && test "X$F77" != "Xno"; then
12749
12750ac_ext=f
12751ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12752ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12753ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12754
12755
12756archive_cmds_need_lc_F77=no
12757allow_undefined_flag_F77=
12758always_export_symbols_F77=no
12759archive_expsym_cmds_F77=
12760export_dynamic_flag_spec_F77=
12761hardcode_direct_F77=no
12762hardcode_libdir_flag_spec_F77=
12763hardcode_libdir_flag_spec_ld_F77=
12764hardcode_libdir_separator_F77=
12765hardcode_minus_L_F77=no
12766hardcode_automatic_F77=no
12767module_cmds_F77=
12768module_expsym_cmds_F77=
12769link_all_deplibs_F77=unknown
12770old_archive_cmds_F77=$old_archive_cmds
12771no_undefined_flag_F77=
12772whole_archive_flag_spec_F77=
12773enable_shared_with_static_runtimes_F77=no
12774
12775# Source file extension for f77 test sources.
12776ac_ext=f
12777
12778# Object file extension for compiled f77 test sources.
12779objext=o
12780objext_F77=$objext
12781
12782# Code to be used in simple compile tests
12783lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12784
12785# Code to be used in simple link tests
12786lt_simple_link_test_code=" program t\n end\n"
12787
12788# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12789
12790# If no C compiler was specified, use CC.
12791LTCC=${LTCC-"$CC"}
12792
12793# Allow CC to be a program name with arguments.
12794compiler=$CC
12795
12796
12797# Allow CC to be a program name with arguments.
12798lt_save_CC="$CC"
12799CC=${F77-"f77"}
12800compiler=$CC
12801compiler_F77=$CC
12802cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12803
12804echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12805echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12806echo "$as_me:$LINENO: result: $can_build_shared" >&5
12807echo "${ECHO_T}$can_build_shared" >&6
12808
12809echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12810echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12811test "$can_build_shared" = "no" && enable_shared=no
12812
12813# On AIX, shared libraries and static libraries use the same namespace, and
12814# are all built from PIC.
12815case "$host_os" in
12816aix3*)
12817 test "$enable_shared" = yes && enable_static=no
12818 if test -n "$RANLIB"; then
12819 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12820 postinstall_cmds='$RANLIB $lib'
12821 fi
12822 ;;
12823aix4*)
12824 test "$enable_shared" = yes && enable_static=no
12825 ;;
12826esac
12827echo "$as_me:$LINENO: result: $enable_shared" >&5
12828echo "${ECHO_T}$enable_shared" >&6
12829
12830echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12831echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12832# Make sure either enable_shared or enable_static is yes.
12833test "$enable_shared" = yes || enable_static=yes
12834echo "$as_me:$LINENO: result: $enable_static" >&5
12835echo "${ECHO_T}$enable_static" >&6
12836
12837test "$ld_shlibs_F77" = no && can_build_shared=no
12838
12839GCC_F77="$G77"
12840LD_F77="$LD"
12841
12842lt_prog_compiler_wl_F77=
12843lt_prog_compiler_pic_F77=
12844lt_prog_compiler_static_F77=
12845
12846echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12847echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12848
12849 if test "$GCC" = yes; then
12850 lt_prog_compiler_wl_F77='-Wl,'
12851 lt_prog_compiler_static_F77='-static'
12852
12853 case $host_os in
12854 aix*)
12855 # All AIX code is PIC.
12856 if test "$host_cpu" = ia64; then
12857 # AIX 5 now supports IA64 processor
12858 lt_prog_compiler_static_F77='-Bstatic'
12859 fi
12860 ;;
12861
12862 amigaos*)
12863 # FIXME: we need at least 68020 code to build shared libraries, but
12864 # adding the `-m68020' flag to GCC prevents building anything better,
12865 # like `-m68040'.
12866 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12867 ;;
12868
12869 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12870 # PIC is the default for these OSes.
12871 ;;
12872
12873 mingw* | pw32* | os2*)
12874 # This hack is so that the source file can tell whether it is being
12875 # built for inclusion in a dll (and should export symbols for example).
12876 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12877 ;;
12878
12879 darwin* | rhapsody*)
12880 # PIC is the default on this platform
12881 # Common symbols not allowed in MH_DYLIB files
12882 lt_prog_compiler_pic_F77='-fno-common'
12883 ;;
12884
12885 msdosdjgpp*)
12886 # Just because we use GCC doesn't mean we suddenly get shared libraries
12887 # on systems that don't support them.
12888 lt_prog_compiler_can_build_shared_F77=no
12889 enable_shared=no
12890 ;;
12891
12892 sysv4*MP*)
12893 if test -d /usr/nec; then
12894 lt_prog_compiler_pic_F77=-Kconform_pic
12895 fi
12896 ;;
12897
12898 hpux*)
12899 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12900 # not for PA HP-UX.
12901 case "$host_cpu" in
12902 hppa*64*|ia64*)
12903 # +Z the default
12904 ;;
12905 *)
12906 lt_prog_compiler_pic_F77='-fPIC'
12907 ;;
12908 esac
12909 ;;
12910
12911 *)
12912 lt_prog_compiler_pic_F77='-fPIC'
12913 ;;
12914 esac
12915 else
12916 # PORTME Check for flag to pass linker flags through the system compiler.
12917 case $host_os in
12918 aix*)
12919 lt_prog_compiler_wl_F77='-Wl,'
12920 if test "$host_cpu" = ia64; then
12921 # AIX 5 now supports IA64 processor
12922 lt_prog_compiler_static_F77='-Bstatic'
12923 else
12924 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12925 fi
12926 ;;
12927
12928 mingw* | pw32* | os2*)
12929 # This hack is so that the source file can tell whether it is being
12930 # built for inclusion in a dll (and should export symbols for example).
12931 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12932 ;;
12933
12934 hpux9* | hpux10* | hpux11*)
12935 lt_prog_compiler_wl_F77='-Wl,'
12936 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12937 # not for PA HP-UX.
12938 case "$host_cpu" in
12939 hppa*64*|ia64*)
12940 # +Z the default
12941 ;;
12942 *)
12943 lt_prog_compiler_pic_F77='+Z'
12944 ;;
12945 esac
12946 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12947 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12948 ;;
12949
12950 irix5* | irix6* | nonstopux*)
12951 lt_prog_compiler_wl_F77='-Wl,'
12952 # PIC (with -KPIC) is the default.
12953 lt_prog_compiler_static_F77='-non_shared'
12954 ;;
12955
12956 newsos6)
12957 lt_prog_compiler_pic_F77='-KPIC'
12958 lt_prog_compiler_static_F77='-Bstatic'
12959 ;;
12960
12961 linux*)
12962 case $CC in
12963 icc|ecc)
12964 lt_prog_compiler_wl_F77='-Wl,'
12965 lt_prog_compiler_pic_F77='-KPIC'
12966 lt_prog_compiler_static_F77='-static'
12967 ;;
12968 ccc)
12969 lt_prog_compiler_wl_F77='-Wl,'
12970 # All Alpha code is PIC.
12971 lt_prog_compiler_static_F77='-non_shared'
12972 ;;
12973 esac
12974 ;;
12975
12976 osf3* | osf4* | osf5*)
12977 lt_prog_compiler_wl_F77='-Wl,'
12978 # All OSF/1 code is PIC.
12979 lt_prog_compiler_static_F77='-non_shared'
12980 ;;
12981
12982 sco3.2v5*)
12983 lt_prog_compiler_pic_F77='-Kpic'
12984 lt_prog_compiler_static_F77='-dn'
12985 ;;
12986
12987 solaris*)
12988 lt_prog_compiler_wl_F77='-Wl,'
12989 lt_prog_compiler_pic_F77='-KPIC'
12990 lt_prog_compiler_static_F77='-Bstatic'
12991 ;;
12992
12993 sunos4*)
12994 lt_prog_compiler_wl_F77='-Qoption ld '
12995 lt_prog_compiler_pic_F77='-PIC'
12996 lt_prog_compiler_static_F77='-Bstatic'
12997 ;;
12998
12999 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13000 lt_prog_compiler_wl_F77='-Wl,'
13001 lt_prog_compiler_pic_F77='-KPIC'
13002 lt_prog_compiler_static_F77='-Bstatic'
13003 ;;
13004
13005 sysv4*MP*)
13006 if test -d /usr/nec ;then
13007 lt_prog_compiler_pic_F77='-Kconform_pic'
13008 lt_prog_compiler_static_F77='-Bstatic'
13009 fi
13010 ;;
13011
13012 uts4*)
13013 lt_prog_compiler_pic_F77='-pic'
13014 lt_prog_compiler_static_F77='-Bstatic'
13015 ;;
13016
13017 *)
13018 lt_prog_compiler_can_build_shared_F77=no
13019 ;;
13020 esac
13021 fi
13022
13023echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13024echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13025
13026#
13027# Check to make sure the PIC flag actually works.
13028#
13029if test -n "$lt_prog_compiler_pic_F77"; then
13030 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13031echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13032if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
13034else
13035 lt_prog_compiler_pic_works_F77=no
13036 ac_outfile=conftest.$ac_objext
13037 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13038 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13039 # Insert the option either (1) after the last *FLAGS variable, or
13040 # (2) before a word containing "conftest.", or (3) at the end.
13041 # Note that $ac_compile itself does not contain backslashes and begins
13042 # with a dollar sign (not a hyphen), so the echo should work correctly.
13043 # The option is referenced via a variable to avoid confusing sed.
13044 lt_compile=`echo "$ac_compile" | $SED \
13045 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13047 -e 's:$: $lt_compiler_flag:'`
John Criswell78227592003-09-30 19:41:15 +000013048 (eval echo "\"\$as_me:13054: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013049 (eval "$lt_compile" 2>conftest.err)
13050 ac_status=$?
13051 cat conftest.err >&5
John Criswell78227592003-09-30 19:41:15 +000013052 echo "$as_me:13058: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013053 if (exit $ac_status) && test -s "$ac_outfile"; then
13054 # The compiler can only warn and ignore the option if not recognized
13055 # So say no if there are warnings
13056 if test ! -s conftest.err; then
13057 lt_prog_compiler_pic_works_F77=yes
13058 fi
13059 fi
13060 $rm conftest*
13061
13062fi
13063echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13064echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13065
13066if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13067 case $lt_prog_compiler_pic_F77 in
13068 "" | " "*) ;;
13069 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13070 esac
13071else
13072 lt_prog_compiler_pic_F77=
13073 lt_prog_compiler_can_build_shared_F77=no
13074fi
13075
13076fi
13077case "$host_os" in
13078 # For platforms which do not support PIC, -DPIC is meaningless:
13079 *djgpp*)
13080 lt_prog_compiler_pic_F77=
13081 ;;
13082 *)
13083 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13084 ;;
13085esac
13086
13087echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13088echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13089if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13090 echo $ECHO_N "(cached) $ECHO_C" >&6
13091else
13092 lt_cv_prog_compiler_c_o_F77=no
13093 $rm -r conftest 2>/dev/null
13094 mkdir conftest
13095 cd conftest
13096 mkdir out
13097 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13098
13099 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13100 # that will create temporary files in the current directory regardless of
13101 # the output directory. Thus, making CWD read-only will cause this test
13102 # to fail, enabling locking or at least warning the user not to do parallel
13103 # builds.
13104 chmod -w .
13105
13106 lt_compiler_flag="-o out/conftest2.$ac_objext"
13107 # Insert the option either (1) after the last *FLAGS variable, or
13108 # (2) before a word containing "conftest.", or (3) at the end.
13109 # Note that $ac_compile itself does not contain backslashes and begins
13110 # with a dollar sign (not a hyphen), so the echo should work correctly.
13111 lt_compile=`echo "$ac_compile" | $SED \
13112 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13114 -e 's:$: $lt_compiler_flag:'`
John Criswell78227592003-09-30 19:41:15 +000013115 (eval echo "\"\$as_me:13121: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013116 (eval "$lt_compile" 2>out/conftest.err)
13117 ac_status=$?
13118 cat out/conftest.err >&5
John Criswell78227592003-09-30 19:41:15 +000013119 echo "$as_me:13125: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013120 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13121 then
13122 # The compiler can only warn and ignore the option if not recognized
13123 # So say no if there are warnings
13124 if test ! -s out/conftest.err; then
13125 lt_cv_prog_compiler_c_o_F77=yes
13126 fi
13127 fi
13128 chmod u+w .
13129 $rm conftest* out/*
13130 rmdir out
13131 cd ..
13132 rmdir conftest
13133 $rm conftest*
13134
13135fi
13136echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13137echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13138
13139
13140hard_links="nottested"
13141if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13142 # do not overwrite the value of need_locks provided by the user
13143 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13144echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13145 hard_links=yes
13146 $rm conftest*
13147 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13148 touch conftest.a
13149 ln conftest.a conftest.b 2>&5 || hard_links=no
13150 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13151 echo "$as_me:$LINENO: result: $hard_links" >&5
13152echo "${ECHO_T}$hard_links" >&6
13153 if test "$hard_links" = no; then
13154 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13155echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13156 need_locks=warn
13157 fi
13158else
13159 need_locks=no
13160fi
13161
13162echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13163echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13164
13165 runpath_var=
13166 allow_undefined_flag_F77=
13167 enable_shared_with_static_runtimes_F77=no
13168 archive_cmds_F77=
13169 archive_expsym_cmds_F77=
13170 old_archive_From_new_cmds_F77=
13171 old_archive_from_expsyms_cmds_F77=
13172 export_dynamic_flag_spec_F77=
13173 whole_archive_flag_spec_F77=
13174 thread_safe_flag_spec_F77=
13175 hardcode_libdir_flag_spec_F77=
13176 hardcode_libdir_flag_spec_ld_F77=
13177 hardcode_libdir_separator_F77=
13178 hardcode_direct_F77=no
13179 hardcode_minus_L_F77=no
13180 hardcode_shlibpath_var_F77=unsupported
13181 link_all_deplibs_F77=unknown
13182 hardcode_automatic_F77=no
13183 module_cmds_F77=
13184 module_expsym_cmds_F77=
13185 always_export_symbols_F77=no
13186 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13187 # include_expsyms should be a list of space-separated symbols to be *always*
13188 # included in the symbol list
13189 include_expsyms_F77=
13190 # exclude_expsyms can be an extended regexp of symbols to exclude
13191 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13192 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13193 # as well as any symbol that contains `d'.
13194 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13195 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13196 # platforms (ab)use it in PIC code, but their linkers get confused if
13197 # the symbol is explicitly referenced. Since portable code cannot
13198 # rely on this symbol name, it's probably fine to never include it in
13199 # preloaded symbol tables.
13200 extract_expsyms_cmds=
13201
13202 case $host_os in
13203 cygwin* | mingw* | pw32*)
13204 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13205 # When not using gcc, we currently assume that we are using
13206 # Microsoft Visual C++.
13207 if test "$GCC" != yes; then
13208 with_gnu_ld=no
13209 fi
13210 ;;
13211 openbsd*)
13212 with_gnu_ld=no
13213 ;;
13214 esac
13215
13216 ld_shlibs_F77=yes
13217 if test "$with_gnu_ld" = yes; then
13218 # If archive_cmds runs LD, not CC, wlarc should be empty
13219 wlarc='${wl}'
13220
13221 # See if GNU ld supports shared libraries.
13222 case $host_os in
13223 aix3* | aix4* | aix5*)
13224 # On AIX/PPC, the GNU linker is very broken
13225 if test "$host_cpu" != ia64; then
13226 ld_shlibs_F77=no
13227 cat <<EOF 1>&2
13228
13229*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13230*** to be unable to reliably create shared libraries on AIX.
13231*** Therefore, libtool is disabling shared libraries support. If you
13232*** really care for shared libraries, you may want to modify your PATH
13233*** so that a non-GNU linker is found, and then restart.
13234
13235EOF
13236 fi
13237 ;;
13238
13239 amigaos*)
13240 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)'
13241 hardcode_libdir_flag_spec_F77='-L$libdir'
13242 hardcode_minus_L_F77=yes
13243
13244 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13245 # that the semantics of dynamic libraries on AmigaOS, at least up
13246 # to version 4, is to share data among multiple programs linked
13247 # with the same dynamic library. Since this doesn't match the
13248 # behavior of shared libraries on other platforms, we can't use
13249 # them.
13250 ld_shlibs_F77=no
13251 ;;
13252
13253 beos*)
13254 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13255 allow_undefined_flag_F77=unsupported
13256 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13257 # support --undefined. This deserves some investigation. FIXME
13258 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13259 else
13260 ld_shlibs_F77=no
13261 fi
13262 ;;
13263
13264 cygwin* | mingw* | pw32*)
13265 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13266 # as there is no search path for DLLs.
13267 hardcode_libdir_flag_spec_F77='-L$libdir'
13268 allow_undefined_flag_F77=unsupported
13269 always_export_symbols_F77=no
13270 enable_shared_with_static_runtimes_F77=yes
13271 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13272
13273 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13274 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13275 # If the export-symbols file already is a .def file (1st line
13276 # is EXPORTS), use it as is; otherwise, prepend...
13277 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13278 cp $export_symbols $output_objdir/$soname.def;
13279 else
13280 echo EXPORTS > $output_objdir/$soname.def;
13281 cat $export_symbols >> $output_objdir/$soname.def;
13282 fi~
13283 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13284 else
13285 ld_shlibs=no
13286 fi
13287 ;;
13288
13289 netbsd*)
13290 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13291 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13292 wlarc=
13293 else
13294 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13295 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13296 fi
13297 ;;
13298
13299 solaris* | sysv5*)
13300 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13301 ld_shlibs_F77=no
13302 cat <<EOF 1>&2
13303
13304*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13305*** create shared libraries on Solaris systems. Therefore, libtool
13306*** is disabling shared libraries support. We urge you to upgrade GNU
13307*** binutils to release 2.9.1 or newer. Another option is to modify
13308*** your PATH or compiler configuration so that the native linker is
13309*** used, and then restart.
13310
13311EOF
13312 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13313 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13314 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13315 else
13316 ld_shlibs_F77=no
13317 fi
13318 ;;
13319
13320 sunos4*)
13321 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13322 wlarc=
13323 hardcode_direct_F77=yes
13324 hardcode_shlibpath_var_F77=no
13325 ;;
13326
13327 *)
13328 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13329 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13330 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13331 else
13332 ld_shlibs_F77=no
13333 fi
13334 ;;
13335 esac
13336
13337 if test "$ld_shlibs_F77" = yes; then
13338 runpath_var=LD_RUN_PATH
13339 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13340 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13341 # ancient GNU ld didn't support --whole-archive et. al.
13342 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13343 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13344 else
13345 whole_archive_flag_spec_F77=
13346 fi
13347 fi
13348 else
13349 # PORTME fill in a description of your system's linker (not GNU ld)
13350 case $host_os in
13351 aix3*)
13352 allow_undefined_flag_F77=unsupported
13353 always_export_symbols_F77=yes
13354 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'
13355 # Note: this linker hardcodes the directories in LIBPATH if there
13356 # are no directories specified by -L.
13357 hardcode_minus_L_F77=yes
13358 if test "$GCC" = yes && test -z "$link_static_flag"; then
13359 # Neither direct hardcoding nor static linking is supported with a
13360 # broken collect2.
13361 hardcode_direct_F77=unsupported
13362 fi
13363 ;;
13364
13365 aix4* | aix5*)
13366 if test "$host_cpu" = ia64; then
13367 # On IA64, the linker does run time linking by default, so we don't
13368 # have to do anything special.
13369 aix_use_runtimelinking=no
13370 exp_sym_flag='-Bexport'
13371 no_entry_flag=""
13372 else
13373 # If we're using GNU nm, then we don't want the "-C" option.
13374 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13375 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13376 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'
13377 else
13378 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'
13379 fi
13380 aix_use_runtimelinking=no
13381
13382 # Test if we are trying to use run time linking or normal
13383 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13384 # need to do runtime linking.
13385 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13386 for ld_flag in $LDFLAGS; do
13387 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13388 aix_use_runtimelinking=yes
13389 break
13390 fi
13391 done
13392 esac
13393
13394 exp_sym_flag='-bexport'
13395 no_entry_flag='-bnoentry'
13396 fi
13397
13398 # When large executables or shared objects are built, AIX ld can
13399 # have problems creating the table of contents. If linking a library
13400 # or program results in "error TOC overflow" add -mminimal-toc to
13401 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13402 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13403
13404 archive_cmds_F77=''
13405 hardcode_direct_F77=yes
13406 hardcode_libdir_separator_F77=':'
13407 link_all_deplibs_F77=yes
13408
13409 if test "$GCC" = yes; then
13410 case $host_os in aix4.012|aix4.012.*)
13411 # We only want to do this on AIX 4.2 and lower, the check
13412 # below for broken collect2 doesn't work under 4.3+
13413 collect2name=`${CC} -print-prog-name=collect2`
13414 if test -f "$collect2name" && \
13415 strings "$collect2name" | grep resolve_lib_name >/dev/null
13416 then
13417 # We have reworked collect2
13418 hardcode_direct_F77=yes
13419 else
13420 # We have old collect2
13421 hardcode_direct_F77=unsupported
13422 # It fails to find uninstalled libraries when the uninstalled
13423 # path is not listed in the libpath. Setting hardcode_minus_L
13424 # to unsupported forces relinking
13425 hardcode_minus_L_F77=yes
13426 hardcode_libdir_flag_spec_F77='-L$libdir'
13427 hardcode_libdir_separator_F77=
13428 fi
13429 esac
13430 shared_flag='-shared'
13431 else
13432 # not using gcc
13433 if test "$host_cpu" = ia64; then
13434 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13435 # chokes on -Wl,-G. The following line is correct:
13436 shared_flag='-G'
13437 else
13438 if test "$aix_use_runtimelinking" = yes; then
13439 shared_flag='${wl}-G'
13440 else
13441 shared_flag='${wl}-bM:SRE'
13442 fi
13443 fi
13444 fi
13445
13446 # It seems that -bexpall does not export symbols beginning with
13447 # underscore (_), so it is better to generate a list of symbols to export.
13448 always_export_symbols_F77=yes
13449 if test "$aix_use_runtimelinking" = yes; then
13450 # Warning - without using the other runtime loading flags (-brtl),
13451 # -berok will link without error, but may produce a broken library.
13452 allow_undefined_flag_F77='-berok'
13453 # Determine the default libpath from the value encoded in an empty executable.
13454 cat >conftest.$ac_ext <<_ACEOF
13455 program main
13456
13457 end
13458_ACEOF
13459rm -f conftest.$ac_objext conftest$ac_exeext
13460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13461 (eval $ac_link) 2>&5
13462 ac_status=$?
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); } &&
13465 { ac_try='test -s conftest$ac_exeext'
13466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13467 (eval $ac_try) 2>&5
13468 ac_status=$?
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; }; then
13471
13472aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13473}'`
13474# Check for a 64-bit object if we didn't find anything.
13475if 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; }
13476}'`; fi
13477else
13478 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013479sed 's/^/| /' conftest.$ac_ext >&5
13480
John Criswell47fdd832003-07-14 16:52:07 +000013481fi
13482rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13483if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13484
13485 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13486 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"
13487 else
13488 if test "$host_cpu" = ia64; then
13489 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13490 allow_undefined_flag_F77="-z nodefs"
13491 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"
13492 else
13493 # Determine the default libpath from the value encoded in an empty executable.
13494 cat >conftest.$ac_ext <<_ACEOF
13495 program main
13496
13497 end
13498_ACEOF
13499rm -f conftest.$ac_objext conftest$ac_exeext
13500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13501 (eval $ac_link) 2>&5
13502 ac_status=$?
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); } &&
13505 { ac_try='test -s conftest$ac_exeext'
13506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507 (eval $ac_try) 2>&5
13508 ac_status=$?
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; }; then
13511
13512aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13513}'`
13514# Check for a 64-bit object if we didn't find anything.
13515if 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; }
13516}'`; fi
13517else
13518 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013519sed 's/^/| /' conftest.$ac_ext >&5
13520
John Criswell47fdd832003-07-14 16:52:07 +000013521fi
13522rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13523if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13524
13525 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13526 # Warning - without using the other run time loading flags,
13527 # -berok will link without error, but may produce a broken library.
13528 no_undefined_flag_F77=' ${wl}-bernotok'
13529 allow_undefined_flag_F77=' ${wl}-berok'
13530 # -bexpall does not export symbols beginning with underscore (_)
13531 always_export_symbols_F77=yes
13532 # Exported symbols can be pulled into shared objects from archives
13533 whole_archive_flag_spec_F77=' '
13534 archive_cmds_need_lc_F77=yes
13535 # This is similar to how AIX traditionally builds it's shared libraries.
13536 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'
13537 fi
13538 fi
13539 ;;
13540
13541 amigaos*)
13542 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)'
13543 hardcode_libdir_flag_spec_F77='-L$libdir'
13544 hardcode_minus_L_F77=yes
13545 # see comment about different semantics on the GNU ld section
13546 ld_shlibs_F77=no
13547 ;;
13548
13549 bsdi4*)
13550 export_dynamic_flag_spec_F77=-rdynamic
13551 ;;
13552
13553 cygwin* | mingw* | pw32*)
13554 # When not using gcc, we currently assume that we are using
13555 # Microsoft Visual C++.
13556 # hardcode_libdir_flag_spec is actually meaningless, as there is
13557 # no search path for DLLs.
13558 hardcode_libdir_flag_spec_F77=' '
13559 allow_undefined_flag_F77=unsupported
13560 # Tell ltmain to make .lib files, not .a files.
13561 libext=lib
13562 # Tell ltmain to make .dll files, not .so files.
13563 shrext=".dll"
13564 # FIXME: Setting linknames here is a bad hack.
13565 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13566 # The linker will automatically build a .lib file if we build a DLL.
13567 old_archive_From_new_cmds_F77='true'
13568 # FIXME: Should let the user specify the lib program.
13569 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13570 fix_srcfile_path='`cygpath -w "$srcfile"`'
13571 enable_shared_with_static_runtimes_F77=yes
13572 ;;
13573
13574 darwin* | rhapsody*)
13575 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13576 archive_cmds_need_lc_F77=no
13577 case "$host_os" in
13578 rhapsody* | darwin1.[012])
13579 allow_undefined_flag_F77='-undefined suppress'
13580 ;;
13581 *) # Darwin 1.3 on
13582 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13583 ;;
13584 esac
13585 # FIXME: Relying on posixy $() will cause problems for
13586 # cross-compilation, but unfortunately the echo tests do not
13587 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13588 # `"' quotes if we put them in here... so don't!
13589 lt_int_apple_cc_single_mod=no
13590 output_verbose_link_cmd='echo'
13591 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13592 lt_int_apple_cc_single_mod=yes
13593 fi
13594 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13595 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13596 else
13597 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'
13598 fi
13599 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13600 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13601 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13602 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}'
13603 else
13604 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}'
13605 fi
13606 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}'
13607 hardcode_direct_F77=no
13608 hardcode_automatic_F77=yes
13609 hardcode_shlibpath_var_F77=unsupported
13610 whole_archive_flag_spec_F77='-all_load $convenience'
13611 link_all_deplibs_F77=yes
13612 fi
13613 ;;
13614
13615 dgux*)
13616 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13617 hardcode_libdir_flag_spec_F77='-L$libdir'
13618 hardcode_shlibpath_var_F77=no
13619 ;;
13620
13621 freebsd1*)
13622 ld_shlibs_F77=no
13623 ;;
13624
13625 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13626 # support. Future versions do this automatically, but an explicit c++rt0.o
13627 # does not break anything, and helps significantly (at the cost of a little
13628 # extra space).
13629 freebsd2.2*)
13630 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13631 hardcode_libdir_flag_spec_F77='-R$libdir'
13632 hardcode_direct_F77=yes
13633 hardcode_shlibpath_var_F77=no
13634 ;;
13635
13636 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13637 freebsd2*)
13638 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13639 hardcode_direct_F77=yes
13640 hardcode_minus_L_F77=yes
13641 hardcode_shlibpath_var_F77=no
13642 ;;
13643
13644 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13645 freebsd*)
13646 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13647 hardcode_libdir_flag_spec_F77='-R$libdir'
13648 hardcode_direct_F77=yes
13649 hardcode_shlibpath_var_F77=no
13650 ;;
13651
13652 hpux9*)
13653 if test "$GCC" = yes; then
13654 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'
13655 else
13656 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'
13657 fi
13658 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13659 hardcode_libdir_separator_F77=:
13660 hardcode_direct_F77=yes
13661
13662 # hardcode_minus_L: Not really in the search PATH,
13663 # but as the default location of the library.
13664 hardcode_minus_L_F77=yes
13665 export_dynamic_flag_spec_F77='${wl}-E'
13666 ;;
13667
13668 hpux10* | hpux11*)
13669 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13670 case "$host_cpu" in
13671 hppa*64*|ia64*)
13672 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13673 ;;
13674 *)
13675 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13676 ;;
13677 esac
13678 else
13679 case "$host_cpu" in
13680 hppa*64*|ia64*)
13681 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13682 ;;
13683 *)
13684 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13685 ;;
13686 esac
13687 fi
13688 if test "$with_gnu_ld" = no; then
13689 case "$host_cpu" in
13690 hppa*64*)
13691 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13692 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13693 hardcode_libdir_separator_F77=:
13694 hardcode_direct_F77=no
13695 hardcode_shlibpath_var_F77=no
13696 ;;
13697 ia64*)
13698 hardcode_libdir_flag_spec_F77='-L$libdir'
13699 hardcode_direct_F77=no
13700 hardcode_shlibpath_var_F77=no
13701
13702 # hardcode_minus_L: Not really in the search PATH,
13703 # but as the default location of the library.
13704 hardcode_minus_L_F77=yes
13705 ;;
13706 *)
13707 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13708 hardcode_libdir_separator_F77=:
13709 hardcode_direct_F77=yes
13710 export_dynamic_flag_spec_F77='${wl}-E'
13711
13712 # hardcode_minus_L: Not really in the search PATH,
13713 # but as the default location of the library.
13714 hardcode_minus_L_F77=yes
13715 ;;
13716 esac
13717 fi
13718 ;;
13719
13720 irix5* | irix6* | nonstopux*)
13721 if test "$GCC" = yes; then
13722 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'
13723 else
13724 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'
13725 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13726 fi
13727 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13728 hardcode_libdir_separator_F77=:
13729 link_all_deplibs_F77=yes
13730 ;;
13731
13732 netbsd*)
13733 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13734 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13735 else
13736 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13737 fi
13738 hardcode_libdir_flag_spec_F77='-R$libdir'
13739 hardcode_direct_F77=yes
13740 hardcode_shlibpath_var_F77=no
13741 ;;
13742
13743 newsos6)
13744 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13745 hardcode_direct_F77=yes
13746 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13747 hardcode_libdir_separator_F77=:
13748 hardcode_shlibpath_var_F77=no
13749 ;;
13750
13751 openbsd*)
13752 hardcode_direct_F77=yes
13753 hardcode_shlibpath_var_F77=no
13754 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13755 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13756 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13757 export_dynamic_flag_spec_F77='${wl}-E'
13758 else
13759 case $host_os in
13760 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13761 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13762 hardcode_libdir_flag_spec_F77='-R$libdir'
13763 ;;
13764 *)
13765 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13766 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13767 ;;
13768 esac
13769 fi
13770 ;;
13771
13772 os2*)
13773 hardcode_libdir_flag_spec_F77='-L$libdir'
13774 hardcode_minus_L_F77=yes
13775 allow_undefined_flag_F77=unsupported
13776 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'
13777 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13778 ;;
13779
13780 osf3*)
13781 if test "$GCC" = yes; then
13782 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13783 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'
13784 else
13785 allow_undefined_flag_F77=' -expect_unresolved \*'
13786 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'
13787 fi
13788 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13789 hardcode_libdir_separator_F77=:
13790 ;;
13791
13792 osf4* | osf5*) # as osf3* with the addition of -msym flag
13793 if test "$GCC" = yes; then
13794 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13795 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'
13796 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13797 else
13798 allow_undefined_flag_F77=' -expect_unresolved \*'
13799 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'
13800 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~
13801 $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'
13802
13803 # Both c and cxx compiler support -rpath directly
13804 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13805 fi
13806 hardcode_libdir_separator_F77=:
13807 ;;
13808
13809 sco3.2v5*)
13810 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13811 hardcode_shlibpath_var_F77=no
13812 export_dynamic_flag_spec_F77='${wl}-Bexport'
13813 runpath_var=LD_RUN_PATH
13814 hardcode_runpath_var=yes
13815 ;;
13816
13817 solaris*)
13818 no_undefined_flag_F77=' -z text'
13819 if test "$GCC" = yes; then
13820 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13821 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13822 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13823 else
13824 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13825 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13826 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13827 fi
13828 hardcode_libdir_flag_spec_F77='-R$libdir'
13829 hardcode_shlibpath_var_F77=no
13830 case $host_os in
13831 solaris2.[0-5] | solaris2.[0-5].*) ;;
13832 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13833 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13834 esac
13835 link_all_deplibs_F77=yes
13836 ;;
13837
13838 sunos4*)
13839 if test "x$host_vendor" = xsequent; then
13840 # Use $CC to link under sequent, because it throws in some extra .o
13841 # files that make .init and .fini sections work.
13842 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13843 else
13844 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13845 fi
13846 hardcode_libdir_flag_spec_F77='-L$libdir'
13847 hardcode_direct_F77=yes
13848 hardcode_minus_L_F77=yes
13849 hardcode_shlibpath_var_F77=no
13850 ;;
13851
13852 sysv4)
13853 case $host_vendor in
13854 sni)
13855 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13856 hardcode_direct_F77=yes # is this really true???
13857 ;;
13858 siemens)
13859 ## LD is ld it makes a PLAMLIB
13860 ## CC just makes a GrossModule.
13861 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13862 reload_cmds_F77='$CC -r -o $output$reload_objs'
13863 hardcode_direct_F77=no
13864 ;;
13865 motorola)
13866 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13867 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13868 ;;
13869 esac
13870 runpath_var='LD_RUN_PATH'
13871 hardcode_shlibpath_var_F77=no
13872 ;;
13873
13874 sysv4.3*)
13875 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13876 hardcode_shlibpath_var_F77=no
13877 export_dynamic_flag_spec_F77='-Bexport'
13878 ;;
13879
13880 sysv4*MP*)
13881 if test -d /usr/nec; then
13882 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13883 hardcode_shlibpath_var_F77=no
13884 runpath_var=LD_RUN_PATH
13885 hardcode_runpath_var=yes
13886 ld_shlibs_F77=yes
13887 fi
13888 ;;
13889
13890 sysv4.2uw2*)
13891 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13892 hardcode_direct_F77=yes
13893 hardcode_minus_L_F77=no
13894 hardcode_shlibpath_var_F77=no
13895 hardcode_runpath_var=yes
13896 runpath_var=LD_RUN_PATH
13897 ;;
13898
13899 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13900 no_undefined_flag_F77='${wl}-z ${wl}text'
13901 if test "$GCC" = yes; then
13902 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13903 else
13904 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13905 fi
13906 runpath_var='LD_RUN_PATH'
13907 hardcode_shlibpath_var_F77=no
13908 ;;
13909
13910 sysv5*)
13911 no_undefined_flag_F77=' -z text'
13912 # $CC -shared without GNU ld will not create a library from C++
13913 # object files and a static libstdc++, better avoid it by now
13914 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13915 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13916 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13917 hardcode_libdir_flag_spec_F77=
13918 hardcode_shlibpath_var_F77=no
13919 runpath_var='LD_RUN_PATH'
13920 ;;
13921
13922 uts4*)
13923 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13924 hardcode_libdir_flag_spec_F77='-L$libdir'
13925 hardcode_shlibpath_var_F77=no
13926 ;;
13927
13928 *)
13929 ld_shlibs_F77=no
13930 ;;
13931 esac
13932 fi
13933
13934echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13935echo "${ECHO_T}$ld_shlibs_F77" >&6
13936test "$ld_shlibs_F77" = no && can_build_shared=no
13937
13938variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13939if test "$GCC" = yes; then
13940 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13941fi
13942
13943#
13944# Do we need to explicitly link libc?
13945#
13946case "x$archive_cmds_need_lc_F77" in
13947x|xyes)
13948 # Assume -lc should be added
13949 archive_cmds_need_lc_F77=yes
13950
13951 if test "$enable_shared" = yes && test "$GCC" = yes; then
13952 case $archive_cmds_F77 in
13953 *'~'*)
13954 # FIXME: we may have to deal with multi-command sequences.
13955 ;;
13956 '$CC '*)
13957 # Test whether the compiler implicitly links with -lc since on some
13958 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13959 # to ld, don't add -lc before -lgcc.
13960 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13961echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13962 $rm conftest*
13963 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13964
13965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13966 (eval $ac_compile) 2>&5
13967 ac_status=$?
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); } 2>conftest.err; then
13970 soname=conftest
13971 lib=conftest
13972 libobjs=conftest.$ac_objext
13973 deplibs=
13974 wl=$lt_prog_compiler_wl_F77
13975 compiler_flags=-v
13976 linker_flags=-v
13977 verstring=
13978 output_objdir=.
13979 libname=conftest
13980 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13981 allow_undefined_flag_F77=
13982 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13983 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13984 ac_status=$?
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); }
13987 then
13988 archive_cmds_need_lc_F77=no
13989 else
13990 archive_cmds_need_lc_F77=yes
13991 fi
13992 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13993 else
13994 cat conftest.err 1>&5
13995 fi
13996 $rm conftest*
13997 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13998echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13999 ;;
14000 esac
14001 fi
14002 ;;
14003esac
14004
14005echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14006echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14007hardcode_action_F77=
14008if test -n "$hardcode_libdir_flag_spec_F77" || \
14009 test -n "$runpath_var F77" || \
14010 test "X$hardcode_automatic_F77"="Xyes" ; then
14011
14012 # We can hardcode non-existant directories.
14013 if test "$hardcode_direct_F77" != no &&
14014 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14015 # have to relink, otherwise we might link with an installed library
14016 # when we should be linking with a yet-to-be-installed one
14017 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14018 test "$hardcode_minus_L_F77" != no; then
14019 # Linking always hardcodes the temporary library directory.
14020 hardcode_action_F77=relink
14021 else
14022 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14023 hardcode_action_F77=immediate
14024 fi
14025else
14026 # We cannot hardcode anything, or else we can only hardcode existing
14027 # directories.
14028 hardcode_action_F77=unsupported
14029fi
14030echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14031echo "${ECHO_T}$hardcode_action_F77" >&6
14032
14033if test "$hardcode_action_F77" = relink; then
14034 # Fast installation is not supported
14035 enable_fast_install=no
14036elif test "$shlibpath_overrides_runpath" = yes ||
14037 test "$enable_shared" = no; then
14038 # Fast installation is not necessary
14039 enable_fast_install=needless
14040fi
14041
14042striplib=
14043old_striplib=
14044echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14045echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14046if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14047 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14048 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14049 echo "$as_me:$LINENO: result: yes" >&5
14050echo "${ECHO_T}yes" >&6
14051else
14052# FIXME - insert some real tests, host_os isn't really good enough
14053 case $host_os in
14054 darwin*)
14055 if test -n "$STRIP" ; then
14056 striplib="$STRIP -x"
14057 echo "$as_me:$LINENO: result: yes" >&5
14058echo "${ECHO_T}yes" >&6
14059 else
14060 echo "$as_me:$LINENO: result: no" >&5
14061echo "${ECHO_T}no" >&6
14062fi
14063 ;;
14064 *)
14065 echo "$as_me:$LINENO: result: no" >&5
14066echo "${ECHO_T}no" >&6
14067 ;;
14068 esac
14069fi
14070
14071echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14072echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14073library_names_spec=
14074libname_spec='lib$name'
14075soname_spec=
14076shrext=".so"
14077postinstall_cmds=
14078postuninstall_cmds=
14079finish_cmds=
14080finish_eval=
14081shlibpath_var=
14082shlibpath_overrides_runpath=unknown
14083version_type=none
14084dynamic_linker="$host_os ld.so"
14085sys_lib_dlsearch_path_spec="/lib /usr/lib"
14086if test "$GCC" = yes; then
14087 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14088 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14089 # if the path contains ";" then we assume it to be the separator
14090 # otherwise default to the standard path separator (i.e. ":") - it is
14091 # assumed that no part of a normal pathname contains ";" but that should
14092 # okay in the real world where ";" in dirpaths is itself problematic.
14093 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14094 else
14095 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14096 fi
14097else
14098 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14099fi
14100need_lib_prefix=unknown
14101hardcode_into_libs=no
14102
14103# when you set need_version to no, make sure it does not cause -set_version
14104# flags to be left without arguments
14105need_version=unknown
14106
14107case $host_os in
14108aix3*)
14109 version_type=linux
14110 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14111 shlibpath_var=LIBPATH
14112
14113 # AIX 3 has no versioning support, so we append a major version to the name.
14114 soname_spec='${libname}${release}${shared_ext}$major'
14115 ;;
14116
14117aix4* | aix5*)
14118 version_type=linux
14119 need_lib_prefix=no
14120 need_version=no
14121 hardcode_into_libs=yes
14122 if test "$host_cpu" = ia64; then
14123 # AIX 5 supports IA64
14124 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14125 shlibpath_var=LD_LIBRARY_PATH
14126 else
14127 # With GCC up to 2.95.x, collect2 would create an import file
14128 # for dependence libraries. The import file would start with
14129 # the line `#! .'. This would cause the generated library to
14130 # depend on `.', always an invalid library. This was fixed in
14131 # development snapshots of GCC prior to 3.0.
14132 case $host_os in
14133 aix4 | aix4.[01] | aix4.[01].*)
14134 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14135 echo ' yes '
14136 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14137 :
14138 else
14139 can_build_shared=no
14140 fi
14141 ;;
14142 esac
14143 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14144 # soname into executable. Probably we can add versioning support to
14145 # collect2, so additional links can be useful in future.
14146 if test "$aix_use_runtimelinking" = yes; then
14147 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14148 # instead of lib<name>.a to let people know that these are not
14149 # typical AIX shared libraries.
14150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14151 else
14152 # We preserve .a as extension for shared libraries through AIX4.2
14153 # and later when we are not doing run time linking.
14154 library_names_spec='${libname}${release}.a $libname.a'
14155 soname_spec='${libname}${release}${shared_ext}$major'
14156 fi
14157 shlibpath_var=LIBPATH
14158 fi
14159 ;;
14160
14161amigaos*)
14162 library_names_spec='$libname.ixlibrary $libname.a'
14163 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14164 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'
14165 ;;
14166
14167beos*)
14168 library_names_spec='${libname}${shared_ext}'
14169 dynamic_linker="$host_os ld.so"
14170 shlibpath_var=LIBRARY_PATH
14171 ;;
14172
14173bsdi4*)
14174 version_type=linux
14175 need_version=no
14176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14177 soname_spec='${libname}${release}${shared_ext}$major'
14178 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14179 shlibpath_var=LD_LIBRARY_PATH
14180 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14181 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14182 # the default ld.so.conf also contains /usr/contrib/lib and
14183 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14184 # libtool to hard-code these into programs
14185 ;;
14186
14187cygwin* | mingw* | pw32*)
14188 version_type=windows
14189 shrext=".dll"
14190 need_version=no
14191 need_lib_prefix=no
14192
14193 case $GCC,$host_os in
14194 yes,cygwin* | yes,mingw* | yes,pw32*)
14195 library_names_spec='$libname.dll.a'
14196 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14197 postinstall_cmds='base_file=`basename \${file}`~
14198 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14199 dldir=$destdir/`dirname \$dlpath`~
14200 test -d \$dldir || mkdir -p \$dldir~
14201 $install_prog $dir/$dlname \$dldir/$dlname'
14202 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14203 dlpath=$dir/\$dldll~
14204 $rm \$dlpath'
14205 shlibpath_overrides_runpath=yes
14206
14207 case $host_os in
14208 cygwin*)
14209 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14210 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14211 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14212 ;;
14213 mingw*)
14214 # MinGW DLLs use traditional 'lib' prefix
14215 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14216 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14217 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14218 # It is most probably a Windows format PATH printed by
14219 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14220 # path with ; separators, and with drive letters. We can handle the
14221 # drive letters (cygwin fileutils understands them), so leave them,
14222 # especially as we might pass files found there to a mingw objdump,
14223 # which wouldn't understand a cygwinified path. Ahh.
14224 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14225 else
14226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14227 fi
14228 ;;
14229 pw32*)
14230 # pw32 DLLs use 'pw' prefix rather than 'lib'
14231 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14232 ;;
14233 esac
14234 ;;
14235
14236 *)
14237 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14238 ;;
14239 esac
14240 dynamic_linker='Win32 ld.exe'
14241 # FIXME: first we should search . and the directory the executable is in
14242 shlibpath_var=PATH
14243 ;;
14244
14245darwin* | rhapsody*)
14246 dynamic_linker="$host_os dyld"
14247 version_type=darwin
14248 need_lib_prefix=no
14249 need_version=no
14250 # FIXME: Relying on posixy $() will cause problems for
14251 # cross-compilation, but unfortunately the echo tests do not
14252 # yet detect zsh echo's removal of \ escapes.
14253 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14254 soname_spec='${libname}${release}${major}$shared_ext'
14255 shlibpath_overrides_runpath=yes
14256 shlibpath_var=DYLD_LIBRARY_PATH
14257 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14258 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14259 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14260 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"`
14261 fi
14262 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14263 ;;
14264
14265dgux*)
14266 version_type=linux
14267 need_lib_prefix=no
14268 need_version=no
14269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14270 soname_spec='${libname}${release}${shared_ext}$major'
14271 shlibpath_var=LD_LIBRARY_PATH
14272 ;;
14273
14274freebsd1*)
14275 dynamic_linker=no
14276 ;;
14277
14278freebsd*)
14279 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14280 version_type=freebsd-$objformat
14281 case $version_type in
14282 freebsd-elf*)
14283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14284 need_version=no
14285 need_lib_prefix=no
14286 ;;
14287 freebsd-*)
14288 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14289 need_version=yes
14290 ;;
14291 esac
14292 shlibpath_var=LD_LIBRARY_PATH
14293 case $host_os in
14294 freebsd2*)
14295 shlibpath_overrides_runpath=yes
14296 ;;
14297 freebsd3.01* | freebsdelf3.01*)
14298 shlibpath_overrides_runpath=yes
14299 hardcode_into_libs=yes
14300 ;;
14301 *) # from 3.2 on
14302 shlibpath_overrides_runpath=no
14303 hardcode_into_libs=yes
14304 ;;
14305 esac
14306 ;;
14307
14308gnu*)
14309 version_type=linux
14310 need_lib_prefix=no
14311 need_version=no
14312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14313 soname_spec='${libname}${release}${shared_ext}$major'
14314 shlibpath_var=LD_LIBRARY_PATH
14315 hardcode_into_libs=yes
14316 ;;
14317
14318hpux9* | hpux10* | hpux11*)
14319 # Give a soname corresponding to the major version so that dld.sl refuses to
14320 # link against other versions.
14321 version_type=sunos
14322 need_lib_prefix=no
14323 need_version=no
14324 case "$host_cpu" in
14325 ia64*)
14326 shrext='.so'
14327 hardcode_into_libs=yes
14328 dynamic_linker="$host_os dld.so"
14329 shlibpath_var=LD_LIBRARY_PATH
14330 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14332 soname_spec='${libname}${release}${shared_ext}$major'
14333 if test "X$HPUX_IA64_MODE" = X32; then
14334 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14335 else
14336 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14337 fi
14338 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14339 ;;
14340 hppa*64*)
14341 shrext='.sl'
14342 hardcode_into_libs=yes
14343 dynamic_linker="$host_os dld.sl"
14344 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14345 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14347 soname_spec='${libname}${release}${shared_ext}$major'
14348 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14349 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14350 ;;
14351 *)
14352 shrext='.sl'
14353 dynamic_linker="$host_os dld.sl"
14354 shlibpath_var=SHLIB_PATH
14355 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14357 soname_spec='${libname}${release}${shared_ext}$major'
14358 ;;
14359 esac
14360 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14361 postinstall_cmds='chmod 555 $lib'
14362 ;;
14363
14364irix5* | irix6* | nonstopux*)
14365 case $host_os in
14366 nonstopux*) version_type=nonstopux ;;
14367 *)
14368 if test "$lt_cv_prog_gnu_ld" = yes; then
14369 version_type=linux
14370 else
14371 version_type=irix
14372 fi ;;
14373 esac
14374 need_lib_prefix=no
14375 need_version=no
14376 soname_spec='${libname}${release}${shared_ext}$major'
14377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14378 case $host_os in
14379 irix5* | nonstopux*)
14380 libsuff= shlibsuff=
14381 ;;
14382 *)
14383 case $LD in # libtool.m4 will add one of these switches to LD
14384 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14385 libsuff= shlibsuff= libmagic=32-bit;;
14386 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14387 libsuff=32 shlibsuff=N32 libmagic=N32;;
14388 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14389 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14390 *) libsuff= shlibsuff= libmagic=never-match;;
14391 esac
14392 ;;
14393 esac
14394 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14395 shlibpath_overrides_runpath=no
14396 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14397 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14398 hardcode_into_libs=yes
14399 ;;
14400
14401# No shared lib support for Linux oldld, aout, or coff.
14402linux*oldld* | linux*aout* | linux*coff*)
14403 dynamic_linker=no
14404 ;;
14405
14406# This must be Linux ELF.
14407linux*)
14408 version_type=linux
14409 need_lib_prefix=no
14410 need_version=no
14411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14412 soname_spec='${libname}${release}${shared_ext}$major'
14413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14414 shlibpath_var=LD_LIBRARY_PATH
14415 shlibpath_overrides_runpath=no
14416 # This implies no fast_install, which is unacceptable.
14417 # Some rework will be needed to allow for fast_install
14418 # before this can be enabled.
14419 hardcode_into_libs=yes
14420
14421 # We used to test for /lib/ld.so.1 and disable shared libraries on
14422 # powerpc, because MkLinux only supported shared libraries with the
14423 # GNU dynamic linker. Since this was broken with cross compilers,
14424 # most powerpc-linux boxes support dynamic linking these days and
14425 # people can always --disable-shared, the test was removed, and we
14426 # assume the GNU/Linux dynamic linker is in use.
14427 dynamic_linker='GNU/Linux ld.so'
14428 ;;
14429
14430netbsd*)
14431 version_type=sunos
14432 need_lib_prefix=no
14433 need_version=no
14434 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14437 dynamic_linker='NetBSD (a.out) ld.so'
14438 else
14439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14440 soname_spec='${libname}${release}${shared_ext}$major'
14441 dynamic_linker='NetBSD ld.elf_so'
14442 fi
14443 shlibpath_var=LD_LIBRARY_PATH
14444 shlibpath_overrides_runpath=yes
14445 hardcode_into_libs=yes
14446 ;;
14447
14448newsos6)
14449 version_type=linux
14450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14451 shlibpath_var=LD_LIBRARY_PATH
14452 shlibpath_overrides_runpath=yes
14453 ;;
14454
14455nto-qnx)
14456 version_type=linux
14457 need_lib_prefix=no
14458 need_version=no
14459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14460 soname_spec='${libname}${release}${shared_ext}$major'
14461 shlibpath_var=LD_LIBRARY_PATH
14462 shlibpath_overrides_runpath=yes
14463 ;;
14464
14465openbsd*)
14466 version_type=sunos
14467 need_lib_prefix=no
14468 need_version=no
14469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14470 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14471 shlibpath_var=LD_LIBRARY_PATH
14472 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14473 case $host_os in
14474 openbsd2.[89] | openbsd2.[89].*)
14475 shlibpath_overrides_runpath=no
14476 ;;
14477 *)
14478 shlibpath_overrides_runpath=yes
14479 ;;
14480 esac
14481 else
14482 shlibpath_overrides_runpath=yes
14483 fi
14484 ;;
14485
14486os2*)
14487 libname_spec='$name'
14488 shrext=".dll"
14489 need_lib_prefix=no
14490 library_names_spec='$libname${shared_ext} $libname.a'
14491 dynamic_linker='OS/2 ld.exe'
14492 shlibpath_var=LIBPATH
14493 ;;
14494
14495osf3* | osf4* | osf5*)
14496 version_type=osf
14497 need_lib_prefix=no
14498 need_version=no
14499 soname_spec='${libname}${release}${shared_ext}$major'
14500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14501 shlibpath_var=LD_LIBRARY_PATH
14502 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14503 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14504 ;;
14505
14506sco3.2v5*)
14507 version_type=osf
14508 soname_spec='${libname}${release}${shared_ext}$major'
14509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14510 shlibpath_var=LD_LIBRARY_PATH
14511 ;;
14512
14513solaris*)
14514 version_type=linux
14515 need_lib_prefix=no
14516 need_version=no
14517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14518 soname_spec='${libname}${release}${shared_ext}$major'
14519 shlibpath_var=LD_LIBRARY_PATH
14520 shlibpath_overrides_runpath=yes
14521 hardcode_into_libs=yes
14522 # ldd complains unless libraries are executable
14523 postinstall_cmds='chmod +x $lib'
14524 ;;
14525
14526sunos4*)
14527 version_type=sunos
14528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14529 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14530 shlibpath_var=LD_LIBRARY_PATH
14531 shlibpath_overrides_runpath=yes
14532 if test "$with_gnu_ld" = yes; then
14533 need_lib_prefix=no
14534 fi
14535 need_version=yes
14536 ;;
14537
14538sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14539 version_type=linux
14540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14541 soname_spec='${libname}${release}${shared_ext}$major'
14542 shlibpath_var=LD_LIBRARY_PATH
14543 case $host_vendor in
14544 sni)
14545 shlibpath_overrides_runpath=no
14546 need_lib_prefix=no
14547 export_dynamic_flag_spec='${wl}-Blargedynsym'
14548 runpath_var=LD_RUN_PATH
14549 ;;
14550 siemens)
14551 need_lib_prefix=no
14552 ;;
14553 motorola)
14554 need_lib_prefix=no
14555 need_version=no
14556 shlibpath_overrides_runpath=no
14557 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14558 ;;
14559 esac
14560 ;;
14561
14562sysv4*MP*)
14563 if test -d /usr/nec ;then
14564 version_type=linux
14565 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14566 soname_spec='$libname${shared_ext}.$major'
14567 shlibpath_var=LD_LIBRARY_PATH
14568 fi
14569 ;;
14570
14571uts4*)
14572 version_type=linux
14573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14574 soname_spec='${libname}${release}${shared_ext}$major'
14575 shlibpath_var=LD_LIBRARY_PATH
14576 ;;
14577
14578*)
14579 dynamic_linker=no
14580 ;;
14581esac
14582echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14583echo "${ECHO_T}$dynamic_linker" >&6
14584test "$dynamic_linker" = no && can_build_shared=no
14585
14586
14587# The else clause should only fire when bootstrapping the
14588# libtool distribution, otherwise you forgot to ship ltmain.sh
14589# with your package, and you will get complaints that there are
14590# no rules to generate ltmain.sh.
14591if test -f "$ltmain"; then
14592 # See if we are running on zsh, and set the options which allow our commands through
14593 # without removal of \ escapes.
14594 if test -n "${ZSH_VERSION+set}" ; then
14595 setopt NO_GLOB_SUBST
14596 fi
14597 # Now quote all the things that may contain metacharacters while being
14598 # careful not to overquote the AC_SUBSTed values. We take copies of the
14599 # variables and quote the copies for generation of the libtool script.
14600 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14601 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14602 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14603 deplibs_check_method reload_flag reload_cmds need_locks \
14604 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14605 lt_cv_sys_global_symbol_to_c_name_address \
14606 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14607 old_postinstall_cmds old_postuninstall_cmds \
14608 compiler_F77 \
14609 CC_F77 \
14610 LD_F77 \
14611 lt_prog_compiler_wl_F77 \
14612 lt_prog_compiler_pic_F77 \
14613 lt_prog_compiler_static_F77 \
14614 lt_prog_compiler_no_builtin_flag_F77 \
14615 export_dynamic_flag_spec_F77 \
14616 thread_safe_flag_spec_F77 \
14617 whole_archive_flag_spec_F77 \
14618 enable_shared_with_static_runtimes_F77 \
14619 old_archive_cmds_F77 \
14620 old_archive_from_new_cmds_F77 \
14621 predep_objects_F77 \
14622 postdep_objects_F77 \
14623 predeps_F77 \
14624 postdeps_F77 \
14625 compiler_lib_search_path_F77 \
14626 archive_cmds_F77 \
14627 archive_expsym_cmds_F77 \
14628 postinstall_cmds_F77 \
14629 postuninstall_cmds_F77 \
14630 old_archive_from_expsyms_cmds_F77 \
14631 allow_undefined_flag_F77 \
14632 no_undefined_flag_F77 \
14633 export_symbols_cmds_F77 \
14634 hardcode_libdir_flag_spec_F77 \
14635 hardcode_libdir_flag_spec_ld_F77 \
14636 hardcode_libdir_separator_F77 \
14637 hardcode_automatic_F77 \
14638 module_cmds_F77 \
14639 module_expsym_cmds_F77 \
14640 lt_cv_prog_compiler_c_o_F77 \
14641 exclude_expsyms_F77 \
14642 include_expsyms_F77; do
14643
14644 case $var in
14645 old_archive_cmds_F77 | \
14646 old_archive_from_new_cmds_F77 | \
14647 archive_cmds_F77 | \
14648 archive_expsym_cmds_F77 | \
14649 module_cmds_F77 | \
14650 module_expsym_cmds_F77 | \
14651 old_archive_from_expsyms_cmds_F77 | \
14652 export_symbols_cmds_F77 | \
14653 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14654 postinstall_cmds | postuninstall_cmds | \
14655 old_postinstall_cmds | old_postuninstall_cmds | \
14656 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14657 # Double-quote double-evaled strings.
14658 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14659 ;;
14660 *)
14661 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14662 ;;
14663 esac
14664 done
14665
14666 case $lt_echo in
14667 *'\$0 --fallback-echo"')
14668 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14669 ;;
14670 esac
14671
14672cfgfile="$ofile"
14673
14674 cat <<__EOF__ >> "$cfgfile"
14675# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14676
14677# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14678
14679# Shell to use when invoking shell scripts.
14680SHELL=$lt_SHELL
14681
14682# Whether or not to build shared libraries.
14683build_libtool_libs=$enable_shared
14684
14685# Whether or not to build static libraries.
14686build_old_libs=$enable_static
14687
14688# Whether or not to add -lc for building shared libraries.
14689build_libtool_need_lc=$archive_cmds_need_lc_F77
14690
14691# Whether or not to disallow shared libs when runtime libs are static
14692allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14693
14694# Whether or not to optimize for fast installation.
14695fast_install=$enable_fast_install
14696
14697# The host system.
14698host_alias=$host_alias
14699host=$host
14700
14701# An echo program that does not interpret backslashes.
14702echo=$lt_echo
14703
14704# The archiver.
14705AR=$lt_AR
14706AR_FLAGS=$lt_AR_FLAGS
14707
14708# A C compiler.
14709LTCC=$lt_LTCC
14710
14711# A language-specific compiler.
14712CC=$lt_compiler_F77
14713
14714# Is the compiler the GNU C compiler?
14715with_gcc=$GCC_F77
14716
14717# An ERE matcher.
14718EGREP=$lt_EGREP
14719
14720# The linker used to build libraries.
14721LD=$lt_LD_F77
14722
14723# Whether we need hard or soft links.
14724LN_S=$lt_LN_S
14725
14726# A BSD-compatible nm program.
14727NM=$lt_NM
14728
14729# A symbol stripping program
14730STRIP=$STRIP
14731
14732# Used to examine libraries when file_magic_cmd begins "file"
14733MAGIC_CMD=$MAGIC_CMD
14734
14735# Used on cygwin: DLL creation program.
14736DLLTOOL="$DLLTOOL"
14737
14738# Used on cygwin: object dumper.
14739OBJDUMP="$OBJDUMP"
14740
14741# Used on cygwin: assembler.
14742AS="$AS"
14743
14744# The name of the directory that contains temporary libtool files.
14745objdir=$objdir
14746
14747# How to create reloadable object files.
14748reload_flag=$lt_reload_flag
14749reload_cmds=$lt_reload_cmds
14750
14751# How to pass a linker flag through the compiler.
14752wl=$lt_lt_prog_compiler_wl_F77
14753
14754# Object file suffix (normally "o").
14755objext="$ac_objext"
14756
14757# Old archive suffix (normally "a").
14758libext="$libext"
14759
14760# Shared library suffix (normally ".so").
14761shrext='$shrext'
14762
14763# Executable file suffix (normally "").
14764exeext="$exeext"
14765
14766# Additional compiler flags for building library objects.
14767pic_flag=$lt_lt_prog_compiler_pic_F77
14768pic_mode=$pic_mode
14769
14770# What is the maximum length of a command?
14771max_cmd_len=$lt_cv_sys_max_cmd_len
14772
14773# Does compiler simultaneously support -c and -o options?
14774compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14775
14776# Must we lock files when doing compilation ?
14777need_locks=$lt_need_locks
14778
14779# Do we need the lib prefix for modules?
14780need_lib_prefix=$need_lib_prefix
14781
14782# Do we need a version for libraries?
14783need_version=$need_version
14784
14785# Whether dlopen is supported.
14786dlopen_support=$enable_dlopen
14787
14788# Whether dlopen of programs is supported.
14789dlopen_self=$enable_dlopen_self
14790
14791# Whether dlopen of statically linked programs is supported.
14792dlopen_self_static=$enable_dlopen_self_static
14793
14794# Compiler flag to prevent dynamic linking.
14795link_static_flag=$lt_lt_prog_compiler_static_F77
14796
14797# Compiler flag to turn off builtin functions.
14798no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14799
14800# Compiler flag to allow reflexive dlopens.
14801export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14802
14803# Compiler flag to generate shared objects directly from archives.
14804whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14805
14806# Compiler flag to generate thread-safe objects.
14807thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14808
14809# Library versioning type.
14810version_type=$version_type
14811
14812# Format of library name prefix.
14813libname_spec=$lt_libname_spec
14814
14815# List of archive names. First name is the real one, the rest are links.
14816# The last name is the one that the linker finds with -lNAME.
14817library_names_spec=$lt_library_names_spec
14818
14819# The coded name of the library, if different from the real name.
14820soname_spec=$lt_soname_spec
14821
14822# Commands used to build and install an old-style archive.
14823RANLIB=$lt_RANLIB
14824old_archive_cmds=$lt_old_archive_cmds_F77
14825old_postinstall_cmds=$lt_old_postinstall_cmds
14826old_postuninstall_cmds=$lt_old_postuninstall_cmds
14827
14828# Create an old-style archive from a shared archive.
14829old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14830
14831# Create a temporary old-style archive to link instead of a shared archive.
14832old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14833
14834# Commands used to build and install a shared archive.
14835archive_cmds=$lt_archive_cmds_F77
14836archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14837postinstall_cmds=$lt_postinstall_cmds
14838postuninstall_cmds=$lt_postuninstall_cmds
14839
14840# Commands used to build a loadable module (assumed same as above if empty)
14841module_cmds=$lt_module_cmds_F77
14842module_expsym_cmds=$lt_module_expsym_cmds_F77
14843
14844# Commands to strip libraries.
14845old_striplib=$lt_old_striplib
14846striplib=$lt_striplib
14847
14848# Dependencies to place before the objects being linked to create a
14849# shared library.
14850predep_objects=$lt_predep_objects_F77
14851
14852# Dependencies to place after the objects being linked to create a
14853# shared library.
14854postdep_objects=$lt_postdep_objects_F77
14855
14856# Dependencies to place before the objects being linked to create a
14857# shared library.
14858predeps=$lt_predeps_F77
14859
14860# Dependencies to place after the objects being linked to create a
14861# shared library.
14862postdeps=$lt_postdeps_F77
14863
14864# The library search path used internally by the compiler when linking
14865# a shared library.
14866compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14867
14868# Method to check whether dependent libraries are shared objects.
14869deplibs_check_method=$lt_deplibs_check_method
14870
14871# Command to use when deplibs_check_method == file_magic.
14872file_magic_cmd=$lt_file_magic_cmd
14873
14874# Flag that allows shared libraries with undefined symbols to be built.
14875allow_undefined_flag=$lt_allow_undefined_flag_F77
14876
14877# Flag that forces no undefined symbols.
14878no_undefined_flag=$lt_no_undefined_flag_F77
14879
14880# Commands used to finish a libtool library installation in a directory.
14881finish_cmds=$lt_finish_cmds
14882
14883# Same as above, but a single script fragment to be evaled but not shown.
14884finish_eval=$lt_finish_eval
14885
14886# Take the output of nm and produce a listing of raw symbols and C names.
14887global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14888
14889# Transform the output of nm in a proper C declaration
14890global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14891
14892# Transform the output of nm in a C name address pair
14893global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14894
14895# This is the shared library runtime path variable.
14896runpath_var=$runpath_var
14897
14898# This is the shared library path variable.
14899shlibpath_var=$shlibpath_var
14900
14901# Is shlibpath searched before the hard-coded library search path?
14902shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14903
14904# How to hardcode a shared library path into an executable.
14905hardcode_action=$hardcode_action_F77
14906
14907# Whether we should hardcode library paths into libraries.
14908hardcode_into_libs=$hardcode_into_libs
14909
14910# Flag to hardcode \$libdir into a binary during linking.
14911# This must work even if \$libdir does not exist.
14912hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14913
14914# If ld is used when linking, flag to hardcode \$libdir into
14915# a binary during linking. This must work even if \$libdir does
14916# not exist.
14917hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14918
14919# Whether we need a single -rpath flag with a separated argument.
14920hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14921
14922# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14923# resulting binary.
14924hardcode_direct=$hardcode_direct_F77
14925
14926# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14927# resulting binary.
14928hardcode_minus_L=$hardcode_minus_L_F77
14929
14930# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14931# the resulting binary.
14932hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14933
14934# Set to yes if building a shared library automatically hardcodes DIR into the library
14935# and all subsequent libraries and executables linked against it.
14936hardcode_automatic=$hardcode_automatic_F77
14937
14938# Variables whose values should be saved in libtool wrapper scripts and
14939# restored at relink time.
14940variables_saved_for_relink="$variables_saved_for_relink"
14941
14942# Whether libtool must link a program against all its dependency libraries.
14943link_all_deplibs=$link_all_deplibs_F77
14944
14945# Compile-time system search path for libraries
14946sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14947
14948# Run-time system search path for libraries
14949sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14950
14951# Fix the shell variable \$srcfile for the compiler.
14952fix_srcfile_path="$fix_srcfile_path_F77"
14953
14954# Set to yes if exported symbols are required.
14955always_export_symbols=$always_export_symbols_F77
14956
14957# The commands to list exported symbols.
14958export_symbols_cmds=$lt_export_symbols_cmds_F77
14959
14960# The commands to extract the exported symbol list from a shared archive.
14961extract_expsyms_cmds=$lt_extract_expsyms_cmds
14962
14963# Symbols that should not be listed in the preloaded symbols.
14964exclude_expsyms=$lt_exclude_expsyms_F77
14965
14966# Symbols that must always be exported.
14967include_expsyms=$lt_include_expsyms_F77
14968
14969# ### END LIBTOOL TAG CONFIG: $tagname
14970
14971__EOF__
14972
14973
14974else
14975 # If there is no Makefile yet, we rely on a make rule to execute
14976 # `config.status --recheck' to rerun these tests and create the
14977 # libtool script then.
14978 test -f Makefile && make "$ltmain"
14979fi
14980
14981
14982ac_ext=c
14983ac_cpp='$CPP $CPPFLAGS'
14984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14986ac_compiler_gnu=$ac_cv_c_compiler_gnu
14987
14988CC="$lt_save_CC"
14989
14990 else
14991 tagname=""
14992 fi
14993 ;;
14994
14995 GCJ)
14996 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14997
14998
14999
15000# Source file extension for Java test sources.
15001ac_ext=java
15002
15003# Object file extension for compiled Java test sources.
15004objext=o
15005objext_GCJ=$objext
15006
15007# Code to be used in simple compile tests
15008lt_simple_compile_test_code="class foo {}\n"
15009
15010# Code to be used in simple link tests
15011lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15012
15013# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15014
15015# If no C compiler was specified, use CC.
15016LTCC=${LTCC-"$CC"}
15017
15018# Allow CC to be a program name with arguments.
15019compiler=$CC
15020
15021
15022# Allow CC to be a program name with arguments.
15023lt_save_CC="$CC"
15024CC=${GCJ-"gcj"}
15025compiler=$CC
15026compiler_GCJ=$CC
15027
15028# GCJ did not exist at the time GCC didn't implicitly link libc in.
15029archive_cmds_need_lc_GCJ=no
15030
15031## CAVEAT EMPTOR:
15032## There is no encapsulation within the following macros, do not change
15033## the running order or otherwise move them around unless you know exactly
15034## what you are doing...
15035
15036lt_prog_compiler_no_builtin_flag_GCJ=
15037
15038if test "$GCC" = yes; then
15039 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15040
15041 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15042echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15043if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15044 echo $ECHO_N "(cached) $ECHO_C" >&6
15045else
15046 lt_cv_prog_compiler_rtti_exceptions=no
15047 ac_outfile=conftest.$ac_objext
15048 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15049 lt_compiler_flag="-fno-rtti -fno-exceptions"
15050 # Insert the option either (1) after the last *FLAGS variable, or
15051 # (2) before a word containing "conftest.", or (3) at the end.
15052 # Note that $ac_compile itself does not contain backslashes and begins
15053 # with a dollar sign (not a hyphen), so the echo should work correctly.
15054 # The option is referenced via a variable to avoid confusing sed.
15055 lt_compile=`echo "$ac_compile" | $SED \
15056 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15058 -e 's:$: $lt_compiler_flag:'`
John Criswell78227592003-09-30 19:41:15 +000015059 (eval echo "\"\$as_me:15065: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015060 (eval "$lt_compile" 2>conftest.err)
15061 ac_status=$?
15062 cat conftest.err >&5
John Criswell78227592003-09-30 19:41:15 +000015063 echo "$as_me:15069: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015064 if (exit $ac_status) && test -s "$ac_outfile"; then
15065 # The compiler can only warn and ignore the option if not recognized
15066 # So say no if there are warnings
15067 if test ! -s conftest.err; then
15068 lt_cv_prog_compiler_rtti_exceptions=yes
15069 fi
15070 fi
15071 $rm conftest*
15072
15073fi
15074echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15075echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15076
15077if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15078 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15079else
15080 :
15081fi
15082
15083fi
15084
15085lt_prog_compiler_wl_GCJ=
15086lt_prog_compiler_pic_GCJ=
15087lt_prog_compiler_static_GCJ=
15088
15089echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15090echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15091
15092 if test "$GCC" = yes; then
15093 lt_prog_compiler_wl_GCJ='-Wl,'
15094 lt_prog_compiler_static_GCJ='-static'
15095
15096 case $host_os in
15097 aix*)
15098 # All AIX code is PIC.
15099 if test "$host_cpu" = ia64; then
15100 # AIX 5 now supports IA64 processor
15101 lt_prog_compiler_static_GCJ='-Bstatic'
15102 fi
15103 ;;
15104
15105 amigaos*)
15106 # FIXME: we need at least 68020 code to build shared libraries, but
15107 # adding the `-m68020' flag to GCC prevents building anything better,
15108 # like `-m68040'.
15109 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15110 ;;
15111
15112 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15113 # PIC is the default for these OSes.
15114 ;;
15115
15116 mingw* | pw32* | os2*)
15117 # This hack is so that the source file can tell whether it is being
15118 # built for inclusion in a dll (and should export symbols for example).
15119 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15120 ;;
15121
15122 darwin* | rhapsody*)
15123 # PIC is the default on this platform
15124 # Common symbols not allowed in MH_DYLIB files
15125 lt_prog_compiler_pic_GCJ='-fno-common'
15126 ;;
15127
15128 msdosdjgpp*)
15129 # Just because we use GCC doesn't mean we suddenly get shared libraries
15130 # on systems that don't support them.
15131 lt_prog_compiler_can_build_shared_GCJ=no
15132 enable_shared=no
15133 ;;
15134
15135 sysv4*MP*)
15136 if test -d /usr/nec; then
15137 lt_prog_compiler_pic_GCJ=-Kconform_pic
15138 fi
15139 ;;
15140
15141 hpux*)
15142 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15143 # not for PA HP-UX.
15144 case "$host_cpu" in
15145 hppa*64*|ia64*)
15146 # +Z the default
15147 ;;
15148 *)
15149 lt_prog_compiler_pic_GCJ='-fPIC'
15150 ;;
15151 esac
15152 ;;
15153
15154 *)
15155 lt_prog_compiler_pic_GCJ='-fPIC'
15156 ;;
15157 esac
15158 else
15159 # PORTME Check for flag to pass linker flags through the system compiler.
15160 case $host_os in
15161 aix*)
15162 lt_prog_compiler_wl_GCJ='-Wl,'
15163 if test "$host_cpu" = ia64; then
15164 # AIX 5 now supports IA64 processor
15165 lt_prog_compiler_static_GCJ='-Bstatic'
15166 else
15167 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15168 fi
15169 ;;
15170
15171 mingw* | pw32* | os2*)
15172 # This hack is so that the source file can tell whether it is being
15173 # built for inclusion in a dll (and should export symbols for example).
15174 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15175 ;;
15176
15177 hpux9* | hpux10* | hpux11*)
15178 lt_prog_compiler_wl_GCJ='-Wl,'
15179 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15180 # not for PA HP-UX.
15181 case "$host_cpu" in
15182 hppa*64*|ia64*)
15183 # +Z the default
15184 ;;
15185 *)
15186 lt_prog_compiler_pic_GCJ='+Z'
15187 ;;
15188 esac
15189 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15190 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15191 ;;
15192
15193 irix5* | irix6* | nonstopux*)
15194 lt_prog_compiler_wl_GCJ='-Wl,'
15195 # PIC (with -KPIC) is the default.
15196 lt_prog_compiler_static_GCJ='-non_shared'
15197 ;;
15198
15199 newsos6)
15200 lt_prog_compiler_pic_GCJ='-KPIC'
15201 lt_prog_compiler_static_GCJ='-Bstatic'
15202 ;;
15203
15204 linux*)
15205 case $CC in
15206 icc|ecc)
15207 lt_prog_compiler_wl_GCJ='-Wl,'
15208 lt_prog_compiler_pic_GCJ='-KPIC'
15209 lt_prog_compiler_static_GCJ='-static'
15210 ;;
15211 ccc)
15212 lt_prog_compiler_wl_GCJ='-Wl,'
15213 # All Alpha code is PIC.
15214 lt_prog_compiler_static_GCJ='-non_shared'
15215 ;;
15216 esac
15217 ;;
15218
15219 osf3* | osf4* | osf5*)
15220 lt_prog_compiler_wl_GCJ='-Wl,'
15221 # All OSF/1 code is PIC.
15222 lt_prog_compiler_static_GCJ='-non_shared'
15223 ;;
15224
15225 sco3.2v5*)
15226 lt_prog_compiler_pic_GCJ='-Kpic'
15227 lt_prog_compiler_static_GCJ='-dn'
15228 ;;
15229
15230 solaris*)
15231 lt_prog_compiler_wl_GCJ='-Wl,'
15232 lt_prog_compiler_pic_GCJ='-KPIC'
15233 lt_prog_compiler_static_GCJ='-Bstatic'
15234 ;;
15235
15236 sunos4*)
15237 lt_prog_compiler_wl_GCJ='-Qoption ld '
15238 lt_prog_compiler_pic_GCJ='-PIC'
15239 lt_prog_compiler_static_GCJ='-Bstatic'
15240 ;;
15241
15242 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15243 lt_prog_compiler_wl_GCJ='-Wl,'
15244 lt_prog_compiler_pic_GCJ='-KPIC'
15245 lt_prog_compiler_static_GCJ='-Bstatic'
15246 ;;
15247
15248 sysv4*MP*)
15249 if test -d /usr/nec ;then
15250 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15251 lt_prog_compiler_static_GCJ='-Bstatic'
15252 fi
15253 ;;
15254
15255 uts4*)
15256 lt_prog_compiler_pic_GCJ='-pic'
15257 lt_prog_compiler_static_GCJ='-Bstatic'
15258 ;;
15259
15260 *)
15261 lt_prog_compiler_can_build_shared_GCJ=no
15262 ;;
15263 esac
15264 fi
15265
15266echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15267echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15268
15269#
15270# Check to make sure the PIC flag actually works.
15271#
15272if test -n "$lt_prog_compiler_pic_GCJ"; then
15273 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15274echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15275if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15276 echo $ECHO_N "(cached) $ECHO_C" >&6
15277else
15278 lt_prog_compiler_pic_works_GCJ=no
15279 ac_outfile=conftest.$ac_objext
15280 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15281 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15282 # Insert the option either (1) after the last *FLAGS variable, or
15283 # (2) before a word containing "conftest.", or (3) at the end.
15284 # Note that $ac_compile itself does not contain backslashes and begins
15285 # with a dollar sign (not a hyphen), so the echo should work correctly.
15286 # The option is referenced via a variable to avoid confusing sed.
15287 lt_compile=`echo "$ac_compile" | $SED \
15288 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15289 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15290 -e 's:$: $lt_compiler_flag:'`
John Criswell78227592003-09-30 19:41:15 +000015291 (eval echo "\"\$as_me:15297: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015292 (eval "$lt_compile" 2>conftest.err)
15293 ac_status=$?
15294 cat conftest.err >&5
John Criswell78227592003-09-30 19:41:15 +000015295 echo "$as_me:15301: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015296 if (exit $ac_status) && test -s "$ac_outfile"; then
15297 # The compiler can only warn and ignore the option if not recognized
15298 # So say no if there are warnings
15299 if test ! -s conftest.err; then
15300 lt_prog_compiler_pic_works_GCJ=yes
15301 fi
15302 fi
15303 $rm conftest*
15304
15305fi
15306echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15307echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15308
15309if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15310 case $lt_prog_compiler_pic_GCJ in
15311 "" | " "*) ;;
15312 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15313 esac
15314else
15315 lt_prog_compiler_pic_GCJ=
15316 lt_prog_compiler_can_build_shared_GCJ=no
15317fi
15318
15319fi
15320case "$host_os" in
15321 # For platforms which do not support PIC, -DPIC is meaningless:
15322 *djgpp*)
15323 lt_prog_compiler_pic_GCJ=
15324 ;;
15325 *)
15326 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15327 ;;
15328esac
15329
15330echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15331echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15332if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15333 echo $ECHO_N "(cached) $ECHO_C" >&6
15334else
15335 lt_cv_prog_compiler_c_o_GCJ=no
15336 $rm -r conftest 2>/dev/null
15337 mkdir conftest
15338 cd conftest
15339 mkdir out
15340 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15341
15342 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15343 # that will create temporary files in the current directory regardless of
15344 # the output directory. Thus, making CWD read-only will cause this test
15345 # to fail, enabling locking or at least warning the user not to do parallel
15346 # builds.
15347 chmod -w .
15348
15349 lt_compiler_flag="-o out/conftest2.$ac_objext"
15350 # Insert the option either (1) after the last *FLAGS variable, or
15351 # (2) before a word containing "conftest.", or (3) at the end.
15352 # Note that $ac_compile itself does not contain backslashes and begins
15353 # with a dollar sign (not a hyphen), so the echo should work correctly.
15354 lt_compile=`echo "$ac_compile" | $SED \
15355 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15356 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15357 -e 's:$: $lt_compiler_flag:'`
John Criswell78227592003-09-30 19:41:15 +000015358 (eval echo "\"\$as_me:15364: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015359 (eval "$lt_compile" 2>out/conftest.err)
15360 ac_status=$?
15361 cat out/conftest.err >&5
John Criswell78227592003-09-30 19:41:15 +000015362 echo "$as_me:15368: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015363 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15364 then
15365 # The compiler can only warn and ignore the option if not recognized
15366 # So say no if there are warnings
15367 if test ! -s out/conftest.err; then
15368 lt_cv_prog_compiler_c_o_GCJ=yes
15369 fi
15370 fi
15371 chmod u+w .
15372 $rm conftest* out/*
15373 rmdir out
15374 cd ..
15375 rmdir conftest
15376 $rm conftest*
15377
15378fi
15379echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15380echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15381
15382
15383hard_links="nottested"
15384if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15385 # do not overwrite the value of need_locks provided by the user
15386 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15387echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15388 hard_links=yes
15389 $rm conftest*
15390 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15391 touch conftest.a
15392 ln conftest.a conftest.b 2>&5 || hard_links=no
15393 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15394 echo "$as_me:$LINENO: result: $hard_links" >&5
15395echo "${ECHO_T}$hard_links" >&6
15396 if test "$hard_links" = no; then
15397 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15398echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15399 need_locks=warn
15400 fi
15401else
15402 need_locks=no
15403fi
15404
15405echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15406echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15407
15408 runpath_var=
15409 allow_undefined_flag_GCJ=
15410 enable_shared_with_static_runtimes_GCJ=no
15411 archive_cmds_GCJ=
15412 archive_expsym_cmds_GCJ=
15413 old_archive_From_new_cmds_GCJ=
15414 old_archive_from_expsyms_cmds_GCJ=
15415 export_dynamic_flag_spec_GCJ=
15416 whole_archive_flag_spec_GCJ=
15417 thread_safe_flag_spec_GCJ=
15418 hardcode_libdir_flag_spec_GCJ=
15419 hardcode_libdir_flag_spec_ld_GCJ=
15420 hardcode_libdir_separator_GCJ=
15421 hardcode_direct_GCJ=no
15422 hardcode_minus_L_GCJ=no
15423 hardcode_shlibpath_var_GCJ=unsupported
15424 link_all_deplibs_GCJ=unknown
15425 hardcode_automatic_GCJ=no
15426 module_cmds_GCJ=
15427 module_expsym_cmds_GCJ=
15428 always_export_symbols_GCJ=no
15429 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15430 # include_expsyms should be a list of space-separated symbols to be *always*
15431 # included in the symbol list
15432 include_expsyms_GCJ=
15433 # exclude_expsyms can be an extended regexp of symbols to exclude
15434 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15435 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15436 # as well as any symbol that contains `d'.
15437 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15438 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15439 # platforms (ab)use it in PIC code, but their linkers get confused if
15440 # the symbol is explicitly referenced. Since portable code cannot
15441 # rely on this symbol name, it's probably fine to never include it in
15442 # preloaded symbol tables.
15443 extract_expsyms_cmds=
15444
15445 case $host_os in
15446 cygwin* | mingw* | pw32*)
15447 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15448 # When not using gcc, we currently assume that we are using
15449 # Microsoft Visual C++.
15450 if test "$GCC" != yes; then
15451 with_gnu_ld=no
15452 fi
15453 ;;
15454 openbsd*)
15455 with_gnu_ld=no
15456 ;;
15457 esac
15458
15459 ld_shlibs_GCJ=yes
15460 if test "$with_gnu_ld" = yes; then
15461 # If archive_cmds runs LD, not CC, wlarc should be empty
15462 wlarc='${wl}'
15463
15464 # See if GNU ld supports shared libraries.
15465 case $host_os in
15466 aix3* | aix4* | aix5*)
15467 # On AIX/PPC, the GNU linker is very broken
15468 if test "$host_cpu" != ia64; then
15469 ld_shlibs_GCJ=no
15470 cat <<EOF 1>&2
15471
15472*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15473*** to be unable to reliably create shared libraries on AIX.
15474*** Therefore, libtool is disabling shared libraries support. If you
15475*** really care for shared libraries, you may want to modify your PATH
15476*** so that a non-GNU linker is found, and then restart.
15477
15478EOF
15479 fi
15480 ;;
15481
15482 amigaos*)
15483 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)'
15484 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15485 hardcode_minus_L_GCJ=yes
15486
15487 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15488 # that the semantics of dynamic libraries on AmigaOS, at least up
15489 # to version 4, is to share data among multiple programs linked
15490 # with the same dynamic library. Since this doesn't match the
15491 # behavior of shared libraries on other platforms, we can't use
15492 # them.
15493 ld_shlibs_GCJ=no
15494 ;;
15495
15496 beos*)
15497 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15498 allow_undefined_flag_GCJ=unsupported
15499 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15500 # support --undefined. This deserves some investigation. FIXME
15501 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15502 else
15503 ld_shlibs_GCJ=no
15504 fi
15505 ;;
15506
15507 cygwin* | mingw* | pw32*)
15508 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15509 # as there is no search path for DLLs.
15510 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15511 allow_undefined_flag_GCJ=unsupported
15512 always_export_symbols_GCJ=no
15513 enable_shared_with_static_runtimes_GCJ=yes
15514 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15515
15516 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15517 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15518 # If the export-symbols file already is a .def file (1st line
15519 # is EXPORTS), use it as is; otherwise, prepend...
15520 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15521 cp $export_symbols $output_objdir/$soname.def;
15522 else
15523 echo EXPORTS > $output_objdir/$soname.def;
15524 cat $export_symbols >> $output_objdir/$soname.def;
15525 fi~
15526 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15527 else
15528 ld_shlibs=no
15529 fi
15530 ;;
15531
15532 netbsd*)
15533 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15534 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15535 wlarc=
15536 else
15537 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15538 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15539 fi
15540 ;;
15541
15542 solaris* | sysv5*)
15543 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15544 ld_shlibs_GCJ=no
15545 cat <<EOF 1>&2
15546
15547*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15548*** create shared libraries on Solaris systems. Therefore, libtool
15549*** is disabling shared libraries support. We urge you to upgrade GNU
15550*** binutils to release 2.9.1 or newer. Another option is to modify
15551*** your PATH or compiler configuration so that the native linker is
15552*** used, and then restart.
15553
15554EOF
15555 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15556 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15557 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15558 else
15559 ld_shlibs_GCJ=no
15560 fi
15561 ;;
15562
15563 sunos4*)
15564 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15565 wlarc=
15566 hardcode_direct_GCJ=yes
15567 hardcode_shlibpath_var_GCJ=no
15568 ;;
15569
15570 *)
15571 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15572 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15573 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15574 else
15575 ld_shlibs_GCJ=no
15576 fi
15577 ;;
15578 esac
15579
15580 if test "$ld_shlibs_GCJ" = yes; then
15581 runpath_var=LD_RUN_PATH
15582 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15583 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15584 # ancient GNU ld didn't support --whole-archive et. al.
15585 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15586 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15587 else
15588 whole_archive_flag_spec_GCJ=
15589 fi
15590 fi
15591 else
15592 # PORTME fill in a description of your system's linker (not GNU ld)
15593 case $host_os in
15594 aix3*)
15595 allow_undefined_flag_GCJ=unsupported
15596 always_export_symbols_GCJ=yes
15597 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'
15598 # Note: this linker hardcodes the directories in LIBPATH if there
15599 # are no directories specified by -L.
15600 hardcode_minus_L_GCJ=yes
15601 if test "$GCC" = yes && test -z "$link_static_flag"; then
15602 # Neither direct hardcoding nor static linking is supported with a
15603 # broken collect2.
15604 hardcode_direct_GCJ=unsupported
15605 fi
15606 ;;
15607
15608 aix4* | aix5*)
15609 if test "$host_cpu" = ia64; then
15610 # On IA64, the linker does run time linking by default, so we don't
15611 # have to do anything special.
15612 aix_use_runtimelinking=no
15613 exp_sym_flag='-Bexport'
15614 no_entry_flag=""
15615 else
15616 # If we're using GNU nm, then we don't want the "-C" option.
15617 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15618 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15619 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'
15620 else
15621 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'
15622 fi
15623 aix_use_runtimelinking=no
15624
15625 # Test if we are trying to use run time linking or normal
15626 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15627 # need to do runtime linking.
15628 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15629 for ld_flag in $LDFLAGS; do
15630 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15631 aix_use_runtimelinking=yes
15632 break
15633 fi
15634 done
15635 esac
15636
15637 exp_sym_flag='-bexport'
15638 no_entry_flag='-bnoentry'
15639 fi
15640
15641 # When large executables or shared objects are built, AIX ld can
15642 # have problems creating the table of contents. If linking a library
15643 # or program results in "error TOC overflow" add -mminimal-toc to
15644 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15645 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15646
15647 archive_cmds_GCJ=''
15648 hardcode_direct_GCJ=yes
15649 hardcode_libdir_separator_GCJ=':'
15650 link_all_deplibs_GCJ=yes
15651
15652 if test "$GCC" = yes; then
15653 case $host_os in aix4.012|aix4.012.*)
15654 # We only want to do this on AIX 4.2 and lower, the check
15655 # below for broken collect2 doesn't work under 4.3+
15656 collect2name=`${CC} -print-prog-name=collect2`
15657 if test -f "$collect2name" && \
15658 strings "$collect2name" | grep resolve_lib_name >/dev/null
15659 then
15660 # We have reworked collect2
15661 hardcode_direct_GCJ=yes
15662 else
15663 # We have old collect2
15664 hardcode_direct_GCJ=unsupported
15665 # It fails to find uninstalled libraries when the uninstalled
15666 # path is not listed in the libpath. Setting hardcode_minus_L
15667 # to unsupported forces relinking
15668 hardcode_minus_L_GCJ=yes
15669 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15670 hardcode_libdir_separator_GCJ=
15671 fi
15672 esac
15673 shared_flag='-shared'
15674 else
15675 # not using gcc
15676 if test "$host_cpu" = ia64; then
15677 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15678 # chokes on -Wl,-G. The following line is correct:
15679 shared_flag='-G'
15680 else
15681 if test "$aix_use_runtimelinking" = yes; then
15682 shared_flag='${wl}-G'
15683 else
15684 shared_flag='${wl}-bM:SRE'
15685 fi
15686 fi
15687 fi
15688
15689 # It seems that -bexpall does not export symbols beginning with
15690 # underscore (_), so it is better to generate a list of symbols to export.
15691 always_export_symbols_GCJ=yes
15692 if test "$aix_use_runtimelinking" = yes; then
15693 # Warning - without using the other runtime loading flags (-brtl),
15694 # -berok will link without error, but may produce a broken library.
15695 allow_undefined_flag_GCJ='-berok'
15696 # Determine the default libpath from the value encoded in an empty executable.
15697 cat >conftest.$ac_ext <<_ACEOF
15698#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015699/* confdefs.h. */
15700_ACEOF
15701cat confdefs.h >>conftest.$ac_ext
15702cat >>conftest.$ac_ext <<_ACEOF
15703/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015704
John Criswell47fdd832003-07-14 16:52:07 +000015705int
15706main ()
15707{
15708
15709 ;
15710 return 0;
15711}
15712_ACEOF
15713rm -f conftest.$ac_objext conftest$ac_exeext
15714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15715 (eval $ac_link) 2>&5
15716 ac_status=$?
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); } &&
15719 { ac_try='test -s conftest$ac_exeext'
15720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15721 (eval $ac_try) 2>&5
15722 ac_status=$?
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); }; }; then
15725
15726aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15727}'`
15728# Check for a 64-bit object if we didn't find anything.
15729if 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; }
15730}'`; fi
15731else
15732 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015733sed 's/^/| /' conftest.$ac_ext >&5
15734
John Criswell47fdd832003-07-14 16:52:07 +000015735fi
15736rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15737if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15738
15739 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15740 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"
15741 else
15742 if test "$host_cpu" = ia64; then
15743 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15744 allow_undefined_flag_GCJ="-z nodefs"
15745 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"
15746 else
15747 # Determine the default libpath from the value encoded in an empty executable.
15748 cat >conftest.$ac_ext <<_ACEOF
15749#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015750/* confdefs.h. */
15751_ACEOF
15752cat confdefs.h >>conftest.$ac_ext
15753cat >>conftest.$ac_ext <<_ACEOF
15754/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015755
John Criswell47fdd832003-07-14 16:52:07 +000015756int
15757main ()
15758{
15759
15760 ;
15761 return 0;
15762}
15763_ACEOF
15764rm -f conftest.$ac_objext conftest$ac_exeext
15765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15766 (eval $ac_link) 2>&5
15767 ac_status=$?
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); } &&
15770 { ac_try='test -s conftest$ac_exeext'
15771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772 (eval $ac_try) 2>&5
15773 ac_status=$?
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; }; then
15776
15777aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15778}'`
15779# Check for a 64-bit object if we didn't find anything.
15780if 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; }
15781}'`; fi
15782else
15783 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015784sed 's/^/| /' conftest.$ac_ext >&5
15785
John Criswell47fdd832003-07-14 16:52:07 +000015786fi
15787rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15788if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15789
15790 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15791 # Warning - without using the other run time loading flags,
15792 # -berok will link without error, but may produce a broken library.
15793 no_undefined_flag_GCJ=' ${wl}-bernotok'
15794 allow_undefined_flag_GCJ=' ${wl}-berok'
15795 # -bexpall does not export symbols beginning with underscore (_)
15796 always_export_symbols_GCJ=yes
15797 # Exported symbols can be pulled into shared objects from archives
15798 whole_archive_flag_spec_GCJ=' '
15799 archive_cmds_need_lc_GCJ=yes
15800 # This is similar to how AIX traditionally builds it's shared libraries.
15801 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'
15802 fi
15803 fi
15804 ;;
15805
15806 amigaos*)
15807 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)'
15808 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15809 hardcode_minus_L_GCJ=yes
15810 # see comment about different semantics on the GNU ld section
15811 ld_shlibs_GCJ=no
15812 ;;
15813
15814 bsdi4*)
15815 export_dynamic_flag_spec_GCJ=-rdynamic
15816 ;;
15817
15818 cygwin* | mingw* | pw32*)
15819 # When not using gcc, we currently assume that we are using
15820 # Microsoft Visual C++.
15821 # hardcode_libdir_flag_spec is actually meaningless, as there is
15822 # no search path for DLLs.
15823 hardcode_libdir_flag_spec_GCJ=' '
15824 allow_undefined_flag_GCJ=unsupported
15825 # Tell ltmain to make .lib files, not .a files.
15826 libext=lib
15827 # Tell ltmain to make .dll files, not .so files.
15828 shrext=".dll"
15829 # FIXME: Setting linknames here is a bad hack.
15830 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15831 # The linker will automatically build a .lib file if we build a DLL.
15832 old_archive_From_new_cmds_GCJ='true'
15833 # FIXME: Should let the user specify the lib program.
15834 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15835 fix_srcfile_path='`cygpath -w "$srcfile"`'
15836 enable_shared_with_static_runtimes_GCJ=yes
15837 ;;
15838
15839 darwin* | rhapsody*)
15840 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15841 archive_cmds_need_lc_GCJ=no
15842 case "$host_os" in
15843 rhapsody* | darwin1.[012])
15844 allow_undefined_flag_GCJ='-undefined suppress'
15845 ;;
15846 *) # Darwin 1.3 on
15847 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15848 ;;
15849 esac
15850 # FIXME: Relying on posixy $() will cause problems for
15851 # cross-compilation, but unfortunately the echo tests do not
15852 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15853 # `"' quotes if we put them in here... so don't!
15854 lt_int_apple_cc_single_mod=no
15855 output_verbose_link_cmd='echo'
15856 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15857 lt_int_apple_cc_single_mod=yes
15858 fi
15859 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15860 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15861 else
15862 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'
15863 fi
15864 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15865 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15866 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15867 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}'
15868 else
15869 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}'
15870 fi
15871 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}'
15872 hardcode_direct_GCJ=no
15873 hardcode_automatic_GCJ=yes
15874 hardcode_shlibpath_var_GCJ=unsupported
15875 whole_archive_flag_spec_GCJ='-all_load $convenience'
15876 link_all_deplibs_GCJ=yes
15877 fi
15878 ;;
15879
15880 dgux*)
15881 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15882 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15883 hardcode_shlibpath_var_GCJ=no
15884 ;;
15885
15886 freebsd1*)
15887 ld_shlibs_GCJ=no
15888 ;;
15889
15890 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15891 # support. Future versions do this automatically, but an explicit c++rt0.o
15892 # does not break anything, and helps significantly (at the cost of a little
15893 # extra space).
15894 freebsd2.2*)
15895 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15896 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15897 hardcode_direct_GCJ=yes
15898 hardcode_shlibpath_var_GCJ=no
15899 ;;
15900
15901 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15902 freebsd2*)
15903 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15904 hardcode_direct_GCJ=yes
15905 hardcode_minus_L_GCJ=yes
15906 hardcode_shlibpath_var_GCJ=no
15907 ;;
15908
15909 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15910 freebsd*)
15911 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15912 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15913 hardcode_direct_GCJ=yes
15914 hardcode_shlibpath_var_GCJ=no
15915 ;;
15916
15917 hpux9*)
15918 if test "$GCC" = yes; then
15919 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'
15920 else
15921 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'
15922 fi
15923 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15924 hardcode_libdir_separator_GCJ=:
15925 hardcode_direct_GCJ=yes
15926
15927 # hardcode_minus_L: Not really in the search PATH,
15928 # but as the default location of the library.
15929 hardcode_minus_L_GCJ=yes
15930 export_dynamic_flag_spec_GCJ='${wl}-E'
15931 ;;
15932
15933 hpux10* | hpux11*)
15934 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15935 case "$host_cpu" in
15936 hppa*64*|ia64*)
15937 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15938 ;;
15939 *)
15940 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15941 ;;
15942 esac
15943 else
15944 case "$host_cpu" in
15945 hppa*64*|ia64*)
15946 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15947 ;;
15948 *)
15949 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15950 ;;
15951 esac
15952 fi
15953 if test "$with_gnu_ld" = no; then
15954 case "$host_cpu" in
15955 hppa*64*)
15956 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15957 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15958 hardcode_libdir_separator_GCJ=:
15959 hardcode_direct_GCJ=no
15960 hardcode_shlibpath_var_GCJ=no
15961 ;;
15962 ia64*)
15963 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15964 hardcode_direct_GCJ=no
15965 hardcode_shlibpath_var_GCJ=no
15966
15967 # hardcode_minus_L: Not really in the search PATH,
15968 # but as the default location of the library.
15969 hardcode_minus_L_GCJ=yes
15970 ;;
15971 *)
15972 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15973 hardcode_libdir_separator_GCJ=:
15974 hardcode_direct_GCJ=yes
15975 export_dynamic_flag_spec_GCJ='${wl}-E'
15976
15977 # hardcode_minus_L: Not really in the search PATH,
15978 # but as the default location of the library.
15979 hardcode_minus_L_GCJ=yes
15980 ;;
15981 esac
15982 fi
15983 ;;
15984
15985 irix5* | irix6* | nonstopux*)
15986 if test "$GCC" = yes; then
15987 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'
15988 else
15989 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'
15990 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15991 fi
15992 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15993 hardcode_libdir_separator_GCJ=:
15994 link_all_deplibs_GCJ=yes
15995 ;;
15996
15997 netbsd*)
15998 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15999 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16000 else
16001 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16002 fi
16003 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16004 hardcode_direct_GCJ=yes
16005 hardcode_shlibpath_var_GCJ=no
16006 ;;
16007
16008 newsos6)
16009 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16010 hardcode_direct_GCJ=yes
16011 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16012 hardcode_libdir_separator_GCJ=:
16013 hardcode_shlibpath_var_GCJ=no
16014 ;;
16015
16016 openbsd*)
16017 hardcode_direct_GCJ=yes
16018 hardcode_shlibpath_var_GCJ=no
16019 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16020 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16021 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16022 export_dynamic_flag_spec_GCJ='${wl}-E'
16023 else
16024 case $host_os in
16025 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16026 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16027 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16028 ;;
16029 *)
16030 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16031 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16032 ;;
16033 esac
16034 fi
16035 ;;
16036
16037 os2*)
16038 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16039 hardcode_minus_L_GCJ=yes
16040 allow_undefined_flag_GCJ=unsupported
16041 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'
16042 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16043 ;;
16044
16045 osf3*)
16046 if test "$GCC" = yes; then
16047 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16048 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'
16049 else
16050 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16051 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'
16052 fi
16053 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16054 hardcode_libdir_separator_GCJ=:
16055 ;;
16056
16057 osf4* | osf5*) # as osf3* with the addition of -msym flag
16058 if test "$GCC" = yes; then
16059 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16060 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'
16061 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16062 else
16063 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16064 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'
16065 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~
16066 $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'
16067
16068 # Both c and cxx compiler support -rpath directly
16069 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16070 fi
16071 hardcode_libdir_separator_GCJ=:
16072 ;;
16073
16074 sco3.2v5*)
16075 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16076 hardcode_shlibpath_var_GCJ=no
16077 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16078 runpath_var=LD_RUN_PATH
16079 hardcode_runpath_var=yes
16080 ;;
16081
16082 solaris*)
16083 no_undefined_flag_GCJ=' -z text'
16084 if test "$GCC" = yes; then
16085 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16086 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16087 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16088 else
16089 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16090 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16091 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16092 fi
16093 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16094 hardcode_shlibpath_var_GCJ=no
16095 case $host_os in
16096 solaris2.[0-5] | solaris2.[0-5].*) ;;
16097 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16098 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16099 esac
16100 link_all_deplibs_GCJ=yes
16101 ;;
16102
16103 sunos4*)
16104 if test "x$host_vendor" = xsequent; then
16105 # Use $CC to link under sequent, because it throws in some extra .o
16106 # files that make .init and .fini sections work.
16107 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16108 else
16109 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16110 fi
16111 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16112 hardcode_direct_GCJ=yes
16113 hardcode_minus_L_GCJ=yes
16114 hardcode_shlibpath_var_GCJ=no
16115 ;;
16116
16117 sysv4)
16118 case $host_vendor in
16119 sni)
16120 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16121 hardcode_direct_GCJ=yes # is this really true???
16122 ;;
16123 siemens)
16124 ## LD is ld it makes a PLAMLIB
16125 ## CC just makes a GrossModule.
16126 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16127 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16128 hardcode_direct_GCJ=no
16129 ;;
16130 motorola)
16131 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16132 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16133 ;;
16134 esac
16135 runpath_var='LD_RUN_PATH'
16136 hardcode_shlibpath_var_GCJ=no
16137 ;;
16138
16139 sysv4.3*)
16140 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16141 hardcode_shlibpath_var_GCJ=no
16142 export_dynamic_flag_spec_GCJ='-Bexport'
16143 ;;
16144
16145 sysv4*MP*)
16146 if test -d /usr/nec; then
16147 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16148 hardcode_shlibpath_var_GCJ=no
16149 runpath_var=LD_RUN_PATH
16150 hardcode_runpath_var=yes
16151 ld_shlibs_GCJ=yes
16152 fi
16153 ;;
16154
16155 sysv4.2uw2*)
16156 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16157 hardcode_direct_GCJ=yes
16158 hardcode_minus_L_GCJ=no
16159 hardcode_shlibpath_var_GCJ=no
16160 hardcode_runpath_var=yes
16161 runpath_var=LD_RUN_PATH
16162 ;;
16163
16164 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16165 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16166 if test "$GCC" = yes; then
16167 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16168 else
16169 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16170 fi
16171 runpath_var='LD_RUN_PATH'
16172 hardcode_shlibpath_var_GCJ=no
16173 ;;
16174
16175 sysv5*)
16176 no_undefined_flag_GCJ=' -z text'
16177 # $CC -shared without GNU ld will not create a library from C++
16178 # object files and a static libstdc++, better avoid it by now
16179 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16180 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16181 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16182 hardcode_libdir_flag_spec_GCJ=
16183 hardcode_shlibpath_var_GCJ=no
16184 runpath_var='LD_RUN_PATH'
16185 ;;
16186
16187 uts4*)
16188 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16189 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16190 hardcode_shlibpath_var_GCJ=no
16191 ;;
16192
16193 *)
16194 ld_shlibs_GCJ=no
16195 ;;
16196 esac
16197 fi
16198
16199echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16200echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16201test "$ld_shlibs_GCJ" = no && can_build_shared=no
16202
16203variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16204if test "$GCC" = yes; then
16205 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16206fi
16207
16208#
16209# Do we need to explicitly link libc?
16210#
16211case "x$archive_cmds_need_lc_GCJ" in
16212x|xyes)
16213 # Assume -lc should be added
16214 archive_cmds_need_lc_GCJ=yes
16215
16216 if test "$enable_shared" = yes && test "$GCC" = yes; then
16217 case $archive_cmds_GCJ in
16218 *'~'*)
16219 # FIXME: we may have to deal with multi-command sequences.
16220 ;;
16221 '$CC '*)
16222 # Test whether the compiler implicitly links with -lc since on some
16223 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16224 # to ld, don't add -lc before -lgcc.
16225 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16226echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16227 $rm conftest*
16228 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16229
16230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16231 (eval $ac_compile) 2>&5
16232 ac_status=$?
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); } 2>conftest.err; then
16235 soname=conftest
16236 lib=conftest
16237 libobjs=conftest.$ac_objext
16238 deplibs=
16239 wl=$lt_prog_compiler_wl_GCJ
16240 compiler_flags=-v
16241 linker_flags=-v
16242 verstring=
16243 output_objdir=.
16244 libname=conftest
16245 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16246 allow_undefined_flag_GCJ=
16247 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16248 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16249 ac_status=$?
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); }
16252 then
16253 archive_cmds_need_lc_GCJ=no
16254 else
16255 archive_cmds_need_lc_GCJ=yes
16256 fi
16257 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16258 else
16259 cat conftest.err 1>&5
16260 fi
16261 $rm conftest*
16262 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16263echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16264 ;;
16265 esac
16266 fi
16267 ;;
16268esac
16269
16270echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16271echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16272hardcode_action_GCJ=
16273if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16274 test -n "$runpath_var GCJ" || \
16275 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16276
16277 # We can hardcode non-existant directories.
16278 if test "$hardcode_direct_GCJ" != no &&
16279 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16280 # have to relink, otherwise we might link with an installed library
16281 # when we should be linking with a yet-to-be-installed one
16282 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16283 test "$hardcode_minus_L_GCJ" != no; then
16284 # Linking always hardcodes the temporary library directory.
16285 hardcode_action_GCJ=relink
16286 else
16287 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16288 hardcode_action_GCJ=immediate
16289 fi
16290else
16291 # We cannot hardcode anything, or else we can only hardcode existing
16292 # directories.
16293 hardcode_action_GCJ=unsupported
16294fi
16295echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16296echo "${ECHO_T}$hardcode_action_GCJ" >&6
16297
16298if test "$hardcode_action_GCJ" = relink; then
16299 # Fast installation is not supported
16300 enable_fast_install=no
16301elif test "$shlibpath_overrides_runpath" = yes ||
16302 test "$enable_shared" = no; then
16303 # Fast installation is not necessary
16304 enable_fast_install=needless
16305fi
16306
16307striplib=
16308old_striplib=
16309echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16310echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16311if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16312 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16313 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16314 echo "$as_me:$LINENO: result: yes" >&5
16315echo "${ECHO_T}yes" >&6
16316else
16317# FIXME - insert some real tests, host_os isn't really good enough
16318 case $host_os in
16319 darwin*)
16320 if test -n "$STRIP" ; then
16321 striplib="$STRIP -x"
16322 echo "$as_me:$LINENO: result: yes" >&5
16323echo "${ECHO_T}yes" >&6
16324 else
16325 echo "$as_me:$LINENO: result: no" >&5
16326echo "${ECHO_T}no" >&6
16327fi
16328 ;;
16329 *)
16330 echo "$as_me:$LINENO: result: no" >&5
16331echo "${ECHO_T}no" >&6
16332 ;;
16333 esac
16334fi
16335
16336echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16337echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16338library_names_spec=
16339libname_spec='lib$name'
16340soname_spec=
16341shrext=".so"
16342postinstall_cmds=
16343postuninstall_cmds=
16344finish_cmds=
16345finish_eval=
16346shlibpath_var=
16347shlibpath_overrides_runpath=unknown
16348version_type=none
16349dynamic_linker="$host_os ld.so"
16350sys_lib_dlsearch_path_spec="/lib /usr/lib"
16351if test "$GCC" = yes; then
16352 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16353 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16354 # if the path contains ";" then we assume it to be the separator
16355 # otherwise default to the standard path separator (i.e. ":") - it is
16356 # assumed that no part of a normal pathname contains ";" but that should
16357 # okay in the real world where ";" in dirpaths is itself problematic.
16358 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16359 else
16360 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16361 fi
16362else
16363 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16364fi
16365need_lib_prefix=unknown
16366hardcode_into_libs=no
16367
16368# when you set need_version to no, make sure it does not cause -set_version
16369# flags to be left without arguments
16370need_version=unknown
16371
16372case $host_os in
16373aix3*)
16374 version_type=linux
16375 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16376 shlibpath_var=LIBPATH
16377
16378 # AIX 3 has no versioning support, so we append a major version to the name.
16379 soname_spec='${libname}${release}${shared_ext}$major'
16380 ;;
16381
16382aix4* | aix5*)
16383 version_type=linux
16384 need_lib_prefix=no
16385 need_version=no
16386 hardcode_into_libs=yes
16387 if test "$host_cpu" = ia64; then
16388 # AIX 5 supports IA64
16389 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16390 shlibpath_var=LD_LIBRARY_PATH
16391 else
16392 # With GCC up to 2.95.x, collect2 would create an import file
16393 # for dependence libraries. The import file would start with
16394 # the line `#! .'. This would cause the generated library to
16395 # depend on `.', always an invalid library. This was fixed in
16396 # development snapshots of GCC prior to 3.0.
16397 case $host_os in
16398 aix4 | aix4.[01] | aix4.[01].*)
16399 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16400 echo ' yes '
16401 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16402 :
16403 else
16404 can_build_shared=no
16405 fi
16406 ;;
16407 esac
16408 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16409 # soname into executable. Probably we can add versioning support to
16410 # collect2, so additional links can be useful in future.
16411 if test "$aix_use_runtimelinking" = yes; then
16412 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16413 # instead of lib<name>.a to let people know that these are not
16414 # typical AIX shared libraries.
16415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16416 else
16417 # We preserve .a as extension for shared libraries through AIX4.2
16418 # and later when we are not doing run time linking.
16419 library_names_spec='${libname}${release}.a $libname.a'
16420 soname_spec='${libname}${release}${shared_ext}$major'
16421 fi
16422 shlibpath_var=LIBPATH
16423 fi
16424 ;;
16425
16426amigaos*)
16427 library_names_spec='$libname.ixlibrary $libname.a'
16428 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16429 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'
16430 ;;
16431
16432beos*)
16433 library_names_spec='${libname}${shared_ext}'
16434 dynamic_linker="$host_os ld.so"
16435 shlibpath_var=LIBRARY_PATH
16436 ;;
16437
16438bsdi4*)
16439 version_type=linux
16440 need_version=no
16441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16442 soname_spec='${libname}${release}${shared_ext}$major'
16443 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16444 shlibpath_var=LD_LIBRARY_PATH
16445 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16446 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16447 # the default ld.so.conf also contains /usr/contrib/lib and
16448 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16449 # libtool to hard-code these into programs
16450 ;;
16451
16452cygwin* | mingw* | pw32*)
16453 version_type=windows
16454 shrext=".dll"
16455 need_version=no
16456 need_lib_prefix=no
16457
16458 case $GCC,$host_os in
16459 yes,cygwin* | yes,mingw* | yes,pw32*)
16460 library_names_spec='$libname.dll.a'
16461 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16462 postinstall_cmds='base_file=`basename \${file}`~
16463 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16464 dldir=$destdir/`dirname \$dlpath`~
16465 test -d \$dldir || mkdir -p \$dldir~
16466 $install_prog $dir/$dlname \$dldir/$dlname'
16467 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16468 dlpath=$dir/\$dldll~
16469 $rm \$dlpath'
16470 shlibpath_overrides_runpath=yes
16471
16472 case $host_os in
16473 cygwin*)
16474 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16475 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16476 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16477 ;;
16478 mingw*)
16479 # MinGW DLLs use traditional 'lib' prefix
16480 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16481 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16482 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16483 # It is most probably a Windows format PATH printed by
16484 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16485 # path with ; separators, and with drive letters. We can handle the
16486 # drive letters (cygwin fileutils understands them), so leave them,
16487 # especially as we might pass files found there to a mingw objdump,
16488 # which wouldn't understand a cygwinified path. Ahh.
16489 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16490 else
16491 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16492 fi
16493 ;;
16494 pw32*)
16495 # pw32 DLLs use 'pw' prefix rather than 'lib'
16496 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16497 ;;
16498 esac
16499 ;;
16500
16501 *)
16502 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16503 ;;
16504 esac
16505 dynamic_linker='Win32 ld.exe'
16506 # FIXME: first we should search . and the directory the executable is in
16507 shlibpath_var=PATH
16508 ;;
16509
16510darwin* | rhapsody*)
16511 dynamic_linker="$host_os dyld"
16512 version_type=darwin
16513 need_lib_prefix=no
16514 need_version=no
16515 # FIXME: Relying on posixy $() will cause problems for
16516 # cross-compilation, but unfortunately the echo tests do not
16517 # yet detect zsh echo's removal of \ escapes.
16518 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16519 soname_spec='${libname}${release}${major}$shared_ext'
16520 shlibpath_overrides_runpath=yes
16521 shlibpath_var=DYLD_LIBRARY_PATH
16522 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16523 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16524 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16525 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"`
16526 fi
16527 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16528 ;;
16529
16530dgux*)
16531 version_type=linux
16532 need_lib_prefix=no
16533 need_version=no
16534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16535 soname_spec='${libname}${release}${shared_ext}$major'
16536 shlibpath_var=LD_LIBRARY_PATH
16537 ;;
16538
16539freebsd1*)
16540 dynamic_linker=no
16541 ;;
16542
16543freebsd*)
16544 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16545 version_type=freebsd-$objformat
16546 case $version_type in
16547 freebsd-elf*)
16548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16549 need_version=no
16550 need_lib_prefix=no
16551 ;;
16552 freebsd-*)
16553 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16554 need_version=yes
16555 ;;
16556 esac
16557 shlibpath_var=LD_LIBRARY_PATH
16558 case $host_os in
16559 freebsd2*)
16560 shlibpath_overrides_runpath=yes
16561 ;;
16562 freebsd3.01* | freebsdelf3.01*)
16563 shlibpath_overrides_runpath=yes
16564 hardcode_into_libs=yes
16565 ;;
16566 *) # from 3.2 on
16567 shlibpath_overrides_runpath=no
16568 hardcode_into_libs=yes
16569 ;;
16570 esac
16571 ;;
16572
16573gnu*)
16574 version_type=linux
16575 need_lib_prefix=no
16576 need_version=no
16577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16578 soname_spec='${libname}${release}${shared_ext}$major'
16579 shlibpath_var=LD_LIBRARY_PATH
16580 hardcode_into_libs=yes
16581 ;;
16582
16583hpux9* | hpux10* | hpux11*)
16584 # Give a soname corresponding to the major version so that dld.sl refuses to
16585 # link against other versions.
16586 version_type=sunos
16587 need_lib_prefix=no
16588 need_version=no
16589 case "$host_cpu" in
16590 ia64*)
16591 shrext='.so'
16592 hardcode_into_libs=yes
16593 dynamic_linker="$host_os dld.so"
16594 shlibpath_var=LD_LIBRARY_PATH
16595 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16597 soname_spec='${libname}${release}${shared_ext}$major'
16598 if test "X$HPUX_IA64_MODE" = X32; then
16599 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16600 else
16601 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16602 fi
16603 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16604 ;;
16605 hppa*64*)
16606 shrext='.sl'
16607 hardcode_into_libs=yes
16608 dynamic_linker="$host_os dld.sl"
16609 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16610 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16612 soname_spec='${libname}${release}${shared_ext}$major'
16613 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16614 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16615 ;;
16616 *)
16617 shrext='.sl'
16618 dynamic_linker="$host_os dld.sl"
16619 shlibpath_var=SHLIB_PATH
16620 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16622 soname_spec='${libname}${release}${shared_ext}$major'
16623 ;;
16624 esac
16625 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16626 postinstall_cmds='chmod 555 $lib'
16627 ;;
16628
16629irix5* | irix6* | nonstopux*)
16630 case $host_os in
16631 nonstopux*) version_type=nonstopux ;;
16632 *)
16633 if test "$lt_cv_prog_gnu_ld" = yes; then
16634 version_type=linux
16635 else
16636 version_type=irix
16637 fi ;;
16638 esac
16639 need_lib_prefix=no
16640 need_version=no
16641 soname_spec='${libname}${release}${shared_ext}$major'
16642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16643 case $host_os in
16644 irix5* | nonstopux*)
16645 libsuff= shlibsuff=
16646 ;;
16647 *)
16648 case $LD in # libtool.m4 will add one of these switches to LD
16649 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16650 libsuff= shlibsuff= libmagic=32-bit;;
16651 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16652 libsuff=32 shlibsuff=N32 libmagic=N32;;
16653 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16654 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16655 *) libsuff= shlibsuff= libmagic=never-match;;
16656 esac
16657 ;;
16658 esac
16659 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16660 shlibpath_overrides_runpath=no
16661 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16662 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16663 hardcode_into_libs=yes
16664 ;;
16665
16666# No shared lib support for Linux oldld, aout, or coff.
16667linux*oldld* | linux*aout* | linux*coff*)
16668 dynamic_linker=no
16669 ;;
16670
16671# This must be Linux ELF.
16672linux*)
16673 version_type=linux
16674 need_lib_prefix=no
16675 need_version=no
16676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16677 soname_spec='${libname}${release}${shared_ext}$major'
16678 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16679 shlibpath_var=LD_LIBRARY_PATH
16680 shlibpath_overrides_runpath=no
16681 # This implies no fast_install, which is unacceptable.
16682 # Some rework will be needed to allow for fast_install
16683 # before this can be enabled.
16684 hardcode_into_libs=yes
16685
16686 # We used to test for /lib/ld.so.1 and disable shared libraries on
16687 # powerpc, because MkLinux only supported shared libraries with the
16688 # GNU dynamic linker. Since this was broken with cross compilers,
16689 # most powerpc-linux boxes support dynamic linking these days and
16690 # people can always --disable-shared, the test was removed, and we
16691 # assume the GNU/Linux dynamic linker is in use.
16692 dynamic_linker='GNU/Linux ld.so'
16693 ;;
16694
16695netbsd*)
16696 version_type=sunos
16697 need_lib_prefix=no
16698 need_version=no
16699 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16701 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16702 dynamic_linker='NetBSD (a.out) ld.so'
16703 else
16704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16705 soname_spec='${libname}${release}${shared_ext}$major'
16706 dynamic_linker='NetBSD ld.elf_so'
16707 fi
16708 shlibpath_var=LD_LIBRARY_PATH
16709 shlibpath_overrides_runpath=yes
16710 hardcode_into_libs=yes
16711 ;;
16712
16713newsos6)
16714 version_type=linux
16715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16716 shlibpath_var=LD_LIBRARY_PATH
16717 shlibpath_overrides_runpath=yes
16718 ;;
16719
16720nto-qnx)
16721 version_type=linux
16722 need_lib_prefix=no
16723 need_version=no
16724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16725 soname_spec='${libname}${release}${shared_ext}$major'
16726 shlibpath_var=LD_LIBRARY_PATH
16727 shlibpath_overrides_runpath=yes
16728 ;;
16729
16730openbsd*)
16731 version_type=sunos
16732 need_lib_prefix=no
16733 need_version=no
16734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16735 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16736 shlibpath_var=LD_LIBRARY_PATH
16737 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16738 case $host_os in
16739 openbsd2.[89] | openbsd2.[89].*)
16740 shlibpath_overrides_runpath=no
16741 ;;
16742 *)
16743 shlibpath_overrides_runpath=yes
16744 ;;
16745 esac
16746 else
16747 shlibpath_overrides_runpath=yes
16748 fi
16749 ;;
16750
16751os2*)
16752 libname_spec='$name'
16753 shrext=".dll"
16754 need_lib_prefix=no
16755 library_names_spec='$libname${shared_ext} $libname.a'
16756 dynamic_linker='OS/2 ld.exe'
16757 shlibpath_var=LIBPATH
16758 ;;
16759
16760osf3* | osf4* | osf5*)
16761 version_type=osf
16762 need_lib_prefix=no
16763 need_version=no
16764 soname_spec='${libname}${release}${shared_ext}$major'
16765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16766 shlibpath_var=LD_LIBRARY_PATH
16767 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16768 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16769 ;;
16770
16771sco3.2v5*)
16772 version_type=osf
16773 soname_spec='${libname}${release}${shared_ext}$major'
16774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16775 shlibpath_var=LD_LIBRARY_PATH
16776 ;;
16777
16778solaris*)
16779 version_type=linux
16780 need_lib_prefix=no
16781 need_version=no
16782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16783 soname_spec='${libname}${release}${shared_ext}$major'
16784 shlibpath_var=LD_LIBRARY_PATH
16785 shlibpath_overrides_runpath=yes
16786 hardcode_into_libs=yes
16787 # ldd complains unless libraries are executable
16788 postinstall_cmds='chmod +x $lib'
16789 ;;
16790
16791sunos4*)
16792 version_type=sunos
16793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16794 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16795 shlibpath_var=LD_LIBRARY_PATH
16796 shlibpath_overrides_runpath=yes
16797 if test "$with_gnu_ld" = yes; then
16798 need_lib_prefix=no
16799 fi
16800 need_version=yes
16801 ;;
16802
16803sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16804 version_type=linux
16805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16806 soname_spec='${libname}${release}${shared_ext}$major'
16807 shlibpath_var=LD_LIBRARY_PATH
16808 case $host_vendor in
16809 sni)
16810 shlibpath_overrides_runpath=no
16811 need_lib_prefix=no
16812 export_dynamic_flag_spec='${wl}-Blargedynsym'
16813 runpath_var=LD_RUN_PATH
16814 ;;
16815 siemens)
16816 need_lib_prefix=no
16817 ;;
16818 motorola)
16819 need_lib_prefix=no
16820 need_version=no
16821 shlibpath_overrides_runpath=no
16822 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16823 ;;
16824 esac
16825 ;;
16826
16827sysv4*MP*)
16828 if test -d /usr/nec ;then
16829 version_type=linux
16830 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16831 soname_spec='$libname${shared_ext}.$major'
16832 shlibpath_var=LD_LIBRARY_PATH
16833 fi
16834 ;;
16835
16836uts4*)
16837 version_type=linux
16838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16839 soname_spec='${libname}${release}${shared_ext}$major'
16840 shlibpath_var=LD_LIBRARY_PATH
16841 ;;
16842
16843*)
16844 dynamic_linker=no
16845 ;;
16846esac
16847echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16848echo "${ECHO_T}$dynamic_linker" >&6
16849test "$dynamic_linker" = no && can_build_shared=no
16850
16851if test "x$enable_dlopen" != xyes; then
16852 enable_dlopen=unknown
16853 enable_dlopen_self=unknown
16854 enable_dlopen_self_static=unknown
16855else
16856 lt_cv_dlopen=no
16857 lt_cv_dlopen_libs=
16858
16859 case $host_os in
16860 beos*)
16861 lt_cv_dlopen="load_add_on"
16862 lt_cv_dlopen_libs=
16863 lt_cv_dlopen_self=yes
16864 ;;
16865
16866 mingw* | pw32*)
16867 lt_cv_dlopen="LoadLibrary"
16868 lt_cv_dlopen_libs=
16869 ;;
16870
16871 cygwin*)
16872 lt_cv_dlopen="dlopen"
16873 lt_cv_dlopen_libs=
16874 ;;
16875
16876 darwin*)
16877 # if libdl is installed we need to link against it
16878 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16879echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16880if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16881 echo $ECHO_N "(cached) $ECHO_C" >&6
16882else
16883 ac_check_lib_save_LIBS=$LIBS
16884LIBS="-ldl $LIBS"
16885cat >conftest.$ac_ext <<_ACEOF
16886#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016887/* confdefs.h. */
16888_ACEOF
16889cat confdefs.h >>conftest.$ac_ext
16890cat >>conftest.$ac_ext <<_ACEOF
16891/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016892
16893/* Override any gcc2 internal prototype to avoid an error. */
16894#ifdef __cplusplus
16895extern "C"
16896#endif
16897/* We use char because int might match the return type of a gcc2
16898 builtin and then its argument prototype would still apply. */
16899char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016900int
16901main ()
16902{
16903dlopen ();
16904 ;
16905 return 0;
16906}
16907_ACEOF
16908rm -f conftest.$ac_objext conftest$ac_exeext
16909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16910 (eval $ac_link) 2>&5
16911 ac_status=$?
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); } &&
16914 { ac_try='test -s conftest$ac_exeext'
16915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16916 (eval $ac_try) 2>&5
16917 ac_status=$?
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; }; then
16920 ac_cv_lib_dl_dlopen=yes
16921else
16922 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016923sed 's/^/| /' conftest.$ac_ext >&5
16924
John Criswell47fdd832003-07-14 16:52:07 +000016925ac_cv_lib_dl_dlopen=no
16926fi
16927rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16928LIBS=$ac_check_lib_save_LIBS
16929fi
16930echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16931echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16932if test $ac_cv_lib_dl_dlopen = yes; then
16933 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16934else
16935
16936 lt_cv_dlopen="dyld"
16937 lt_cv_dlopen_libs=
16938 lt_cv_dlopen_self=yes
16939
16940fi
16941
16942 ;;
16943
16944 *)
16945 echo "$as_me:$LINENO: checking for shl_load" >&5
16946echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16947if test "${ac_cv_func_shl_load+set}" = set; then
16948 echo $ECHO_N "(cached) $ECHO_C" >&6
16949else
16950 cat >conftest.$ac_ext <<_ACEOF
16951#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016952/* confdefs.h. */
16953_ACEOF
16954cat confdefs.h >>conftest.$ac_ext
16955cat >>conftest.$ac_ext <<_ACEOF
16956/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016957/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016958 which can conflict with char shl_load (); below.
16959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16960 <limits.h> exists even on freestanding compilers. */
16961#ifdef __STDC__
16962# include <limits.h>
16963#else
16964# include <assert.h>
16965#endif
John Criswell47fdd832003-07-14 16:52:07 +000016966/* Override any gcc2 internal prototype to avoid an error. */
16967#ifdef __cplusplus
16968extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016969{
John Criswell47fdd832003-07-14 16:52:07 +000016970#endif
16971/* We use char because int might match the return type of a gcc2
16972 builtin and then its argument prototype would still apply. */
16973char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016974/* The GNU C library defines this for functions which it implements
16975 to always fail with ENOSYS. Some functions are actually named
16976 something starting with __ and the normal name is an alias. */
16977#if defined (__stub_shl_load) || defined (__stub___shl_load)
16978choke me
16979#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016980char (*f) () = shl_load;
16981#endif
16982#ifdef __cplusplus
16983}
John Criswell47fdd832003-07-14 16:52:07 +000016984#endif
16985
John Criswell0c38eaf2003-09-10 15:17:25 +000016986int
16987main ()
16988{
16989return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016990 ;
16991 return 0;
16992}
16993_ACEOF
16994rm -f conftest.$ac_objext conftest$ac_exeext
16995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16996 (eval $ac_link) 2>&5
16997 ac_status=$?
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); } &&
17000 { ac_try='test -s conftest$ac_exeext'
17001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17002 (eval $ac_try) 2>&5
17003 ac_status=$?
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); }; }; then
17006 ac_cv_func_shl_load=yes
17007else
17008 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017009sed 's/^/| /' conftest.$ac_ext >&5
17010
John Criswell47fdd832003-07-14 16:52:07 +000017011ac_cv_func_shl_load=no
17012fi
17013rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17014fi
17015echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17016echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17017if test $ac_cv_func_shl_load = yes; then
17018 lt_cv_dlopen="shl_load"
17019else
17020 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17021echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17022if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17023 echo $ECHO_N "(cached) $ECHO_C" >&6
17024else
17025 ac_check_lib_save_LIBS=$LIBS
17026LIBS="-ldld $LIBS"
17027cat >conftest.$ac_ext <<_ACEOF
17028#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017029/* confdefs.h. */
17030_ACEOF
17031cat confdefs.h >>conftest.$ac_ext
17032cat >>conftest.$ac_ext <<_ACEOF
17033/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017034
17035/* Override any gcc2 internal prototype to avoid an error. */
17036#ifdef __cplusplus
17037extern "C"
17038#endif
17039/* We use char because int might match the return type of a gcc2
17040 builtin and then its argument prototype would still apply. */
17041char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017042int
17043main ()
17044{
17045shl_load ();
17046 ;
17047 return 0;
17048}
17049_ACEOF
17050rm -f conftest.$ac_objext conftest$ac_exeext
17051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17052 (eval $ac_link) 2>&5
17053 ac_status=$?
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } &&
17056 { ac_try='test -s conftest$ac_exeext'
17057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17058 (eval $ac_try) 2>&5
17059 ac_status=$?
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); }; }; then
17062 ac_cv_lib_dld_shl_load=yes
17063else
17064 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017065sed 's/^/| /' conftest.$ac_ext >&5
17066
John Criswell47fdd832003-07-14 16:52:07 +000017067ac_cv_lib_dld_shl_load=no
17068fi
17069rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17070LIBS=$ac_check_lib_save_LIBS
17071fi
17072echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17073echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17074if test $ac_cv_lib_dld_shl_load = yes; then
17075 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17076else
17077 echo "$as_me:$LINENO: checking for dlopen" >&5
17078echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17079if test "${ac_cv_func_dlopen+set}" = set; then
17080 echo $ECHO_N "(cached) $ECHO_C" >&6
17081else
17082 cat >conftest.$ac_ext <<_ACEOF
17083#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017084/* confdefs.h. */
17085_ACEOF
17086cat confdefs.h >>conftest.$ac_ext
17087cat >>conftest.$ac_ext <<_ACEOF
17088/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017089/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017090 which can conflict with char dlopen (); below.
17091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17092 <limits.h> exists even on freestanding compilers. */
17093#ifdef __STDC__
17094# include <limits.h>
17095#else
17096# include <assert.h>
17097#endif
John Criswell47fdd832003-07-14 16:52:07 +000017098/* Override any gcc2 internal prototype to avoid an error. */
17099#ifdef __cplusplus
17100extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017101{
John Criswell47fdd832003-07-14 16:52:07 +000017102#endif
17103/* We use char because int might match the return type of a gcc2
17104 builtin and then its argument prototype would still apply. */
17105char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017106/* The GNU C library defines this for functions which it implements
17107 to always fail with ENOSYS. Some functions are actually named
17108 something starting with __ and the normal name is an alias. */
17109#if defined (__stub_dlopen) || defined (__stub___dlopen)
17110choke me
17111#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017112char (*f) () = dlopen;
17113#endif
17114#ifdef __cplusplus
17115}
John Criswell47fdd832003-07-14 16:52:07 +000017116#endif
17117
John Criswell0c38eaf2003-09-10 15:17:25 +000017118int
17119main ()
17120{
17121return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017122 ;
17123 return 0;
17124}
17125_ACEOF
17126rm -f conftest.$ac_objext conftest$ac_exeext
17127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17128 (eval $ac_link) 2>&5
17129 ac_status=$?
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); } &&
17132 { ac_try='test -s conftest$ac_exeext'
17133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17134 (eval $ac_try) 2>&5
17135 ac_status=$?
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); }; }; then
17138 ac_cv_func_dlopen=yes
17139else
17140 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017141sed 's/^/| /' conftest.$ac_ext >&5
17142
John Criswell47fdd832003-07-14 16:52:07 +000017143ac_cv_func_dlopen=no
17144fi
17145rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17146fi
17147echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17148echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17149if test $ac_cv_func_dlopen = yes; then
17150 lt_cv_dlopen="dlopen"
17151else
17152 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17153echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17154if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17155 echo $ECHO_N "(cached) $ECHO_C" >&6
17156else
17157 ac_check_lib_save_LIBS=$LIBS
17158LIBS="-ldl $LIBS"
17159cat >conftest.$ac_ext <<_ACEOF
17160#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017161/* confdefs.h. */
17162_ACEOF
17163cat confdefs.h >>conftest.$ac_ext
17164cat >>conftest.$ac_ext <<_ACEOF
17165/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017166
17167/* Override any gcc2 internal prototype to avoid an error. */
17168#ifdef __cplusplus
17169extern "C"
17170#endif
17171/* We use char because int might match the return type of a gcc2
17172 builtin and then its argument prototype would still apply. */
17173char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017174int
17175main ()
17176{
17177dlopen ();
17178 ;
17179 return 0;
17180}
17181_ACEOF
17182rm -f conftest.$ac_objext conftest$ac_exeext
17183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17184 (eval $ac_link) 2>&5
17185 ac_status=$?
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); } &&
17188 { ac_try='test -s conftest$ac_exeext'
17189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17190 (eval $ac_try) 2>&5
17191 ac_status=$?
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); }; }; then
17194 ac_cv_lib_dl_dlopen=yes
17195else
17196 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017197sed 's/^/| /' conftest.$ac_ext >&5
17198
John Criswell47fdd832003-07-14 16:52:07 +000017199ac_cv_lib_dl_dlopen=no
17200fi
17201rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17202LIBS=$ac_check_lib_save_LIBS
17203fi
17204echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17205echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17206if test $ac_cv_lib_dl_dlopen = yes; then
17207 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17208else
17209 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17210echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17211if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17212 echo $ECHO_N "(cached) $ECHO_C" >&6
17213else
17214 ac_check_lib_save_LIBS=$LIBS
17215LIBS="-lsvld $LIBS"
17216cat >conftest.$ac_ext <<_ACEOF
17217#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017218/* confdefs.h. */
17219_ACEOF
17220cat confdefs.h >>conftest.$ac_ext
17221cat >>conftest.$ac_ext <<_ACEOF
17222/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017223
17224/* Override any gcc2 internal prototype to avoid an error. */
17225#ifdef __cplusplus
17226extern "C"
17227#endif
17228/* We use char because int might match the return type of a gcc2
17229 builtin and then its argument prototype would still apply. */
17230char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017231int
17232main ()
17233{
17234dlopen ();
17235 ;
17236 return 0;
17237}
17238_ACEOF
17239rm -f conftest.$ac_objext conftest$ac_exeext
17240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17241 (eval $ac_link) 2>&5
17242 ac_status=$?
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); } &&
17245 { ac_try='test -s conftest$ac_exeext'
17246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17247 (eval $ac_try) 2>&5
17248 ac_status=$?
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); }; }; then
17251 ac_cv_lib_svld_dlopen=yes
17252else
17253 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017254sed 's/^/| /' conftest.$ac_ext >&5
17255
John Criswell47fdd832003-07-14 16:52:07 +000017256ac_cv_lib_svld_dlopen=no
17257fi
17258rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17259LIBS=$ac_check_lib_save_LIBS
17260fi
17261echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17262echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17263if test $ac_cv_lib_svld_dlopen = yes; then
17264 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17265else
17266 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17267echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17268if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17269 echo $ECHO_N "(cached) $ECHO_C" >&6
17270else
17271 ac_check_lib_save_LIBS=$LIBS
17272LIBS="-ldld $LIBS"
17273cat >conftest.$ac_ext <<_ACEOF
17274#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017275/* confdefs.h. */
17276_ACEOF
17277cat confdefs.h >>conftest.$ac_ext
17278cat >>conftest.$ac_ext <<_ACEOF
17279/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017280
17281/* Override any gcc2 internal prototype to avoid an error. */
17282#ifdef __cplusplus
17283extern "C"
17284#endif
17285/* We use char because int might match the return type of a gcc2
17286 builtin and then its argument prototype would still apply. */
17287char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017288int
17289main ()
17290{
17291dld_link ();
17292 ;
17293 return 0;
17294}
17295_ACEOF
17296rm -f conftest.$ac_objext conftest$ac_exeext
17297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17298 (eval $ac_link) 2>&5
17299 ac_status=$?
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); } &&
17302 { ac_try='test -s conftest$ac_exeext'
17303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17304 (eval $ac_try) 2>&5
17305 ac_status=$?
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); }; }; then
17308 ac_cv_lib_dld_dld_link=yes
17309else
17310 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017311sed 's/^/| /' conftest.$ac_ext >&5
17312
John Criswell47fdd832003-07-14 16:52:07 +000017313ac_cv_lib_dld_dld_link=no
17314fi
17315rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17316LIBS=$ac_check_lib_save_LIBS
17317fi
17318echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17319echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17320if test $ac_cv_lib_dld_dld_link = yes; then
17321 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17322fi
17323
17324
17325fi
17326
17327
17328fi
17329
17330
17331fi
17332
17333
17334fi
17335
17336
17337fi
17338
17339 ;;
17340 esac
17341
17342 if test "x$lt_cv_dlopen" != xno; then
17343 enable_dlopen=yes
17344 else
17345 enable_dlopen=no
17346 fi
17347
17348 case $lt_cv_dlopen in
17349 dlopen)
17350 save_CPPFLAGS="$CPPFLAGS"
17351 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17352
17353 save_LDFLAGS="$LDFLAGS"
17354 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17355
17356 save_LIBS="$LIBS"
17357 LIBS="$lt_cv_dlopen_libs $LIBS"
17358
17359 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17360echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17361if test "${lt_cv_dlopen_self+set}" = set; then
17362 echo $ECHO_N "(cached) $ECHO_C" >&6
17363else
17364 if test "$cross_compiling" = yes; then :
17365 lt_cv_dlopen_self=cross
17366else
17367 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17368 lt_status=$lt_dlunknown
17369 cat > conftest.$ac_ext <<EOF
John Criswell78227592003-09-30 19:41:15 +000017370#line 17376 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017371#include "confdefs.h"
17372
17373#if HAVE_DLFCN_H
17374#include <dlfcn.h>
17375#endif
17376
17377#include <stdio.h>
17378
17379#ifdef RTLD_GLOBAL
17380# define LT_DLGLOBAL RTLD_GLOBAL
17381#else
17382# ifdef DL_GLOBAL
17383# define LT_DLGLOBAL DL_GLOBAL
17384# else
17385# define LT_DLGLOBAL 0
17386# endif
17387#endif
17388
17389/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17390 find out it does not work in some platform. */
17391#ifndef LT_DLLAZY_OR_NOW
17392# ifdef RTLD_LAZY
17393# define LT_DLLAZY_OR_NOW RTLD_LAZY
17394# else
17395# ifdef DL_LAZY
17396# define LT_DLLAZY_OR_NOW DL_LAZY
17397# else
17398# ifdef RTLD_NOW
17399# define LT_DLLAZY_OR_NOW RTLD_NOW
17400# else
17401# ifdef DL_NOW
17402# define LT_DLLAZY_OR_NOW DL_NOW
17403# else
17404# define LT_DLLAZY_OR_NOW 0
17405# endif
17406# endif
17407# endif
17408# endif
17409#endif
17410
17411#ifdef __cplusplus
17412extern "C" void exit (int);
17413#endif
17414
17415void fnord() { int i=42;}
17416int main ()
17417{
17418 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17419 int status = $lt_dlunknown;
17420
17421 if (self)
17422 {
17423 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17424 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17425 /* dlclose (self); */
17426 }
17427
17428 exit (status);
17429}
17430EOF
17431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17432 (eval $ac_link) 2>&5
17433 ac_status=$?
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17436 (./conftest; exit; ) 2>/dev/null
17437 lt_status=$?
17438 case x$lt_status in
17439 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17440 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17441 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17442 esac
17443 else :
17444 # compilation failed
17445 lt_cv_dlopen_self=no
17446 fi
17447fi
17448rm -fr conftest*
17449
17450
17451fi
17452echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17453echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17454
17455 if test "x$lt_cv_dlopen_self" = xyes; then
17456 LDFLAGS="$LDFLAGS $link_static_flag"
17457 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17458echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17459if test "${lt_cv_dlopen_self_static+set}" = set; then
17460 echo $ECHO_N "(cached) $ECHO_C" >&6
17461else
17462 if test "$cross_compiling" = yes; then :
17463 lt_cv_dlopen_self_static=cross
17464else
17465 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17466 lt_status=$lt_dlunknown
17467 cat > conftest.$ac_ext <<EOF
John Criswell78227592003-09-30 19:41:15 +000017468#line 17474 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017469#include "confdefs.h"
17470
17471#if HAVE_DLFCN_H
17472#include <dlfcn.h>
17473#endif
17474
17475#include <stdio.h>
17476
17477#ifdef RTLD_GLOBAL
17478# define LT_DLGLOBAL RTLD_GLOBAL
17479#else
17480# ifdef DL_GLOBAL
17481# define LT_DLGLOBAL DL_GLOBAL
17482# else
17483# define LT_DLGLOBAL 0
17484# endif
17485#endif
17486
17487/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17488 find out it does not work in some platform. */
17489#ifndef LT_DLLAZY_OR_NOW
17490# ifdef RTLD_LAZY
17491# define LT_DLLAZY_OR_NOW RTLD_LAZY
17492# else
17493# ifdef DL_LAZY
17494# define LT_DLLAZY_OR_NOW DL_LAZY
17495# else
17496# ifdef RTLD_NOW
17497# define LT_DLLAZY_OR_NOW RTLD_NOW
17498# else
17499# ifdef DL_NOW
17500# define LT_DLLAZY_OR_NOW DL_NOW
17501# else
17502# define LT_DLLAZY_OR_NOW 0
17503# endif
17504# endif
17505# endif
17506# endif
17507#endif
17508
17509#ifdef __cplusplus
17510extern "C" void exit (int);
17511#endif
17512
17513void fnord() { int i=42;}
17514int main ()
17515{
17516 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17517 int status = $lt_dlunknown;
17518
17519 if (self)
17520 {
17521 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17522 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17523 /* dlclose (self); */
17524 }
17525
17526 exit (status);
17527}
17528EOF
17529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17530 (eval $ac_link) 2>&5
17531 ac_status=$?
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17534 (./conftest; exit; ) 2>/dev/null
17535 lt_status=$?
17536 case x$lt_status in
17537 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17538 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17539 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17540 esac
17541 else :
17542 # compilation failed
17543 lt_cv_dlopen_self_static=no
17544 fi
17545fi
17546rm -fr conftest*
17547
17548
17549fi
17550echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17551echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17552 fi
17553
17554 CPPFLAGS="$save_CPPFLAGS"
17555 LDFLAGS="$save_LDFLAGS"
17556 LIBS="$save_LIBS"
17557 ;;
17558 esac
17559
17560 case $lt_cv_dlopen_self in
17561 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17562 *) enable_dlopen_self=unknown ;;
17563 esac
17564
17565 case $lt_cv_dlopen_self_static in
17566 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17567 *) enable_dlopen_self_static=unknown ;;
17568 esac
17569fi
17570
17571
17572# The else clause should only fire when bootstrapping the
17573# libtool distribution, otherwise you forgot to ship ltmain.sh
17574# with your package, and you will get complaints that there are
17575# no rules to generate ltmain.sh.
17576if test -f "$ltmain"; then
17577 # See if we are running on zsh, and set the options which allow our commands through
17578 # without removal of \ escapes.
17579 if test -n "${ZSH_VERSION+set}" ; then
17580 setopt NO_GLOB_SUBST
17581 fi
17582 # Now quote all the things that may contain metacharacters while being
17583 # careful not to overquote the AC_SUBSTed values. We take copies of the
17584 # variables and quote the copies for generation of the libtool script.
17585 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17586 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17587 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17588 deplibs_check_method reload_flag reload_cmds need_locks \
17589 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17590 lt_cv_sys_global_symbol_to_c_name_address \
17591 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17592 old_postinstall_cmds old_postuninstall_cmds \
17593 compiler_GCJ \
17594 CC_GCJ \
17595 LD_GCJ \
17596 lt_prog_compiler_wl_GCJ \
17597 lt_prog_compiler_pic_GCJ \
17598 lt_prog_compiler_static_GCJ \
17599 lt_prog_compiler_no_builtin_flag_GCJ \
17600 export_dynamic_flag_spec_GCJ \
17601 thread_safe_flag_spec_GCJ \
17602 whole_archive_flag_spec_GCJ \
17603 enable_shared_with_static_runtimes_GCJ \
17604 old_archive_cmds_GCJ \
17605 old_archive_from_new_cmds_GCJ \
17606 predep_objects_GCJ \
17607 postdep_objects_GCJ \
17608 predeps_GCJ \
17609 postdeps_GCJ \
17610 compiler_lib_search_path_GCJ \
17611 archive_cmds_GCJ \
17612 archive_expsym_cmds_GCJ \
17613 postinstall_cmds_GCJ \
17614 postuninstall_cmds_GCJ \
17615 old_archive_from_expsyms_cmds_GCJ \
17616 allow_undefined_flag_GCJ \
17617 no_undefined_flag_GCJ \
17618 export_symbols_cmds_GCJ \
17619 hardcode_libdir_flag_spec_GCJ \
17620 hardcode_libdir_flag_spec_ld_GCJ \
17621 hardcode_libdir_separator_GCJ \
17622 hardcode_automatic_GCJ \
17623 module_cmds_GCJ \
17624 module_expsym_cmds_GCJ \
17625 lt_cv_prog_compiler_c_o_GCJ \
17626 exclude_expsyms_GCJ \
17627 include_expsyms_GCJ; do
17628
17629 case $var in
17630 old_archive_cmds_GCJ | \
17631 old_archive_from_new_cmds_GCJ | \
17632 archive_cmds_GCJ | \
17633 archive_expsym_cmds_GCJ | \
17634 module_cmds_GCJ | \
17635 module_expsym_cmds_GCJ | \
17636 old_archive_from_expsyms_cmds_GCJ | \
17637 export_symbols_cmds_GCJ | \
17638 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17639 postinstall_cmds | postuninstall_cmds | \
17640 old_postinstall_cmds | old_postuninstall_cmds | \
17641 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17642 # Double-quote double-evaled strings.
17643 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17644 ;;
17645 *)
17646 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17647 ;;
17648 esac
17649 done
17650
17651 case $lt_echo in
17652 *'\$0 --fallback-echo"')
17653 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17654 ;;
17655 esac
17656
17657cfgfile="$ofile"
17658
17659 cat <<__EOF__ >> "$cfgfile"
17660# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17661
17662# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17663
17664# Shell to use when invoking shell scripts.
17665SHELL=$lt_SHELL
17666
17667# Whether or not to build shared libraries.
17668build_libtool_libs=$enable_shared
17669
17670# Whether or not to build static libraries.
17671build_old_libs=$enable_static
17672
17673# Whether or not to add -lc for building shared libraries.
17674build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17675
17676# Whether or not to disallow shared libs when runtime libs are static
17677allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17678
17679# Whether or not to optimize for fast installation.
17680fast_install=$enable_fast_install
17681
17682# The host system.
17683host_alias=$host_alias
17684host=$host
17685
17686# An echo program that does not interpret backslashes.
17687echo=$lt_echo
17688
17689# The archiver.
17690AR=$lt_AR
17691AR_FLAGS=$lt_AR_FLAGS
17692
17693# A C compiler.
17694LTCC=$lt_LTCC
17695
17696# A language-specific compiler.
17697CC=$lt_compiler_GCJ
17698
17699# Is the compiler the GNU C compiler?
17700with_gcc=$GCC_GCJ
17701
17702# An ERE matcher.
17703EGREP=$lt_EGREP
17704
17705# The linker used to build libraries.
17706LD=$lt_LD_GCJ
17707
17708# Whether we need hard or soft links.
17709LN_S=$lt_LN_S
17710
17711# A BSD-compatible nm program.
17712NM=$lt_NM
17713
17714# A symbol stripping program
17715STRIP=$STRIP
17716
17717# Used to examine libraries when file_magic_cmd begins "file"
17718MAGIC_CMD=$MAGIC_CMD
17719
17720# Used on cygwin: DLL creation program.
17721DLLTOOL="$DLLTOOL"
17722
17723# Used on cygwin: object dumper.
17724OBJDUMP="$OBJDUMP"
17725
17726# Used on cygwin: assembler.
17727AS="$AS"
17728
17729# The name of the directory that contains temporary libtool files.
17730objdir=$objdir
17731
17732# How to create reloadable object files.
17733reload_flag=$lt_reload_flag
17734reload_cmds=$lt_reload_cmds
17735
17736# How to pass a linker flag through the compiler.
17737wl=$lt_lt_prog_compiler_wl_GCJ
17738
17739# Object file suffix (normally "o").
17740objext="$ac_objext"
17741
17742# Old archive suffix (normally "a").
17743libext="$libext"
17744
17745# Shared library suffix (normally ".so").
17746shrext='$shrext'
17747
17748# Executable file suffix (normally "").
17749exeext="$exeext"
17750
17751# Additional compiler flags for building library objects.
17752pic_flag=$lt_lt_prog_compiler_pic_GCJ
17753pic_mode=$pic_mode
17754
17755# What is the maximum length of a command?
17756max_cmd_len=$lt_cv_sys_max_cmd_len
17757
17758# Does compiler simultaneously support -c and -o options?
17759compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17760
17761# Must we lock files when doing compilation ?
17762need_locks=$lt_need_locks
17763
17764# Do we need the lib prefix for modules?
17765need_lib_prefix=$need_lib_prefix
17766
17767# Do we need a version for libraries?
17768need_version=$need_version
17769
17770# Whether dlopen is supported.
17771dlopen_support=$enable_dlopen
17772
17773# Whether dlopen of programs is supported.
17774dlopen_self=$enable_dlopen_self
17775
17776# Whether dlopen of statically linked programs is supported.
17777dlopen_self_static=$enable_dlopen_self_static
17778
17779# Compiler flag to prevent dynamic linking.
17780link_static_flag=$lt_lt_prog_compiler_static_GCJ
17781
17782# Compiler flag to turn off builtin functions.
17783no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17784
17785# Compiler flag to allow reflexive dlopens.
17786export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17787
17788# Compiler flag to generate shared objects directly from archives.
17789whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17790
17791# Compiler flag to generate thread-safe objects.
17792thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17793
17794# Library versioning type.
17795version_type=$version_type
17796
17797# Format of library name prefix.
17798libname_spec=$lt_libname_spec
17799
17800# List of archive names. First name is the real one, the rest are links.
17801# The last name is the one that the linker finds with -lNAME.
17802library_names_spec=$lt_library_names_spec
17803
17804# The coded name of the library, if different from the real name.
17805soname_spec=$lt_soname_spec
17806
17807# Commands used to build and install an old-style archive.
17808RANLIB=$lt_RANLIB
17809old_archive_cmds=$lt_old_archive_cmds_GCJ
17810old_postinstall_cmds=$lt_old_postinstall_cmds
17811old_postuninstall_cmds=$lt_old_postuninstall_cmds
17812
17813# Create an old-style archive from a shared archive.
17814old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17815
17816# Create a temporary old-style archive to link instead of a shared archive.
17817old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17818
17819# Commands used to build and install a shared archive.
17820archive_cmds=$lt_archive_cmds_GCJ
17821archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17822postinstall_cmds=$lt_postinstall_cmds
17823postuninstall_cmds=$lt_postuninstall_cmds
17824
17825# Commands used to build a loadable module (assumed same as above if empty)
17826module_cmds=$lt_module_cmds_GCJ
17827module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17828
17829# Commands to strip libraries.
17830old_striplib=$lt_old_striplib
17831striplib=$lt_striplib
17832
17833# Dependencies to place before the objects being linked to create a
17834# shared library.
17835predep_objects=$lt_predep_objects_GCJ
17836
17837# Dependencies to place after the objects being linked to create a
17838# shared library.
17839postdep_objects=$lt_postdep_objects_GCJ
17840
17841# Dependencies to place before the objects being linked to create a
17842# shared library.
17843predeps=$lt_predeps_GCJ
17844
17845# Dependencies to place after the objects being linked to create a
17846# shared library.
17847postdeps=$lt_postdeps_GCJ
17848
17849# The library search path used internally by the compiler when linking
17850# a shared library.
17851compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17852
17853# Method to check whether dependent libraries are shared objects.
17854deplibs_check_method=$lt_deplibs_check_method
17855
17856# Command to use when deplibs_check_method == file_magic.
17857file_magic_cmd=$lt_file_magic_cmd
17858
17859# Flag that allows shared libraries with undefined symbols to be built.
17860allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17861
17862# Flag that forces no undefined symbols.
17863no_undefined_flag=$lt_no_undefined_flag_GCJ
17864
17865# Commands used to finish a libtool library installation in a directory.
17866finish_cmds=$lt_finish_cmds
17867
17868# Same as above, but a single script fragment to be evaled but not shown.
17869finish_eval=$lt_finish_eval
17870
17871# Take the output of nm and produce a listing of raw symbols and C names.
17872global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17873
17874# Transform the output of nm in a proper C declaration
17875global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17876
17877# Transform the output of nm in a C name address pair
17878global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17879
17880# This is the shared library runtime path variable.
17881runpath_var=$runpath_var
17882
17883# This is the shared library path variable.
17884shlibpath_var=$shlibpath_var
17885
17886# Is shlibpath searched before the hard-coded library search path?
17887shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17888
17889# How to hardcode a shared library path into an executable.
17890hardcode_action=$hardcode_action_GCJ
17891
17892# Whether we should hardcode library paths into libraries.
17893hardcode_into_libs=$hardcode_into_libs
17894
17895# Flag to hardcode \$libdir into a binary during linking.
17896# This must work even if \$libdir does not exist.
17897hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17898
17899# If ld is used when linking, flag to hardcode \$libdir into
17900# a binary during linking. This must work even if \$libdir does
17901# not exist.
17902hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17903
17904# Whether we need a single -rpath flag with a separated argument.
17905hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17906
17907# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17908# resulting binary.
17909hardcode_direct=$hardcode_direct_GCJ
17910
17911# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17912# resulting binary.
17913hardcode_minus_L=$hardcode_minus_L_GCJ
17914
17915# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17916# the resulting binary.
17917hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17918
17919# Set to yes if building a shared library automatically hardcodes DIR into the library
17920# and all subsequent libraries and executables linked against it.
17921hardcode_automatic=$hardcode_automatic_GCJ
17922
17923# Variables whose values should be saved in libtool wrapper scripts and
17924# restored at relink time.
17925variables_saved_for_relink="$variables_saved_for_relink"
17926
17927# Whether libtool must link a program against all its dependency libraries.
17928link_all_deplibs=$link_all_deplibs_GCJ
17929
17930# Compile-time system search path for libraries
17931sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17932
17933# Run-time system search path for libraries
17934sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17935
17936# Fix the shell variable \$srcfile for the compiler.
17937fix_srcfile_path="$fix_srcfile_path_GCJ"
17938
17939# Set to yes if exported symbols are required.
17940always_export_symbols=$always_export_symbols_GCJ
17941
17942# The commands to list exported symbols.
17943export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17944
17945# The commands to extract the exported symbol list from a shared archive.
17946extract_expsyms_cmds=$lt_extract_expsyms_cmds
17947
17948# Symbols that should not be listed in the preloaded symbols.
17949exclude_expsyms=$lt_exclude_expsyms_GCJ
17950
17951# Symbols that must always be exported.
17952include_expsyms=$lt_include_expsyms_GCJ
17953
17954# ### END LIBTOOL TAG CONFIG: $tagname
17955
17956__EOF__
17957
17958
17959else
17960 # If there is no Makefile yet, we rely on a make rule to execute
17961 # `config.status --recheck' to rerun these tests and create the
17962 # libtool script then.
17963 test -f Makefile && make "$ltmain"
17964fi
17965
17966
17967ac_ext=c
17968ac_cpp='$CPP $CPPFLAGS'
17969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17971ac_compiler_gnu=$ac_cv_c_compiler_gnu
17972
17973CC="$lt_save_CC"
17974
17975 else
17976 tagname=""
17977 fi
17978 ;;
17979
17980 RC)
17981
17982
17983
17984# Source file extension for RC test sources.
17985ac_ext=rc
17986
17987# Object file extension for compiled RC test sources.
17988objext=o
17989objext_RC=$objext
17990
17991# Code to be used in simple compile tests
17992lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17993
17994# Code to be used in simple link tests
17995lt_simple_link_test_code="$lt_simple_compile_test_code"
17996
17997# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17998
17999# If no C compiler was specified, use CC.
18000LTCC=${LTCC-"$CC"}
18001
18002# Allow CC to be a program name with arguments.
18003compiler=$CC
18004
18005
18006# Allow CC to be a program name with arguments.
18007lt_save_CC="$CC"
18008CC=${RC-"windres"}
18009compiler=$CC
18010compiler_RC=$CC
18011lt_cv_prog_compiler_c_o_RC=yes
18012
18013# The else clause should only fire when bootstrapping the
18014# libtool distribution, otherwise you forgot to ship ltmain.sh
18015# with your package, and you will get complaints that there are
18016# no rules to generate ltmain.sh.
18017if test -f "$ltmain"; then
18018 # See if we are running on zsh, and set the options which allow our commands through
18019 # without removal of \ escapes.
18020 if test -n "${ZSH_VERSION+set}" ; then
18021 setopt NO_GLOB_SUBST
18022 fi
18023 # Now quote all the things that may contain metacharacters while being
18024 # careful not to overquote the AC_SUBSTed values. We take copies of the
18025 # variables and quote the copies for generation of the libtool script.
18026 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18027 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18028 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18029 deplibs_check_method reload_flag reload_cmds need_locks \
18030 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18031 lt_cv_sys_global_symbol_to_c_name_address \
18032 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18033 old_postinstall_cmds old_postuninstall_cmds \
18034 compiler_RC \
18035 CC_RC \
18036 LD_RC \
18037 lt_prog_compiler_wl_RC \
18038 lt_prog_compiler_pic_RC \
18039 lt_prog_compiler_static_RC \
18040 lt_prog_compiler_no_builtin_flag_RC \
18041 export_dynamic_flag_spec_RC \
18042 thread_safe_flag_spec_RC \
18043 whole_archive_flag_spec_RC \
18044 enable_shared_with_static_runtimes_RC \
18045 old_archive_cmds_RC \
18046 old_archive_from_new_cmds_RC \
18047 predep_objects_RC \
18048 postdep_objects_RC \
18049 predeps_RC \
18050 postdeps_RC \
18051 compiler_lib_search_path_RC \
18052 archive_cmds_RC \
18053 archive_expsym_cmds_RC \
18054 postinstall_cmds_RC \
18055 postuninstall_cmds_RC \
18056 old_archive_from_expsyms_cmds_RC \
18057 allow_undefined_flag_RC \
18058 no_undefined_flag_RC \
18059 export_symbols_cmds_RC \
18060 hardcode_libdir_flag_spec_RC \
18061 hardcode_libdir_flag_spec_ld_RC \
18062 hardcode_libdir_separator_RC \
18063 hardcode_automatic_RC \
18064 module_cmds_RC \
18065 module_expsym_cmds_RC \
18066 lt_cv_prog_compiler_c_o_RC \
18067 exclude_expsyms_RC \
18068 include_expsyms_RC; do
18069
18070 case $var in
18071 old_archive_cmds_RC | \
18072 old_archive_from_new_cmds_RC | \
18073 archive_cmds_RC | \
18074 archive_expsym_cmds_RC | \
18075 module_cmds_RC | \
18076 module_expsym_cmds_RC | \
18077 old_archive_from_expsyms_cmds_RC | \
18078 export_symbols_cmds_RC | \
18079 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18080 postinstall_cmds | postuninstall_cmds | \
18081 old_postinstall_cmds | old_postuninstall_cmds | \
18082 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18083 # Double-quote double-evaled strings.
18084 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18085 ;;
18086 *)
18087 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18088 ;;
18089 esac
18090 done
18091
18092 case $lt_echo in
18093 *'\$0 --fallback-echo"')
18094 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18095 ;;
18096 esac
18097
18098cfgfile="$ofile"
18099
18100 cat <<__EOF__ >> "$cfgfile"
18101# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18102
18103# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18104
18105# Shell to use when invoking shell scripts.
18106SHELL=$lt_SHELL
18107
18108# Whether or not to build shared libraries.
18109build_libtool_libs=$enable_shared
18110
18111# Whether or not to build static libraries.
18112build_old_libs=$enable_static
18113
18114# Whether or not to add -lc for building shared libraries.
18115build_libtool_need_lc=$archive_cmds_need_lc_RC
18116
18117# Whether or not to disallow shared libs when runtime libs are static
18118allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18119
18120# Whether or not to optimize for fast installation.
18121fast_install=$enable_fast_install
18122
18123# The host system.
18124host_alias=$host_alias
18125host=$host
18126
18127# An echo program that does not interpret backslashes.
18128echo=$lt_echo
18129
18130# The archiver.
18131AR=$lt_AR
18132AR_FLAGS=$lt_AR_FLAGS
18133
18134# A C compiler.
18135LTCC=$lt_LTCC
18136
18137# A language-specific compiler.
18138CC=$lt_compiler_RC
18139
18140# Is the compiler the GNU C compiler?
18141with_gcc=$GCC_RC
18142
18143# An ERE matcher.
18144EGREP=$lt_EGREP
18145
18146# The linker used to build libraries.
18147LD=$lt_LD_RC
18148
18149# Whether we need hard or soft links.
18150LN_S=$lt_LN_S
18151
18152# A BSD-compatible nm program.
18153NM=$lt_NM
18154
18155# A symbol stripping program
18156STRIP=$STRIP
18157
18158# Used to examine libraries when file_magic_cmd begins "file"
18159MAGIC_CMD=$MAGIC_CMD
18160
18161# Used on cygwin: DLL creation program.
18162DLLTOOL="$DLLTOOL"
18163
18164# Used on cygwin: object dumper.
18165OBJDUMP="$OBJDUMP"
18166
18167# Used on cygwin: assembler.
18168AS="$AS"
18169
18170# The name of the directory that contains temporary libtool files.
18171objdir=$objdir
18172
18173# How to create reloadable object files.
18174reload_flag=$lt_reload_flag
18175reload_cmds=$lt_reload_cmds
18176
18177# How to pass a linker flag through the compiler.
18178wl=$lt_lt_prog_compiler_wl_RC
18179
18180# Object file suffix (normally "o").
18181objext="$ac_objext"
18182
18183# Old archive suffix (normally "a").
18184libext="$libext"
18185
18186# Shared library suffix (normally ".so").
18187shrext='$shrext'
18188
18189# Executable file suffix (normally "").
18190exeext="$exeext"
18191
18192# Additional compiler flags for building library objects.
18193pic_flag=$lt_lt_prog_compiler_pic_RC
18194pic_mode=$pic_mode
18195
18196# What is the maximum length of a command?
18197max_cmd_len=$lt_cv_sys_max_cmd_len
18198
18199# Does compiler simultaneously support -c and -o options?
18200compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18201
18202# Must we lock files when doing compilation ?
18203need_locks=$lt_need_locks
18204
18205# Do we need the lib prefix for modules?
18206need_lib_prefix=$need_lib_prefix
18207
18208# Do we need a version for libraries?
18209need_version=$need_version
18210
18211# Whether dlopen is supported.
18212dlopen_support=$enable_dlopen
18213
18214# Whether dlopen of programs is supported.
18215dlopen_self=$enable_dlopen_self
18216
18217# Whether dlopen of statically linked programs is supported.
18218dlopen_self_static=$enable_dlopen_self_static
18219
18220# Compiler flag to prevent dynamic linking.
18221link_static_flag=$lt_lt_prog_compiler_static_RC
18222
18223# Compiler flag to turn off builtin functions.
18224no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18225
18226# Compiler flag to allow reflexive dlopens.
18227export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18228
18229# Compiler flag to generate shared objects directly from archives.
18230whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18231
18232# Compiler flag to generate thread-safe objects.
18233thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18234
18235# Library versioning type.
18236version_type=$version_type
18237
18238# Format of library name prefix.
18239libname_spec=$lt_libname_spec
18240
18241# List of archive names. First name is the real one, the rest are links.
18242# The last name is the one that the linker finds with -lNAME.
18243library_names_spec=$lt_library_names_spec
18244
18245# The coded name of the library, if different from the real name.
18246soname_spec=$lt_soname_spec
18247
18248# Commands used to build and install an old-style archive.
18249RANLIB=$lt_RANLIB
18250old_archive_cmds=$lt_old_archive_cmds_RC
18251old_postinstall_cmds=$lt_old_postinstall_cmds
18252old_postuninstall_cmds=$lt_old_postuninstall_cmds
18253
18254# Create an old-style archive from a shared archive.
18255old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18256
18257# Create a temporary old-style archive to link instead of a shared archive.
18258old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18259
18260# Commands used to build and install a shared archive.
18261archive_cmds=$lt_archive_cmds_RC
18262archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18263postinstall_cmds=$lt_postinstall_cmds
18264postuninstall_cmds=$lt_postuninstall_cmds
18265
18266# Commands used to build a loadable module (assumed same as above if empty)
18267module_cmds=$lt_module_cmds_RC
18268module_expsym_cmds=$lt_module_expsym_cmds_RC
18269
18270# Commands to strip libraries.
18271old_striplib=$lt_old_striplib
18272striplib=$lt_striplib
18273
18274# Dependencies to place before the objects being linked to create a
18275# shared library.
18276predep_objects=$lt_predep_objects_RC
18277
18278# Dependencies to place after the objects being linked to create a
18279# shared library.
18280postdep_objects=$lt_postdep_objects_RC
18281
18282# Dependencies to place before the objects being linked to create a
18283# shared library.
18284predeps=$lt_predeps_RC
18285
18286# Dependencies to place after the objects being linked to create a
18287# shared library.
18288postdeps=$lt_postdeps_RC
18289
18290# The library search path used internally by the compiler when linking
18291# a shared library.
18292compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18293
18294# Method to check whether dependent libraries are shared objects.
18295deplibs_check_method=$lt_deplibs_check_method
18296
18297# Command to use when deplibs_check_method == file_magic.
18298file_magic_cmd=$lt_file_magic_cmd
18299
18300# Flag that allows shared libraries with undefined symbols to be built.
18301allow_undefined_flag=$lt_allow_undefined_flag_RC
18302
18303# Flag that forces no undefined symbols.
18304no_undefined_flag=$lt_no_undefined_flag_RC
18305
18306# Commands used to finish a libtool library installation in a directory.
18307finish_cmds=$lt_finish_cmds
18308
18309# Same as above, but a single script fragment to be evaled but not shown.
18310finish_eval=$lt_finish_eval
18311
18312# Take the output of nm and produce a listing of raw symbols and C names.
18313global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18314
18315# Transform the output of nm in a proper C declaration
18316global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18317
18318# Transform the output of nm in a C name address pair
18319global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18320
18321# This is the shared library runtime path variable.
18322runpath_var=$runpath_var
18323
18324# This is the shared library path variable.
18325shlibpath_var=$shlibpath_var
18326
18327# Is shlibpath searched before the hard-coded library search path?
18328shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18329
18330# How to hardcode a shared library path into an executable.
18331hardcode_action=$hardcode_action_RC
18332
18333# Whether we should hardcode library paths into libraries.
18334hardcode_into_libs=$hardcode_into_libs
18335
18336# Flag to hardcode \$libdir into a binary during linking.
18337# This must work even if \$libdir does not exist.
18338hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18339
18340# If ld is used when linking, flag to hardcode \$libdir into
18341# a binary during linking. This must work even if \$libdir does
18342# not exist.
18343hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18344
18345# Whether we need a single -rpath flag with a separated argument.
18346hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18347
18348# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18349# resulting binary.
18350hardcode_direct=$hardcode_direct_RC
18351
18352# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18353# resulting binary.
18354hardcode_minus_L=$hardcode_minus_L_RC
18355
18356# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18357# the resulting binary.
18358hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18359
18360# Set to yes if building a shared library automatically hardcodes DIR into the library
18361# and all subsequent libraries and executables linked against it.
18362hardcode_automatic=$hardcode_automatic_RC
18363
18364# Variables whose values should be saved in libtool wrapper scripts and
18365# restored at relink time.
18366variables_saved_for_relink="$variables_saved_for_relink"
18367
18368# Whether libtool must link a program against all its dependency libraries.
18369link_all_deplibs=$link_all_deplibs_RC
18370
18371# Compile-time system search path for libraries
18372sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18373
18374# Run-time system search path for libraries
18375sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18376
18377# Fix the shell variable \$srcfile for the compiler.
18378fix_srcfile_path="$fix_srcfile_path_RC"
18379
18380# Set to yes if exported symbols are required.
18381always_export_symbols=$always_export_symbols_RC
18382
18383# The commands to list exported symbols.
18384export_symbols_cmds=$lt_export_symbols_cmds_RC
18385
18386# The commands to extract the exported symbol list from a shared archive.
18387extract_expsyms_cmds=$lt_extract_expsyms_cmds
18388
18389# Symbols that should not be listed in the preloaded symbols.
18390exclude_expsyms=$lt_exclude_expsyms_RC
18391
18392# Symbols that must always be exported.
18393include_expsyms=$lt_include_expsyms_RC
18394
18395# ### END LIBTOOL TAG CONFIG: $tagname
18396
18397__EOF__
18398
18399
18400else
18401 # If there is no Makefile yet, we rely on a make rule to execute
18402 # `config.status --recheck' to rerun these tests and create the
18403 # libtool script then.
18404 test -f Makefile && make "$ltmain"
18405fi
18406
18407
18408ac_ext=c
18409ac_cpp='$CPP $CPPFLAGS'
18410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18412ac_compiler_gnu=$ac_cv_c_compiler_gnu
18413
18414CC="$lt_save_CC"
18415
18416 ;;
18417
18418 *)
18419 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18420echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18421 { (exit 1); exit 1; }; }
18422 ;;
18423 esac
18424
18425 # Append the new tag name to the list of available tags.
18426 if test -n "$tagname" ; then
18427 available_tags="$available_tags $tagname"
18428 fi
18429 fi
18430 done
18431 IFS="$lt_save_ifs"
18432
18433 # Now substitute the updated list of available tags.
18434 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18435 mv "${ofile}T" "$ofile"
18436 chmod +x "$ofile"
18437 else
18438 rm -f "${ofile}T"
18439 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18440echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18441 { (exit 1); exit 1; }; }
18442 fi
18443fi
John Criswell7a73b802003-06-30 21:59:07 +000018444
18445
18446
18447# This can be used to rebuild libtool when needed
18448LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18449
18450# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018451LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018452
18453# Prevent multiple expansion
18454
18455
18456
John Criswell47fdd832003-07-14 16:52:07 +000018457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
John Criswellde00db22003-08-25 16:49:54 +000018475# Extract the first word of "pwd", so it can be a program name with args.
18476set dummy pwd; ac_word=$2
18477echo "$as_me:$LINENO: checking for $ac_word" >&5
18478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18479if test "${ac_cv_path_RPWD+set}" = set; then
18480 echo $ECHO_N "(cached) $ECHO_C" >&6
18481else
18482 case $RPWD in
18483 [\\/]* | ?:[\\/]*)
18484 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18485 ;;
18486 *)
18487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18488for as_dir in $PATH
18489do
18490 IFS=$as_save_IFS
18491 test -z "$as_dir" && as_dir=.
18492 for ac_exec_ext in '' $ac_executable_extensions; do
18493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18494 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18496 break 2
18497 fi
18498done
18499done
18500
John Criswell39827c82003-09-23 15:28:52 +000018501 test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
John Criswellde00db22003-08-25 16:49:54 +000018502 ;;
18503esac
18504fi
18505RPWD=$ac_cv_path_RPWD
18506
18507if test -n "$RPWD"; then
18508 echo "$as_me:$LINENO: result: $RPWD" >&5
18509echo "${ECHO_T}$RPWD" >&6
18510else
18511 echo "$as_me:$LINENO: result: no" >&5
18512echo "${ECHO_T}no" >&6
18513fi
18514
John Criswell39827c82003-09-23 15:28:52 +000018515if test ${RPWD} = "false"
18516then
18517 { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18518echo "$as_me: error: pwd required but not found" >&2;}
18519 { (exit 1); exit 1; }; }
18520fi
18521
John Criswell7a73b802003-06-30 21:59:07 +000018522# Extract the first word of "ar", so it can be a program name with args.
18523set dummy ar; ac_word=$2
18524echo "$as_me:$LINENO: checking for $ac_word" >&5
18525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18526if test "${ac_cv_path_AR+set}" = set; then
18527 echo $ECHO_N "(cached) $ECHO_C" >&6
18528else
18529 case $AR in
18530 [\\/]* | ?:[\\/]*)
18531 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18532 ;;
18533 *)
18534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18535for as_dir in $PATH
18536do
18537 IFS=$as_save_IFS
18538 test -z "$as_dir" && as_dir=.
18539 for ac_exec_ext in '' $ac_executable_extensions; do
18540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18541 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18543 break 2
18544 fi
18545done
18546done
18547
John Criswell39827c82003-09-23 15:28:52 +000018548 test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018549 ;;
18550esac
18551fi
18552AR=$ac_cv_path_AR
18553
18554if test -n "$AR"; then
18555 echo "$as_me:$LINENO: result: $AR" >&5
18556echo "${ECHO_T}$AR" >&6
18557else
18558 echo "$as_me:$LINENO: result: no" >&5
18559echo "${ECHO_T}no" >&6
18560fi
18561
John Criswell39827c82003-09-23 15:28:52 +000018562if test ${AR} = "false"
18563then
18564 { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18565echo "$as_me: error: ar required but not found" >&2;}
18566 { (exit 1); exit 1; }; }
18567fi
18568
John Criswell7a73b802003-06-30 21:59:07 +000018569# Extract the first word of "sed", so it can be a program name with args.
18570set dummy sed; ac_word=$2
18571echo "$as_me:$LINENO: checking for $ac_word" >&5
18572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18573if test "${ac_cv_path_SED+set}" = set; then
18574 echo $ECHO_N "(cached) $ECHO_C" >&6
18575else
18576 case $SED in
18577 [\\/]* | ?:[\\/]*)
18578 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18579 ;;
18580 *)
18581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18582for as_dir in $PATH
18583do
18584 IFS=$as_save_IFS
18585 test -z "$as_dir" && as_dir=.
18586 for ac_exec_ext in '' $ac_executable_extensions; do
18587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18588 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18590 break 2
18591 fi
18592done
18593done
18594
John Criswell39827c82003-09-23 15:28:52 +000018595 test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
John Criswell7a73b802003-06-30 21:59:07 +000018596 ;;
18597esac
18598fi
18599SED=$ac_cv_path_SED
18600
18601if test -n "$SED"; then
18602 echo "$as_me:$LINENO: result: $SED" >&5
18603echo "${ECHO_T}$SED" >&6
18604else
18605 echo "$as_me:$LINENO: result: no" >&5
18606echo "${ECHO_T}no" >&6
18607fi
18608
John Criswell39827c82003-09-23 15:28:52 +000018609if test ${SED} = "false"
18610then
18611 { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18612echo "$as_me: error: sed required but not found" >&2;}
18613 { (exit 1); exit 1; }; }
18614fi
18615
John Criswell7a73b802003-06-30 21:59:07 +000018616# Extract the first word of "rm", so it can be a program name with args.
18617set dummy rm; ac_word=$2
18618echo "$as_me:$LINENO: checking for $ac_word" >&5
18619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18620if test "${ac_cv_path_RM+set}" = set; then
18621 echo $ECHO_N "(cached) $ECHO_C" >&6
18622else
18623 case $RM in
18624 [\\/]* | ?:[\\/]*)
18625 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18626 ;;
18627 *)
18628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18629for as_dir in $PATH
18630do
18631 IFS=$as_save_IFS
18632 test -z "$as_dir" && as_dir=.
18633 for ac_exec_ext in '' $ac_executable_extensions; do
18634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18635 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18637 break 2
18638 fi
18639done
18640done
18641
John Criswell39827c82003-09-23 15:28:52 +000018642 test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
John Criswell7a73b802003-06-30 21:59:07 +000018643 ;;
18644esac
18645fi
18646RM=$ac_cv_path_RM
18647
18648if test -n "$RM"; then
18649 echo "$as_me:$LINENO: result: $RM" >&5
18650echo "${ECHO_T}$RM" >&6
18651else
18652 echo "$as_me:$LINENO: result: no" >&5
18653echo "${ECHO_T}no" >&6
18654fi
18655
John Criswell39827c82003-09-23 15:28:52 +000018656if test ${RM} = "false"
18657then
18658 { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18659echo "$as_me: error: rm required but not found" >&2;}
18660 { (exit 1); exit 1; }; }
18661fi
18662
John Criswell7a73b802003-06-30 21:59:07 +000018663# Extract the first word of "echo", so it can be a program name with args.
18664set dummy echo; ac_word=$2
18665echo "$as_me:$LINENO: checking for $ac_word" >&5
18666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18667if test "${ac_cv_path_ECHO+set}" = set; then
18668 echo $ECHO_N "(cached) $ECHO_C" >&6
18669else
18670 case $ECHO in
18671 [\\/]* | ?:[\\/]*)
18672 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18673 ;;
18674 *)
18675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18676for as_dir in $PATH
18677do
18678 IFS=$as_save_IFS
18679 test -z "$as_dir" && as_dir=.
18680 for ac_exec_ext in '' $ac_executable_extensions; do
18681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18682 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18684 break 2
18685 fi
18686done
18687done
18688
John Criswell39827c82003-09-23 15:28:52 +000018689 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
John Criswell7a73b802003-06-30 21:59:07 +000018690 ;;
18691esac
18692fi
18693ECHO=$ac_cv_path_ECHO
18694
18695if test -n "$ECHO"; then
18696 echo "$as_me:$LINENO: result: $ECHO" >&5
18697echo "${ECHO_T}$ECHO" >&6
18698else
18699 echo "$as_me:$LINENO: result: no" >&5
18700echo "${ECHO_T}no" >&6
18701fi
18702
John Criswell39827c82003-09-23 15:28:52 +000018703if test ${ECHO} = "false"
18704then
18705 { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18706echo "$as_me: error: echo required but not found" >&2;}
18707 { (exit 1); exit 1; }; }
18708fi
18709
John Criswell7a73b802003-06-30 21:59:07 +000018710# Extract the first word of "mkdir", so it can be a program name with args.
18711set dummy mkdir; ac_word=$2
18712echo "$as_me:$LINENO: checking for $ac_word" >&5
18713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18714if test "${ac_cv_path_MKDIR+set}" = set; then
18715 echo $ECHO_N "(cached) $ECHO_C" >&6
18716else
18717 case $MKDIR in
18718 [\\/]* | ?:[\\/]*)
18719 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18720 ;;
18721 *)
18722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18723for as_dir in $PATH
18724do
18725 IFS=$as_save_IFS
18726 test -z "$as_dir" && as_dir=.
18727 for ac_exec_ext in '' $ac_executable_extensions; do
18728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18729 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18731 break 2
18732 fi
18733done
18734done
18735
John Criswell39827c82003-09-23 15:28:52 +000018736 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018737 ;;
18738esac
18739fi
18740MKDIR=$ac_cv_path_MKDIR
18741
18742if test -n "$MKDIR"; then
18743 echo "$as_me:$LINENO: result: $MKDIR" >&5
18744echo "${ECHO_T}$MKDIR" >&6
18745else
18746 echo "$as_me:$LINENO: result: no" >&5
18747echo "${ECHO_T}no" >&6
18748fi
18749
John Criswell39827c82003-09-23 15:28:52 +000018750if test ${MKDIR} = "false"
18751then
18752 { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18753echo "$as_me: error: mkdir required but not found" >&2;}
18754 { (exit 1); exit 1; }; }
18755fi
18756
John Criswell7a73b802003-06-30 21:59:07 +000018757# Extract the first word of "date", so it can be a program name with args.
18758set dummy date; ac_word=$2
18759echo "$as_me:$LINENO: checking for $ac_word" >&5
18760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18761if test "${ac_cv_path_DATE+set}" = set; then
18762 echo $ECHO_N "(cached) $ECHO_C" >&6
18763else
18764 case $DATE in
18765 [\\/]* | ?:[\\/]*)
18766 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18767 ;;
18768 *)
18769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18770for as_dir in $PATH
18771do
18772 IFS=$as_save_IFS
18773 test -z "$as_dir" && as_dir=.
18774 for ac_exec_ext in '' $ac_executable_extensions; do
18775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18776 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18778 break 2
18779 fi
18780done
18781done
18782
John Criswell39827c82003-09-23 15:28:52 +000018783 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
John Criswell7a73b802003-06-30 21:59:07 +000018784 ;;
18785esac
18786fi
18787DATE=$ac_cv_path_DATE
18788
18789if test -n "$DATE"; then
18790 echo "$as_me:$LINENO: result: $DATE" >&5
18791echo "${ECHO_T}$DATE" >&6
18792else
18793 echo "$as_me:$LINENO: result: no" >&5
18794echo "${ECHO_T}no" >&6
18795fi
18796
John Criswell39827c82003-09-23 15:28:52 +000018797if test ${DATE} = "false"
18798then
18799 { { echo "$as_me:$LINENO: error: date required but not found" >&5
18800echo "$as_me: error: date required but not found" >&2;}
18801 { (exit 1); exit 1; }; }
18802fi
18803
John Criswell7a73b802003-06-30 21:59:07 +000018804# Extract the first word of "mv", so it can be a program name with args.
18805set dummy mv; ac_word=$2
18806echo "$as_me:$LINENO: checking for $ac_word" >&5
18807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18808if test "${ac_cv_path_MV+set}" = set; then
18809 echo $ECHO_N "(cached) $ECHO_C" >&6
18810else
18811 case $MV in
18812 [\\/]* | ?:[\\/]*)
18813 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18814 ;;
18815 *)
18816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18817for as_dir in $PATH
18818do
18819 IFS=$as_save_IFS
18820 test -z "$as_dir" && as_dir=.
18821 for ac_exec_ext in '' $ac_executable_extensions; do
18822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18823 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18825 break 2
18826 fi
18827done
18828done
18829
John Criswell39827c82003-09-23 15:28:52 +000018830 test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
John Criswell7a73b802003-06-30 21:59:07 +000018831 ;;
18832esac
18833fi
18834MV=$ac_cv_path_MV
18835
18836if test -n "$MV"; then
18837 echo "$as_me:$LINENO: result: $MV" >&5
18838echo "${ECHO_T}$MV" >&6
18839else
18840 echo "$as_me:$LINENO: result: no" >&5
18841echo "${ECHO_T}no" >&6
18842fi
18843
John Criswell39827c82003-09-23 15:28:52 +000018844if test ${MV} = "false"
18845then
18846 { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18847echo "$as_me: error: mv required but not found" >&2;}
18848 { (exit 1); exit 1; }; }
18849fi
18850
John Criswell7a73b802003-06-30 21:59:07 +000018851# Extract the first word of "dot", so it can be a program name with args.
18852set dummy dot; ac_word=$2
18853echo "$as_me:$LINENO: checking for $ac_word" >&5
18854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18855if test "${ac_cv_path_DOT+set}" = set; then
18856 echo $ECHO_N "(cached) $ECHO_C" >&6
18857else
18858 case $DOT in
18859 [\\/]* | ?:[\\/]*)
18860 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18861 ;;
18862 *)
18863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18864for as_dir in $PATH
18865do
18866 IFS=$as_save_IFS
18867 test -z "$as_dir" && as_dir=.
18868 for ac_exec_ext in '' $ac_executable_extensions; do
18869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18870 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18872 break 2
18873 fi
18874done
18875done
18876
John Criswell39827c82003-09-23 15:28:52 +000018877 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
John Criswell7a73b802003-06-30 21:59:07 +000018878 ;;
18879esac
18880fi
18881DOT=$ac_cv_path_DOT
18882
18883if test -n "$DOT"; then
18884 echo "$as_me:$LINENO: result: $DOT" >&5
18885echo "${ECHO_T}$DOT" >&6
18886else
18887 echo "$as_me:$LINENO: result: no" >&5
18888echo "${ECHO_T}no" >&6
18889fi
18890
John Criswell39827c82003-09-23 15:28:52 +000018891
John Criswell7a73b802003-06-30 21:59:07 +000018892# Extract the first word of "etags", so it can be a program name with args.
18893set dummy etags; ac_word=$2
18894echo "$as_me:$LINENO: checking for $ac_word" >&5
18895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18896if test "${ac_cv_path_ETAGS+set}" = set; then
18897 echo $ECHO_N "(cached) $ECHO_C" >&6
18898else
18899 case $ETAGS in
18900 [\\/]* | ?:[\\/]*)
18901 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18902 ;;
18903 *)
18904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18905for as_dir in $PATH
18906do
18907 IFS=$as_save_IFS
18908 test -z "$as_dir" && as_dir=.
18909 for ac_exec_ext in '' $ac_executable_extensions; do
18910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18911 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18913 break 2
18914 fi
18915done
18916done
18917
John Criswell39827c82003-09-23 15:28:52 +000018918 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
John Criswell7a73b802003-06-30 21:59:07 +000018919 ;;
18920esac
18921fi
18922ETAGS=$ac_cv_path_ETAGS
18923
18924if test -n "$ETAGS"; then
18925 echo "$as_me:$LINENO: result: $ETAGS" >&5
18926echo "${ECHO_T}$ETAGS" >&6
18927else
18928 echo "$as_me:$LINENO: result: no" >&5
18929echo "${ECHO_T}no" >&6
18930fi
18931
John Criswell39827c82003-09-23 15:28:52 +000018932
John Criswellde00db22003-08-25 16:49:54 +000018933# Extract the first word of "python", so it can be a program name with args.
18934set dummy python; ac_word=$2
18935echo "$as_me:$LINENO: checking for $ac_word" >&5
18936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18937if test "${ac_cv_path_PYTHON+set}" = set; then
18938 echo $ECHO_N "(cached) $ECHO_C" >&6
18939else
18940 case $PYTHON in
18941 [\\/]* | ?:[\\/]*)
18942 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18943 ;;
18944 *)
18945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18946for as_dir in $PATH
18947do
18948 IFS=$as_save_IFS
18949 test -z "$as_dir" && as_dir=.
18950 for ac_exec_ext in '' $ac_executable_extensions; do
18951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18952 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18954 break 2
18955 fi
18956done
18957done
18958
John Criswell39827c82003-09-23 15:28:52 +000018959 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
John Criswellde00db22003-08-25 16:49:54 +000018960 ;;
18961esac
18962fi
18963PYTHON=$ac_cv_path_PYTHON
18964
18965if test -n "$PYTHON"; then
18966 echo "$as_me:$LINENO: result: $PYTHON" >&5
18967echo "${ECHO_T}$PYTHON" >&6
18968else
18969 echo "$as_me:$LINENO: result: no" >&5
18970echo "${ECHO_T}no" >&6
18971fi
18972
John Criswell39827c82003-09-23 15:28:52 +000018973if test ${PYTHON} = "false"
18974then
John Criswell61095982003-09-23 20:46:32 +000018975 { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
18976echo "$as_me: WARNING: python required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018977fi
18978
John Criswellde00db22003-08-25 16:49:54 +000018979# Extract the first word of "qmtest", so it can be a program name with args.
18980set dummy qmtest; ac_word=$2
18981echo "$as_me:$LINENO: checking for $ac_word" >&5
18982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18983if test "${ac_cv_path_QMTEST+set}" = set; then
18984 echo $ECHO_N "(cached) $ECHO_C" >&6
18985else
18986 case $QMTEST in
18987 [\\/]* | ?:[\\/]*)
18988 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18989 ;;
18990 *)
18991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18992for as_dir in $PATH
18993do
18994 IFS=$as_save_IFS
18995 test -z "$as_dir" && as_dir=.
18996 for ac_exec_ext in '' $ac_executable_extensions; do
18997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18998 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19000 break 2
19001 fi
19002done
19003done
19004
John Criswell39827c82003-09-23 15:28:52 +000019005 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
John Criswellde00db22003-08-25 16:49:54 +000019006 ;;
19007esac
19008fi
19009QMTEST=$ac_cv_path_QMTEST
19010
19011if test -n "$QMTEST"; then
19012 echo "$as_me:$LINENO: result: $QMTEST" >&5
19013echo "${ECHO_T}$QMTEST" >&6
19014else
19015 echo "$as_me:$LINENO: result: no" >&5
19016echo "${ECHO_T}no" >&6
19017fi
19018
John Criswell39827c82003-09-23 15:28:52 +000019019if test ${QMTEST} = "false"
19020then
John Criswell61095982003-09-23 20:46:32 +000019021 { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19022echo "$as_me: WARNING: qmtest required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019023fi
John Criswellde00db22003-08-25 16:49:54 +000019024
19025pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19026pymajor=`echo $pyversion | cut -d. -f1`
19027pyminor=`echo $pyversion | cut -d. -f2`
19028
19029if test "$pymajor" -ge "2"
19030then
19031 if test "$pymajor" -eq "2"
19032 then
19033 if test "$pyminor" -lt "2"
19034 then
19035 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19036echo "$as_me: error: Python 2.2 or greater required" >&2;}
19037 { (exit 1); exit 1; }; }
19038 fi
19039 fi
19040else
19041 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19042echo "$as_me: error: Python 2.2 or greater required" >&2;}
19043 { (exit 1); exit 1; }; }
19044fi
John Criswell7a73b802003-06-30 21:59:07 +000019045
19046
19047
19048
19049
19050echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19051echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19052if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19053 echo $ECHO_N "(cached) $ECHO_C" >&6
19054else
19055 ac_check_lib_save_LIBS=$LIBS
19056LIBS="-lelf $LIBS"
19057cat >conftest.$ac_ext <<_ACEOF
19058#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019059/* confdefs.h. */
19060_ACEOF
19061cat confdefs.h >>conftest.$ac_ext
19062cat >>conftest.$ac_ext <<_ACEOF
19063/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019064
19065/* Override any gcc2 internal prototype to avoid an error. */
19066#ifdef __cplusplus
19067extern "C"
19068#endif
19069/* We use char because int might match the return type of a gcc2
19070 builtin and then its argument prototype would still apply. */
19071char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000019072int
19073main ()
19074{
19075elf_begin ();
19076 ;
19077 return 0;
19078}
19079_ACEOF
19080rm -f conftest.$ac_objext conftest$ac_exeext
19081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19082 (eval $ac_link) 2>&5
19083 ac_status=$?
19084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085 (exit $ac_status); } &&
19086 { ac_try='test -s conftest$ac_exeext'
19087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19088 (eval $ac_try) 2>&5
19089 ac_status=$?
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); }; }; then
19092 ac_cv_lib_elf_elf_begin=yes
19093else
19094 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019095sed 's/^/| /' conftest.$ac_ext >&5
19096
John Criswell7a73b802003-06-30 21:59:07 +000019097ac_cv_lib_elf_elf_begin=no
19098fi
19099rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19100LIBS=$ac_check_lib_save_LIBS
19101fi
19102echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19103echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19104if test $ac_cv_lib_elf_elf_begin = yes; then
19105 cat >>confdefs.h <<_ACEOF
19106#define HAVE_LIBELF 1
19107_ACEOF
19108
19109 LIBS="-lelf $LIBS"
19110
19111fi
19112
19113
19114echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19115echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19116if test "${ac_cv_search_dlopen+set}" = set; then
19117 echo $ECHO_N "(cached) $ECHO_C" >&6
19118else
19119 ac_func_search_save_LIBS=$LIBS
19120ac_cv_search_dlopen=no
19121cat >conftest.$ac_ext <<_ACEOF
19122#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019123/* confdefs.h. */
19124_ACEOF
19125cat confdefs.h >>conftest.$ac_ext
19126cat >>conftest.$ac_ext <<_ACEOF
19127/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019128
19129/* Override any gcc2 internal prototype to avoid an error. */
19130#ifdef __cplusplus
19131extern "C"
19132#endif
19133/* We use char because int might match the return type of a gcc2
19134 builtin and then its argument prototype would still apply. */
19135char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019136int
19137main ()
19138{
19139dlopen ();
19140 ;
19141 return 0;
19142}
19143_ACEOF
19144rm -f conftest.$ac_objext conftest$ac_exeext
19145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19146 (eval $ac_link) 2>&5
19147 ac_status=$?
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); } &&
19150 { ac_try='test -s conftest$ac_exeext'
19151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19152 (eval $ac_try) 2>&5
19153 ac_status=$?
19154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 (exit $ac_status); }; }; then
19156 ac_cv_search_dlopen="none required"
19157else
19158 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019159sed 's/^/| /' conftest.$ac_ext >&5
19160
John Criswell7a73b802003-06-30 21:59:07 +000019161fi
19162rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19163if test "$ac_cv_search_dlopen" = no; then
19164 for ac_lib in dl; do
19165 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19166 cat >conftest.$ac_ext <<_ACEOF
19167#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019168/* confdefs.h. */
19169_ACEOF
19170cat confdefs.h >>conftest.$ac_ext
19171cat >>conftest.$ac_ext <<_ACEOF
19172/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019173
19174/* Override any gcc2 internal prototype to avoid an error. */
19175#ifdef __cplusplus
19176extern "C"
19177#endif
19178/* We use char because int might match the return type of a gcc2
19179 builtin and then its argument prototype would still apply. */
19180char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019181int
19182main ()
19183{
19184dlopen ();
19185 ;
19186 return 0;
19187}
19188_ACEOF
19189rm -f conftest.$ac_objext conftest$ac_exeext
19190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19191 (eval $ac_link) 2>&5
19192 ac_status=$?
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); } &&
19195 { ac_try='test -s conftest$ac_exeext'
19196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19197 (eval $ac_try) 2>&5
19198 ac_status=$?
19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); }; }; then
19201 ac_cv_search_dlopen="-l$ac_lib"
19202break
19203else
19204 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019205sed 's/^/| /' conftest.$ac_ext >&5
19206
John Criswell7a73b802003-06-30 21:59:07 +000019207fi
19208rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19209 done
19210fi
19211LIBS=$ac_func_search_save_LIBS
19212fi
19213echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19214echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19215if test "$ac_cv_search_dlopen" != no; then
19216 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19217
19218else
19219 { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19220echo "$as_me: error: dlopen() required but not found" >&2;}
19221 { (exit 1); exit 1; }; }
19222fi
19223
19224
19225echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19226echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19227if test "${ac_cv_search_mallinfo+set}" = set; then
19228 echo $ECHO_N "(cached) $ECHO_C" >&6
19229else
19230 ac_func_search_save_LIBS=$LIBS
19231ac_cv_search_mallinfo=no
19232cat >conftest.$ac_ext <<_ACEOF
19233#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019234/* confdefs.h. */
19235_ACEOF
19236cat confdefs.h >>conftest.$ac_ext
19237cat >>conftest.$ac_ext <<_ACEOF
19238/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019239
19240/* Override any gcc2 internal prototype to avoid an error. */
19241#ifdef __cplusplus
19242extern "C"
19243#endif
19244/* We use char because int might match the return type of a gcc2
19245 builtin and then its argument prototype would still apply. */
19246char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019247int
19248main ()
19249{
19250mallinfo ();
19251 ;
19252 return 0;
19253}
19254_ACEOF
19255rm -f conftest.$ac_objext conftest$ac_exeext
19256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19257 (eval $ac_link) 2>&5
19258 ac_status=$?
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); } &&
19261 { ac_try='test -s conftest$ac_exeext'
19262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19263 (eval $ac_try) 2>&5
19264 ac_status=$?
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); }; }; then
19267 ac_cv_search_mallinfo="none required"
19268else
19269 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019270sed 's/^/| /' conftest.$ac_ext >&5
19271
John Criswell7a73b802003-06-30 21:59:07 +000019272fi
19273rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19274if test "$ac_cv_search_mallinfo" = no; then
19275 for ac_lib in malloc; do
19276 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19277 cat >conftest.$ac_ext <<_ACEOF
19278#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019279/* confdefs.h. */
19280_ACEOF
19281cat confdefs.h >>conftest.$ac_ext
19282cat >>conftest.$ac_ext <<_ACEOF
19283/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019284
19285/* Override any gcc2 internal prototype to avoid an error. */
19286#ifdef __cplusplus
19287extern "C"
19288#endif
19289/* We use char because int might match the return type of a gcc2
19290 builtin and then its argument prototype would still apply. */
19291char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019292int
19293main ()
19294{
19295mallinfo ();
19296 ;
19297 return 0;
19298}
19299_ACEOF
19300rm -f conftest.$ac_objext conftest$ac_exeext
19301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19302 (eval $ac_link) 2>&5
19303 ac_status=$?
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); } &&
19306 { ac_try='test -s conftest$ac_exeext'
19307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308 (eval $ac_try) 2>&5
19309 ac_status=$?
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; }; then
19312 ac_cv_search_mallinfo="-l$ac_lib"
19313break
19314else
19315 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019316sed 's/^/| /' conftest.$ac_ext >&5
19317
John Criswell7a73b802003-06-30 21:59:07 +000019318fi
19319rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19320 done
19321fi
19322LIBS=$ac_func_search_save_LIBS
19323fi
19324echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19325echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19326if test "$ac_cv_search_mallinfo" != no; then
19327 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19328 cat >>confdefs.h <<\_ACEOF
19329#define HAVE_MALLINFO 1
19330_ACEOF
19331
19332fi
19333
19334
19335
19336echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19337echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19338if test "${ac_cv_header_stdc+set}" = set; then
19339 echo $ECHO_N "(cached) $ECHO_C" >&6
19340else
19341 cat >conftest.$ac_ext <<_ACEOF
19342#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019343/* confdefs.h. */
19344_ACEOF
19345cat confdefs.h >>conftest.$ac_ext
19346cat >>conftest.$ac_ext <<_ACEOF
19347/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019348#include <stdlib.h>
19349#include <stdarg.h>
19350#include <string.h>
19351#include <float.h>
19352
John Criswell0c38eaf2003-09-10 15:17:25 +000019353int
19354main ()
19355{
19356
19357 ;
19358 return 0;
19359}
John Criswell7a73b802003-06-30 21:59:07 +000019360_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019361rm -f conftest.$ac_objext
19362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19363 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019364 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000019365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019366 (exit $ac_status); } &&
19367 { ac_try='test -s conftest.$ac_objext'
19368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19369 (eval $ac_try) 2>&5
19370 ac_status=$?
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019373 ac_cv_header_stdc=yes
19374else
19375 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019376sed 's/^/| /' conftest.$ac_ext >&5
19377
19378ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019379fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019380rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019381
19382if test $ac_cv_header_stdc = yes; then
19383 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19384 cat >conftest.$ac_ext <<_ACEOF
19385#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019386/* confdefs.h. */
19387_ACEOF
19388cat confdefs.h >>conftest.$ac_ext
19389cat >>conftest.$ac_ext <<_ACEOF
19390/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019391#include <string.h>
19392
19393_ACEOF
19394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019395 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019396 :
19397else
19398 ac_cv_header_stdc=no
19399fi
19400rm -f conftest*
19401
19402fi
19403
19404if test $ac_cv_header_stdc = yes; then
19405 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19406 cat >conftest.$ac_ext <<_ACEOF
19407#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019408/* confdefs.h. */
19409_ACEOF
19410cat confdefs.h >>conftest.$ac_ext
19411cat >>conftest.$ac_ext <<_ACEOF
19412/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019413#include <stdlib.h>
19414
19415_ACEOF
19416if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019417 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019418 :
19419else
19420 ac_cv_header_stdc=no
19421fi
19422rm -f conftest*
19423
19424fi
19425
19426if test $ac_cv_header_stdc = yes; then
19427 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19428 if test "$cross_compiling" = yes; then
19429 :
19430else
19431 cat >conftest.$ac_ext <<_ACEOF
19432#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019433/* confdefs.h. */
19434_ACEOF
19435cat confdefs.h >>conftest.$ac_ext
19436cat >>conftest.$ac_ext <<_ACEOF
19437/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019438#include <ctype.h>
19439#if ((' ' & 0x0FF) == 0x020)
19440# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19441# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19442#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019443# define ISLOWER(c) \
19444 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000019445 || ('j' <= (c) && (c) <= 'r') \
19446 || ('s' <= (c) && (c) <= 'z'))
19447# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19448#endif
19449
19450#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19451int
19452main ()
19453{
19454 int i;
19455 for (i = 0; i < 256; i++)
19456 if (XOR (islower (i), ISLOWER (i))
19457 || toupper (i) != TOUPPER (i))
19458 exit(2);
19459 exit (0);
19460}
19461_ACEOF
19462rm -f conftest$ac_exeext
19463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19464 (eval $ac_link) 2>&5
19465 ac_status=$?
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19469 (eval $ac_try) 2>&5
19470 ac_status=$?
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); }; }; then
19473 :
19474else
19475 echo "$as_me: program exited with status $ac_status" >&5
19476echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019477sed 's/^/| /' conftest.$ac_ext >&5
19478
John Criswell7a73b802003-06-30 21:59:07 +000019479( exit $ac_status )
19480ac_cv_header_stdc=no
19481fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019482rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019483fi
19484fi
19485fi
19486echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19487echo "${ECHO_T}$ac_cv_header_stdc" >&6
19488if test $ac_cv_header_stdc = yes; then
19489
19490cat >>confdefs.h <<\_ACEOF
19491#define STDC_HEADERS 1
19492_ACEOF
19493
19494fi
19495
19496echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19497echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19498if test "${ac_cv_header_sys_wait_h+set}" = set; then
19499 echo $ECHO_N "(cached) $ECHO_C" >&6
19500else
19501 cat >conftest.$ac_ext <<_ACEOF
19502#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019503/* confdefs.h. */
19504_ACEOF
19505cat confdefs.h >>conftest.$ac_ext
19506cat >>conftest.$ac_ext <<_ACEOF
19507/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019508#include <sys/types.h>
19509#include <sys/wait.h>
19510#ifndef WEXITSTATUS
19511# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19512#endif
19513#ifndef WIFEXITED
19514# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19515#endif
19516
John Criswell7a73b802003-06-30 21:59:07 +000019517int
19518main ()
19519{
19520 int s;
19521 wait (&s);
19522 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19523 ;
19524 return 0;
19525}
19526_ACEOF
19527rm -f conftest.$ac_objext
19528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19529 (eval $ac_compile) 2>&5
19530 ac_status=$?
19531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); } &&
19533 { ac_try='test -s conftest.$ac_objext'
19534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19535 (eval $ac_try) 2>&5
19536 ac_status=$?
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); }; }; then
19539 ac_cv_header_sys_wait_h=yes
19540else
19541 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019542sed 's/^/| /' conftest.$ac_ext >&5
19543
John Criswell7a73b802003-06-30 21:59:07 +000019544ac_cv_header_sys_wait_h=no
19545fi
19546rm -f conftest.$ac_objext conftest.$ac_ext
19547fi
19548echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19549echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19550if test $ac_cv_header_sys_wait_h = yes; then
19551
19552cat >>confdefs.h <<\_ACEOF
19553#define HAVE_SYS_WAIT_H 1
19554_ACEOF
19555
19556fi
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19568do
19569as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19570if eval "test \"\${$as_ac_Header+set}\" = set"; then
19571 echo "$as_me:$LINENO: checking for $ac_header" >&5
19572echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19573if eval "test \"\${$as_ac_Header+set}\" = set"; then
19574 echo $ECHO_N "(cached) $ECHO_C" >&6
19575fi
19576echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19577echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19578else
19579 # Is the header compilable?
19580echo "$as_me:$LINENO: checking $ac_header usability" >&5
19581echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19582cat >conftest.$ac_ext <<_ACEOF
19583#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019584/* confdefs.h. */
19585_ACEOF
19586cat confdefs.h >>conftest.$ac_ext
19587cat >>conftest.$ac_ext <<_ACEOF
19588/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019589$ac_includes_default
19590#include <$ac_header>
19591_ACEOF
19592rm -f conftest.$ac_objext
19593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19594 (eval $ac_compile) 2>&5
19595 ac_status=$?
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); } &&
19598 { ac_try='test -s conftest.$ac_objext'
19599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19600 (eval $ac_try) 2>&5
19601 ac_status=$?
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); }; }; then
19604 ac_header_compiler=yes
19605else
19606 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019607sed 's/^/| /' conftest.$ac_ext >&5
19608
John Criswell7a73b802003-06-30 21:59:07 +000019609ac_header_compiler=no
19610fi
19611rm -f conftest.$ac_objext conftest.$ac_ext
19612echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19613echo "${ECHO_T}$ac_header_compiler" >&6
19614
19615# Is the header present?
19616echo "$as_me:$LINENO: checking $ac_header presence" >&5
19617echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19618cat >conftest.$ac_ext <<_ACEOF
19619#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019620/* confdefs.h. */
19621_ACEOF
19622cat confdefs.h >>conftest.$ac_ext
19623cat >>conftest.$ac_ext <<_ACEOF
19624/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019625#include <$ac_header>
19626_ACEOF
19627if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19629 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019630 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019631 rm -f conftest.er1
19632 cat conftest.err >&5
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); } >/dev/null; then
19635 if test -s conftest.err; then
19636 ac_cpp_err=$ac_c_preproc_warn_flag
19637 else
19638 ac_cpp_err=
19639 fi
19640else
19641 ac_cpp_err=yes
19642fi
19643if test -z "$ac_cpp_err"; then
19644 ac_header_preproc=yes
19645else
19646 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019647sed 's/^/| /' conftest.$ac_ext >&5
19648
John Criswell7a73b802003-06-30 21:59:07 +000019649 ac_header_preproc=no
19650fi
19651rm -f conftest.err conftest.$ac_ext
19652echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19653echo "${ECHO_T}$ac_header_preproc" >&6
19654
19655# So? What about this header?
19656case $ac_header_compiler:$ac_header_preproc in
19657 yes:no )
19658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19659echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019661echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19662 (
19663 cat <<\_ASBOX
19664## ------------------------------------ ##
19665## Report this to bug-autoconf@gnu.org. ##
19666## ------------------------------------ ##
19667_ASBOX
19668 ) |
19669 sed "s/^/$as_me: WARNING: /" >&2
19670 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019671 no:yes )
19672 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19673echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19674 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19675echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019677echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19678 (
19679 cat <<\_ASBOX
19680## ------------------------------------ ##
19681## Report this to bug-autoconf@gnu.org. ##
19682## ------------------------------------ ##
19683_ASBOX
19684 ) |
19685 sed "s/^/$as_me: WARNING: /" >&2
19686 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019687esac
19688echo "$as_me:$LINENO: checking for $ac_header" >&5
19689echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19690if eval "test \"\${$as_ac_Header+set}\" = set"; then
19691 echo $ECHO_N "(cached) $ECHO_C" >&6
19692else
19693 eval "$as_ac_Header=$ac_header_preproc"
19694fi
19695echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19696echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19697
19698fi
19699if test `eval echo '${'$as_ac_Header'}'` = yes; then
19700 cat >>confdefs.h <<_ACEOF
19701#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19702_ACEOF
19703
19704fi
19705
19706done
19707
19708
19709
19710
19711
19712
19713for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19714do
19715as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19716if eval "test \"\${$as_ac_Header+set}\" = set"; then
19717 echo "$as_me:$LINENO: checking for $ac_header" >&5
19718echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19719if eval "test \"\${$as_ac_Header+set}\" = set"; then
19720 echo $ECHO_N "(cached) $ECHO_C" >&6
19721fi
19722echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19723echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19724else
19725 # Is the header compilable?
19726echo "$as_me:$LINENO: checking $ac_header usability" >&5
19727echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19728cat >conftest.$ac_ext <<_ACEOF
19729#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019730/* confdefs.h. */
19731_ACEOF
19732cat confdefs.h >>conftest.$ac_ext
19733cat >>conftest.$ac_ext <<_ACEOF
19734/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019735$ac_includes_default
19736#include <$ac_header>
19737_ACEOF
19738rm -f conftest.$ac_objext
19739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19740 (eval $ac_compile) 2>&5
19741 ac_status=$?
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); } &&
19744 { ac_try='test -s conftest.$ac_objext'
19745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19746 (eval $ac_try) 2>&5
19747 ac_status=$?
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); }; }; then
19750 ac_header_compiler=yes
19751else
19752 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019753sed 's/^/| /' conftest.$ac_ext >&5
19754
John Criswell7a73b802003-06-30 21:59:07 +000019755ac_header_compiler=no
19756fi
19757rm -f conftest.$ac_objext conftest.$ac_ext
19758echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19759echo "${ECHO_T}$ac_header_compiler" >&6
19760
19761# Is the header present?
19762echo "$as_me:$LINENO: checking $ac_header presence" >&5
19763echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19764cat >conftest.$ac_ext <<_ACEOF
19765#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019766/* confdefs.h. */
19767_ACEOF
19768cat confdefs.h >>conftest.$ac_ext
19769cat >>conftest.$ac_ext <<_ACEOF
19770/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019771#include <$ac_header>
19772_ACEOF
19773if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19775 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019776 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019777 rm -f conftest.er1
19778 cat conftest.err >&5
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); } >/dev/null; then
19781 if test -s conftest.err; then
19782 ac_cpp_err=$ac_c_preproc_warn_flag
19783 else
19784 ac_cpp_err=
19785 fi
19786else
19787 ac_cpp_err=yes
19788fi
19789if test -z "$ac_cpp_err"; then
19790 ac_header_preproc=yes
19791else
19792 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019793sed 's/^/| /' conftest.$ac_ext >&5
19794
John Criswell7a73b802003-06-30 21:59:07 +000019795 ac_header_preproc=no
19796fi
19797rm -f conftest.err conftest.$ac_ext
19798echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19799echo "${ECHO_T}$ac_header_preproc" >&6
19800
19801# So? What about this header?
19802case $ac_header_compiler:$ac_header_preproc in
19803 yes:no )
19804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19805echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019807echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19808 (
19809 cat <<\_ASBOX
19810## ------------------------------------ ##
19811## Report this to bug-autoconf@gnu.org. ##
19812## ------------------------------------ ##
19813_ASBOX
19814 ) |
19815 sed "s/^/$as_me: WARNING: /" >&2
19816 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019817 no:yes )
19818 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19819echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19820 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19821echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019823echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19824 (
19825 cat <<\_ASBOX
19826## ------------------------------------ ##
19827## Report this to bug-autoconf@gnu.org. ##
19828## ------------------------------------ ##
19829_ASBOX
19830 ) |
19831 sed "s/^/$as_me: WARNING: /" >&2
19832 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019833esac
19834echo "$as_me:$LINENO: checking for $ac_header" >&5
19835echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19836if eval "test \"\${$as_ac_Header+set}\" = set"; then
19837 echo $ECHO_N "(cached) $ECHO_C" >&6
19838else
19839 eval "$as_ac_Header=$ac_header_preproc"
19840fi
19841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19842echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19843
19844fi
19845if test `eval echo '${'$as_ac_Header'}'` = yes; then
19846 cat >>confdefs.h <<_ACEOF
19847#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19848_ACEOF
19849
19850fi
19851
19852done
19853
19854
19855
19856
19857for ac_header in dlfcn.h link.h
19858do
19859as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19860if eval "test \"\${$as_ac_Header+set}\" = set"; then
19861 echo "$as_me:$LINENO: checking for $ac_header" >&5
19862echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19863if eval "test \"\${$as_ac_Header+set}\" = set"; then
19864 echo $ECHO_N "(cached) $ECHO_C" >&6
19865fi
19866echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19867echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19868else
19869 # Is the header compilable?
19870echo "$as_me:$LINENO: checking $ac_header usability" >&5
19871echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19872cat >conftest.$ac_ext <<_ACEOF
19873#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019874/* confdefs.h. */
19875_ACEOF
19876cat confdefs.h >>conftest.$ac_ext
19877cat >>conftest.$ac_ext <<_ACEOF
19878/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019879$ac_includes_default
19880#include <$ac_header>
19881_ACEOF
19882rm -f conftest.$ac_objext
19883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19884 (eval $ac_compile) 2>&5
19885 ac_status=$?
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); } &&
19888 { ac_try='test -s conftest.$ac_objext'
19889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19890 (eval $ac_try) 2>&5
19891 ac_status=$?
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; }; then
19894 ac_header_compiler=yes
19895else
19896 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019897sed 's/^/| /' conftest.$ac_ext >&5
19898
John Criswell7a73b802003-06-30 21:59:07 +000019899ac_header_compiler=no
19900fi
19901rm -f conftest.$ac_objext conftest.$ac_ext
19902echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19903echo "${ECHO_T}$ac_header_compiler" >&6
19904
19905# Is the header present?
19906echo "$as_me:$LINENO: checking $ac_header presence" >&5
19907echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19908cat >conftest.$ac_ext <<_ACEOF
19909#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019910/* confdefs.h. */
19911_ACEOF
19912cat confdefs.h >>conftest.$ac_ext
19913cat >>conftest.$ac_ext <<_ACEOF
19914/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019915#include <$ac_header>
19916_ACEOF
19917if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19919 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019920 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019921 rm -f conftest.er1
19922 cat conftest.err >&5
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); } >/dev/null; then
19925 if test -s conftest.err; then
19926 ac_cpp_err=$ac_c_preproc_warn_flag
19927 else
19928 ac_cpp_err=
19929 fi
19930else
19931 ac_cpp_err=yes
19932fi
19933if test -z "$ac_cpp_err"; then
19934 ac_header_preproc=yes
19935else
19936 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019937sed 's/^/| /' conftest.$ac_ext >&5
19938
John Criswell7a73b802003-06-30 21:59:07 +000019939 ac_header_preproc=no
19940fi
19941rm -f conftest.err conftest.$ac_ext
19942echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19943echo "${ECHO_T}$ac_header_preproc" >&6
19944
19945# So? What about this header?
19946case $ac_header_compiler:$ac_header_preproc in
19947 yes:no )
19948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19949echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019951echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19952 (
19953 cat <<\_ASBOX
19954## ------------------------------------ ##
19955## Report this to bug-autoconf@gnu.org. ##
19956## ------------------------------------ ##
19957_ASBOX
19958 ) |
19959 sed "s/^/$as_me: WARNING: /" >&2
19960 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019961 no:yes )
19962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19963echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19965echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019967echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19968 (
19969 cat <<\_ASBOX
19970## ------------------------------------ ##
19971## Report this to bug-autoconf@gnu.org. ##
19972## ------------------------------------ ##
19973_ASBOX
19974 ) |
19975 sed "s/^/$as_me: WARNING: /" >&2
19976 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019977esac
19978echo "$as_me:$LINENO: checking for $ac_header" >&5
19979echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19980if eval "test \"\${$as_ac_Header+set}\" = set"; then
19981 echo $ECHO_N "(cached) $ECHO_C" >&6
19982else
19983 eval "$as_ac_Header=$ac_header_preproc"
19984fi
19985echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19986echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19987
19988fi
19989if test `eval echo '${'$as_ac_Header'}'` = yes; then
19990 cat >>confdefs.h <<_ACEOF
19991#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19992_ACEOF
19993
19994fi
19995
19996done
19997
19998
19999
John Criswell7a73b802003-06-30 21:59:07 +000020000echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20001echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20002if test "${ac_cv_c_const+set}" = set; then
20003 echo $ECHO_N "(cached) $ECHO_C" >&6
20004else
20005 cat >conftest.$ac_ext <<_ACEOF
20006#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020007/* confdefs.h. */
20008_ACEOF
20009cat confdefs.h >>conftest.$ac_ext
20010cat >>conftest.$ac_ext <<_ACEOF
20011/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020012
John Criswell7a73b802003-06-30 21:59:07 +000020013int
20014main ()
20015{
20016/* FIXME: Include the comments suggested by Paul. */
20017#ifndef __cplusplus
20018 /* Ultrix mips cc rejects this. */
20019 typedef int charset[2];
20020 const charset x;
20021 /* SunOS 4.1.1 cc rejects this. */
20022 char const *const *ccp;
20023 char **p;
20024 /* NEC SVR4.0.2 mips cc rejects this. */
20025 struct point {int x, y;};
20026 static struct point const zero = {0,0};
20027 /* AIX XL C 1.02.0.0 rejects this.
20028 It does not let you subtract one const X* pointer from another in
20029 an arm of an if-expression whose if-part is not a constant
20030 expression */
20031 const char *g = "string";
20032 ccp = &g + (g ? g-g : 0);
20033 /* HPUX 7.0 cc rejects these. */
20034 ++ccp;
20035 p = (char**) ccp;
20036 ccp = (char const *const *) p;
20037 { /* SCO 3.2v4 cc rejects this. */
20038 char *t;
20039 char const *s = 0 ? (char *) 0 : (char const *) 0;
20040
20041 *t++ = 0;
20042 }
20043 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20044 int x[] = {25, 17};
20045 const int *foo = &x[0];
20046 ++foo;
20047 }
20048 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20049 typedef const int *iptr;
20050 iptr p = 0;
20051 ++p;
20052 }
20053 { /* AIX XL C 1.02.0.0 rejects this saying
20054 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20055 struct s { int j; const int *ap[3]; };
20056 struct s *b; b->j = 5;
20057 }
20058 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20059 const int foo = 10;
20060 }
20061#endif
20062
20063 ;
20064 return 0;
20065}
20066_ACEOF
20067rm -f conftest.$ac_objext
20068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20069 (eval $ac_compile) 2>&5
20070 ac_status=$?
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); } &&
20073 { ac_try='test -s conftest.$ac_objext'
20074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20075 (eval $ac_try) 2>&5
20076 ac_status=$?
20077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); }; }; then
20079 ac_cv_c_const=yes
20080else
20081 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020082sed 's/^/| /' conftest.$ac_ext >&5
20083
John Criswell7a73b802003-06-30 21:59:07 +000020084ac_cv_c_const=no
20085fi
20086rm -f conftest.$ac_objext conftest.$ac_ext
20087fi
20088echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20089echo "${ECHO_T}$ac_cv_c_const" >&6
20090if test $ac_cv_c_const = no; then
20091
20092cat >>confdefs.h <<\_ACEOF
20093#define const
20094_ACEOF
20095
20096fi
20097
20098echo "$as_me:$LINENO: checking for inline" >&5
20099echo $ECHO_N "checking for inline... $ECHO_C" >&6
20100if test "${ac_cv_c_inline+set}" = set; then
20101 echo $ECHO_N "(cached) $ECHO_C" >&6
20102else
20103 ac_cv_c_inline=no
20104for ac_kw in inline __inline__ __inline; do
20105 cat >conftest.$ac_ext <<_ACEOF
20106#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020107/* confdefs.h. */
20108_ACEOF
20109cat confdefs.h >>conftest.$ac_ext
20110cat >>conftest.$ac_ext <<_ACEOF
20111/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020112#ifndef __cplusplus
John Criswell0c38eaf2003-09-10 15:17:25 +000020113typedef int foo_t;
20114static $ac_kw foo_t static_foo () {return 0; }
20115$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000020116#endif
20117
20118_ACEOF
20119rm -f conftest.$ac_objext
20120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20121 (eval $ac_compile) 2>&5
20122 ac_status=$?
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); } &&
20125 { ac_try='test -s conftest.$ac_objext'
20126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20127 (eval $ac_try) 2>&5
20128 ac_status=$?
20129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130 (exit $ac_status); }; }; then
20131 ac_cv_c_inline=$ac_kw; break
20132else
20133 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020134sed 's/^/| /' conftest.$ac_ext >&5
20135
John Criswell7a73b802003-06-30 21:59:07 +000020136fi
20137rm -f conftest.$ac_objext conftest.$ac_ext
20138done
20139
20140fi
20141echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20142echo "${ECHO_T}$ac_cv_c_inline" >&6
20143case $ac_cv_c_inline in
20144 inline | yes) ;;
20145 no)
20146cat >>confdefs.h <<\_ACEOF
20147#define inline
20148_ACEOF
20149 ;;
20150 *) cat >>confdefs.h <<_ACEOF
20151#define inline $ac_cv_c_inline
20152_ACEOF
20153 ;;
20154esac
20155
20156
20157echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20158echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20159if test "${ac_cv_c_bigendian+set}" = set; then
20160 echo $ECHO_N "(cached) $ECHO_C" >&6
20161else
20162 # See if sys/param.h defines the BYTE_ORDER macro.
20163cat >conftest.$ac_ext <<_ACEOF
20164#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020165/* confdefs.h. */
20166_ACEOF
20167cat confdefs.h >>conftest.$ac_ext
20168cat >>conftest.$ac_ext <<_ACEOF
20169/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020170#include <sys/types.h>
20171#include <sys/param.h>
20172
John Criswell7a73b802003-06-30 21:59:07 +000020173int
20174main ()
20175{
20176#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20177 bogus endian macros
20178#endif
20179
20180 ;
20181 return 0;
20182}
20183_ACEOF
20184rm -f conftest.$ac_objext
20185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20186 (eval $ac_compile) 2>&5
20187 ac_status=$?
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); } &&
20190 { ac_try='test -s conftest.$ac_objext'
20191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20192 (eval $ac_try) 2>&5
20193 ac_status=$?
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); }; }; then
20196 # It does; now see whether it defined to BIG_ENDIAN or not.
20197cat >conftest.$ac_ext <<_ACEOF
20198#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020199/* confdefs.h. */
20200_ACEOF
20201cat confdefs.h >>conftest.$ac_ext
20202cat >>conftest.$ac_ext <<_ACEOF
20203/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020204#include <sys/types.h>
20205#include <sys/param.h>
20206
John Criswell7a73b802003-06-30 21:59:07 +000020207int
20208main ()
20209{
20210#if BYTE_ORDER != BIG_ENDIAN
20211 not big endian
20212#endif
20213
20214 ;
20215 return 0;
20216}
20217_ACEOF
20218rm -f conftest.$ac_objext
20219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20220 (eval $ac_compile) 2>&5
20221 ac_status=$?
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); } &&
20224 { ac_try='test -s conftest.$ac_objext'
20225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20226 (eval $ac_try) 2>&5
20227 ac_status=$?
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); }; }; then
20230 ac_cv_c_bigendian=yes
20231else
20232 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020233sed 's/^/| /' conftest.$ac_ext >&5
20234
John Criswell7a73b802003-06-30 21:59:07 +000020235ac_cv_c_bigendian=no
20236fi
20237rm -f conftest.$ac_objext conftest.$ac_ext
20238else
20239 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020240sed 's/^/| /' conftest.$ac_ext >&5
20241
John Criswell7a73b802003-06-30 21:59:07 +000020242# It does not; compile a test program.
20243if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020244 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000020245 ac_cv_c_bigendian=unknown
20246 cat >conftest.$ac_ext <<_ACEOF
20247#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020248/* confdefs.h. */
20249_ACEOF
20250cat confdefs.h >>conftest.$ac_ext
20251cat >>conftest.$ac_ext <<_ACEOF
20252/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020253short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20254short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20255void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20256short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20257short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20258void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000020259int
20260main ()
20261{
20262 _ascii (); _ebcdic ();
20263 ;
20264 return 0;
20265}
20266_ACEOF
20267rm -f conftest.$ac_objext
20268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20269 (eval $ac_compile) 2>&5
20270 ac_status=$?
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); } &&
20273 { ac_try='test -s conftest.$ac_objext'
20274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275 (eval $ac_try) 2>&5
20276 ac_status=$?
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); }; }; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020279 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020280 ac_cv_c_bigendian=yes
20281fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020282if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020283 if test "$ac_cv_c_bigendian" = unknown; then
20284 ac_cv_c_bigendian=no
20285 else
20286 # finding both strings is unlikely to happen, but who knows?
20287 ac_cv_c_bigendian=unknown
20288 fi
20289fi
20290else
20291 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020292sed 's/^/| /' conftest.$ac_ext >&5
20293
John Criswell7a73b802003-06-30 21:59:07 +000020294fi
20295rm -f conftest.$ac_objext conftest.$ac_ext
20296else
20297 cat >conftest.$ac_ext <<_ACEOF
20298#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020299/* confdefs.h. */
20300_ACEOF
20301cat confdefs.h >>conftest.$ac_ext
20302cat >>conftest.$ac_ext <<_ACEOF
20303/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020304int
20305main ()
20306{
20307 /* Are we little or big endian? From Harbison&Steele. */
20308 union
20309 {
20310 long l;
20311 char c[sizeof (long)];
20312 } u;
20313 u.l = 1;
20314 exit (u.c[sizeof (long) - 1] == 1);
20315}
20316_ACEOF
20317rm -f conftest$ac_exeext
20318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20319 (eval $ac_link) 2>&5
20320 ac_status=$?
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20324 (eval $ac_try) 2>&5
20325 ac_status=$?
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); }; }; then
20328 ac_cv_c_bigendian=no
20329else
20330 echo "$as_me: program exited with status $ac_status" >&5
20331echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020332sed 's/^/| /' conftest.$ac_ext >&5
20333
John Criswell7a73b802003-06-30 21:59:07 +000020334( exit $ac_status )
20335ac_cv_c_bigendian=yes
20336fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020337rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020338fi
20339fi
20340rm -f conftest.$ac_objext conftest.$ac_ext
20341fi
20342echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20343echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20344case $ac_cv_c_bigendian in
20345 yes)
20346 cat >>confdefs.h <<\_ACEOF
20347#define ENDIAN_BIG 1
20348_ACEOF
20349 ;;
20350 no)
20351 cat >>confdefs.h <<\_ACEOF
20352#define ENDIAN_LITTLE 1
20353_ACEOF
20354 ;;
20355 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020356 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020357presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020358echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020359presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20360 { (exit 1); exit 1; }; } ;;
20361esac
20362
20363
20364echo "$as_me:$LINENO: checking for pid_t" >&5
20365echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20366if test "${ac_cv_type_pid_t+set}" = set; then
20367 echo $ECHO_N "(cached) $ECHO_C" >&6
20368else
20369 cat >conftest.$ac_ext <<_ACEOF
20370#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020371/* confdefs.h. */
20372_ACEOF
20373cat confdefs.h >>conftest.$ac_ext
20374cat >>conftest.$ac_ext <<_ACEOF
20375/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020376$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020377int
20378main ()
20379{
20380if ((pid_t *) 0)
20381 return 0;
20382if (sizeof (pid_t))
20383 return 0;
20384 ;
20385 return 0;
20386}
20387_ACEOF
20388rm -f conftest.$ac_objext
20389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20390 (eval $ac_compile) 2>&5
20391 ac_status=$?
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); } &&
20394 { ac_try='test -s conftest.$ac_objext'
20395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20396 (eval $ac_try) 2>&5
20397 ac_status=$?
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); }; }; then
20400 ac_cv_type_pid_t=yes
20401else
20402 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020403sed 's/^/| /' conftest.$ac_ext >&5
20404
John Criswell7a73b802003-06-30 21:59:07 +000020405ac_cv_type_pid_t=no
20406fi
20407rm -f conftest.$ac_objext conftest.$ac_ext
20408fi
20409echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20410echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20411if test $ac_cv_type_pid_t = yes; then
20412 :
20413else
20414
20415cat >>confdefs.h <<_ACEOF
20416#define pid_t int
20417_ACEOF
20418
20419fi
20420
20421echo "$as_me:$LINENO: checking for size_t" >&5
20422echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20423if test "${ac_cv_type_size_t+set}" = set; then
20424 echo $ECHO_N "(cached) $ECHO_C" >&6
20425else
20426 cat >conftest.$ac_ext <<_ACEOF
20427#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020428/* confdefs.h. */
20429_ACEOF
20430cat confdefs.h >>conftest.$ac_ext
20431cat >>conftest.$ac_ext <<_ACEOF
20432/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020433$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020434int
20435main ()
20436{
20437if ((size_t *) 0)
20438 return 0;
20439if (sizeof (size_t))
20440 return 0;
20441 ;
20442 return 0;
20443}
20444_ACEOF
20445rm -f conftest.$ac_objext
20446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20447 (eval $ac_compile) 2>&5
20448 ac_status=$?
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); } &&
20451 { ac_try='test -s conftest.$ac_objext'
20452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20453 (eval $ac_try) 2>&5
20454 ac_status=$?
20455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456 (exit $ac_status); }; }; then
20457 ac_cv_type_size_t=yes
20458else
20459 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020460sed 's/^/| /' conftest.$ac_ext >&5
20461
John Criswell7a73b802003-06-30 21:59:07 +000020462ac_cv_type_size_t=no
20463fi
20464rm -f conftest.$ac_objext conftest.$ac_ext
20465fi
20466echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20467echo "${ECHO_T}$ac_cv_type_size_t" >&6
20468if test $ac_cv_type_size_t = yes; then
20469 :
20470else
20471
20472cat >>confdefs.h <<_ACEOF
20473#define size_t unsigned
20474_ACEOF
20475
20476fi
20477
20478echo "$as_me:$LINENO: checking for int64_t" >&5
20479echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20480if test "${ac_cv_type_int64_t+set}" = set; then
20481 echo $ECHO_N "(cached) $ECHO_C" >&6
20482else
20483 cat >conftest.$ac_ext <<_ACEOF
20484#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020485/* confdefs.h. */
20486_ACEOF
20487cat confdefs.h >>conftest.$ac_ext
20488cat >>conftest.$ac_ext <<_ACEOF
20489/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020490$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020491int
20492main ()
20493{
20494if ((int64_t *) 0)
20495 return 0;
20496if (sizeof (int64_t))
20497 return 0;
20498 ;
20499 return 0;
20500}
20501_ACEOF
20502rm -f conftest.$ac_objext
20503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20504 (eval $ac_compile) 2>&5
20505 ac_status=$?
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); } &&
20508 { ac_try='test -s conftest.$ac_objext'
20509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20510 (eval $ac_try) 2>&5
20511 ac_status=$?
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); }; }; then
20514 ac_cv_type_int64_t=yes
20515else
20516 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020517sed 's/^/| /' conftest.$ac_ext >&5
20518
John Criswell7a73b802003-06-30 21:59:07 +000020519ac_cv_type_int64_t=no
20520fi
20521rm -f conftest.$ac_objext conftest.$ac_ext
20522fi
20523echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20524echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20525if test $ac_cv_type_int64_t = yes; then
20526
20527cat >>confdefs.h <<_ACEOF
20528#define HAVE_INT64_T 1
20529_ACEOF
20530
20531
20532else
20533 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20534echo "$as_me: error: Type int64_t required but not found" >&2;}
20535 { (exit 1); exit 1; }; }
20536fi
20537
20538echo "$as_me:$LINENO: checking for uint64_t" >&5
20539echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20540if test "${ac_cv_type_uint64_t+set}" = set; then
20541 echo $ECHO_N "(cached) $ECHO_C" >&6
20542else
20543 cat >conftest.$ac_ext <<_ACEOF
20544#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020545/* confdefs.h. */
20546_ACEOF
20547cat confdefs.h >>conftest.$ac_ext
20548cat >>conftest.$ac_ext <<_ACEOF
20549/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020550$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020551int
20552main ()
20553{
20554if ((uint64_t *) 0)
20555 return 0;
20556if (sizeof (uint64_t))
20557 return 0;
20558 ;
20559 return 0;
20560}
20561_ACEOF
20562rm -f conftest.$ac_objext
20563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20564 (eval $ac_compile) 2>&5
20565 ac_status=$?
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); } &&
20568 { ac_try='test -s conftest.$ac_objext'
20569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20570 (eval $ac_try) 2>&5
20571 ac_status=$?
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); }; }; then
20574 ac_cv_type_uint64_t=yes
20575else
20576 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020577sed 's/^/| /' conftest.$ac_ext >&5
20578
John Criswell7a73b802003-06-30 21:59:07 +000020579ac_cv_type_uint64_t=no
20580fi
20581rm -f conftest.$ac_objext conftest.$ac_ext
20582fi
20583echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20584echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20585if test $ac_cv_type_uint64_t = yes; then
20586
20587cat >>confdefs.h <<_ACEOF
20588#define HAVE_UINT64_T 1
20589_ACEOF
20590
20591
20592else
20593 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20594echo "$as_me: error: Type uint64_t required but not found" >&2;}
20595 { (exit 1); exit 1; }; }
20596fi
20597
20598echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20599echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20600if test "${ac_cv_header_time+set}" = set; then
20601 echo $ECHO_N "(cached) $ECHO_C" >&6
20602else
20603 cat >conftest.$ac_ext <<_ACEOF
20604#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020605/* confdefs.h. */
20606_ACEOF
20607cat confdefs.h >>conftest.$ac_ext
20608cat >>conftest.$ac_ext <<_ACEOF
20609/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020610#include <sys/types.h>
20611#include <sys/time.h>
20612#include <time.h>
20613
John Criswell7a73b802003-06-30 21:59:07 +000020614int
20615main ()
20616{
20617if ((struct tm *) 0)
20618return 0;
20619 ;
20620 return 0;
20621}
20622_ACEOF
20623rm -f conftest.$ac_objext
20624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20625 (eval $ac_compile) 2>&5
20626 ac_status=$?
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); } &&
20629 { ac_try='test -s conftest.$ac_objext'
20630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20631 (eval $ac_try) 2>&5
20632 ac_status=$?
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); }; }; then
20635 ac_cv_header_time=yes
20636else
20637 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020638sed 's/^/| /' conftest.$ac_ext >&5
20639
John Criswell7a73b802003-06-30 21:59:07 +000020640ac_cv_header_time=no
20641fi
20642rm -f conftest.$ac_objext conftest.$ac_ext
20643fi
20644echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20645echo "${ECHO_T}$ac_cv_header_time" >&6
20646if test $ac_cv_header_time = yes; then
20647
20648cat >>confdefs.h <<\_ACEOF
20649#define TIME_WITH_SYS_TIME 1
20650_ACEOF
20651
20652fi
20653
20654echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20655echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20656if test "${ac_cv_struct_tm+set}" = set; then
20657 echo $ECHO_N "(cached) $ECHO_C" >&6
20658else
20659 cat >conftest.$ac_ext <<_ACEOF
20660#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020661/* confdefs.h. */
20662_ACEOF
20663cat confdefs.h >>conftest.$ac_ext
20664cat >>conftest.$ac_ext <<_ACEOF
20665/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020666#include <sys/types.h>
20667#include <time.h>
20668
John Criswell7a73b802003-06-30 21:59:07 +000020669int
20670main ()
20671{
20672struct tm *tp; tp->tm_sec;
20673 ;
20674 return 0;
20675}
20676_ACEOF
20677rm -f conftest.$ac_objext
20678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20679 (eval $ac_compile) 2>&5
20680 ac_status=$?
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); } &&
20683 { ac_try='test -s conftest.$ac_objext'
20684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20685 (eval $ac_try) 2>&5
20686 ac_status=$?
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); }; }; then
20689 ac_cv_struct_tm=time.h
20690else
20691 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020692sed 's/^/| /' conftest.$ac_ext >&5
20693
John Criswell7a73b802003-06-30 21:59:07 +000020694ac_cv_struct_tm=sys/time.h
20695fi
20696rm -f conftest.$ac_objext conftest.$ac_ext
20697fi
20698echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20699echo "${ECHO_T}$ac_cv_struct_tm" >&6
20700if test $ac_cv_struct_tm = sys/time.h; then
20701
20702cat >>confdefs.h <<\_ACEOF
20703#define TM_IN_SYS_TIME 1
20704_ACEOF
20705
20706fi
20707
20708
John Criswell7a73b802003-06-30 21:59:07 +000020709echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20710echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20711if test "${ac_cv_cxx_namespaces+set}" = set; then
20712 echo $ECHO_N "(cached) $ECHO_C" >&6
20713else
20714
20715
20716 ac_ext=cc
20717ac_cpp='$CXXCPP $CPPFLAGS'
20718ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20719ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20720ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20721
20722 cat >conftest.$ac_ext <<_ACEOF
20723#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020724/* confdefs.h. */
20725_ACEOF
20726cat confdefs.h >>conftest.$ac_ext
20727cat >>conftest.$ac_ext <<_ACEOF
20728/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020729namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020730int
20731main ()
20732{
20733using namespace Outer::Inner; return i;
20734 ;
20735 return 0;
20736}
20737_ACEOF
20738rm -f conftest.$ac_objext
20739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20740 (eval $ac_compile) 2>&5
20741 ac_status=$?
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); } &&
20744 { ac_try='test -s conftest.$ac_objext'
20745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20746 (eval $ac_try) 2>&5
20747 ac_status=$?
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); }; }; then
20750 ac_cv_cxx_namespaces=yes
20751else
20752 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020753sed 's/^/| /' conftest.$ac_ext >&5
20754
John Criswell7a73b802003-06-30 21:59:07 +000020755ac_cv_cxx_namespaces=no
20756fi
20757rm -f conftest.$ac_objext conftest.$ac_ext
20758 ac_ext=c
20759ac_cpp='$CPP $CPPFLAGS'
20760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20762ac_compiler_gnu=$ac_cv_c_compiler_gnu
20763
20764
20765fi
20766echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20767echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20768if test "$ac_cv_cxx_namespaces" = yes; then
20769
20770cat >>confdefs.h <<\_ACEOF
20771#define HAVE_NAMESPACES
20772_ACEOF
20773
20774fi
20775
20776echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20777echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20778if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20779 echo $ECHO_N "(cached) $ECHO_C" >&6
20780else
20781
20782
20783
20784 ac_ext=cc
20785ac_cpp='$CXXCPP $CPPFLAGS'
20786ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20787ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20788ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20789
20790 cat >conftest.$ac_ext <<_ACEOF
20791#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020792/* confdefs.h. */
20793_ACEOF
20794cat confdefs.h >>conftest.$ac_ext
20795cat >>conftest.$ac_ext <<_ACEOF
20796/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020797#include <ext/hash_map>
20798#ifdef HAVE_NAMESPACES
20799using namespace std;
20800#endif
John Criswell7a73b802003-06-30 21:59:07 +000020801int
20802main ()
20803{
20804hash_map<int, int> t; return 0;
20805 ;
20806 return 0;
20807}
20808_ACEOF
20809rm -f conftest.$ac_objext
20810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20811 (eval $ac_compile) 2>&5
20812 ac_status=$?
20813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814 (exit $ac_status); } &&
20815 { ac_try='test -s conftest.$ac_objext'
20816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20817 (eval $ac_try) 2>&5
20818 ac_status=$?
20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 (exit $ac_status); }; }; then
20821 ac_cv_cxx_have_ext_hash_map=std
20822else
20823 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020824sed 's/^/| /' conftest.$ac_ext >&5
20825
John Criswell7a73b802003-06-30 21:59:07 +000020826ac_cv_cxx_have_ext_hash_map=no
20827fi
20828rm -f conftest.$ac_objext conftest.$ac_ext
20829 cat >conftest.$ac_ext <<_ACEOF
20830#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020831/* confdefs.h. */
20832_ACEOF
20833cat confdefs.h >>conftest.$ac_ext
20834cat >>conftest.$ac_ext <<_ACEOF
20835/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020836#include <ext/hash_map>
20837#ifdef HAVE_NAMESPACES
20838using namespace __gnu_cxx;
20839#endif
John Criswell7a73b802003-06-30 21:59:07 +000020840int
20841main ()
20842{
20843hash_map<int, int> t; return 0;
20844 ;
20845 return 0;
20846}
20847_ACEOF
20848rm -f conftest.$ac_objext
20849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20850 (eval $ac_compile) 2>&5
20851 ac_status=$?
20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); } &&
20854 { ac_try='test -s conftest.$ac_objext'
20855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20856 (eval $ac_try) 2>&5
20857 ac_status=$?
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); }; }; then
20860 ac_cv_cxx_have_ext_hash_map=gnu
20861else
20862 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020863sed 's/^/| /' conftest.$ac_ext >&5
20864
John Criswell7a73b802003-06-30 21:59:07 +000020865ac_cv_cxx_have_ext_hash_map=no
20866fi
20867rm -f conftest.$ac_objext conftest.$ac_ext
20868 ac_ext=c
20869ac_cpp='$CPP $CPPFLAGS'
20870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20872ac_compiler_gnu=$ac_cv_c_compiler_gnu
20873
20874
20875fi
20876echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20877echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20878if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20879
20880cat >>confdefs.h <<\_ACEOF
20881#define HAVE_STD_EXT_HASH_MAP
20882_ACEOF
20883
20884fi
20885if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20886
20887cat >>confdefs.h <<\_ACEOF
20888#define HAVE_GNU_EXT_HASH_MAP
20889_ACEOF
20890
20891fi
20892
20893echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20894echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20895if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20896 echo $ECHO_N "(cached) $ECHO_C" >&6
20897else
20898
20899
20900
20901 ac_ext=cc
20902ac_cpp='$CXXCPP $CPPFLAGS'
20903ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20904ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20905ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20906
20907 cat >conftest.$ac_ext <<_ACEOF
20908#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020909/* confdefs.h. */
20910_ACEOF
20911cat confdefs.h >>conftest.$ac_ext
20912cat >>conftest.$ac_ext <<_ACEOF
20913/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020914#include <ext/hash_set>
20915#ifdef HAVE_NAMESPACES
20916using namespace std;
20917#endif
John Criswell7a73b802003-06-30 21:59:07 +000020918int
20919main ()
20920{
20921hash_set<int> t; return 0;
20922 ;
20923 return 0;
20924}
20925_ACEOF
20926rm -f conftest.$ac_objext
20927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20928 (eval $ac_compile) 2>&5
20929 ac_status=$?
20930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931 (exit $ac_status); } &&
20932 { ac_try='test -s conftest.$ac_objext'
20933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20934 (eval $ac_try) 2>&5
20935 ac_status=$?
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); }; }; then
20938 ac_cv_cxx_have_ext_hash_set=std
20939else
20940 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020941sed 's/^/| /' conftest.$ac_ext >&5
20942
John Criswell7a73b802003-06-30 21:59:07 +000020943ac_cv_cxx_have_ext_hash_set=no
20944fi
20945rm -f conftest.$ac_objext conftest.$ac_ext
20946 cat >conftest.$ac_ext <<_ACEOF
20947#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020948/* confdefs.h. */
20949_ACEOF
20950cat confdefs.h >>conftest.$ac_ext
20951cat >>conftest.$ac_ext <<_ACEOF
20952/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020953#include <ext/hash_set>
20954#ifdef HAVE_NAMESPACES
20955using namespace __gnu_cxx;
20956#endif
John Criswell7a73b802003-06-30 21:59:07 +000020957int
20958main ()
20959{
20960hash_set<int> t; return 0;
20961 ;
20962 return 0;
20963}
20964_ACEOF
20965rm -f conftest.$ac_objext
20966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20967 (eval $ac_compile) 2>&5
20968 ac_status=$?
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); } &&
20971 { ac_try='test -s conftest.$ac_objext'
20972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20973 (eval $ac_try) 2>&5
20974 ac_status=$?
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); }; }; then
20977 ac_cv_cxx_have_ext_hash_set=gnu
20978else
20979 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020980sed 's/^/| /' conftest.$ac_ext >&5
20981
John Criswell7a73b802003-06-30 21:59:07 +000020982ac_cv_cxx_have_ext_hash_set=no
20983fi
20984rm -f conftest.$ac_objext conftest.$ac_ext
20985 ac_ext=c
20986ac_cpp='$CPP $CPPFLAGS'
20987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20989ac_compiler_gnu=$ac_cv_c_compiler_gnu
20990
20991
20992fi
20993echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20994echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20995if test "$ac_cv_cxx_have_ext_hash_set" = std; then
20996
20997cat >>confdefs.h <<\_ACEOF
20998#define HAVE_STD_EXT_HASH_SET
20999_ACEOF
21000
21001fi
21002if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
21003
21004cat >>confdefs.h <<\_ACEOF
21005#define HAVE_GNU_EXT_HASH_SET
21006_ACEOF
21007
21008fi
21009
21010echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21011echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21012if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21013 echo $ECHO_N "(cached) $ECHO_C" >&6
21014else
21015
21016
21017
21018 ac_ext=cc
21019ac_cpp='$CXXCPP $CPPFLAGS'
21020ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21021ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21022ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21023
21024 cat >conftest.$ac_ext <<_ACEOF
21025#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021026/* confdefs.h. */
21027_ACEOF
21028cat confdefs.h >>conftest.$ac_ext
21029cat >>conftest.$ac_ext <<_ACEOF
21030/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021031#include <ext/slist>
21032#ifdef HAVE_NAMESPACES
21033using namespace std;
21034#endif
John Criswell7a73b802003-06-30 21:59:07 +000021035int
21036main ()
21037{
21038slist<int> s; return 0;
21039 ;
21040 return 0;
21041}
21042_ACEOF
21043rm -f conftest.$ac_objext
21044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21045 (eval $ac_compile) 2>&5
21046 ac_status=$?
21047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048 (exit $ac_status); } &&
21049 { ac_try='test -s conftest.$ac_objext'
21050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21051 (eval $ac_try) 2>&5
21052 ac_status=$?
21053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054 (exit $ac_status); }; }; then
21055 ac_cv_cxx_have_ext_slist=std
21056else
21057 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021058sed 's/^/| /' conftest.$ac_ext >&5
21059
John Criswell7a73b802003-06-30 21:59:07 +000021060ac_cv_cxx_have_ext_slist=no
21061fi
21062rm -f conftest.$ac_objext conftest.$ac_ext
21063 cat >conftest.$ac_ext <<_ACEOF
21064#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021065/* confdefs.h. */
21066_ACEOF
21067cat confdefs.h >>conftest.$ac_ext
21068cat >>conftest.$ac_ext <<_ACEOF
21069/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021070#include <ext/slist>
21071#ifdef HAVE_NAMESPACES
21072using namespace __gnu_cxx;
21073#endif
John Criswell7a73b802003-06-30 21:59:07 +000021074int
21075main ()
21076{
21077slist<int> s; return 0;
21078 ;
21079 return 0;
21080}
21081_ACEOF
21082rm -f conftest.$ac_objext
21083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21084 (eval $ac_compile) 2>&5
21085 ac_status=$?
21086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087 (exit $ac_status); } &&
21088 { ac_try='test -s conftest.$ac_objext'
21089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21090 (eval $ac_try) 2>&5
21091 ac_status=$?
21092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093 (exit $ac_status); }; }; then
21094 ac_cv_cxx_have_ext_slist=gnu
21095else
21096 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021097sed 's/^/| /' conftest.$ac_ext >&5
21098
John Criswell7a73b802003-06-30 21:59:07 +000021099ac_cv_cxx_have_ext_slist=no
21100fi
21101rm -f conftest.$ac_objext conftest.$ac_ext
21102
21103 ac_ext=c
21104ac_cpp='$CPP $CPPFLAGS'
21105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21107ac_compiler_gnu=$ac_cv_c_compiler_gnu
21108
21109
21110fi
21111echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21112echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21113if test "$ac_cv_cxx_have_ext_slist" = std; then
21114
21115cat >>confdefs.h <<\_ACEOF
21116#define HAVE_EXT_SLIST std
21117_ACEOF
21118
21119fi
21120if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21121
21122cat >>confdefs.h <<\_ACEOF
21123#define HAVE_EXT_SLIST gnu
21124_ACEOF
21125
21126fi
21127
21128echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21129echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21130if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21131 echo $ECHO_N "(cached) $ECHO_C" >&6
21132else
21133
21134
21135
21136 ac_ext=cc
21137ac_cpp='$CXXCPP $CPPFLAGS'
21138ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21139ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21140ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21141
21142 cat >conftest.$ac_ext <<_ACEOF
21143#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021144/* confdefs.h. */
21145_ACEOF
21146cat confdefs.h >>conftest.$ac_ext
21147cat >>conftest.$ac_ext <<_ACEOF
21148/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021149#include <iterator>
21150#ifdef HAVE_NAMESPACES
21151using namespace std;
21152#endif
John Criswell7a73b802003-06-30 21:59:07 +000021153int
21154main ()
21155{
21156iterator<int,int,int> t; return 0;
21157 ;
21158 return 0;
21159}
21160_ACEOF
21161rm -f conftest.$ac_objext
21162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21163 (eval $ac_compile) 2>&5
21164 ac_status=$?
21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); } &&
21167 { ac_try='test -s conftest.$ac_objext'
21168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21169 (eval $ac_try) 2>&5
21170 ac_status=$?
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); }; }; then
21173 ac_cv_cxx_have_std_iterator=yes
21174else
21175 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021176sed 's/^/| /' conftest.$ac_ext >&5
21177
John Criswell7a73b802003-06-30 21:59:07 +000021178ac_cv_cxx_have_std_iterator=no
21179fi
21180rm -f conftest.$ac_objext conftest.$ac_ext
21181 ac_ext=c
21182ac_cpp='$CPP $CPPFLAGS'
21183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21185ac_compiler_gnu=$ac_cv_c_compiler_gnu
21186
21187
21188fi
21189echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21190echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21191if test "$ac_cv_cxx_have_std_iterator" = yes; then
21192
21193cat >>confdefs.h <<\_ACEOF
21194#define HAVE_STD_ITERATOR
21195_ACEOF
21196
21197fi
21198
21199echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21200echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21201if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21202 echo $ECHO_N "(cached) $ECHO_C" >&6
21203else
21204
21205
21206
21207 ac_ext=cc
21208ac_cpp='$CXXCPP $CPPFLAGS'
21209ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21210ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21211ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21212
21213 cat >conftest.$ac_ext <<_ACEOF
21214#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021215/* confdefs.h. */
21216_ACEOF
21217cat confdefs.h >>conftest.$ac_ext
21218cat >>conftest.$ac_ext <<_ACEOF
21219/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021220#include <iterator>
21221#ifdef HAVE_NAMESPACES
21222using namespace std;
21223#endif
John Criswell7a73b802003-06-30 21:59:07 +000021224int
21225main ()
21226{
John Criswellc78022e2003-07-29 19:11:58 +000021227bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021228 ;
21229 return 0;
21230}
21231_ACEOF
21232rm -f conftest.$ac_objext
21233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21234 (eval $ac_compile) 2>&5
21235 ac_status=$?
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); } &&
21238 { ac_try='test -s conftest.$ac_objext'
21239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21240 (eval $ac_try) 2>&5
21241 ac_status=$?
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); }; }; then
21244 ac_cv_cxx_have_bi_iterator=yes
21245else
21246 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021247sed 's/^/| /' conftest.$ac_ext >&5
21248
John Criswell7a73b802003-06-30 21:59:07 +000021249ac_cv_cxx_have_bi_iterator=no
21250fi
21251rm -f conftest.$ac_objext conftest.$ac_ext
21252 ac_ext=c
21253ac_cpp='$CPP $CPPFLAGS'
21254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21256ac_compiler_gnu=$ac_cv_c_compiler_gnu
21257
21258
21259fi
21260echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21261echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21262if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21263
21264cat >>confdefs.h <<\_ACEOF
21265#define HAVE_BI_ITERATOR
21266_ACEOF
21267
21268fi
21269
21270echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21271echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21272if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21273 echo $ECHO_N "(cached) $ECHO_C" >&6
21274else
21275
21276
21277
21278 ac_ext=cc
21279ac_cpp='$CXXCPP $CPPFLAGS'
21280ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21281ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21282ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21283
21284 cat >conftest.$ac_ext <<_ACEOF
21285#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021286/* confdefs.h. */
21287_ACEOF
21288cat confdefs.h >>conftest.$ac_ext
21289cat >>conftest.$ac_ext <<_ACEOF
21290/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021291#include <iterator>
21292#ifdef HAVE_NAMESPACES
21293using namespace std;
21294#endif
John Criswell7a73b802003-06-30 21:59:07 +000021295int
21296main ()
21297{
John Criswellc78022e2003-07-29 19:11:58 +000021298forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021299 ;
21300 return 0;
21301}
21302_ACEOF
21303rm -f conftest.$ac_objext
21304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21305 (eval $ac_compile) 2>&5
21306 ac_status=$?
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); } &&
21309 { ac_try='test -s conftest.$ac_objext'
21310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21311 (eval $ac_try) 2>&5
21312 ac_status=$?
21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314 (exit $ac_status); }; }; then
21315 ac_cv_cxx_have_fwd_iterator=yes
21316else
21317 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021318sed 's/^/| /' conftest.$ac_ext >&5
21319
John Criswell7a73b802003-06-30 21:59:07 +000021320ac_cv_cxx_have_fwd_iterator=no
21321fi
21322rm -f conftest.$ac_objext conftest.$ac_ext
21323 ac_ext=c
21324ac_cpp='$CPP $CPPFLAGS'
21325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21327ac_compiler_gnu=$ac_cv_c_compiler_gnu
21328
21329
21330fi
21331echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21332echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21333if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21334
21335cat >>confdefs.h <<\_ACEOF
21336#define HAVE_FWD_ITERATOR
21337_ACEOF
21338
21339fi
21340
21341
21342# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21343# for constant arguments. Useless!
21344echo "$as_me:$LINENO: checking for working alloca.h" >&5
21345echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21346if test "${ac_cv_working_alloca_h+set}" = set; then
21347 echo $ECHO_N "(cached) $ECHO_C" >&6
21348else
21349 cat >conftest.$ac_ext <<_ACEOF
21350#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021351/* confdefs.h. */
21352_ACEOF
21353cat confdefs.h >>conftest.$ac_ext
21354cat >>conftest.$ac_ext <<_ACEOF
21355/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021356#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021357int
21358main ()
21359{
21360char *p = (char *) alloca (2 * sizeof (int));
21361 ;
21362 return 0;
21363}
21364_ACEOF
21365rm -f conftest.$ac_objext conftest$ac_exeext
21366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21367 (eval $ac_link) 2>&5
21368 ac_status=$?
21369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370 (exit $ac_status); } &&
21371 { ac_try='test -s conftest$ac_exeext'
21372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21373 (eval $ac_try) 2>&5
21374 ac_status=$?
21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); }; }; then
21377 ac_cv_working_alloca_h=yes
21378else
21379 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021380sed 's/^/| /' conftest.$ac_ext >&5
21381
John Criswell7a73b802003-06-30 21:59:07 +000021382ac_cv_working_alloca_h=no
21383fi
21384rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21385fi
21386echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21387echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21388if test $ac_cv_working_alloca_h = yes; then
21389
21390cat >>confdefs.h <<\_ACEOF
21391#define HAVE_ALLOCA_H 1
21392_ACEOF
21393
21394fi
21395
21396echo "$as_me:$LINENO: checking for alloca" >&5
21397echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21398if test "${ac_cv_func_alloca_works+set}" = set; then
21399 echo $ECHO_N "(cached) $ECHO_C" >&6
21400else
21401 cat >conftest.$ac_ext <<_ACEOF
21402#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021403/* confdefs.h. */
21404_ACEOF
21405cat confdefs.h >>conftest.$ac_ext
21406cat >>conftest.$ac_ext <<_ACEOF
21407/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021408#ifdef __GNUC__
21409# define alloca __builtin_alloca
21410#else
21411# ifdef _MSC_VER
21412# include <malloc.h>
21413# define alloca _alloca
21414# else
21415# if HAVE_ALLOCA_H
21416# include <alloca.h>
21417# else
21418# ifdef _AIX
21419 #pragma alloca
21420# else
21421# ifndef alloca /* predefined by HP cc +Olibcalls */
21422char *alloca ();
21423# endif
21424# endif
21425# endif
21426# endif
21427#endif
21428
John Criswell7a73b802003-06-30 21:59:07 +000021429int
21430main ()
21431{
21432char *p = (char *) alloca (1);
21433 ;
21434 return 0;
21435}
21436_ACEOF
21437rm -f conftest.$ac_objext conftest$ac_exeext
21438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21439 (eval $ac_link) 2>&5
21440 ac_status=$?
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); } &&
21443 { ac_try='test -s conftest$ac_exeext'
21444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21445 (eval $ac_try) 2>&5
21446 ac_status=$?
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); }; }; then
21449 ac_cv_func_alloca_works=yes
21450else
21451 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021452sed 's/^/| /' conftest.$ac_ext >&5
21453
John Criswell7a73b802003-06-30 21:59:07 +000021454ac_cv_func_alloca_works=no
21455fi
21456rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21457fi
21458echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21459echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21460
21461if test $ac_cv_func_alloca_works = yes; then
21462
21463cat >>confdefs.h <<\_ACEOF
21464#define HAVE_ALLOCA 1
21465_ACEOF
21466
21467else
21468 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21469# that cause trouble. Some versions do not even contain alloca or
21470# contain a buggy version. If you still want to use their alloca,
21471# use ar to extract alloca.o from them instead of compiling alloca.c.
21472
21473ALLOCA=alloca.$ac_objext
21474
21475cat >>confdefs.h <<\_ACEOF
21476#define C_ALLOCA 1
21477_ACEOF
21478
21479
21480echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21481echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21482if test "${ac_cv_os_cray+set}" = set; then
21483 echo $ECHO_N "(cached) $ECHO_C" >&6
21484else
21485 cat >conftest.$ac_ext <<_ACEOF
21486#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021487/* confdefs.h. */
21488_ACEOF
21489cat confdefs.h >>conftest.$ac_ext
21490cat >>conftest.$ac_ext <<_ACEOF
21491/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021492#if defined(CRAY) && ! defined(CRAY2)
21493webecray
21494#else
21495wenotbecray
21496#endif
21497
21498_ACEOF
21499if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021500 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021501 ac_cv_os_cray=yes
21502else
21503 ac_cv_os_cray=no
21504fi
21505rm -f conftest*
21506
21507fi
21508echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21509echo "${ECHO_T}$ac_cv_os_cray" >&6
21510if test $ac_cv_os_cray = yes; then
21511 for ac_func in _getb67 GETB67 getb67; do
21512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21513echo "$as_me:$LINENO: checking for $ac_func" >&5
21514echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21515if eval "test \"\${$as_ac_var+set}\" = set"; then
21516 echo $ECHO_N "(cached) $ECHO_C" >&6
21517else
21518 cat >conftest.$ac_ext <<_ACEOF
21519#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021520/* confdefs.h. */
21521_ACEOF
21522cat confdefs.h >>conftest.$ac_ext
21523cat >>conftest.$ac_ext <<_ACEOF
21524/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021525/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021526 which can conflict with char $ac_func (); below.
21527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21528 <limits.h> exists even on freestanding compilers. */
21529#ifdef __STDC__
21530# include <limits.h>
21531#else
21532# include <assert.h>
21533#endif
John Criswell7a73b802003-06-30 21:59:07 +000021534/* Override any gcc2 internal prototype to avoid an error. */
21535#ifdef __cplusplus
21536extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021537{
John Criswell7a73b802003-06-30 21:59:07 +000021538#endif
21539/* We use char because int might match the return type of a gcc2
21540 builtin and then its argument prototype would still apply. */
21541char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021542/* The GNU C library defines this for functions which it implements
21543 to always fail with ENOSYS. Some functions are actually named
21544 something starting with __ and the normal name is an alias. */
21545#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21546choke me
21547#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021548char (*f) () = $ac_func;
21549#endif
21550#ifdef __cplusplus
21551}
John Criswell7a73b802003-06-30 21:59:07 +000021552#endif
21553
John Criswell0c38eaf2003-09-10 15:17:25 +000021554int
21555main ()
21556{
21557return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021558 ;
21559 return 0;
21560}
21561_ACEOF
21562rm -f conftest.$ac_objext conftest$ac_exeext
21563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21564 (eval $ac_link) 2>&5
21565 ac_status=$?
21566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567 (exit $ac_status); } &&
21568 { ac_try='test -s conftest$ac_exeext'
21569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21570 (eval $ac_try) 2>&5
21571 ac_status=$?
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); }; }; then
21574 eval "$as_ac_var=yes"
21575else
21576 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021577sed 's/^/| /' conftest.$ac_ext >&5
21578
John Criswell7a73b802003-06-30 21:59:07 +000021579eval "$as_ac_var=no"
21580fi
21581rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21582fi
21583echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21584echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21585if test `eval echo '${'$as_ac_var'}'` = yes; then
21586
21587cat >>confdefs.h <<_ACEOF
21588#define CRAY_STACKSEG_END $ac_func
21589_ACEOF
21590
21591 break
21592fi
21593
21594 done
21595fi
21596
21597echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21598echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21599if test "${ac_cv_c_stack_direction+set}" = set; then
21600 echo $ECHO_N "(cached) $ECHO_C" >&6
21601else
21602 if test "$cross_compiling" = yes; then
21603 ac_cv_c_stack_direction=0
21604else
21605 cat >conftest.$ac_ext <<_ACEOF
21606#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021607/* confdefs.h. */
21608_ACEOF
21609cat confdefs.h >>conftest.$ac_ext
21610cat >>conftest.$ac_ext <<_ACEOF
21611/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021612int
21613find_stack_direction ()
21614{
21615 static char *addr = 0;
21616 auto char dummy;
21617 if (addr == 0)
21618 {
21619 addr = &dummy;
21620 return find_stack_direction ();
21621 }
21622 else
21623 return (&dummy > addr) ? 1 : -1;
21624}
21625
21626int
21627main ()
21628{
21629 exit (find_stack_direction () < 0);
21630}
21631_ACEOF
21632rm -f conftest$ac_exeext
21633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21634 (eval $ac_link) 2>&5
21635 ac_status=$?
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21639 (eval $ac_try) 2>&5
21640 ac_status=$?
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); }; }; then
21643 ac_cv_c_stack_direction=1
21644else
21645 echo "$as_me: program exited with status $ac_status" >&5
21646echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021647sed 's/^/| /' conftest.$ac_ext >&5
21648
John Criswell7a73b802003-06-30 21:59:07 +000021649( exit $ac_status )
21650ac_cv_c_stack_direction=-1
21651fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021652rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021653fi
21654fi
21655echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21656echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21657
21658cat >>confdefs.h <<_ACEOF
21659#define STACK_DIRECTION $ac_cv_c_stack_direction
21660_ACEOF
21661
21662
21663fi
21664
21665if test $ac_cv_c_compiler_gnu = yes; then
21666 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21667echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21668if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21669 echo $ECHO_N "(cached) $ECHO_C" >&6
21670else
21671 ac_pattern="Autoconf.*'x'"
21672 cat >conftest.$ac_ext <<_ACEOF
21673#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021674/* confdefs.h. */
21675_ACEOF
21676cat confdefs.h >>conftest.$ac_ext
21677cat >>conftest.$ac_ext <<_ACEOF
21678/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021679#include <sgtty.h>
21680Autoconf TIOCGETP
21681_ACEOF
21682if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021683 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021684 ac_cv_prog_gcc_traditional=yes
21685else
21686 ac_cv_prog_gcc_traditional=no
21687fi
21688rm -f conftest*
21689
21690
21691 if test $ac_cv_prog_gcc_traditional = no; then
21692 cat >conftest.$ac_ext <<_ACEOF
21693#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021694/* confdefs.h. */
21695_ACEOF
21696cat confdefs.h >>conftest.$ac_ext
21697cat >>conftest.$ac_ext <<_ACEOF
21698/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021699#include <termio.h>
21700Autoconf TCGETA
21701_ACEOF
21702if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021703 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021704 ac_cv_prog_gcc_traditional=yes
21705fi
21706rm -f conftest*
21707
21708 fi
21709fi
21710echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21711echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21712 if test $ac_cv_prog_gcc_traditional = yes; then
21713 CC="$CC -traditional"
21714 fi
21715fi
21716
21717echo "$as_me:$LINENO: checking for working memcmp" >&5
21718echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21719if test "${ac_cv_func_memcmp_working+set}" = set; then
21720 echo $ECHO_N "(cached) $ECHO_C" >&6
21721else
21722 if test "$cross_compiling" = yes; then
21723 ac_cv_func_memcmp_working=no
21724else
21725 cat >conftest.$ac_ext <<_ACEOF
21726#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021727/* confdefs.h. */
21728_ACEOF
21729cat confdefs.h >>conftest.$ac_ext
21730cat >>conftest.$ac_ext <<_ACEOF
21731/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021732
John Criswell7a73b802003-06-30 21:59:07 +000021733int
21734main ()
21735{
21736
21737 /* Some versions of memcmp are not 8-bit clean. */
21738 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21739 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21740 exit (1);
21741
21742 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21743 or more and with at least one buffer not starting on a 4-byte boundary.
21744 William Lewis provided this test program. */
21745 {
21746 char foo[21];
21747 char bar[21];
21748 int i;
21749 for (i = 0; i < 4; i++)
21750 {
21751 char *a = foo + i;
21752 char *b = bar + i;
21753 strcpy (a, "--------01111111");
21754 strcpy (b, "--------10000000");
21755 if (memcmp (a, b, 16) >= 0)
21756 exit (1);
21757 }
21758 exit (0);
21759 }
21760
21761 ;
21762 return 0;
21763}
21764_ACEOF
21765rm -f conftest$ac_exeext
21766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21767 (eval $ac_link) 2>&5
21768 ac_status=$?
21769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21772 (eval $ac_try) 2>&5
21773 ac_status=$?
21774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775 (exit $ac_status); }; }; then
21776 ac_cv_func_memcmp_working=yes
21777else
21778 echo "$as_me: program exited with status $ac_status" >&5
21779echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021780sed 's/^/| /' conftest.$ac_ext >&5
21781
John Criswell7a73b802003-06-30 21:59:07 +000021782( exit $ac_status )
21783ac_cv_func_memcmp_working=no
21784fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021785rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021786fi
21787fi
21788echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21789echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21790test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21791
21792
21793
21794for ac_header in stdlib.h unistd.h
21795do
21796as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21797if eval "test \"\${$as_ac_Header+set}\" = set"; then
21798 echo "$as_me:$LINENO: checking for $ac_header" >&5
21799echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21800if eval "test \"\${$as_ac_Header+set}\" = set"; then
21801 echo $ECHO_N "(cached) $ECHO_C" >&6
21802fi
21803echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21804echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21805else
21806 # Is the header compilable?
21807echo "$as_me:$LINENO: checking $ac_header usability" >&5
21808echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21809cat >conftest.$ac_ext <<_ACEOF
21810#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021811/* confdefs.h. */
21812_ACEOF
21813cat confdefs.h >>conftest.$ac_ext
21814cat >>conftest.$ac_ext <<_ACEOF
21815/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021816$ac_includes_default
21817#include <$ac_header>
21818_ACEOF
21819rm -f conftest.$ac_objext
21820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21821 (eval $ac_compile) 2>&5
21822 ac_status=$?
21823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824 (exit $ac_status); } &&
21825 { ac_try='test -s conftest.$ac_objext'
21826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21827 (eval $ac_try) 2>&5
21828 ac_status=$?
21829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830 (exit $ac_status); }; }; then
21831 ac_header_compiler=yes
21832else
21833 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021834sed 's/^/| /' conftest.$ac_ext >&5
21835
John Criswell7a73b802003-06-30 21:59:07 +000021836ac_header_compiler=no
21837fi
21838rm -f conftest.$ac_objext conftest.$ac_ext
21839echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21840echo "${ECHO_T}$ac_header_compiler" >&6
21841
21842# Is the header present?
21843echo "$as_me:$LINENO: checking $ac_header presence" >&5
21844echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21845cat >conftest.$ac_ext <<_ACEOF
21846#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021847/* confdefs.h. */
21848_ACEOF
21849cat confdefs.h >>conftest.$ac_ext
21850cat >>conftest.$ac_ext <<_ACEOF
21851/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021852#include <$ac_header>
21853_ACEOF
21854if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21856 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021857 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021858 rm -f conftest.er1
21859 cat conftest.err >&5
21860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861 (exit $ac_status); } >/dev/null; then
21862 if test -s conftest.err; then
21863 ac_cpp_err=$ac_c_preproc_warn_flag
21864 else
21865 ac_cpp_err=
21866 fi
21867else
21868 ac_cpp_err=yes
21869fi
21870if test -z "$ac_cpp_err"; then
21871 ac_header_preproc=yes
21872else
21873 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021874sed 's/^/| /' conftest.$ac_ext >&5
21875
John Criswell7a73b802003-06-30 21:59:07 +000021876 ac_header_preproc=no
21877fi
21878rm -f conftest.err conftest.$ac_ext
21879echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21880echo "${ECHO_T}$ac_header_preproc" >&6
21881
21882# So? What about this header?
21883case $ac_header_compiler:$ac_header_preproc in
21884 yes:no )
21885 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21886echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021888echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21889 (
21890 cat <<\_ASBOX
21891## ------------------------------------ ##
21892## Report this to bug-autoconf@gnu.org. ##
21893## ------------------------------------ ##
21894_ASBOX
21895 ) |
21896 sed "s/^/$as_me: WARNING: /" >&2
21897 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021898 no:yes )
21899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21900echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21902echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021904echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21905 (
21906 cat <<\_ASBOX
21907## ------------------------------------ ##
21908## Report this to bug-autoconf@gnu.org. ##
21909## ------------------------------------ ##
21910_ASBOX
21911 ) |
21912 sed "s/^/$as_me: WARNING: /" >&2
21913 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021914esac
21915echo "$as_me:$LINENO: checking for $ac_header" >&5
21916echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21917if eval "test \"\${$as_ac_Header+set}\" = set"; then
21918 echo $ECHO_N "(cached) $ECHO_C" >&6
21919else
21920 eval "$as_ac_Header=$ac_header_preproc"
21921fi
21922echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21923echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21924
21925fi
21926if test `eval echo '${'$as_ac_Header'}'` = yes; then
21927 cat >>confdefs.h <<_ACEOF
21928#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21929_ACEOF
21930
21931fi
21932
21933done
21934
21935
21936for ac_func in getpagesize
21937do
21938as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21939echo "$as_me:$LINENO: checking for $ac_func" >&5
21940echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21941if eval "test \"\${$as_ac_var+set}\" = set"; then
21942 echo $ECHO_N "(cached) $ECHO_C" >&6
21943else
21944 cat >conftest.$ac_ext <<_ACEOF
21945#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021946/* confdefs.h. */
21947_ACEOF
21948cat confdefs.h >>conftest.$ac_ext
21949cat >>conftest.$ac_ext <<_ACEOF
21950/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021951/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021952 which can conflict with char $ac_func (); below.
21953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21954 <limits.h> exists even on freestanding compilers. */
21955#ifdef __STDC__
21956# include <limits.h>
21957#else
21958# include <assert.h>
21959#endif
John Criswell7a73b802003-06-30 21:59:07 +000021960/* Override any gcc2 internal prototype to avoid an error. */
21961#ifdef __cplusplus
21962extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021963{
John Criswell7a73b802003-06-30 21:59:07 +000021964#endif
21965/* We use char because int might match the return type of a gcc2
21966 builtin and then its argument prototype would still apply. */
21967char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021968/* The GNU C library defines this for functions which it implements
21969 to always fail with ENOSYS. Some functions are actually named
21970 something starting with __ and the normal name is an alias. */
21971#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21972choke me
21973#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021974char (*f) () = $ac_func;
21975#endif
21976#ifdef __cplusplus
21977}
John Criswell7a73b802003-06-30 21:59:07 +000021978#endif
21979
John Criswell0c38eaf2003-09-10 15:17:25 +000021980int
21981main ()
21982{
21983return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021984 ;
21985 return 0;
21986}
21987_ACEOF
21988rm -f conftest.$ac_objext conftest$ac_exeext
21989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21990 (eval $ac_link) 2>&5
21991 ac_status=$?
21992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993 (exit $ac_status); } &&
21994 { ac_try='test -s conftest$ac_exeext'
21995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21996 (eval $ac_try) 2>&5
21997 ac_status=$?
21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); }; }; then
22000 eval "$as_ac_var=yes"
22001else
22002 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022003sed 's/^/| /' conftest.$ac_ext >&5
22004
John Criswell7a73b802003-06-30 21:59:07 +000022005eval "$as_ac_var=no"
22006fi
22007rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22008fi
22009echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22010echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22011if test `eval echo '${'$as_ac_var'}'` = yes; then
22012 cat >>confdefs.h <<_ACEOF
22013#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22014_ACEOF
22015
22016fi
22017done
22018
22019echo "$as_me:$LINENO: checking for working mmap" >&5
22020echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22021if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22022 echo $ECHO_N "(cached) $ECHO_C" >&6
22023else
22024 if test "$cross_compiling" = yes; then
22025 ac_cv_func_mmap_fixed_mapped=no
22026else
22027 cat >conftest.$ac_ext <<_ACEOF
22028#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022029/* confdefs.h. */
22030_ACEOF
22031cat confdefs.h >>conftest.$ac_ext
22032cat >>conftest.$ac_ext <<_ACEOF
22033/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022034$ac_includes_default
22035/* malloc might have been renamed as rpl_malloc. */
22036#undef malloc
22037
22038/* Thanks to Mike Haertel and Jim Avera for this test.
22039 Here is a matrix of mmap possibilities:
22040 mmap private not fixed
22041 mmap private fixed at somewhere currently unmapped
22042 mmap private fixed at somewhere already mapped
22043 mmap shared not fixed
22044 mmap shared fixed at somewhere currently unmapped
22045 mmap shared fixed at somewhere already mapped
22046 For private mappings, we should verify that changes cannot be read()
22047 back from the file, nor mmap's back from the file at a different
22048 address. (There have been systems where private was not correctly
22049 implemented like the infamous i386 svr4.0, and systems where the
22050 VM page cache was not coherent with the file system buffer cache
22051 like early versions of FreeBSD and possibly contemporary NetBSD.)
22052 For shared mappings, we should conversely verify that changes get
22053 propagated back to all the places they're supposed to be.
22054
22055 Grep wants private fixed already mapped.
22056 The main things grep needs to know about mmap are:
22057 * does it exist and is it safe to write into the mmap'd area
22058 * how to use it (BSD variants) */
22059
22060#include <fcntl.h>
22061#include <sys/mman.h>
22062
22063#if !STDC_HEADERS && !HAVE_STDLIB_H
22064char *malloc ();
22065#endif
22066
22067/* This mess was copied from the GNU getpagesize.h. */
22068#if !HAVE_GETPAGESIZE
22069/* Assume that all systems that can run configure have sys/param.h. */
22070# if !HAVE_SYS_PARAM_H
22071# define HAVE_SYS_PARAM_H 1
22072# endif
22073
22074# ifdef _SC_PAGESIZE
22075# define getpagesize() sysconf(_SC_PAGESIZE)
22076# else /* no _SC_PAGESIZE */
22077# if HAVE_SYS_PARAM_H
22078# include <sys/param.h>
22079# ifdef EXEC_PAGESIZE
22080# define getpagesize() EXEC_PAGESIZE
22081# else /* no EXEC_PAGESIZE */
22082# ifdef NBPG
22083# define getpagesize() NBPG * CLSIZE
22084# ifndef CLSIZE
22085# define CLSIZE 1
22086# endif /* no CLSIZE */
22087# else /* no NBPG */
22088# ifdef NBPC
22089# define getpagesize() NBPC
22090# else /* no NBPC */
22091# ifdef PAGESIZE
22092# define getpagesize() PAGESIZE
22093# endif /* PAGESIZE */
22094# endif /* no NBPC */
22095# endif /* no NBPG */
22096# endif /* no EXEC_PAGESIZE */
22097# else /* no HAVE_SYS_PARAM_H */
22098# define getpagesize() 8192 /* punt totally */
22099# endif /* no HAVE_SYS_PARAM_H */
22100# endif /* no _SC_PAGESIZE */
22101
22102#endif /* no HAVE_GETPAGESIZE */
22103
22104int
22105main ()
22106{
22107 char *data, *data2, *data3;
22108 int i, pagesize;
22109 int fd;
22110
22111 pagesize = getpagesize ();
22112
22113 /* First, make a file with some known garbage in it. */
22114 data = (char *) malloc (pagesize);
22115 if (!data)
22116 exit (1);
22117 for (i = 0; i < pagesize; ++i)
22118 *(data + i) = rand ();
22119 umask (0);
22120 fd = creat ("conftest.mmap", 0600);
22121 if (fd < 0)
22122 exit (1);
22123 if (write (fd, data, pagesize) != pagesize)
22124 exit (1);
22125 close (fd);
22126
22127 /* Next, try to mmap the file at a fixed address which already has
22128 something else allocated at it. If we can, also make sure that
22129 we see the same garbage. */
22130 fd = open ("conftest.mmap", O_RDWR);
22131 if (fd < 0)
22132 exit (1);
22133 data2 = (char *) malloc (2 * pagesize);
22134 if (!data2)
22135 exit (1);
22136 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22137 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22138 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22139 exit (1);
22140 for (i = 0; i < pagesize; ++i)
22141 if (*(data + i) != *(data2 + i))
22142 exit (1);
22143
22144 /* Finally, make sure that changes to the mapped area do not
22145 percolate back to the file as seen by read(). (This is a bug on
22146 some variants of i386 svr4.0.) */
22147 for (i = 0; i < pagesize; ++i)
22148 *(data2 + i) = *(data2 + i) + 1;
22149 data3 = (char *) malloc (pagesize);
22150 if (!data3)
22151 exit (1);
22152 if (read (fd, data3, pagesize) != pagesize)
22153 exit (1);
22154 for (i = 0; i < pagesize; ++i)
22155 if (*(data + i) != *(data3 + i))
22156 exit (1);
22157 close (fd);
22158 exit (0);
22159}
22160_ACEOF
22161rm -f conftest$ac_exeext
22162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22163 (eval $ac_link) 2>&5
22164 ac_status=$?
22165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22168 (eval $ac_try) 2>&5
22169 ac_status=$?
22170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171 (exit $ac_status); }; }; then
22172 ac_cv_func_mmap_fixed_mapped=yes
22173else
22174 echo "$as_me: program exited with status $ac_status" >&5
22175echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022176sed 's/^/| /' conftest.$ac_ext >&5
22177
John Criswell7a73b802003-06-30 21:59:07 +000022178( exit $ac_status )
22179ac_cv_func_mmap_fixed_mapped=no
22180fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022181rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022182fi
22183fi
22184echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22185echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22186if test $ac_cv_func_mmap_fixed_mapped = yes; then
22187
22188cat >>confdefs.h <<\_ACEOF
22189#define HAVE_MMAP 1
22190_ACEOF
22191
22192fi
22193rm -f conftest.mmap
22194
22195echo "$as_me:$LINENO: checking for mmap of files" >&5
22196echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22197if test "${ac_cv_func_mmap_file+set}" = set; then
22198 echo $ECHO_N "(cached) $ECHO_C" >&6
22199else
22200
22201
22202 ac_ext=c
22203ac_cpp='$CPP $CPPFLAGS'
22204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22206ac_compiler_gnu=$ac_cv_c_compiler_gnu
22207
22208 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022209 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22210See \`config.log' for more details." >&5
22211echo "$as_me: error: cannot run test program while cross compiling
22212See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022213 { (exit 1); exit 1; }; }
22214else
22215 cat >conftest.$ac_ext <<_ACEOF
22216#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022217/* confdefs.h. */
22218_ACEOF
22219cat confdefs.h >>conftest.$ac_ext
22220cat >>conftest.$ac_ext <<_ACEOF
22221/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022222
22223#ifdef HAVE_SYS_MMAN_H
22224#include <sys/mman.h>
22225#endif
22226
22227#ifdef HAVE_SYS_TYPES_H
22228#include <sys/types.h>
22229#endif
22230
22231#ifdef HAVE_FCNTL_H
22232#include <fcntl.h>
22233#endif
22234
22235 int fd;
22236 int main () {
22237 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22238_ACEOF
22239rm -f conftest$ac_exeext
22240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22241 (eval $ac_link) 2>&5
22242 ac_status=$?
22243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22246 (eval $ac_try) 2>&5
22247 ac_status=$?
22248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249 (exit $ac_status); }; }; then
22250 ac_cv_func_mmap_file=yes
22251else
22252 echo "$as_me: program exited with status $ac_status" >&5
22253echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022254sed 's/^/| /' conftest.$ac_ext >&5
22255
John Criswell7a73b802003-06-30 21:59:07 +000022256( exit $ac_status )
22257ac_cv_func_mmap_file=no
22258fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022259rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022260fi
22261 ac_ext=c
22262ac_cpp='$CPP $CPPFLAGS'
22263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22265ac_compiler_gnu=$ac_cv_c_compiler_gnu
22266
22267
22268fi
22269echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22270echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22271if test "$ac_cv_func_mmap_file" = yes; then
22272 cat >>confdefs.h <<\_ACEOF
22273#define HAVE_MMAP_FILE 1
22274_ACEOF
22275
22276 MMAP_FILE=yes
22277
22278fi
22279
22280if test ${ac_cv_func_mmap_file} = "no"
22281then
22282 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22283echo "$as_me: error: mmap() of files required but not found" >&2;}
22284 { (exit 1); exit 1; }; }
22285fi
22286echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22287echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22288if test "${ac_cv_header_mmap_anon+set}" = set; then
22289 echo $ECHO_N "(cached) $ECHO_C" >&6
22290else
22291
22292
22293 ac_ext=c
22294ac_cpp='$CPP $CPPFLAGS'
22295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22297ac_compiler_gnu=$ac_cv_c_compiler_gnu
22298
22299 cat >conftest.$ac_ext <<_ACEOF
22300#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022301/* confdefs.h. */
22302_ACEOF
22303cat confdefs.h >>conftest.$ac_ext
22304cat >>conftest.$ac_ext <<_ACEOF
22305/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022306#include <sys/mman.h>
22307 #include <unistd.h>
22308 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022309int
22310main ()
22311{
22312mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22313 ;
22314 return 0;
22315}
22316_ACEOF
22317rm -f conftest.$ac_objext
22318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22319 (eval $ac_compile) 2>&5
22320 ac_status=$?
22321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322 (exit $ac_status); } &&
22323 { ac_try='test -s conftest.$ac_objext'
22324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22325 (eval $ac_try) 2>&5
22326 ac_status=$?
22327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328 (exit $ac_status); }; }; then
22329 ac_cv_header_mmap_anon=yes
22330else
22331 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022332sed 's/^/| /' conftest.$ac_ext >&5
22333
John Criswell7a73b802003-06-30 21:59:07 +000022334ac_cv_header_mmap_anon=no
22335fi
22336rm -f conftest.$ac_objext conftest.$ac_ext
22337 ac_ext=c
22338ac_cpp='$CPP $CPPFLAGS'
22339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22341ac_compiler_gnu=$ac_cv_c_compiler_gnu
22342
22343
22344fi
22345echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22346echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22347if test "$ac_cv_header_mmap_anon" = yes; then
22348 cat >>confdefs.h <<\_ACEOF
22349#define HAVE_MMAP_ANONYMOUS 1
22350_ACEOF
22351
22352fi
22353
22354echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22355echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22356if test "${ac_cv_type_signal+set}" = set; then
22357 echo $ECHO_N "(cached) $ECHO_C" >&6
22358else
22359 cat >conftest.$ac_ext <<_ACEOF
22360#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022361/* confdefs.h. */
22362_ACEOF
22363cat confdefs.h >>conftest.$ac_ext
22364cat >>conftest.$ac_ext <<_ACEOF
22365/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022366#include <sys/types.h>
22367#include <signal.h>
22368#ifdef signal
22369# undef signal
22370#endif
22371#ifdef __cplusplus
22372extern "C" void (*signal (int, void (*)(int)))(int);
22373#else
22374void (*signal ()) ();
22375#endif
22376
John Criswell7a73b802003-06-30 21:59:07 +000022377int
22378main ()
22379{
22380int i;
22381 ;
22382 return 0;
22383}
22384_ACEOF
22385rm -f conftest.$ac_objext
22386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22387 (eval $ac_compile) 2>&5
22388 ac_status=$?
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); } &&
22391 { ac_try='test -s conftest.$ac_objext'
22392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22393 (eval $ac_try) 2>&5
22394 ac_status=$?
22395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396 (exit $ac_status); }; }; then
22397 ac_cv_type_signal=void
22398else
22399 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022400sed 's/^/| /' conftest.$ac_ext >&5
22401
John Criswell7a73b802003-06-30 21:59:07 +000022402ac_cv_type_signal=int
22403fi
22404rm -f conftest.$ac_objext conftest.$ac_ext
22405fi
22406echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22407echo "${ECHO_T}$ac_cv_type_signal" >&6
22408
22409cat >>confdefs.h <<_ACEOF
22410#define RETSIGTYPE $ac_cv_type_signal
22411_ACEOF
22412
22413
22414
22415
22416
22417
22418
22419
22420
22421
22422
22423for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22424do
22425as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22426echo "$as_me:$LINENO: checking for $ac_func" >&5
22427echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22428if eval "test \"\${$as_ac_var+set}\" = set"; then
22429 echo $ECHO_N "(cached) $ECHO_C" >&6
22430else
22431 cat >conftest.$ac_ext <<_ACEOF
22432#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022433/* confdefs.h. */
22434_ACEOF
22435cat confdefs.h >>conftest.$ac_ext
22436cat >>conftest.$ac_ext <<_ACEOF
22437/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022438/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022439 which can conflict with char $ac_func (); below.
22440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22441 <limits.h> exists even on freestanding compilers. */
22442#ifdef __STDC__
22443# include <limits.h>
22444#else
22445# include <assert.h>
22446#endif
John Criswell7a73b802003-06-30 21:59:07 +000022447/* Override any gcc2 internal prototype to avoid an error. */
22448#ifdef __cplusplus
22449extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022450{
John Criswell7a73b802003-06-30 21:59:07 +000022451#endif
22452/* We use char because int might match the return type of a gcc2
22453 builtin and then its argument prototype would still apply. */
22454char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022455/* The GNU C library defines this for functions which it implements
22456 to always fail with ENOSYS. Some functions are actually named
22457 something starting with __ and the normal name is an alias. */
22458#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22459choke me
22460#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022461char (*f) () = $ac_func;
22462#endif
22463#ifdef __cplusplus
22464}
John Criswell7a73b802003-06-30 21:59:07 +000022465#endif
22466
John Criswell0c38eaf2003-09-10 15:17:25 +000022467int
22468main ()
22469{
22470return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022471 ;
22472 return 0;
22473}
22474_ACEOF
22475rm -f conftest.$ac_objext conftest$ac_exeext
22476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22477 (eval $ac_link) 2>&5
22478 ac_status=$?
22479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); } &&
22481 { ac_try='test -s conftest$ac_exeext'
22482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22483 (eval $ac_try) 2>&5
22484 ac_status=$?
22485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486 (exit $ac_status); }; }; then
22487 eval "$as_ac_var=yes"
22488else
22489 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022490sed 's/^/| /' conftest.$ac_ext >&5
22491
John Criswell7a73b802003-06-30 21:59:07 +000022492eval "$as_ac_var=no"
22493fi
22494rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22495fi
22496echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22497echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22498if test `eval echo '${'$as_ac_var'}'` = yes; then
22499 cat >>confdefs.h <<_ACEOF
22500#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22501_ACEOF
22502
22503fi
22504done
22505
22506
22507
22508echo "$as_me:$LINENO: checking for mmap" >&5
22509echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22510if test "${ac_cv_func_mmap+set}" = set; then
22511 echo $ECHO_N "(cached) $ECHO_C" >&6
22512else
22513 cat >conftest.$ac_ext <<_ACEOF
22514#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022515/* confdefs.h. */
22516_ACEOF
22517cat confdefs.h >>conftest.$ac_ext
22518cat >>conftest.$ac_ext <<_ACEOF
22519/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022520/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022521 which can conflict with char mmap (); below.
22522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22523 <limits.h> exists even on freestanding compilers. */
22524#ifdef __STDC__
22525# include <limits.h>
22526#else
22527# include <assert.h>
22528#endif
John Criswell7a73b802003-06-30 21:59:07 +000022529/* Override any gcc2 internal prototype to avoid an error. */
22530#ifdef __cplusplus
22531extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022532{
John Criswell7a73b802003-06-30 21:59:07 +000022533#endif
22534/* We use char because int might match the return type of a gcc2
22535 builtin and then its argument prototype would still apply. */
22536char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000022537/* The GNU C library defines this for functions which it implements
22538 to always fail with ENOSYS. Some functions are actually named
22539 something starting with __ and the normal name is an alias. */
22540#if defined (__stub_mmap) || defined (__stub___mmap)
22541choke me
22542#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022543char (*f) () = mmap;
22544#endif
22545#ifdef __cplusplus
22546}
John Criswell7a73b802003-06-30 21:59:07 +000022547#endif
22548
John Criswell0c38eaf2003-09-10 15:17:25 +000022549int
22550main ()
22551{
22552return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000022553 ;
22554 return 0;
22555}
22556_ACEOF
22557rm -f conftest.$ac_objext conftest$ac_exeext
22558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22559 (eval $ac_link) 2>&5
22560 ac_status=$?
22561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562 (exit $ac_status); } &&
22563 { ac_try='test -s conftest$ac_exeext'
22564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22565 (eval $ac_try) 2>&5
22566 ac_status=$?
22567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568 (exit $ac_status); }; }; then
22569 ac_cv_func_mmap=yes
22570else
22571 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022572sed 's/^/| /' conftest.$ac_ext >&5
22573
John Criswell7a73b802003-06-30 21:59:07 +000022574ac_cv_func_mmap=no
22575fi
22576rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22577fi
22578echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22579echo "${ECHO_T}$ac_cv_func_mmap" >&6
22580if test $ac_cv_func_mmap = yes; then
22581 :
22582else
22583 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22584echo "$as_me: error: Function mmap() required but not found" >&2;}
22585 { (exit 1); exit 1; }; }
22586fi
22587
22588echo "$as_me:$LINENO: checking for mprotect" >&5
22589echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22590if test "${ac_cv_func_mprotect+set}" = set; then
22591 echo $ECHO_N "(cached) $ECHO_C" >&6
22592else
22593 cat >conftest.$ac_ext <<_ACEOF
22594#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022595/* confdefs.h. */
22596_ACEOF
22597cat confdefs.h >>conftest.$ac_ext
22598cat >>conftest.$ac_ext <<_ACEOF
22599/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022600/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022601 which can conflict with char mprotect (); below.
22602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22603 <limits.h> exists even on freestanding compilers. */
22604#ifdef __STDC__
22605# include <limits.h>
22606#else
22607# include <assert.h>
22608#endif
John Criswell7a73b802003-06-30 21:59:07 +000022609/* Override any gcc2 internal prototype to avoid an error. */
22610#ifdef __cplusplus
22611extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022612{
John Criswell7a73b802003-06-30 21:59:07 +000022613#endif
22614/* We use char because int might match the return type of a gcc2
22615 builtin and then its argument prototype would still apply. */
22616char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022617/* The GNU C library defines this for functions which it implements
22618 to always fail with ENOSYS. Some functions are actually named
22619 something starting with __ and the normal name is an alias. */
22620#if defined (__stub_mprotect) || defined (__stub___mprotect)
22621choke me
22622#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022623char (*f) () = mprotect;
22624#endif
22625#ifdef __cplusplus
22626}
John Criswell7a73b802003-06-30 21:59:07 +000022627#endif
22628
John Criswell0c38eaf2003-09-10 15:17:25 +000022629int
22630main ()
22631{
22632return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022633 ;
22634 return 0;
22635}
22636_ACEOF
22637rm -f conftest.$ac_objext conftest$ac_exeext
22638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22639 (eval $ac_link) 2>&5
22640 ac_status=$?
22641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); } &&
22643 { ac_try='test -s conftest$ac_exeext'
22644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22645 (eval $ac_try) 2>&5
22646 ac_status=$?
22647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648 (exit $ac_status); }; }; then
22649 ac_cv_func_mprotect=yes
22650else
22651 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022652sed 's/^/| /' conftest.$ac_ext >&5
22653
John Criswell7a73b802003-06-30 21:59:07 +000022654ac_cv_func_mprotect=no
22655fi
22656rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22657fi
22658echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22659echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22660if test $ac_cv_func_mprotect = yes; then
22661 :
22662else
22663 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22664echo "$as_me: error: Function mprotect() required but not found" >&2;}
22665 { (exit 1); exit 1; }; }
22666fi
22667
22668
John Criswellb13092b2003-07-22 21:00:24 +000022669
John Criswell7a73b802003-06-30 21:59:07 +000022670# Check whether --enable-purify or --disable-purify was given.
22671if test "${enable_purify+set}" = set; then
22672 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000022673
22674else
John Criswellb13092b2003-07-22 21:00:24 +000022675 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000022676fi;
John Criswellb13092b2003-07-22 21:00:24 +000022677if test ${enableval} = "no"
22678then
22679 ENABLE_PURIFY=
22680
22681else
22682 ENABLE_PURIFY=ENABLE_PURIFY=1
22683
22684fi
22685
John Criswell7a73b802003-06-30 21:59:07 +000022686# Check whether --enable-optimized or --disable-optimized was given.
22687if test "${enable_optimized+set}" = set; then
22688 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022689
22690else
John Criswellb13092b2003-07-22 21:00:24 +000022691 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022692fi;
John Criswellb13092b2003-07-22 21:00:24 +000022693if test ${enableval} = "no"
22694then
22695 ENABLE_OPTIMIZED=
22696
22697else
22698 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22699
22700fi
22701
John Criswell7a73b802003-06-30 21:59:07 +000022702# Check whether --enable-spec or --disable-spec was given.
22703if test "${enable_spec+set}" = set; then
22704 enableval="$enable_spec"
John Criswell7a73b802003-06-30 21:59:07 +000022705
22706else
John Criswellb13092b2003-07-22 21:00:24 +000022707 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022708fi;
John Criswellb13092b2003-07-22 21:00:24 +000022709if test ${enableval} = "no"
22710then
22711 USE_SPEC=
22712
22713else
22714 USE_SPEC=USE_SPEC=1
22715
22716fi
22717
John Criswell7a73b802003-06-30 21:59:07 +000022718# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22719if test "${enable_precompiled_bytecode+set}" = set; then
22720 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000022721
22722else
John Criswellb13092b2003-07-22 21:00:24 +000022723 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022724fi;
John Criswellb13092b2003-07-22 21:00:24 +000022725if test ${enableval} = "no"
22726then
22727 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000022728
John Criswellb13092b2003-07-22 21:00:24 +000022729else
22730 UPB=USE_PRECOMPILED_BYTECODE=1
22731
22732fi
John Criswellf02dbf02003-07-22 20:07:49 +000022733
22734
22735# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22736if test "${enable_llc_diffs+set}" = set; then
22737 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022738
22739else
John Criswellb13092b2003-07-22 21:00:24 +000022740 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022741fi;
John Criswellb13092b2003-07-22 21:00:24 +000022742if test ${enableval} = "no"
22743then
22744 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022745
John Criswellb13092b2003-07-22 21:00:24 +000022746else
22747 DISABLE_LLC_DIFFS=
22748
22749fi
22750
22751# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022752if test "${enable_jit+set}" = set; then
22753 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022754
22755else
John Criswellc78022e2003-07-29 19:11:58 +000022756 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022757fi;
John Criswellb13092b2003-07-22 21:00:24 +000022758
22759if test ${enableval} = "no"
22760then
22761 JIT=
22762
22763else
John Criswellc78022e2003-07-29 19:11:58 +000022764 case $target in
22765 *i*86*)
22766 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022767
John Criswellc78022e2003-07-29 19:11:58 +000022768 ;;
22769 *sparc*)
22770 JIT=TARGET_HAS_JIT=1
22771
22772 ;;
22773 *)
22774 JIT=
22775
22776 ;;
22777 esac
John Criswellb13092b2003-07-22 21:00:24 +000022778fi
John Criswell7a73b802003-06-30 21:59:07 +000022779
22780
John Criswellc78022e2003-07-29 19:11:58 +000022781
John Criswell7a73b802003-06-30 21:59:07 +000022782# Check whether --with-spec or --without-spec was given.
22783if test "${with_spec+set}" = set; then
22784 withval="$with_spec"
22785 SPEC_ROOT=$withval
22786
22787else
22788 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22789
22790fi;
22791
John Criswellc78022e2003-07-29 19:11:58 +000022792
John Criswell7a73b802003-06-30 21:59:07 +000022793# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22794if test "${with_llvmgccdir+set}" = set; then
22795 withval="$with_llvmgccdir"
22796 LLVMGCCDIR=$withval
22797
22798fi;
22799
John Criswellc78022e2003-07-29 19:11:58 +000022800
John Criswell7a73b802003-06-30 21:59:07 +000022801# Check whether --with-bcrepos or --without-bcrepos was given.
22802if test "${with_bcrepos+set}" = set; then
22803 withval="$with_bcrepos"
22804 BCR=$withval
22805
22806else
22807 BCR=/home/vadve/lattner/LLVMPrograms
22808
22809fi;
22810
John Criswellc78022e2003-07-29 19:11:58 +000022811
John Criswell7a73b802003-06-30 21:59:07 +000022812# Check whether --with-papi or --without-papi was given.
22813if test "${with_papi+set}" = set; then
22814 withval="$with_papi"
22815 PAPIDIR=$withval
22816
22817else
John Criswellde00db22003-08-25 16:49:54 +000022818 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022819
22820fi;
22821
John Criswell7a73b802003-06-30 21:59:07 +000022822
22823# Check whether --with-purify or --without-purify was given.
22824if test "${with_purify+set}" = set; then
22825 withval="$with_purify"
22826 PURIFY=$withval
22827
22828fi;
22829
John Criswellde00db22003-08-25 16:49:54 +000022830
John Criswell0c38eaf2003-09-10 15:17:25 +000022831 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000022832cat >confcache <<\_ACEOF
22833# This file is a shell script that caches the results of configure
22834# tests run on this system so they can be shared between configure
22835# scripts and configure runs, see configure's option --config-cache.
22836# It is not useful on other systems. If it contains results you don't
22837# want to keep, you may remove or edit it.
22838#
22839# config.status only pays attention to the cache file if you give it
22840# the --recheck option to rerun configure.
22841#
John Criswell0c38eaf2003-09-10 15:17:25 +000022842# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022843# loading this file, other *unset* `ac_cv_foo' will be assigned the
22844# following values.
22845
22846_ACEOF
22847
22848# The following way of writing the cache mishandles newlines in values,
22849# but we know of no workaround that is simple, portable, and efficient.
22850# So, don't put newlines in cache variables' values.
22851# Ultrix sh set writes to stderr and can't be redirected directly,
22852# and sets the high bit in the cache file unless we assign to the vars.
22853{
22854 (set) 2>&1 |
22855 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22856 *ac_space=\ *)
22857 # `set' does not quote correctly, so add quotes (double-quote
22858 # substitution turns \\\\ into \\, and sed turns \\ into \).
22859 sed -n \
22860 "s/'/'\\\\''/g;
22861 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22862 ;;
22863 *)
22864 # `set' quotes correctly as required by POSIX, so do not add quotes.
22865 sed -n \
22866 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22867 ;;
22868 esac;
22869} |
22870 sed '
22871 t clear
22872 : clear
22873 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22874 t end
22875 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22876 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000022877if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022878 if test -w $cache_file; then
22879 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22880 cat confcache >$cache_file
22881 else
22882 echo "not updating unwritable cache $cache_file"
22883 fi
22884fi
22885rm -f confcache
22886
22887test "x$prefix" = xNONE && prefix=$ac_default_prefix
22888# Let make expand exec_prefix.
22889test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22890
22891# VPATH may cause trouble with some makes, so we remove $(srcdir),
22892# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22893# trailing colons and then remove the whole line if VPATH becomes empty
22894# (actually we leave an empty line to preserve line numbers).
22895if test "x$srcdir" = x.; then
22896 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22897s/:*\$(srcdir):*/:/;
22898s/:*\${srcdir}:*/:/;
22899s/:*@srcdir@:*/:/;
22900s/^\([^=]*=[ ]*\):*/\1/;
22901s/:*$//;
22902s/^[^=]*=[ ]*$//;
22903}'
22904fi
22905
22906DEFS=-DHAVE_CONFIG_H
22907
John Criswell0c38eaf2003-09-10 15:17:25 +000022908ac_libobjs=
22909ac_ltlibobjs=
22910for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22911 # 1. Remove the extension, and $U if already installed.
22912 ac_i=`echo "$ac_i" |
22913 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22914 # 2. Add them.
22915 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22916 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22917done
22918LIBOBJS=$ac_libobjs
22919
22920LTLIBOBJS=$ac_ltlibobjs
22921
22922
John Criswell7a73b802003-06-30 21:59:07 +000022923
22924: ${CONFIG_STATUS=./config.status}
22925ac_clean_files_save=$ac_clean_files
22926ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22927{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22928echo "$as_me: creating $CONFIG_STATUS" >&6;}
22929cat >$CONFIG_STATUS <<_ACEOF
22930#! $SHELL
22931# Generated by $as_me.
22932# Run this file to recreate the current configuration.
22933# Compiler output produced by configure, useful for debugging
22934# configure, is in config.log if it exists.
22935
22936debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022937ac_cs_recheck=false
22938ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022939SHELL=\${CONFIG_SHELL-$SHELL}
22940_ACEOF
22941
22942cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022943## --------------------- ##
22944## M4sh Initialization. ##
22945## --------------------- ##
22946
22947# Be Bourne compatible
22948if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22949 emulate sh
22950 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022951 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22952 # is contrary to our usage. Disable this feature.
22953 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000022954elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22955 set -o posix
22956fi
22957
John Criswell7a73b802003-06-30 21:59:07 +000022958# Support unset when possible.
22959if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22960 as_unset=unset
22961else
22962 as_unset=false
22963fi
22964
John Criswell0c38eaf2003-09-10 15:17:25 +000022965
22966# Work around bugs in pre-3.0 UWIN ksh.
22967$as_unset ENV MAIL MAILPATH
22968PS1='$ '
22969PS2='> '
22970PS4='+ '
22971
22972# NLS nuisances.
22973for as_var in \
22974 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22975 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22976 LC_TELEPHONE LC_TIME
22977do
22978 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22979 eval $as_var=C; export $as_var
22980 else
22981 $as_unset $as_var
22982 fi
22983done
22984
22985# Required to use basename.
22986if expr a : '\(a\)' >/dev/null 2>&1; then
22987 as_expr=expr
22988else
22989 as_expr=false
22990fi
22991
22992if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22993 as_basename=basename
22994else
22995 as_basename=false
22996fi
John Criswell7a73b802003-06-30 21:59:07 +000022997
22998
22999# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000023000as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000023001$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23002 X"$0" : 'X\(//\)$' \| \
23003 X"$0" : 'X\(/\)$' \| \
23004 . : '\(.\)' 2>/dev/null ||
23005echo X/"$0" |
23006 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23007 /^X\/\(\/\/\)$/{ s//\1/; q; }
23008 /^X\/\(\/\).*/{ s//\1/; q; }
23009 s/.*/./; q'`
23010
John Criswell0c38eaf2003-09-10 15:17:25 +000023011
John Criswell7a73b802003-06-30 21:59:07 +000023012# PATH needs CR, and LINENO needs CR and PATH.
23013# Avoid depending upon Character Ranges.
23014as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23015as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23016as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23017as_cr_digits='0123456789'
23018as_cr_alnum=$as_cr_Letters$as_cr_digits
23019
23020# The user is always right.
23021if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023022 echo "#! /bin/sh" >conf$$.sh
23023 echo "exit 0" >>conf$$.sh
23024 chmod +x conf$$.sh
23025 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023026 PATH_SEPARATOR=';'
23027 else
23028 PATH_SEPARATOR=:
23029 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000023030 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000023031fi
23032
23033
23034 as_lineno_1=$LINENO
23035 as_lineno_2=$LINENO
23036 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23037 test "x$as_lineno_1" != "x$as_lineno_2" &&
23038 test "x$as_lineno_3" = "x$as_lineno_2" || {
23039 # Find who we are. Look in the path if we contain no path at all
23040 # relative or not.
23041 case $0 in
23042 *[\\/]* ) as_myself=$0 ;;
23043 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23044for as_dir in $PATH
23045do
23046 IFS=$as_save_IFS
23047 test -z "$as_dir" && as_dir=.
23048 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23049done
23050
23051 ;;
23052 esac
23053 # We did not find ourselves, most probably we were run as `sh COMMAND'
23054 # in which case we are not to be found in the path.
23055 if test "x$as_myself" = x; then
23056 as_myself=$0
23057 fi
23058 if test ! -f "$as_myself"; then
23059 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23060echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23061 { (exit 1); exit 1; }; }
23062 fi
23063 case $CONFIG_SHELL in
23064 '')
23065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23066for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23067do
23068 IFS=$as_save_IFS
23069 test -z "$as_dir" && as_dir=.
23070 for as_base in sh bash ksh sh5; do
23071 case $as_dir in
23072 /*)
23073 if ("$as_dir/$as_base" -c '
23074 as_lineno_1=$LINENO
23075 as_lineno_2=$LINENO
23076 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23077 test "x$as_lineno_1" != "x$as_lineno_2" &&
23078 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023079 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23080 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000023081 CONFIG_SHELL=$as_dir/$as_base
23082 export CONFIG_SHELL
23083 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23084 fi;;
23085 esac
23086 done
23087done
23088;;
23089 esac
23090
23091 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23092 # uniformly replaced by the line number. The first 'sed' inserts a
23093 # line-number line before each line; the second 'sed' does the real
23094 # work. The second script uses 'N' to pair each line-number line
23095 # with the numbered line, and appends trailing '-' during
23096 # substitution so that $LINENO is not a special case at line end.
23097 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23098 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23099 sed '=' <$as_myself |
23100 sed '
23101 N
23102 s,$,-,
23103 : loop
23104 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23105 t loop
23106 s,-$,,
23107 s,^['$as_cr_digits']*\n,,
23108 ' >$as_me.lineno &&
23109 chmod +x $as_me.lineno ||
23110 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23111echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23112 { (exit 1); exit 1; }; }
23113
23114 # Don't try to exec as it changes $[0], causing all sort of problems
23115 # (the dirname of $[0] is not the place where we might find the
23116 # original and so on. Autoconf is especially sensible to this).
23117 . ./$as_me.lineno
23118 # Exit status is that of the last command.
23119 exit
23120}
23121
23122
23123case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23124 *c*,-n*) ECHO_N= ECHO_C='
23125' ECHO_T=' ' ;;
23126 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23127 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23128esac
23129
23130if expr a : '\(a\)' >/dev/null 2>&1; then
23131 as_expr=expr
23132else
23133 as_expr=false
23134fi
23135
23136rm -f conf$$ conf$$.exe conf$$.file
23137echo >conf$$.file
23138if ln -s conf$$.file conf$$ 2>/dev/null; then
23139 # We could just check for DJGPP; but this test a) works b) is more generic
23140 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23141 if test -f conf$$.exe; then
23142 # Don't use ln at all; we don't have any links
23143 as_ln_s='cp -p'
23144 else
23145 as_ln_s='ln -s'
23146 fi
23147elif ln conf$$.file conf$$ 2>/dev/null; then
23148 as_ln_s=ln
23149else
23150 as_ln_s='cp -p'
23151fi
23152rm -f conf$$ conf$$.exe conf$$.file
23153
John Criswell0c38eaf2003-09-10 15:17:25 +000023154if mkdir -p . 2>/dev/null; then
23155 as_mkdir_p=:
23156else
23157 as_mkdir_p=false
23158fi
23159
John Criswell7a73b802003-06-30 21:59:07 +000023160as_executable_p="test -f"
23161
23162# Sed expression to map a string onto a valid CPP name.
23163as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23164
23165# Sed expression to map a string onto a valid variable name.
23166as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23167
23168
23169# IFS
23170# We need space, tab and new line, in precisely that order.
23171as_nl='
23172'
23173IFS=" $as_nl"
23174
23175# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000023176$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023177
23178exec 6>&1
23179
23180# Open the log real soon, to keep \$[0] and so on meaningful, and to
23181# report actual input values of CONFIG_FILES etc. instead of their
23182# values after options handling. Logging --version etc. is OK.
23183exec 5>>config.log
23184{
23185 echo
23186 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23187## Running $as_me. ##
23188_ASBOX
23189} >&5
23190cat >&5 <<_CSEOF
23191
23192This file was extended by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000023193generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023194
23195 CONFIG_FILES = $CONFIG_FILES
23196 CONFIG_HEADERS = $CONFIG_HEADERS
23197 CONFIG_LINKS = $CONFIG_LINKS
23198 CONFIG_COMMANDS = $CONFIG_COMMANDS
23199 $ $0 $@
23200
23201_CSEOF
23202echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23203echo >&5
23204_ACEOF
23205
23206# Files that config.status was made for.
23207if test -n "$ac_config_files"; then
23208 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23209fi
23210
23211if test -n "$ac_config_headers"; then
23212 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23213fi
23214
23215if test -n "$ac_config_links"; then
23216 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23217fi
23218
23219if test -n "$ac_config_commands"; then
23220 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23221fi
23222
23223cat >>$CONFIG_STATUS <<\_ACEOF
23224
23225ac_cs_usage="\
23226\`$as_me' instantiates files from templates according to the
23227current configuration.
23228
23229Usage: $0 [OPTIONS] [FILE]...
23230
23231 -h, --help print this help, then exit
23232 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000023233 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023234 -d, --debug don't remove temporary files
23235 --recheck update $as_me by reconfiguring in the same conditions
23236 --file=FILE[:TEMPLATE]
23237 instantiate the configuration file FILE
23238 --header=FILE[:TEMPLATE]
23239 instantiate the configuration header FILE
23240
23241Configuration files:
23242$config_files
23243
23244Configuration headers:
23245$config_headers
23246
John Criswellc764fbc2003-09-06 15:17:13 +000023247Configuration commands:
23248$config_commands
23249
John Criswell7a73b802003-06-30 21:59:07 +000023250Report bugs to <bug-autoconf@gnu.org>."
23251_ACEOF
23252
23253cat >>$CONFIG_STATUS <<_ACEOF
23254ac_cs_version="\\
23255[LLVM] config.status [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +000023256configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023257 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23258
23259Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23260Free Software Foundation, Inc.
23261This config.status script is free software; the Free Software Foundation
23262gives unlimited permission to copy, distribute and modify it."
23263srcdir=$srcdir
23264INSTALL="$INSTALL"
23265_ACEOF
23266
23267cat >>$CONFIG_STATUS <<\_ACEOF
23268# If no file are specified by the user, then we need to provide default
23269# value. By we need to know if files were specified by the user.
23270ac_need_defaults=:
23271while test $# != 0
23272do
23273 case $1 in
23274 --*=*)
23275 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23276 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023277 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023278 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023279 -*)
23280 ac_option=$1
23281 ac_optarg=$2
23282 ac_shift=shift
23283 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023284 *) # This is not an option, so the user has probably given explicit
23285 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000023286 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023287 ac_need_defaults=false;;
23288 esac
23289
John Criswell0c38eaf2003-09-10 15:17:25 +000023290 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023291 # Handling of the options.
23292_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000023293cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023294 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23295 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023296 --version | --vers* | -V )
23297 echo "$ac_cs_version"; exit 0 ;;
23298 --he | --h)
23299 # Conflict between --help and --header
23300 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23301Try \`$0 --help' for more information." >&5
23302echo "$as_me: error: ambiguous option: $1
23303Try \`$0 --help' for more information." >&2;}
23304 { (exit 1); exit 1; }; };;
23305 --help | --hel | -h )
23306 echo "$ac_cs_usage"; exit 0 ;;
23307 --debug | --d* | -d )
23308 debug=: ;;
23309 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023310 $ac_shift
23311 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023312 ac_need_defaults=false;;
23313 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023314 $ac_shift
23315 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023316 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23318 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23319 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023320
23321 # This is an error.
23322 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23323Try \`$0 --help' for more information." >&5
23324echo "$as_me: error: unrecognized option: $1
23325Try \`$0 --help' for more information." >&2;}
23326 { (exit 1); exit 1; }; } ;;
23327
23328 *) ac_config_targets="$ac_config_targets $1" ;;
23329
23330 esac
23331 shift
23332done
23333
John Criswell0c38eaf2003-09-10 15:17:25 +000023334ac_configure_extra_args=
23335
23336if $ac_cs_silent; then
23337 exec 6>/dev/null
23338 ac_configure_extra_args="$ac_configure_extra_args --silent"
23339fi
23340
23341_ACEOF
23342cat >>$CONFIG_STATUS <<_ACEOF
23343if \$ac_cs_recheck; then
23344 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23345 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23346fi
23347
John Criswell7a73b802003-06-30 21:59:07 +000023348_ACEOF
23349
John Criswellc764fbc2003-09-06 15:17:13 +000023350cat >>$CONFIG_STATUS <<_ACEOF
23351#
23352# INIT-COMMANDS section.
23353#
John Criswell7a73b802003-06-30 21:59:07 +000023354
John Criswellc764fbc2003-09-06 15:17:13 +000023355${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23356${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23357${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23358${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23359${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23360${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23361${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23362${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23363${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23364${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23365${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23366${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23367${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23368${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23369${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23370${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23371${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023372${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23373${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23374${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23375${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23376${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023377${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23378${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23379${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23380${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23381${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23382${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23383${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23384${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23385${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23386${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23387${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23388${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23389${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23390${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23391${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023392${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023393${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23394${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23395${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23396${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023397${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023398${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023399${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23400${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023401${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23402${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23403${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23404${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswell08acb9b2003-09-16 02:12:45 +000023405${srcdir}/autoconf/mkinstalldirs `dirname test/QMTestDB/QMTest/llvm.py`
John Criswellc764fbc2003-09-06 15:17:13 +000023406${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23407${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23408${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23409${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23410${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23411${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23412${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23413${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23414${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23415${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23416${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23417${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23418${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23419${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23420${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23421${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23422${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23423${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023424${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
John Criswellc764fbc2003-09-06 15:17:13 +000023425${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23426${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23427${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23428${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23429${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23430${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23431${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23432${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23433${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23434${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23435${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23436${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23437${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23438${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23439${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23440${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23441${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23442${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
John Criswell48e3cb92003-09-12 16:31:43 +000023443${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23444${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023445${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23446${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023447${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23448${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23449${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23450${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23451${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23452${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23453${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23454${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23455${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23456${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23457${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23458${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23459${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23460${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23461${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23462${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23463${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23464${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23465${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23466${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23467${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23468${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23469${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23470${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023471${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023472${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23473${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23474${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23475${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23476${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23477${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023478${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023479${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023480${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23481${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23482${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23483${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23484${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023485${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23486${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23487${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
John Criswellffaaf3b2003-09-10 18:38:44 +000023488${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23489${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23490${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23491${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23492${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23493${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023494${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023495${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
John Criswell0afe8252003-09-11 20:53:48 +000023496${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
John Criswell67181ca2003-09-26 14:53:17 +000023497${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
John Criswell68886d42003-09-26 19:51:42 +000023498${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23499${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
John Criswellc66bbd52003-09-29 21:35:32 +000023500${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/EH/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023501${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23502${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023503${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023504${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23505${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23506${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023507${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023508${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023509${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
Chris Lattnerebd70302003-09-13 03:29:53 +000023510${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023511${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023512${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023513${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23514${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023515${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23516${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23517${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23518${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23519${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23520${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23521${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23522${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23523${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23524${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23525${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23526${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23527${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
Chris Lattner9bf62392003-10-06 02:13:00 +000023528${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23529${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23530${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23531${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23532${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023533
23534_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023535
23536
23537
23538cat >>$CONFIG_STATUS <<\_ACEOF
23539for ac_config_target in $ac_config_targets
23540do
23541 case "$ac_config_target" in
23542 # Handling of arguments.
23543 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023544 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23545 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23546 "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23547 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23548 "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23549 "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23550 "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23551 "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23552 "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23553 "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23554 "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23555 "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23556 "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23557 "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23558 "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23559 "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23560 "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023561 "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23562 "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23563 "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23564 "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23565 "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023566 "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23567 "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23568 "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23569 "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23570 "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23571 "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23572 "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23573 "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23574 "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23575 "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23576 "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23577 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23578 "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23579 "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23580 "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023581 "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023582 "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23583 "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23584 "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23585 "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023586 "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023587 "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023588 "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23589 "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023590 "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23591 "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23592 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23593 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswell08acb9b2003-09-16 02:12:45 +000023594 "test/QMTestDB/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTestDB/QMTest/llvm.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023595 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23596 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23597 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23598 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23599 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23600 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23601 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23602 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23603 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23604 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23605 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23606 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23607 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23608 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23609 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23610 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23611 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23612 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023613 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023614 "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23615 "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23616 "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23617 "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23618 "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23619 "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23620 "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23621 "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23622 "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23623 "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23624 "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23625 "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23626 "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23627 "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23628 "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23629 "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23630 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23631 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023632 "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23633 "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
John Criswell39e83892003-09-12 16:36:17 +000023634 "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23635 "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023636 "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23637 "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23638 "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23639 "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23640 "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23641 "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23642 "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23643 "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23644 "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23645 "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23646 "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23647 "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23648 "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23649 "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23650 "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23651 "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23652 "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23653 "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23654 "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23655 "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23656 "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23657 "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23658 "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23659 "test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ;;
John Criswell39e83892003-09-12 16:36:17 +000023660 "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023661 "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23662 "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23663 "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23664 "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23665 "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23666 "test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023667 "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023668 "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023669 "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23670 "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23671 "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23672 "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23673 "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023674 "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23675 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23676 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000023677 "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23678 "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23679 "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23680 "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23681 "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23682 "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023683 "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023684 "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
John Criswell0afe8252003-09-11 20:53:48 +000023685 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswell67181ca2003-09-26 14:53:17 +000023686 "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
John Criswell68886d42003-09-26 19:51:42 +000023687 "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
23688 "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
John Criswellc66bbd52003-09-29 21:35:32 +000023689 "test/Programs/SingleSource/Regression/C++/EH/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/EH/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023690 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23691 "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023692 "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023693 "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23694 "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23695 "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023696 "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023697 "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023698 "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000023699 "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023700 "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023701 "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023702 "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
23703 "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023704 "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23705 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23706 "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23707 "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23708 "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23709 "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23710 "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23711 "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23712 "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23713 "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23714 "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23715 "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23716 "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
Chris Lattner9bf62392003-10-06 02:13:00 +000023717 "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23718 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23719 "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23720 "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23721 "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000023722 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23723 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23724echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23725 { (exit 1); exit 1; }; };;
23726 esac
23727done
23728
23729# If the user did not use the arguments to specify the items to instantiate,
23730# then the envvar interface is used. Set only those that are not.
23731# We use the long form for the default assignment because of an extremely
23732# bizarre bug on SunOS 4.1.3.
23733if $ac_need_defaults; then
23734 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23735 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023736 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023737fi
23738
John Criswell0c38eaf2003-09-10 15:17:25 +000023739# Have a temporary directory for convenience. Make it in the build tree
23740# simply because there is no reason to put it here, and in addition,
23741# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000023742# Create a temporary directory, and hook for its removal unless debugging.
23743$debug ||
23744{
23745 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23746 trap '{ (exit 1); exit 1; }' 1 2 13 15
23747}
23748
23749# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023750
John Criswell7a73b802003-06-30 21:59:07 +000023751{
John Criswell0c38eaf2003-09-10 15:17:25 +000023752 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023753 test -n "$tmp" && test -d "$tmp"
23754} ||
23755{
John Criswell0c38eaf2003-09-10 15:17:25 +000023756 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000023757 (umask 077 && mkdir $tmp)
23758} ||
23759{
John Criswell0c38eaf2003-09-10 15:17:25 +000023760 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000023761 { (exit 1); exit 1; }
23762}
23763
23764_ACEOF
23765
23766cat >>$CONFIG_STATUS <<_ACEOF
23767
23768#
23769# CONFIG_FILES section.
23770#
23771
23772# No need to generate the scripts if there are no CONFIG_FILES.
23773# This happens for instance when ./config.status config.h
23774if test -n "\$CONFIG_FILES"; then
23775 # Protect against being on the right side of a sed subst in config.status.
23776 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23777 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23778s,@SHELL@,$SHELL,;t t
23779s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23780s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23781s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23782s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23783s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23784s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23785s,@exec_prefix@,$exec_prefix,;t t
23786s,@prefix@,$prefix,;t t
23787s,@program_transform_name@,$program_transform_name,;t t
23788s,@bindir@,$bindir,;t t
23789s,@sbindir@,$sbindir,;t t
23790s,@libexecdir@,$libexecdir,;t t
23791s,@datadir@,$datadir,;t t
23792s,@sysconfdir@,$sysconfdir,;t t
23793s,@sharedstatedir@,$sharedstatedir,;t t
23794s,@localstatedir@,$localstatedir,;t t
23795s,@libdir@,$libdir,;t t
23796s,@includedir@,$includedir,;t t
23797s,@oldincludedir@,$oldincludedir,;t t
23798s,@infodir@,$infodir,;t t
23799s,@mandir@,$mandir,;t t
23800s,@build_alias@,$build_alias,;t t
23801s,@host_alias@,$host_alias,;t t
23802s,@target_alias@,$target_alias,;t t
23803s,@DEFS@,$DEFS,;t t
23804s,@ECHO_C@,$ECHO_C,;t t
23805s,@ECHO_N@,$ECHO_N,;t t
23806s,@ECHO_T@,$ECHO_T,;t t
23807s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000023808s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023809s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23810s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23811s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23812s,@build@,$build,;t t
23813s,@build_cpu@,$build_cpu,;t t
23814s,@build_vendor@,$build_vendor,;t t
23815s,@build_os@,$build_os,;t t
23816s,@host@,$host,;t t
23817s,@host_cpu@,$host_cpu,;t t
23818s,@host_vendor@,$host_vendor,;t t
23819s,@host_os@,$host_os,;t t
23820s,@target@,$target,;t t
23821s,@target_cpu@,$target_cpu,;t t
23822s,@target_vendor@,$target_vendor,;t t
23823s,@target_os@,$target_os,;t t
23824s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023825s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000023826s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023827s,@CXX@,$CXX,;t t
23828s,@CXXFLAGS@,$CXXFLAGS,;t t
23829s,@LDFLAGS@,$LDFLAGS,;t t
23830s,@CPPFLAGS@,$CPPFLAGS,;t t
23831s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23832s,@EXEEXT@,$EXEEXT,;t t
23833s,@OBJEXT@,$OBJEXT,;t t
23834s,@CC@,$CC,;t t
23835s,@CFLAGS@,$CFLAGS,;t t
23836s,@ac_ct_CC@,$ac_ct_CC,;t t
23837s,@CPP@,$CPP,;t t
23838s,@ifGNUmake@,$ifGNUmake,;t t
23839s,@LEX@,$LEX,;t t
23840s,@LEXLIB@,$LEXLIB,;t t
23841s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23842s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023843s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023844s,@LN_S@,$LN_S,;t t
23845s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023846s,@AR@,$AR,;t t
23847s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023848s,@RANLIB@,$RANLIB,;t t
23849s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23850s,@STRIP@,$STRIP,;t t
23851s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023852s,@CXXCPP@,$CXXCPP,;t t
23853s,@F77@,$F77,;t t
23854s,@FFLAGS@,$FFLAGS,;t t
23855s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023856s,@LIBTOOL@,$LIBTOOL,;t t
John Criswellde00db22003-08-25 16:49:54 +000023857s,@RPWD@,$RPWD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023858s,@SED@,$SED,;t t
23859s,@RM@,$RM,;t t
23860s,@MKDIR@,$MKDIR,;t t
23861s,@DATE@,$DATE,;t t
23862s,@MV@,$MV,;t t
23863s,@DOT@,$DOT,;t t
23864s,@ETAGS@,$ETAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000023865s,@PYTHON@,$PYTHON,;t t
23866s,@QMTEST@,$QMTEST,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023867s,@ALLOCA@,$ALLOCA,;t t
23868s,@LIBOBJS@,$LIBOBJS,;t t
23869s,@MMAP_FILE@,$MMAP_FILE,;t t
23870s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023871s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23872s,@USE_SPEC@,$USE_SPEC,;t t
23873s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000023874s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023875s,@JIT@,$JIT,;t t
23876s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23877s,@BCR@,$BCR,;t t
23878s,@PAPIDIR@,$PAPIDIR,;t t
John Criswellce2141f2003-10-02 19:02:30 +000023879s,@PURIFY@,$PURIFY,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000023880s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023881CEOF
23882
23883_ACEOF
23884
23885 cat >>$CONFIG_STATUS <<\_ACEOF
23886 # Split the substitutions into bite-sized pieces for seds with
23887 # small command number limits, like on Digital OSF/1 and HP-UX.
23888 ac_max_sed_lines=48
23889 ac_sed_frag=1 # Number of current file.
23890 ac_beg=1 # First line for current file.
23891 ac_end=$ac_max_sed_lines # Line after last line for current file.
23892 ac_more_lines=:
23893 ac_sed_cmds=
23894 while $ac_more_lines; do
23895 if test $ac_beg -gt 1; then
23896 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23897 else
23898 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23899 fi
23900 if test ! -s $tmp/subs.frag; then
23901 ac_more_lines=false
23902 else
23903 # The purpose of the label and of the branching condition is to
23904 # speed up the sed processing (if there are no `@' at all, there
23905 # is no need to browse any of the substitutions).
23906 # These are the two extra sed commands mentioned above.
23907 (echo ':t
23908 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23909 if test -z "$ac_sed_cmds"; then
23910 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23911 else
23912 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23913 fi
23914 ac_sed_frag=`expr $ac_sed_frag + 1`
23915 ac_beg=$ac_end
23916 ac_end=`expr $ac_end + $ac_max_sed_lines`
23917 fi
23918 done
23919 if test -z "$ac_sed_cmds"; then
23920 ac_sed_cmds=cat
23921 fi
23922fi # test -n "$CONFIG_FILES"
23923
23924_ACEOF
23925cat >>$CONFIG_STATUS <<\_ACEOF
23926for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23927 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23928 case $ac_file in
23929 - | *:- | *:-:* ) # input from stdin
23930 cat >$tmp/stdin
23931 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23932 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23933 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23934 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23935 * ) ac_file_in=$ac_file.in ;;
23936 esac
23937
23938 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23939 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23940$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23941 X"$ac_file" : 'X\(//\)[^/]' \| \
23942 X"$ac_file" : 'X\(//\)$' \| \
23943 X"$ac_file" : 'X\(/\)' \| \
23944 . : '\(.\)' 2>/dev/null ||
23945echo X"$ac_file" |
23946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23947 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23948 /^X\(\/\/\)$/{ s//\1/; q; }
23949 /^X\(\/\).*/{ s//\1/; q; }
23950 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023951 { if $as_mkdir_p; then
23952 mkdir -p "$ac_dir"
23953 else
23954 as_dir="$ac_dir"
23955 as_dirs=
23956 while test ! -d "$as_dir"; do
23957 as_dirs="$as_dir $as_dirs"
23958 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23959$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23960 X"$as_dir" : 'X\(//\)[^/]' \| \
23961 X"$as_dir" : 'X\(//\)$' \| \
23962 X"$as_dir" : 'X\(/\)' \| \
23963 . : '\(.\)' 2>/dev/null ||
23964echo X"$as_dir" |
23965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23966 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23967 /^X\(\/\/\)$/{ s//\1/; q; }
23968 /^X\(\/\).*/{ s//\1/; q; }
23969 s/.*/./; q'`
23970 done
23971 test ! -n "$as_dirs" || mkdir $as_dirs
23972 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23973echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23974 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023975
23976 ac_builddir=.
23977
23978if test "$ac_dir" != .; then
23979 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23980 # A "../" for each directory in $ac_dir_suffix.
23981 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23982else
23983 ac_dir_suffix= ac_top_builddir=
23984fi
23985
23986case $srcdir in
23987 .) # No --srcdir option. We are building in place.
23988 ac_srcdir=.
23989 if test -z "$ac_top_builddir"; then
23990 ac_top_srcdir=.
23991 else
23992 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23993 fi ;;
23994 [\\/]* | ?:[\\/]* ) # Absolute path.
23995 ac_srcdir=$srcdir$ac_dir_suffix;
23996 ac_top_srcdir=$srcdir ;;
23997 *) # Relative path.
23998 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23999 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24000esac
24001# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24002# absolute.
24003ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024004ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000024005ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24006ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24007
24008
24009 case $INSTALL in
24010 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24011 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24012 esac
24013
24014 if test x"$ac_file" != x-; then
24015 { echo "$as_me:$LINENO: creating $ac_file" >&5
24016echo "$as_me: creating $ac_file" >&6;}
24017 rm -f "$ac_file"
24018 fi
24019 # Let's still pretend it is `configure' which instantiates (i.e., don't
24020 # use $as_me), people would be surprised to read:
24021 # /* config.h. Generated by config.status. */
24022 if test x"$ac_file" = x-; then
24023 configure_input=
24024 else
24025 configure_input="$ac_file. "
24026 fi
24027 configure_input=$configure_input"Generated from `echo $ac_file_in |
24028 sed 's,.*/,,'` by configure."
24029
24030 # First look for the input files in the build tree, otherwise in the
24031 # src tree.
24032 ac_file_inputs=`IFS=:
24033 for f in $ac_file_in; do
24034 case $f in
24035 -) echo $tmp/stdin ;;
24036 [\\/$]*)
24037 # Absolute (can't be DOS-style, as IFS=:)
24038 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24039echo "$as_me: error: cannot find input file: $f" >&2;}
24040 { (exit 1); exit 1; }; }
24041 echo $f;;
24042 *) # Relative
24043 if test -f "$f"; then
24044 # Build tree
24045 echo $f
24046 elif test -f "$srcdir/$f"; then
24047 # Source tree
24048 echo $srcdir/$f
24049 else
24050 # /dev/null tree
24051 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24052echo "$as_me: error: cannot find input file: $f" >&2;}
24053 { (exit 1); exit 1; }; }
24054 fi;;
24055 esac
24056 done` || { (exit 1); exit 1; }
24057_ACEOF
24058cat >>$CONFIG_STATUS <<_ACEOF
24059 sed "$ac_vpsub
24060$extrasub
24061_ACEOF
24062cat >>$CONFIG_STATUS <<\_ACEOF
24063:t
24064/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24065s,@configure_input@,$configure_input,;t t
24066s,@srcdir@,$ac_srcdir,;t t
24067s,@abs_srcdir@,$ac_abs_srcdir,;t t
24068s,@top_srcdir@,$ac_top_srcdir,;t t
24069s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24070s,@builddir@,$ac_builddir,;t t
24071s,@abs_builddir@,$ac_abs_builddir,;t t
24072s,@top_builddir@,$ac_top_builddir,;t t
24073s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24074s,@INSTALL@,$ac_INSTALL,;t t
24075" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24076 rm -f $tmp/stdin
24077 if test x"$ac_file" != x-; then
24078 mv $tmp/out $ac_file
24079 else
24080 cat $tmp/out
24081 rm -f $tmp/out
24082 fi
24083
24084done
24085_ACEOF
24086cat >>$CONFIG_STATUS <<\_ACEOF
24087
24088#
24089# CONFIG_HEADER section.
24090#
24091
24092# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24093# NAME is the cpp macro being defined and VALUE is the value it is being given.
24094#
24095# ac_d sets the value in "#define NAME VALUE" lines.
24096ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24097ac_dB='[ ].*$,\1#\2'
24098ac_dC=' '
24099ac_dD=',;t'
24100# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24101ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24102ac_uB='$,\1#\2define\3'
24103ac_uC=' '
24104ac_uD=',;t'
24105
24106for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24107 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24108 case $ac_file in
24109 - | *:- | *:-:* ) # input from stdin
24110 cat >$tmp/stdin
24111 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24112 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24113 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24114 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24115 * ) ac_file_in=$ac_file.in ;;
24116 esac
24117
24118 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24119echo "$as_me: creating $ac_file" >&6;}
24120
24121 # First look for the input files in the build tree, otherwise in the
24122 # src tree.
24123 ac_file_inputs=`IFS=:
24124 for f in $ac_file_in; do
24125 case $f in
24126 -) echo $tmp/stdin ;;
24127 [\\/$]*)
24128 # Absolute (can't be DOS-style, as IFS=:)
24129 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24130echo "$as_me: error: cannot find input file: $f" >&2;}
24131 { (exit 1); exit 1; }; }
24132 echo $f;;
24133 *) # Relative
24134 if test -f "$f"; then
24135 # Build tree
24136 echo $f
24137 elif test -f "$srcdir/$f"; then
24138 # Source tree
24139 echo $srcdir/$f
24140 else
24141 # /dev/null tree
24142 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24143echo "$as_me: error: cannot find input file: $f" >&2;}
24144 { (exit 1); exit 1; }; }
24145 fi;;
24146 esac
24147 done` || { (exit 1); exit 1; }
24148 # Remove the trailing spaces.
24149 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24150
24151_ACEOF
24152
24153# Transform confdefs.h into two sed scripts, `conftest.defines' and
24154# `conftest.undefs', that substitutes the proper values into
24155# config.h.in to produce config.h. The first handles `#define'
24156# templates, and the second `#undef' templates.
24157# And first: Protect against being on the right side of a sed subst in
24158# config.status. Protect against being in an unquoted here document
24159# in config.status.
24160rm -f conftest.defines conftest.undefs
24161# Using a here document instead of a string reduces the quoting nightmare.
24162# Putting comments in sed scripts is not portable.
24163#
24164# `end' is used to avoid that the second main sed command (meant for
24165# 0-ary CPP macros) applies to n-ary macro definitions.
24166# See the Autoconf documentation for `clear'.
24167cat >confdef2sed.sed <<\_ACEOF
24168s/[\\&,]/\\&/g
24169s,[\\$`],\\&,g
24170t clear
24171: clear
24172s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24173t end
24174s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24175: end
24176_ACEOF
24177# If some macros were called several times there might be several times
24178# the same #defines, which is useless. Nevertheless, we may not want to
24179# sort them, since we want the *last* AC-DEFINE to be honored.
24180uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24181sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24182rm -f confdef2sed.sed
24183
24184# This sed command replaces #undef with comments. This is necessary, for
24185# example, in the case of _POSIX_SOURCE, which is predefined and required
24186# on some systems where configure will not decide to define it.
24187cat >>conftest.undefs <<\_ACEOF
24188s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24189_ACEOF
24190
24191# Break up conftest.defines because some shells have a limit on the size
24192# of here documents, and old seds have small limits too (100 cmds).
24193echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000024194echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024195echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24196echo ' :' >>$CONFIG_STATUS
24197rm -f conftest.tail
24198while grep . conftest.defines >/dev/null
24199do
24200 # Write a limited-size here document to $tmp/defines.sed.
24201 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24202 # Speed up: don't consider the non `#define' lines.
24203 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24204 # Work around the forget-to-reset-the-flag bug.
24205 echo 't clr' >>$CONFIG_STATUS
24206 echo ': clr' >>$CONFIG_STATUS
24207 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24208 echo 'CEOF
24209 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24210 rm -f $tmp/in
24211 mv $tmp/out $tmp/in
24212' >>$CONFIG_STATUS
24213 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24214 rm -f conftest.defines
24215 mv conftest.tail conftest.defines
24216done
24217rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000024218echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024219echo >>$CONFIG_STATUS
24220
24221# Break up conftest.undefs because some shells have a limit on the size
24222# of here documents, and old seds have small limits too (100 cmds).
24223echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24224rm -f conftest.tail
24225while grep . conftest.undefs >/dev/null
24226do
24227 # Write a limited-size here document to $tmp/undefs.sed.
24228 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24229 # Speed up: don't consider the non `#undef'
24230 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24231 # Work around the forget-to-reset-the-flag bug.
24232 echo 't clr' >>$CONFIG_STATUS
24233 echo ': clr' >>$CONFIG_STATUS
24234 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24235 echo 'CEOF
24236 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24237 rm -f $tmp/in
24238 mv $tmp/out $tmp/in
24239' >>$CONFIG_STATUS
24240 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24241 rm -f conftest.undefs
24242 mv conftest.tail conftest.undefs
24243done
24244rm -f conftest.undefs
24245
24246cat >>$CONFIG_STATUS <<\_ACEOF
24247 # Let's still pretend it is `configure' which instantiates (i.e., don't
24248 # use $as_me), people would be surprised to read:
24249 # /* config.h. Generated by config.status. */
24250 if test x"$ac_file" = x-; then
24251 echo "/* Generated by configure. */" >$tmp/config.h
24252 else
24253 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24254 fi
24255 cat $tmp/in >>$tmp/config.h
24256 rm -f $tmp/in
24257 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024258 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024259 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24260echo "$as_me: $ac_file is unchanged" >&6;}
24261 else
24262 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24263$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24264 X"$ac_file" : 'X\(//\)[^/]' \| \
24265 X"$ac_file" : 'X\(//\)$' \| \
24266 X"$ac_file" : 'X\(/\)' \| \
24267 . : '\(.\)' 2>/dev/null ||
24268echo X"$ac_file" |
24269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24270 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24271 /^X\(\/\/\)$/{ s//\1/; q; }
24272 /^X\(\/\).*/{ s//\1/; q; }
24273 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024274 { if $as_mkdir_p; then
24275 mkdir -p "$ac_dir"
24276 else
24277 as_dir="$ac_dir"
24278 as_dirs=
24279 while test ! -d "$as_dir"; do
24280 as_dirs="$as_dir $as_dirs"
24281 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24282$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24283 X"$as_dir" : 'X\(//\)[^/]' \| \
24284 X"$as_dir" : 'X\(//\)$' \| \
24285 X"$as_dir" : 'X\(/\)' \| \
24286 . : '\(.\)' 2>/dev/null ||
24287echo X"$as_dir" |
24288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24289 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24290 /^X\(\/\/\)$/{ s//\1/; q; }
24291 /^X\(\/\).*/{ s//\1/; q; }
24292 s/.*/./; q'`
24293 done
24294 test ! -n "$as_dirs" || mkdir $as_dirs
24295 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24296echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24297 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024298
24299 rm -f $ac_file
24300 mv $tmp/config.h $ac_file
24301 fi
24302 else
24303 cat $tmp/config.h
24304 rm -f $tmp/config.h
24305 fi
24306done
24307_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000024308cat >>$CONFIG_STATUS <<\_ACEOF
24309
24310#
24311# CONFIG_COMMANDS section.
24312#
24313for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24314 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24315 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24316 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24317$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24318 X"$ac_dest" : 'X\(//\)[^/]' \| \
24319 X"$ac_dest" : 'X\(//\)$' \| \
24320 X"$ac_dest" : 'X\(/\)' \| \
24321 . : '\(.\)' 2>/dev/null ||
24322echo X"$ac_dest" |
24323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24324 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24325 /^X\(\/\/\)$/{ s//\1/; q; }
24326 /^X\(\/\).*/{ s//\1/; q; }
24327 s/.*/./; q'`
24328 ac_builddir=.
24329
24330if test "$ac_dir" != .; then
24331 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24332 # A "../" for each directory in $ac_dir_suffix.
24333 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24334else
24335 ac_dir_suffix= ac_top_builddir=
24336fi
24337
24338case $srcdir in
24339 .) # No --srcdir option. We are building in place.
24340 ac_srcdir=.
24341 if test -z "$ac_top_builddir"; then
24342 ac_top_srcdir=.
24343 else
24344 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24345 fi ;;
24346 [\\/]* | ?:[\\/]* ) # Absolute path.
24347 ac_srcdir=$srcdir$ac_dir_suffix;
24348 ac_top_srcdir=$srcdir ;;
24349 *) # Relative path.
24350 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24351 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24352esac
24353# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24354# absolute.
24355ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024356ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000024357ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24358ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24359
24360
24361 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24362echo "$as_me: executing $ac_dest commands" >&6;}
24363 case $ac_dest in
24364 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24365 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24366 Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24367 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24368 lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24369 lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24370 lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24371 lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24372 lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24373 lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24374 lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24375 lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24376 lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24377 lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24378 lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24379 lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24380 lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024381 lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24382 lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24383 lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24384 lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24385 lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024386 lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24387 lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24388 lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24389 lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24390 lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24391 lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24392 lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24393 lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24394 lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24395 lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24396 lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24397 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24398 runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24399 runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24400 runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
John Criswell613758d2003-09-11 18:03:50 +000024401 runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024402 runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24403 runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24404 runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24405 runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
John Criswell613758d2003-09-11 18:03:50 +000024406 runtime/GCCLibraries/libtermcap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libtermcap/Makefile runtime/GCCLibraries/libtermcap/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024407 runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
John Criswell613758d2003-09-11 18:03:50 +000024408 runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24409 runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024410 runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24411 runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24412 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24413 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswell08acb9b2003-09-16 02:12:45 +000024414 test/QMTestDB/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTestDB/QMTest/llvm.py test/QMTestDB/QMTest/llvm.py ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024415 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24416 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24417 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24418 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24419 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24420 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24421 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24422 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24423 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24424 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24425 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24426 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24427 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24428 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24429 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24430 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24431 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24432 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
John Criswell613758d2003-09-11 18:03:50 +000024433 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 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024434 test/Programs/External/SPEC/CFP2000/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/Makefile test/Programs/External/SPEC/CFP2000/Makefile ;;
24435 test/Programs/External/SPEC/CFP2000/179.art/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/179.art/Makefile test/Programs/External/SPEC/CFP2000/179.art/Makefile ;;
24436 test/Programs/External/SPEC/CFP2000/183.equake/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/183.equake/Makefile test/Programs/External/SPEC/CFP2000/183.equake/Makefile ;;
24437 test/Programs/External/SPEC/CFP2000/188.ammp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/188.ammp/Makefile test/Programs/External/SPEC/CFP2000/188.ammp/Makefile ;;
24438 test/Programs/External/SPEC/CINT2000/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/Makefile test/Programs/External/SPEC/CINT2000/Makefile ;;
24439 test/Programs/External/SPEC/CINT2000/164.gzip/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/164.gzip/Makefile test/Programs/External/SPEC/CINT2000/164.gzip/Makefile ;;
24440 test/Programs/External/SPEC/CINT2000/175.vpr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/175.vpr/Makefile test/Programs/External/SPEC/CINT2000/175.vpr/Makefile ;;
24441 test/Programs/External/SPEC/CINT2000/176.gcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/176.gcc/Makefile test/Programs/External/SPEC/CINT2000/176.gcc/Makefile ;;
24442 test/Programs/External/SPEC/CINT2000/181.mcf/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/181.mcf/Makefile test/Programs/External/SPEC/CINT2000/181.mcf/Makefile ;;
24443 test/Programs/External/SPEC/CINT2000/186.crafty/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/186.crafty/Makefile test/Programs/External/SPEC/CINT2000/186.crafty/Makefile ;;
24444 test/Programs/External/SPEC/CINT2000/197.parser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/197.parser/Makefile test/Programs/External/SPEC/CINT2000/197.parser/Makefile ;;
24445 test/Programs/External/SPEC/CINT2000/254.gap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/254.gap/Makefile test/Programs/External/SPEC/CINT2000/254.gap/Makefile ;;
24446 test/Programs/External/SPEC/CINT2000/255.vortex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/255.vortex/Makefile test/Programs/External/SPEC/CINT2000/255.vortex/Makefile ;;
24447 test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile ;;
24448 test/Programs/External/SPEC/CINT2000/300.twolf/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/300.twolf/Makefile test/Programs/External/SPEC/CINT2000/300.twolf/Makefile ;;
24449 test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24450 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24451 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024452 test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24453 test/Programs/MultiSource/Applications/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Burg/Makefile test/Programs/MultiSource/Applications/Burg/Makefile ;;
John Criswell39e83892003-09-12 16:36:17 +000024454 test/Programs/MultiSource/Applications/aha/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/aha/Makefile test/Programs/MultiSource/Applications/aha/Makefile ;;
24455 test/Programs/MultiSource/Applications/sgefa/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/sgefa/Makefile test/Programs/MultiSource/Applications/sgefa/Makefile ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024456 test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24457 test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile ;;
24458 test/Programs/MultiSource/Benchmarks/McCat/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/Makefile test/Programs/MultiSource/Benchmarks/McCat/Makefile ;;
24459 test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile ;;
24460 test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile ;;
24461 test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile ;;
24462 test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile ;;
24463 test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile ;;
24464 test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile ;;
24465 test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile ;;
24466 test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile ;;
24467 test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile ;;
24468 test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile ;;
24469 test/Programs/MultiSource/Benchmarks/Olden/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/Makefile test/Programs/MultiSource/Benchmarks/Olden/Makefile ;;
24470 test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile ;;
24471 test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile ;;
24472 test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile ;;
24473 test/Programs/MultiSource/Benchmarks/Olden/health/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/health/Makefile test/Programs/MultiSource/Benchmarks/Olden/health/Makefile ;;
24474 test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile ;;
24475 test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile ;;
24476 test/Programs/MultiSource/Benchmarks/Olden/power/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/power/Makefile test/Programs/MultiSource/Benchmarks/Olden/power/Makefile ;;
24477 test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile ;;
24478 test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile ;;
24479 test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile ;;
John Criswell39e83892003-09-12 16:36:17 +000024480 test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024481 test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile ;;
24482 test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile ;;
24483 test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile ;;
24484 test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile ;;
24485 test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile ;;
24486 test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024487 test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024488 test/Programs/MultiSource/Benchmarks/sim/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/sim/Makefile test/Programs/MultiSource/Benchmarks/sim/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024489 test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24490 test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24491 test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24492 test/Programs/NoSource/Moria-5.5.2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Moria-5.5.2/Makefile test/Programs/NoSource/Moria-5.5.2/Makefile ;;
24493 test/Programs/NoSource/Povray31/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Povray31/Makefile test/Programs/NoSource/Povray31/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024494 test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24495 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24496 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000024497 test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24498 test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24499 test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile ;;
24500 test/Programs/SingleSource/Benchmarks/Shootout/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Shootout/Makefile test/Programs/SingleSource/Benchmarks/Shootout/Makefile ;;
24501 test/Programs/SingleSource/Benchmarks/Stanford/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Stanford/Makefile test/Programs/SingleSource/Benchmarks/Stanford/Makefile ;;
24502 test/Programs/SingleSource/Benchmarks/Misc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Misc/Makefile test/Programs/SingleSource/Benchmarks/Misc/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024503 test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024504 test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
John Criswell0afe8252003-09-11 20:53:48 +000024505 test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ;;
John Criswell67181ca2003-09-26 14:53:17 +000024506 test/Programs/SingleSource/Regression/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/Makefile test/Programs/SingleSource/Regression/Makefile ;;
John Criswell68886d42003-09-26 19:51:42 +000024507 test/Programs/SingleSource/Regression/C/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C/Makefile test/Programs/SingleSource/Regression/C/Makefile ;;
24508 test/Programs/SingleSource/Regression/C++/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/Makefile test/Programs/SingleSource/Regression/C++/Makefile ;;
John Criswellc66bbd52003-09-29 21:35:32 +000024509 test/Programs/SingleSource/Regression/C++/EH/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/EH/Makefile test/Programs/SingleSource/Regression/C++/EH/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024510 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24511 tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024512 tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024513 tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24514 tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24515 tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024516 tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024517 tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024518 tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000024519 tools/llvm-ar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-ar/Makefile tools/llvm-ar/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024520 tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024521 tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024522 tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
24523 tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024524 www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24525 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24526 projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24527 projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24528 projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24529 projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24530 projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24531 projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24532 projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24533 projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24534 projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24535 projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24536 projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
Chris Lattner9bf62392003-10-06 02:13:00 +000024537 lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24538 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24539 utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24540 utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24541 utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024542 esac
24543done
24544_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024545
24546cat >>$CONFIG_STATUS <<\_ACEOF
24547
24548{ (exit 0); exit 0; }
24549_ACEOF
24550chmod +x $CONFIG_STATUS
24551ac_clean_files=$ac_clean_files_save
24552
24553
24554# configure is writing to config.log, and then calls config.status.
24555# config.status does its own redirection, appending to config.log.
24556# Unfortunately, on DOS this fails, as config.log is still kept open
24557# by configure, so config.status won't be able to write to it; its
24558# output is simply discarded. So we exec the FD to /dev/null,
24559# effectively closing config.log, so it can be properly (re)opened and
24560# appended to by config.status. When coming back to configure, we
24561# need to make the FD available again.
24562if test "$no_create" != yes; then
24563 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024564 ac_config_status_args=
24565 test "$silent" = yes &&
24566 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024567 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024568 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024569 exec 5>>config.log
24570 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24571 # would make configure fail if this is the last instruction.
24572 $ac_cs_success || { (exit 1); exit 1; }
24573fi
24574
John Criswell12399a12003-09-30 15:55:44 +000024575#
24576# CONFIG_SUBDIRS section.
24577#
24578if test "$no_recursion" != yes; then
24579
24580 # Remove --cache-file and --srcdir arguments so they do not pile up.
24581 ac_sub_configure_args=
24582 ac_prev=
24583 for ac_arg in $ac_configure_args; do
24584 if test -n "$ac_prev"; then
24585 ac_prev=
24586 continue
24587 fi
24588 case $ac_arg in
24589 -cache-file | --cache-file | --cache-fil | --cache-fi \
24590 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24591 ac_prev=cache_file ;;
24592 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24593 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24594 | --c=*)
24595 ;;
24596 --config-cache | -C)
24597 ;;
24598 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24599 ac_prev=srcdir ;;
24600 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24601 ;;
24602 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24603 ac_prev=prefix ;;
24604 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24605 ;;
24606 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24607 esac
24608 done
24609
24610 # Always prepend --prefix to ensure using the same prefix
24611 # in subdir configurations.
24612 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24613
24614 ac_popdir=`pwd`
24615 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24616
24617 # Do not complain, so a configure script can configure whichever
24618 # parts of a large source tree are present.
24619 test -d $srcdir/$ac_dir || continue
24620
24621 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24622echo "$as_me: configuring in $ac_dir" >&6;}
24623 { if $as_mkdir_p; then
24624 mkdir -p "$ac_dir"
24625 else
24626 as_dir="$ac_dir"
24627 as_dirs=
24628 while test ! -d "$as_dir"; do
24629 as_dirs="$as_dir $as_dirs"
24630 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24631$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24632 X"$as_dir" : 'X\(//\)[^/]' \| \
24633 X"$as_dir" : 'X\(//\)$' \| \
24634 X"$as_dir" : 'X\(/\)' \| \
24635 . : '\(.\)' 2>/dev/null ||
24636echo X"$as_dir" |
24637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24638 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24639 /^X\(\/\/\)$/{ s//\1/; q; }
24640 /^X\(\/\).*/{ s//\1/; q; }
24641 s/.*/./; q'`
24642 done
24643 test ! -n "$as_dirs" || mkdir $as_dirs
24644 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24645echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24646 { (exit 1); exit 1; }; }; }
24647
24648 ac_builddir=.
24649
24650if test "$ac_dir" != .; then
24651 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24652 # A "../" for each directory in $ac_dir_suffix.
24653 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24654else
24655 ac_dir_suffix= ac_top_builddir=
24656fi
24657
24658case $srcdir in
24659 .) # No --srcdir option. We are building in place.
24660 ac_srcdir=.
24661 if test -z "$ac_top_builddir"; then
24662 ac_top_srcdir=.
24663 else
24664 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24665 fi ;;
24666 [\\/]* | ?:[\\/]* ) # Absolute path.
24667 ac_srcdir=$srcdir$ac_dir_suffix;
24668 ac_top_srcdir=$srcdir ;;
24669 *) # Relative path.
24670 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24671 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24672esac
24673# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24674# absolute.
24675ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24676ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24677ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24678ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24679
24680
24681 cd $ac_dir
24682
24683 # Check for guested configure; otherwise get Cygnus style configure.
24684 if test -f $ac_srcdir/configure.gnu; then
24685 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24686 elif test -f $ac_srcdir/configure; then
24687 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24688 elif test -f $ac_srcdir/configure.in; then
24689 ac_sub_configure=$ac_configure
24690 else
24691 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24692echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24693 ac_sub_configure=
24694 fi
24695
24696 # The recursion is here.
24697 if test -n "$ac_sub_configure"; then
24698 # Make the cache file name correct relative to the subdirectory.
24699 case $cache_file in
24700 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24701 *) # Relative path.
24702 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24703 esac
24704
24705 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24706echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24707 # The eval makes quoting arguments work.
24708 eval $ac_sub_configure $ac_sub_configure_args \
24709 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24710 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24711echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24712 { (exit 1); exit 1; }; }
24713 fi
24714
24715 cd $ac_popdir
24716 done
24717fi
24718