blob: a811c1f86162e1ea8f92452d09484c1b82898b19 [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
429# Factoring default headers for most tests.
430ac_includes_default="\
431#include <stdio.h>
432#if HAVE_SYS_TYPES_H
433# include <sys/types.h>
434#endif
435#if HAVE_SYS_STAT_H
436# include <sys/stat.h>
437#endif
438#if STDC_HEADERS
439# include <stdlib.h>
440# include <stddef.h>
441#else
442# if HAVE_STDLIB_H
443# include <stdlib.h>
444# endif
445#endif
446#if HAVE_STRING_H
447# if !STDC_HEADERS && HAVE_MEMORY_H
448# include <memory.h>
449# endif
450# include <string.h>
451#endif
452#if HAVE_STRINGS_H
453# include <strings.h>
454#endif
455#if HAVE_INTTYPES_H
456# include <inttypes.h>
457#else
458# if HAVE_STDINT_H
459# include <stdint.h>
460# endif
461#endif
462#if HAVE_UNISTD_H
463# include <unistd.h>
464#endif"
465
466ac_unique_file=""Makefile.config.in""
John Criswell0c38eaf2003-09-10 15:17:25 +0000467ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RPWD SED RM MKDIR DATE MV DOT ETAGS PURIFY PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED USE_SPEC UPB DISABLE_LLC_DIFFS JIT SPEC_ROOT BCR PAPIDIR LTLIBOBJS'
468ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000469
470# Initialize some variables set by options.
471ac_init_help=
472ac_init_version=false
473# The variables have the same names as the options, with
474# dashes changed to underlines.
475cache_file=/dev/null
476exec_prefix=NONE
477no_create=
478no_recursion=
479prefix=NONE
480program_prefix=NONE
481program_suffix=NONE
482program_transform_name=s,x,x,
483silent=
484site=
485srcdir=
486verbose=
487x_includes=NONE
488x_libraries=NONE
489
490# Installation directory options.
491# These are left unexpanded so users can "make install exec_prefix=/foo"
492# and all the variables that are supposed to be based on exec_prefix
493# by default will actually change.
494# Use braces instead of parens because sh, perl, etc. also accept them.
495bindir='${exec_prefix}/bin'
496sbindir='${exec_prefix}/sbin'
497libexecdir='${exec_prefix}/libexec'
498datadir='${prefix}/share'
499sysconfdir='${prefix}/etc'
500sharedstatedir='${prefix}/com'
501localstatedir='${prefix}/var'
502libdir='${exec_prefix}/lib'
503includedir='${prefix}/include'
504oldincludedir='/usr/include'
505infodir='${prefix}/info'
506mandir='${prefix}/man'
507
508ac_prev=
509for ac_option
510do
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
514 ac_prev=
515 continue
516 fi
517
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520 # Accept the important Cygnus configure options, so we can diagnose typos.
521
522 case $ac_option in
523
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 ac_prev=bindir ;;
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527 bindir=$ac_optarg ;;
528
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
533
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
540
541 --config-cache | -C)
542 cache_file=config.cache ;;
543
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545 ac_prev=datadir ;;
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547 | --da=*)
548 datadir=$ac_optarg ;;
549
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
558
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 case $ac_option in
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568 *) ac_optarg=yes ;;
569 esac
570 eval "enable_$ac_feature='$ac_optarg'" ;;
571
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
580
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
583 with_gas=yes ;;
584
585 -help | --help | --hel | --he | -h)
586 ac_init_help=long ;;
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
591
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
596
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
603
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 ac_prev=infodir ;;
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
608
609 -libdir | --libdir | --libdi | --libd)
610 ac_prev=libdir ;;
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
612 libdir=$ac_optarg ;;
613
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
620
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
629
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 ac_prev=mandir ;;
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633 mandir=$ac_optarg ;;
634
635 -nfp | --nfp | --nf)
636 # Obsolete; use --without-fp.
637 with_fp=no ;;
638
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
641 no_create=yes ;;
642
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645 no_recursion=yes ;;
646
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
655
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 ac_prev=prefix ;;
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659 prefix=$ac_optarg ;;
660
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
667
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
674
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
691
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
694 silent=yes ;;
695
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 ac_prev=sbindir ;;
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 | --sbi=* | --sb=*)
700 sbindir=$ac_optarg ;;
701
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
705 | --sha | --sh)
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 | --sha=* | --sh=*)
711 sharedstatedir=$ac_optarg ;;
712
713 -site | --site | --sit)
714 ac_prev=site ;;
715 -site=* | --site=* | --sit=*)
716 site=$ac_optarg ;;
717
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 ac_prev=srcdir ;;
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721 srcdir=$ac_optarg ;;
722
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
729
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
734
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
736 verbose=yes ;;
737
738 -version | --version | --versio | --versi | --vers | -V)
739 ac_init_version=: ;;
740
741 -with-* | --with-*)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
748 case $ac_option in
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750 *) ac_optarg=yes ;;
751 esac
752 eval "with_$ac_package='$ac_optarg'" ;;
753
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
762
763 --x)
764 # Obsolete; use --with-x.
765 with_x=yes ;;
766
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
773
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
780
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
784 ;;
785
786 *=*)
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
794 export $ac_envvar ;;
795
796 *)
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802 ;;
803
804 esac
805done
806
807if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
811fi
812
813# Be sure to have absolute paths.
814for ac_var in exec_prefix prefix
815do
816 eval ac_val=$`echo $ac_var`
817 case $ac_val in
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
821 esac
822done
823
824# Be sure to have absolute paths.
825for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
827do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834done
835
836# There might be people who depend on the old broken behavior: `$host'
837# used to hold the argument of --host etc.
838# FIXME: To remove some day.
839build=$build_alias
840host=$host_alias
841target=$target_alias
842
843# FIXME: To remove some day.
844if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
850 cross_compiling=yes
851 fi
852fi
853
854ac_tool_prefix=
855test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857test "$silent" = yes && exec 6>/dev/null
858
859
860# Find the source files, if location was not specified.
861if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
870echo X"$0" |
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
875 s/.*/./; q'`
876 srcdir=$ac_confdir
877 if test ! -r $srcdir/$ac_unique_file; then
878 srcdir=..
879 fi
880else
881 ac_srcdir_defaulted=no
882fi
883if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
887 else
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
890 fi
891fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000892(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000895srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896ac_env_build_alias_set=${build_alias+set}
897ac_env_build_alias_value=$build_alias
898ac_cv_env_build_alias_set=${build_alias+set}
899ac_cv_env_build_alias_value=$build_alias
900ac_env_host_alias_set=${host_alias+set}
901ac_env_host_alias_value=$host_alias
902ac_cv_env_host_alias_set=${host_alias+set}
903ac_cv_env_host_alias_value=$host_alias
904ac_env_target_alias_set=${target_alias+set}
905ac_env_target_alias_value=$target_alias
906ac_cv_env_target_alias_set=${target_alias+set}
907ac_cv_env_target_alias_value=$target_alias
908ac_env_CXX_set=${CXX+set}
909ac_env_CXX_value=$CXX
910ac_cv_env_CXX_set=${CXX+set}
911ac_cv_env_CXX_value=$CXX
912ac_env_CXXFLAGS_set=${CXXFLAGS+set}
913ac_env_CXXFLAGS_value=$CXXFLAGS
914ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
915ac_cv_env_CXXFLAGS_value=$CXXFLAGS
916ac_env_LDFLAGS_set=${LDFLAGS+set}
917ac_env_LDFLAGS_value=$LDFLAGS
918ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919ac_cv_env_LDFLAGS_value=$LDFLAGS
920ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921ac_env_CPPFLAGS_value=$CPPFLAGS
922ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924ac_env_CC_set=${CC+set}
925ac_env_CC_value=$CC
926ac_cv_env_CC_set=${CC+set}
927ac_cv_env_CC_value=$CC
928ac_env_CFLAGS_set=${CFLAGS+set}
929ac_env_CFLAGS_value=$CFLAGS
930ac_cv_env_CFLAGS_set=${CFLAGS+set}
931ac_cv_env_CFLAGS_value=$CFLAGS
932ac_env_CPP_set=${CPP+set}
933ac_env_CPP_value=$CPP
934ac_cv_env_CPP_set=${CPP+set}
935ac_cv_env_CPP_value=$CPP
John Criswell47fdd832003-07-14 16:52:07 +0000936ac_env_CXXCPP_set=${CXXCPP+set}
937ac_env_CXXCPP_value=$CXXCPP
938ac_cv_env_CXXCPP_set=${CXXCPP+set}
939ac_cv_env_CXXCPP_value=$CXXCPP
940ac_env_F77_set=${F77+set}
941ac_env_F77_value=$F77
942ac_cv_env_F77_set=${F77+set}
943ac_cv_env_F77_value=$F77
944ac_env_FFLAGS_set=${FFLAGS+set}
945ac_env_FFLAGS_value=$FFLAGS
946ac_cv_env_FFLAGS_set=${FFLAGS+set}
947ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000948
949#
950# Report the --help message.
951#
952if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
955 cat <<_ACEOF
956\`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
957
958Usage: $0 [OPTION]... [VAR=VALUE]...
959
960To assign environment variables (e.g., CC, CFLAGS...), specify them as
961VAR=VALUE. See below for descriptions of some of the useful variables.
962
963Defaults for the options are specified in brackets.
964
965Configuration:
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
975
976_ACEOF
977
978 cat <<_ACEOF
979Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
981 [$ac_default_prefix]
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
983 [PREFIX]
984
985By default, \`make install' will install all the files in
986\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988for instance \`--prefix=\$HOME'.
989
990For better control, use the options below.
991
992Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1005_ACEOF
1006
1007 cat <<\_ACEOF
1008
1009System types:
1010 --build=BUILD configure for building on BUILD [guessed]
1011 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1012 --target=TARGET configure for building compilers for TARGET [HOST]
1013_ACEOF
1014fi
1015
1016if test -n "$ac_init_help"; then
1017 case $ac_init_help in
1018 short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1019 esac
1020 cat <<\_ACEOF
1021
1022Optional Features:
1023 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1024 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001025 --enable-shared[=PKGS]
1026 build shared libraries [default=yes]
1027 --enable-static[=PKGS]
1028 build static libraries [default=yes]
1029 --enable-fast-install[=PKGS]
1030 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001031 --disable-libtool-lock avoid locking (might break parallel builds)
1032 --enable-purify Compile with purify (default is NO)
John Criswell7a73b802003-06-30 21:59:07 +00001033 --enable-optimized Compile with optimizations enabled (default is NO)
1034 --enable-spec Compile SPEC benchmarks (default is NO)
1035 --enable-precompiled_bytecode
1036 Use pre-compiled bytecode (default is NO)
John Criswellf02dbf02003-07-22 20:07:49 +00001037 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
John Criswellc78022e2003-07-29 19:11:58 +00001038 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001039
1040Optional Packages:
1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001043 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1044 --with-pic try to use only PIC/non-PIC objects [default=use
1045 both]
1046 --with-tags[=TAGS]
1047 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001048 --with-spec Location of SPEC benchmarks
1049 --with-llvmgccdir Location of LLVM GCC front-end
1050 --with-bcrepos Location of Bytecode Repository
1051 --with-papi Location of PAPI
John Criswellc78022e2003-07-29 19:11:58 +00001052 --with-purify Location of purify program
John Criswell7a73b802003-06-30 21:59:07 +00001053
1054Some influential environment variables:
1055 CXX C++ compiler command
1056 CXXFLAGS C++ compiler flags
1057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1058 nonstandard directory <lib dir>
1059 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060 headers in a nonstandard directory <include dir>
1061 CC C compiler command
1062 CFLAGS C compiler flags
1063 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001064 CXXCPP C++ preprocessor
1065 F77 Fortran 77 compiler command
1066 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001067
1068Use these variables to override the choices made by `configure' or to help
1069it to find libraries and programs with nonstandard names/locations.
1070
1071Report bugs to <llvmbugs@cs.uiuc.edu>.
1072_ACEOF
1073fi
1074
1075if test "$ac_init_help" = "recursive"; then
1076 # If there are subdirs, report their specific --help.
1077 ac_popdir=`pwd`
1078 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079 test -d $ac_dir || continue
1080 ac_builddir=.
1081
1082if test "$ac_dir" != .; then
1083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084 # A "../" for each directory in $ac_dir_suffix.
1085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086else
1087 ac_dir_suffix= ac_top_builddir=
1088fi
1089
1090case $srcdir in
1091 .) # No --srcdir option. We are building in place.
1092 ac_srcdir=.
1093 if test -z "$ac_top_builddir"; then
1094 ac_top_srcdir=.
1095 else
1096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097 fi ;;
1098 [\\/]* | ?:[\\/]* ) # Absolute path.
1099 ac_srcdir=$srcdir$ac_dir_suffix;
1100 ac_top_srcdir=$srcdir ;;
1101 *) # Relative path.
1102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104esac
1105# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1106# absolute.
1107ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +00001108ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +00001109ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1111
1112 cd $ac_dir
1113 # Check for guested configure; otherwise get Cygnus style configure.
1114 if test -f $ac_srcdir/configure.gnu; then
1115 echo
1116 $SHELL $ac_srcdir/configure.gnu --help=recursive
1117 elif test -f $ac_srcdir/configure; then
1118 echo
1119 $SHELL $ac_srcdir/configure --help=recursive
1120 elif test -f $ac_srcdir/configure.ac ||
1121 test -f $ac_srcdir/configure.in; then
1122 echo
1123 $ac_configure --help
1124 else
1125 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126 fi
1127 cd $ac_popdir
1128 done
1129fi
1130
1131test -n "$ac_init_help" && exit 0
1132if $ac_init_version; then
1133 cat <<\_ACEOF
1134[LLVM] configure [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +00001135generated by GNU Autoconf 2.57
John Criswell7a73b802003-06-30 21:59:07 +00001136
1137Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138Free Software Foundation, Inc.
1139This configure script is free software; the Free Software Foundation
1140gives unlimited permission to copy, distribute and modify it.
1141_ACEOF
1142 exit 0
1143fi
1144exec 5>config.log
1145cat >&5 <<_ACEOF
1146This file contains any messages produced by compilers while
1147running configure, to aid debugging if configure makes a mistake.
1148
1149It was created by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +00001150generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001151
1152 $ $0 $@
1153
1154_ACEOF
1155{
1156cat <<_ASUNAME
1157## --------- ##
1158## Platform. ##
1159## --------- ##
1160
1161hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1169
1170/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1171/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1172/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1174/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1175/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1176/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1177
1178_ASUNAME
1179
1180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181for as_dir in $PATH
1182do
1183 IFS=$as_save_IFS
1184 test -z "$as_dir" && as_dir=.
1185 echo "PATH: $as_dir"
1186done
1187
1188} >&5
1189
1190cat >&5 <<_ACEOF
1191
1192
1193## ----------- ##
1194## Core tests. ##
1195## ----------- ##
1196
1197_ACEOF
1198
1199
1200# Keep a trace of the command line.
1201# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001202# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001203# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001204# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001205ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001206ac_configure_args0=
1207ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001208ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001209ac_must_keep_next=false
1210for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001211do
John Criswell0c38eaf2003-09-10 15:17:25 +00001212 for ac_arg
1213 do
1214 case $ac_arg in
1215 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1218 continue ;;
1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221 esac
1222 case $ac_pass in
1223 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224 2)
1225 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226 if test $ac_must_keep_next = true; then
1227 ac_must_keep_next=false # Got value, back to normal.
1228 else
1229 case $ac_arg in
1230 *=* | --config-cache | -C | -disable-* | --disable-* \
1231 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233 | -with-* | --with-* | -without-* | --without-* | --x)
1234 case "$ac_configure_args0 " in
1235 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236 esac
1237 ;;
1238 -* ) ac_must_keep_next=true ;;
1239 esac
1240 fi
1241 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242 # Get rid of the leading space.
1243 ac_sep=" "
1244 ;;
1245 esac
1246 done
John Criswell7a73b802003-06-30 21:59:07 +00001247done
John Criswell0c38eaf2003-09-10 15:17:25 +00001248$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001250
1251# When interrupted or exit'd, cleanup temporary files, and complete
1252# config.log. We remove comments because anyway the quotes in there
1253# would cause problems or look ugly.
1254# WARNING: Be sure not to use single quotes in there, as some shells,
1255# such as our DU 5.0 friend, will then `close' the trap.
1256trap 'exit_status=$?
1257 # Save into config.log some information that might help in debugging.
1258 {
1259 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001260
John Criswell7a73b802003-06-30 21:59:07 +00001261 cat <<\_ASBOX
1262## ---------------- ##
1263## Cache variables. ##
1264## ---------------- ##
1265_ASBOX
1266 echo
1267 # The following way of writing the cache mishandles newlines in values,
1268{
1269 (set) 2>&1 |
1270 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271 *ac_space=\ *)
1272 sed -n \
1273 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275 ;;
1276 *)
1277 sed -n \
1278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279 ;;
1280 esac;
1281}
1282 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001283
1284 cat <<\_ASBOX
1285## ----------------- ##
1286## Output variables. ##
1287## ----------------- ##
1288_ASBOX
1289 echo
1290 for ac_var in $ac_subst_vars
1291 do
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1294 done | sort
1295 echo
1296
1297 if test -n "$ac_subst_files"; then
1298 cat <<\_ASBOX
1299## ------------- ##
1300## Output files. ##
1301## ------------- ##
1302_ASBOX
1303 echo
1304 for ac_var in $ac_subst_files
1305 do
1306 eval ac_val=$`echo $ac_var`
1307 echo "$ac_var='"'"'$ac_val'"'"'"
1308 done | sort
1309 echo
1310 fi
1311
John Criswell7a73b802003-06-30 21:59:07 +00001312 if test -s confdefs.h; then
1313 cat <<\_ASBOX
1314## ----------- ##
1315## confdefs.h. ##
1316## ----------- ##
1317_ASBOX
1318 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001319 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001320 echo
1321 fi
1322 test "$ac_signal" != 0 &&
1323 echo "$as_me: caught signal $ac_signal"
1324 echo "$as_me: exit $exit_status"
1325 } >&5
1326 rm -f core core.* *.core &&
1327 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328 exit $exit_status
1329 ' 0
1330for ac_signal in 1 2 13 15; do
1331 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332done
1333ac_signal=0
1334
1335# confdefs.h avoids OS command line length limits that DEFS can exceed.
1336rm -rf conftest* confdefs.h
1337# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338echo >confdefs.h
1339
1340# Predefined preprocessor variables.
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_NAME "$PACKAGE_NAME"
1344_ACEOF
1345
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_VERSION "$PACKAGE_VERSION"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_STRING "$PACKAGE_STRING"
1359_ACEOF
1360
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364_ACEOF
1365
1366
1367# Let the site file select an alternate cache file if it wants to.
1368# Prefer explicitly selected file to automatically selected ones.
1369if test -z "$CONFIG_SITE"; then
1370 if test "x$prefix" != xNONE; then
1371 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372 else
1373 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374 fi
1375fi
1376for ac_site_file in $CONFIG_SITE; do
1377 if test -r "$ac_site_file"; then
1378 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379echo "$as_me: loading site script $ac_site_file" >&6;}
1380 sed 's/^/| /' "$ac_site_file" >&5
1381 . "$ac_site_file"
1382 fi
1383done
1384
1385if test -r "$cache_file"; then
1386 # Some versions of bash will fail to source /dev/null (special
1387 # files actually), so we avoid doing that.
1388 if test -f "$cache_file"; then
1389 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390echo "$as_me: loading cache $cache_file" >&6;}
1391 case $cache_file in
1392 [\\/]* | ?:[\\/]* ) . $cache_file;;
1393 *) . ./$cache_file;;
1394 esac
1395 fi
1396else
1397 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398echo "$as_me: creating cache $cache_file" >&6;}
1399 >$cache_file
1400fi
1401
1402# Check that the precious variables saved in the cache have kept the same
1403# value.
1404ac_cache_corrupted=false
1405for ac_var in `(set) 2>&1 |
1406 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408 eval ac_new_set=\$ac_env_${ac_var}_set
1409 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410 eval ac_new_val="\$ac_env_${ac_var}_value"
1411 case $ac_old_set,$ac_new_set in
1412 set,)
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1416 ,set)
1417 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419 ac_cache_corrupted=: ;;
1420 ,);;
1421 *)
1422 if test "x$ac_old_val" != "x$ac_new_val"; then
1423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1426echo "$as_me: former value: $ac_old_val" >&2;}
1427 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1428echo "$as_me: current value: $ac_new_val" >&2;}
1429 ac_cache_corrupted=:
1430 fi;;
1431 esac
1432 # Pass precious variables to config.status.
1433 if test "$ac_new_set" = set; then
1434 case $ac_new_val in
1435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437 *) ac_arg=$ac_var=$ac_new_val ;;
1438 esac
1439 case " $ac_configure_args " in
1440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1441 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442 esac
1443 fi
1444done
1445if $ac_cache_corrupted; then
1446 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450 { (exit 1); exit 1; }; }
1451fi
1452
1453ac_ext=c
1454ac_cpp='$CPP $CPPFLAGS'
1455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
John Criswell0c38eaf2003-09-10 15:17:25 +00001485
John Criswell7a73b802003-06-30 21:59:07 +00001486ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001487for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001488 if test -f $ac_dir/install-sh; then
1489 ac_aux_dir=$ac_dir
1490 ac_install_sh="$ac_aux_dir/install-sh -c"
1491 break
1492 elif test -f $ac_dir/install.sh; then
1493 ac_aux_dir=$ac_dir
1494 ac_install_sh="$ac_aux_dir/install.sh -c"
1495 break
1496 elif test -f $ac_dir/shtool; then
1497 ac_aux_dir=$ac_dir
1498 ac_install_sh="$ac_aux_dir/shtool install -c"
1499 break
1500 fi
1501done
1502if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001503 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1504echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001505 { (exit 1); exit 1; }; }
1506fi
1507ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
John Criswell392aaa32003-07-22 19:18:09 +00001511
John Criswell0c38eaf2003-09-10 15:17:25 +00001512 ac_config_headers="$ac_config_headers include/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001513
John Criswell0c38eaf2003-09-10 15:17:25 +00001514 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001515
1516
John Criswell0c38eaf2003-09-10 15:17:25 +00001517 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001518
1519
John Criswell0c38eaf2003-09-10 15:17:25 +00001520 ac_config_commands="$ac_config_commands Makefile.rules"
John Criswellc764fbc2003-09-06 15:17:13 +00001521
1522
John Criswell0c38eaf2003-09-10 15:17:25 +00001523 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001524
1525
John Criswell0c38eaf2003-09-10 15:17:25 +00001526 ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001527
1528
John Criswell0c38eaf2003-09-10 15:17:25 +00001529 ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001530
1531
John Criswell0c38eaf2003-09-10 15:17:25 +00001532 ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001533
1534
John Criswell0c38eaf2003-09-10 15:17:25 +00001535 ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001536
1537
John Criswell0c38eaf2003-09-10 15:17:25 +00001538 ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001539
1540
John Criswell0c38eaf2003-09-10 15:17:25 +00001541 ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001542
1543
John Criswell0c38eaf2003-09-10 15:17:25 +00001544 ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001545
1546
John Criswell0c38eaf2003-09-10 15:17:25 +00001547 ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001548
1549
John Criswell0c38eaf2003-09-10 15:17:25 +00001550 ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001551
1552
John Criswell0c38eaf2003-09-10 15:17:25 +00001553 ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001554
1555
John Criswell0c38eaf2003-09-10 15:17:25 +00001556 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001557
1558
John Criswell0c38eaf2003-09-10 15:17:25 +00001559 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001560
1561
John Criswell0c38eaf2003-09-10 15:17:25 +00001562 ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001563
1564
John Criswell0c38eaf2003-09-10 15:17:25 +00001565 ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001566
1567
John Criswell0c38eaf2003-09-10 15:17:25 +00001568 ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001569
1570
John Criswell0c38eaf2003-09-10 15:17:25 +00001571 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001572
1573
John Criswell0c38eaf2003-09-10 15:17:25 +00001574 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001575
1576
John Criswell0c38eaf2003-09-10 15:17:25 +00001577 ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001578
1579
John Criswell0c38eaf2003-09-10 15:17:25 +00001580 ac_config_commands="$ac_config_commands lib/Support/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001581
1582
John Criswell0c38eaf2003-09-10 15:17:25 +00001583 ac_config_commands="$ac_config_commands lib/Target/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001584
1585
John Criswell0c38eaf2003-09-10 15:17:25 +00001586 ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001587
1588
John Criswell0c38eaf2003-09-10 15:17:25 +00001589 ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001590
1591
John Criswell0c38eaf2003-09-10 15:17:25 +00001592 ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001593
1594
John Criswell0c38eaf2003-09-10 15:17:25 +00001595 ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001596
1597
John Criswell0c38eaf2003-09-10 15:17:25 +00001598 ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001599
1600
John Criswell0c38eaf2003-09-10 15:17:25 +00001601 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001602
1603
John Criswell0c38eaf2003-09-10 15:17:25 +00001604 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001605
1606
John Criswell0c38eaf2003-09-10 15:17:25 +00001607 ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001608
1609
John Criswell0c38eaf2003-09-10 15:17:25 +00001610 ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001611
1612
John Criswell0c38eaf2003-09-10 15:17:25 +00001613 ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001614
1615
John Criswell0c38eaf2003-09-10 15:17:25 +00001616 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001617
1618
John Criswell0c38eaf2003-09-10 15:17:25 +00001619 ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001620
1621
John Criswell0c38eaf2003-09-10 15:17:25 +00001622 ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001623
1624
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001626
1627
John Criswell0c38eaf2003-09-10 15:17:25 +00001628 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001629
1630
John Criswell0c38eaf2003-09-10 15:17:25 +00001631 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001632
1633
John Criswell0c38eaf2003-09-10 15:17:25 +00001634 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001635
1636
John Criswell0c38eaf2003-09-10 15:17:25 +00001637 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001638
1639
John Criswell0c38eaf2003-09-10 15:17:25 +00001640 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001641
1642
John Criswell0c38eaf2003-09-10 15:17:25 +00001643 ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001644
1645
John Criswell0c38eaf2003-09-10 15:17:25 +00001646 ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001647
1648
John Criswell0c38eaf2003-09-10 15:17:25 +00001649 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001650
1651
John Criswell0c38eaf2003-09-10 15:17:25 +00001652 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001653
1654
John Criswell0c38eaf2003-09-10 15:17:25 +00001655 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001656
1657
John Criswell0c38eaf2003-09-10 15:17:25 +00001658 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
John Criswellc764fbc2003-09-06 15:17:13 +00001659
1660
John Criswell0c38eaf2003-09-10 15:17:25 +00001661 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001662
1663
John Criswell0c38eaf2003-09-10 15:17:25 +00001664 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001665
1666
John Criswell0c38eaf2003-09-10 15:17:25 +00001667 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001668
1669
John Criswell0c38eaf2003-09-10 15:17:25 +00001670 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001671
1672
John Criswell0c38eaf2003-09-10 15:17:25 +00001673 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001674
1675
John Criswell0c38eaf2003-09-10 15:17:25 +00001676 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001677
1678
John Criswell0c38eaf2003-09-10 15:17:25 +00001679 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001680
1681
John Criswell0c38eaf2003-09-10 15:17:25 +00001682 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001683
1684
John Criswell0c38eaf2003-09-10 15:17:25 +00001685 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001686
1687
John Criswell0c38eaf2003-09-10 15:17:25 +00001688 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001689
1690
John Criswell0c38eaf2003-09-10 15:17:25 +00001691 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001692
1693
John Criswell0c38eaf2003-09-10 15:17:25 +00001694 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001695
1696
John Criswell0c38eaf2003-09-10 15:17:25 +00001697 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
John Criswellc764fbc2003-09-06 15:17:13 +00001698
1699
John Criswell0c38eaf2003-09-10 15:17:25 +00001700 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001701
1702
John Criswell0c38eaf2003-09-10 15:17:25 +00001703 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001704
1705
John Criswell0c38eaf2003-09-10 15:17:25 +00001706 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001707
1708
John Criswell0c38eaf2003-09-10 15:17:25 +00001709 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001710
1711
John Criswell0c38eaf2003-09-10 15:17:25 +00001712 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001713
1714
John Criswell0c38eaf2003-09-10 15:17:25 +00001715 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001716
1717
John Criswell0c38eaf2003-09-10 15:17:25 +00001718 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001719
1720
John Criswell0c38eaf2003-09-10 15:17:25 +00001721 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001722
1723
John Criswell0c38eaf2003-09-10 15:17:25 +00001724 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001725
1726
John Criswell0c38eaf2003-09-10 15:17:25 +00001727 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001728
1729
John Criswell0c38eaf2003-09-10 15:17:25 +00001730 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001731
1732
John Criswell0c38eaf2003-09-10 15:17:25 +00001733 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001734
1735
John Criswell0c38eaf2003-09-10 15:17:25 +00001736 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001737
1738
John Criswell0c38eaf2003-09-10 15:17:25 +00001739 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001740
1741
John Criswell0c38eaf2003-09-10 15:17:25 +00001742 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001743
1744
John Criswell0c38eaf2003-09-10 15:17:25 +00001745 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001746
1747
John Criswell0c38eaf2003-09-10 15:17:25 +00001748 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001749
1750
John Criswell0c38eaf2003-09-10 15:17:25 +00001751 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001752
1753
John Criswell0c38eaf2003-09-10 15:17:25 +00001754 ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001755
1756
John Criswell0c38eaf2003-09-10 15:17:25 +00001757 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001758
1759
John Criswell0c38eaf2003-09-10 15:17:25 +00001760 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001761
1762
John Criswell0c38eaf2003-09-10 15:17:25 +00001763 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001764
1765
John Criswell0c38eaf2003-09-10 15:17:25 +00001766 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Fhourstones/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001767
1768
John Criswell0c38eaf2003-09-10 15:17:25 +00001769 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001770
1771
John Criswell0c38eaf2003-09-10 15:17:25 +00001772 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/01-qbsort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001773
1774
John Criswell0c38eaf2003-09-10 15:17:25 +00001775 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/03-testtrie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001776
1777
John Criswell0c38eaf2003-09-10 15:17:25 +00001778 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/04-bisect/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001779
1780
John Criswell0c38eaf2003-09-10 15:17:25 +00001781 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/05-eks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001782
1783
John Criswell0c38eaf2003-09-10 15:17:25 +00001784 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/08-main/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001785
1786
John Criswell0c38eaf2003-09-10 15:17:25 +00001787 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/09-vor/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001788
1789
John Criswell0c38eaf2003-09-10 15:17:25 +00001790 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/12-IOtest/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001791
1792
John Criswell0c38eaf2003-09-10 15:17:25 +00001793 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/15-trie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001794
1795
John Criswell0c38eaf2003-09-10 15:17:25 +00001796 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/17-bintr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001797
1798
John Criswell0c38eaf2003-09-10 15:17:25 +00001799 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/18-imp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001800
1801
John Criswell0c38eaf2003-09-10 15:17:25 +00001802 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001803
1804
John Criswell0c38eaf2003-09-10 15:17:25 +00001805 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/bh/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001806
1807
John Criswell0c38eaf2003-09-10 15:17:25 +00001808 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/bisort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001809
1810
John Criswell0c38eaf2003-09-10 15:17:25 +00001811 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/em3d/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001812
1813
John Criswell0c38eaf2003-09-10 15:17:25 +00001814 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/health/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001815
1816
John Criswell0c38eaf2003-09-10 15:17:25 +00001817 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/mst/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001818
1819
John Criswell0c38eaf2003-09-10 15:17:25 +00001820 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/perimeter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001821
1822
John Criswell0c38eaf2003-09-10 15:17:25 +00001823 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/power/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001824
1825
John Criswell0c38eaf2003-09-10 15:17:25 +00001826 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/treeadd/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001827
1828
John Criswell0c38eaf2003-09-10 15:17:25 +00001829 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/tsp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001830
1831
John Criswell0c38eaf2003-09-10 15:17:25 +00001832 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/voronoi/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001833
1834
John Criswell0c38eaf2003-09-10 15:17:25 +00001835 ac_config_commands="$ac_config_commands test/Programs/MultiSource/OptimizerEval/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001836
1837
John Criswell0c38eaf2003-09-10 15:17:25 +00001838 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001839
1840
John Criswell0c38eaf2003-09-10 15:17:25 +00001841 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/anagram/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001842
1843
John Criswell0c38eaf2003-09-10 15:17:25 +00001844 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/bc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001845
1846
John Criswell0c38eaf2003-09-10 15:17:25 +00001847 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/ft/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001848
1849
John Criswell0c38eaf2003-09-10 15:17:25 +00001850 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/ks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001851
1852
John Criswell0c38eaf2003-09-10 15:17:25 +00001853 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/yacr2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001854
1855
John Criswell0c38eaf2003-09-10 15:17:25 +00001856 ac_config_commands="$ac_config_commands test/Programs/MultiSource/aha/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001857
1858
John Criswell0c38eaf2003-09-10 15:17:25 +00001859 ac_config_commands="$ac_config_commands test/Programs/MultiSource/llubenchmark/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001860
1861
John Criswell0c38eaf2003-09-10 15:17:25 +00001862 ac_config_commands="$ac_config_commands test/Programs/MultiSource/sgefa/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001863
1864
John Criswell0c38eaf2003-09-10 15:17:25 +00001865 ac_config_commands="$ac_config_commands test/Programs/MultiSource/sim/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001866
1867
John Criswell0c38eaf2003-09-10 15:17:25 +00001868 ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001869
1870
John Criswell0c38eaf2003-09-10 15:17:25 +00001871 ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001872
1873
John Criswell0c38eaf2003-09-10 15:17:25 +00001874 ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001875
1876
John Criswell0c38eaf2003-09-10 15:17:25 +00001877 ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001878
1879
John Criswell0c38eaf2003-09-10 15:17:25 +00001880 ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001881
1882
John Criswell0c38eaf2003-09-10 15:17:25 +00001883 ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001884
1885
John Criswell0c38eaf2003-09-10 15:17:25 +00001886 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001887
1888
John Criswell0c38eaf2003-09-10 15:17:25 +00001889 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001890
1891
John Criswellffaaf3b2003-09-10 18:38:44 +00001892 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1893
1894
1895 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1896
1897
1898 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1899
1900
1901 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1902
1903
1904 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1905
1906
1907 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1908
1909
John Criswell0c38eaf2003-09-10 15:17:25 +00001910 ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001911
1912
John Criswell0c38eaf2003-09-10 15:17:25 +00001913 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001914
1915
John Criswell0c38eaf2003-09-10 15:17:25 +00001916 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001917
1918
John Criswell0c38eaf2003-09-10 15:17:25 +00001919 ac_config_commands="$ac_config_commands tools/analyze/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001920
1921
John Criswell0c38eaf2003-09-10 15:17:25 +00001922 ac_config_commands="$ac_config_commands tools/as/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001923
1924
John Criswell0c38eaf2003-09-10 15:17:25 +00001925 ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001926
1927
John Criswell0c38eaf2003-09-10 15:17:25 +00001928 ac_config_commands="$ac_config_commands tools/dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001929
1930
John Criswell0c38eaf2003-09-10 15:17:25 +00001931 ac_config_commands="$ac_config_commands tools/extract/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001932
1933
John Criswell0c38eaf2003-09-10 15:17:25 +00001934 ac_config_commands="$ac_config_commands tools/gccas/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001935
1936
John Criswell0c38eaf2003-09-10 15:17:25 +00001937 ac_config_commands="$ac_config_commands tools/gccld/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001938
1939
John Criswell0c38eaf2003-09-10 15:17:25 +00001940 ac_config_commands="$ac_config_commands tools/link/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001941
1942
John Criswell0c38eaf2003-09-10 15:17:25 +00001943 ac_config_commands="$ac_config_commands tools/llc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001944
1945
John Criswell0c38eaf2003-09-10 15:17:25 +00001946 ac_config_commands="$ac_config_commands tools/lli/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001947
1948
John Criswell0c38eaf2003-09-10 15:17:25 +00001949 ac_config_commands="$ac_config_commands tools/opt/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001950
1951
John Criswell0c38eaf2003-09-10 15:17:25 +00001952 ac_config_commands="$ac_config_commands tools/llee/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001953
1954
John Criswell0c38eaf2003-09-10 15:17:25 +00001955 ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001956
1957
John Criswell0c38eaf2003-09-10 15:17:25 +00001958 ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001959
1960
John Criswell0c38eaf2003-09-10 15:17:25 +00001961 ac_config_commands="$ac_config_commands utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001962
1963
John Criswell0c38eaf2003-09-10 15:17:25 +00001964 ac_config_commands="$ac_config_commands utils/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001965
1966
John Criswell0c38eaf2003-09-10 15:17:25 +00001967 ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001968
1969
John Criswell0c38eaf2003-09-10 15:17:25 +00001970 ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001971
1972
John Criswell0c38eaf2003-09-10 15:17:25 +00001973 ac_config_commands="$ac_config_commands www/docs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001974
1975
John Criswell0c38eaf2003-09-10 15:17:25 +00001976 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001977
1978
John Criswell0c38eaf2003-09-10 15:17:25 +00001979 ac_config_commands="$ac_config_commands projects/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001980
1981
John Criswell0c38eaf2003-09-10 15:17:25 +00001982 ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001983
1984
John Criswell0c38eaf2003-09-10 15:17:25 +00001985 ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
John Criswellc764fbc2003-09-06 15:17:13 +00001986
1987
John Criswell0c38eaf2003-09-10 15:17:25 +00001988 ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001989
1990
John Criswell0c38eaf2003-09-10 15:17:25 +00001991 ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001992
1993
John Criswell0c38eaf2003-09-10 15:17:25 +00001994 ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001995
1996
John Criswell0c38eaf2003-09-10 15:17:25 +00001997 ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001998
1999
John Criswell0c38eaf2003-09-10 15:17:25 +00002000 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002001
2002
John Criswell0c38eaf2003-09-10 15:17:25 +00002003 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002004
2005
John Criswell0c38eaf2003-09-10 15:17:25 +00002006 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002007
2008
John Criswell0c38eaf2003-09-10 15:17:25 +00002009 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002010
2011
John Criswell392aaa32003-07-22 19:18:09 +00002012
2013
John Criswell7a73b802003-06-30 21:59:07 +00002014# Find a good install program. We prefer a C program (faster),
2015# so one script is as good as another. But avoid the broken or
2016# incompatible versions:
2017# SysV /etc/install, /usr/sbin/install
2018# SunOS /usr/etc/install
2019# IRIX /sbin/install
2020# AIX /bin/install
2021# AmigaOS /C/install, which installs bootblocks on floppy discs
2022# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2023# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2024# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2025# ./install, which can be erroneously created by make from ./install.sh.
2026echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2027echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2028if test -z "$INSTALL"; then
2029if test "${ac_cv_path_install+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2031else
2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033for as_dir in $PATH
2034do
2035 IFS=$as_save_IFS
2036 test -z "$as_dir" && as_dir=.
2037 # Account for people who put trailing slashes in PATH elements.
2038case $as_dir/ in
2039 ./ | .// | /cC/* | \
2040 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2041 /usr/ucb/* ) ;;
2042 *)
2043 # OSF1 and SCO ODT 3.0 have their own names for install.
2044 # Don't use installbsd from OSF since it installs stuff as root
2045 # by default.
2046 for ac_prog in ginstall scoinst install; do
2047 for ac_exec_ext in '' $ac_executable_extensions; do
2048 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2049 if test $ac_prog = install &&
2050 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2051 # AIX install. It has an incompatible calling convention.
2052 :
2053 elif test $ac_prog = install &&
2054 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2055 # program-specific install script used by HP pwplus--don't use.
2056 :
2057 else
2058 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2059 break 3
2060 fi
2061 fi
2062 done
2063 done
2064 ;;
2065esac
2066done
2067
2068
2069fi
2070 if test "${ac_cv_path_install+set}" = set; then
2071 INSTALL=$ac_cv_path_install
2072 else
2073 # As a last resort, use the slow shell script. We don't cache a
2074 # path for INSTALL within a source directory, because that will
2075 # break other packages using the cache if that directory is
2076 # removed, or if the path is relative.
2077 INSTALL=$ac_install_sh
2078 fi
2079fi
2080echo "$as_me:$LINENO: result: $INSTALL" >&5
2081echo "${ECHO_T}$INSTALL" >&6
2082
2083# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2084# It thinks the first close brace ends the variable substitution.
2085test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2086
2087test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2088
2089test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2090
2091
2092# Make sure we can run config.sub.
2093$ac_config_sub sun4 >/dev/null 2>&1 ||
2094 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2095echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2096 { (exit 1); exit 1; }; }
2097
2098echo "$as_me:$LINENO: checking build system type" >&5
2099echo $ECHO_N "checking build system type... $ECHO_C" >&6
2100if test "${ac_cv_build+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2102else
2103 ac_cv_build_alias=$build_alias
2104test -z "$ac_cv_build_alias" &&
2105 ac_cv_build_alias=`$ac_config_guess`
2106test -z "$ac_cv_build_alias" &&
2107 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2108echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2109 { (exit 1); exit 1; }; }
2110ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2111 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2112echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2113 { (exit 1); exit 1; }; }
2114
2115fi
2116echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2117echo "${ECHO_T}$ac_cv_build" >&6
2118build=$ac_cv_build
2119build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2120build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2121build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2122
2123
2124echo "$as_me:$LINENO: checking host system type" >&5
2125echo $ECHO_N "checking host system type... $ECHO_C" >&6
2126if test "${ac_cv_host+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2128else
2129 ac_cv_host_alias=$host_alias
2130test -z "$ac_cv_host_alias" &&
2131 ac_cv_host_alias=$ac_cv_build_alias
2132ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2133 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2134echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2135 { (exit 1); exit 1; }; }
2136
2137fi
2138echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2139echo "${ECHO_T}$ac_cv_host" >&6
2140host=$ac_cv_host
2141host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2142host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2143host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2144
2145
2146echo "$as_me:$LINENO: checking target system type" >&5
2147echo $ECHO_N "checking target system type... $ECHO_C" >&6
2148if test "${ac_cv_target+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2150else
2151 ac_cv_target_alias=$target_alias
2152test "x$ac_cv_target_alias" = "x" &&
2153 ac_cv_target_alias=$ac_cv_host_alias
2154ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2155 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2156echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2157 { (exit 1); exit 1; }; }
2158
2159fi
2160echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2161echo "${ECHO_T}$ac_cv_target" >&6
2162target=$ac_cv_target
2163target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2164target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2165target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2166
2167
2168# The aliases save the names the user supplied, while $host etc.
2169# will get canonicalized.
2170test -n "$target_alias" &&
2171 test "$program_prefix$program_suffix$program_transform_name" = \
2172 NONENONEs,x,x, &&
2173 program_prefix=${target_alias}-
2174
2175case $build in
2176 *i*86*) OS=Linux
2177
John Criswellf02dbf02003-07-22 20:07:49 +00002178 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00002179
2180 ;;
2181
2182 *sparc*) OS=SunOS
2183
2184 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2185
2186 ;;
2187
2188 *) OS=Unknown
2189
2190 ;;
2191esac
2192
2193case $target in
2194 *sparc*solaris*) target=sparcv9-sun-solaris2.8
2195
2196 ;;
2197esac
2198
John Criswell76595452003-07-01 22:07:39 +00002199case $target in
2200 *i*86*) ARCH=x86
2201
2202 ;;
2203 *sparc*solaris*) ARCH=Sparc
2204
2205 ;;
2206esac
2207
John Criswell7a73b802003-06-30 21:59:07 +00002208
2209ac_ext=cc
2210ac_cpp='$CXXCPP $CPPFLAGS'
2211ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2212ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2213ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2214if test -n "$ac_tool_prefix"; then
2215 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2216 do
2217 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2218set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2219echo "$as_me:$LINENO: checking for $ac_word" >&5
2220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2221if test "${ac_cv_prog_CXX+set}" = set; then
2222 echo $ECHO_N "(cached) $ECHO_C" >&6
2223else
2224 if test -n "$CXX"; then
2225 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2226else
2227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228for as_dir in $PATH
2229do
2230 IFS=$as_save_IFS
2231 test -z "$as_dir" && as_dir=.
2232 for ac_exec_ext in '' $ac_executable_extensions; do
2233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2234 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236 break 2
2237 fi
2238done
2239done
2240
2241fi
2242fi
2243CXX=$ac_cv_prog_CXX
2244if test -n "$CXX"; then
2245 echo "$as_me:$LINENO: result: $CXX" >&5
2246echo "${ECHO_T}$CXX" >&6
2247else
2248 echo "$as_me:$LINENO: result: no" >&5
2249echo "${ECHO_T}no" >&6
2250fi
2251
2252 test -n "$CXX" && break
2253 done
2254fi
2255if test -z "$CXX"; then
2256 ac_ct_CXX=$CXX
2257 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2258do
2259 # Extract the first word of "$ac_prog", so it can be a program name with args.
2260set dummy $ac_prog; ac_word=$2
2261echo "$as_me:$LINENO: checking for $ac_word" >&5
2262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2263if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
2265else
2266 if test -n "$ac_ct_CXX"; then
2267 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2268else
2269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270for as_dir in $PATH
2271do
2272 IFS=$as_save_IFS
2273 test -z "$as_dir" && as_dir=.
2274 for ac_exec_ext in '' $ac_executable_extensions; do
2275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2276 ac_cv_prog_ac_ct_CXX="$ac_prog"
2277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278 break 2
2279 fi
2280done
2281done
2282
2283fi
2284fi
2285ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2286if test -n "$ac_ct_CXX"; then
2287 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2288echo "${ECHO_T}$ac_ct_CXX" >&6
2289else
2290 echo "$as_me:$LINENO: result: no" >&5
2291echo "${ECHO_T}no" >&6
2292fi
2293
2294 test -n "$ac_ct_CXX" && break
2295done
2296test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2297
2298 CXX=$ac_ct_CXX
2299fi
2300
2301
2302# Provide some information about the compiler.
2303echo "$as_me:$LINENO:" \
2304 "checking for C++ compiler version" >&5
2305ac_compiler=`set X $ac_compile; echo $2`
2306{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2307 (eval $ac_compiler --version </dev/null >&5) 2>&5
2308 ac_status=$?
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); }
2311{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2312 (eval $ac_compiler -v </dev/null >&5) 2>&5
2313 ac_status=$?
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }
2316{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2317 (eval $ac_compiler -V </dev/null >&5) 2>&5
2318 ac_status=$?
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }
2321
2322cat >conftest.$ac_ext <<_ACEOF
2323#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002324/* confdefs.h. */
2325_ACEOF
2326cat confdefs.h >>conftest.$ac_ext
2327cat >>conftest.$ac_ext <<_ACEOF
2328/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002329
John Criswell7a73b802003-06-30 21:59:07 +00002330int
2331main ()
2332{
2333
2334 ;
2335 return 0;
2336}
2337_ACEOF
2338ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002339ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002340# Try to create an executable without -o first, disregard a.out.
2341# It will help us diagnose broken compilers, and finding out an intuition
2342# of exeext.
2343echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2344echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2345ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2346if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2347 (eval $ac_link_default) 2>&5
2348 ac_status=$?
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }; then
2351 # Find the output, starting from the most likely. This scheme is
2352# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2353# resort.
2354
2355# Be careful to initialize this variable, since it used to be cached.
2356# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2357ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002358# b.out is created by i960 compilers.
2359for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2360do
2361 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002362 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002363 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2364 ;;
2365 conftest.$ac_ext )
2366 # This is the source file.
2367 ;;
2368 [ab].out )
2369 # We found the default executable, but exeext='' is most
2370 # certainly right.
2371 break;;
2372 *.* )
2373 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2374 # FIXME: I believe we export ac_cv_exeext for Libtool,
2375 # but it would be cool to find out if it's true. Does anybody
2376 # maintain Libtool? --akim.
2377 export ac_cv_exeext
2378 break;;
2379 * )
2380 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002381 esac
2382done
2383else
2384 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002385sed 's/^/| /' conftest.$ac_ext >&5
2386
2387{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2388See \`config.log' for more details." >&5
2389echo "$as_me: error: C++ compiler cannot create executables
2390See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002391 { (exit 77); exit 77; }; }
2392fi
2393
2394ac_exeext=$ac_cv_exeext
2395echo "$as_me:$LINENO: result: $ac_file" >&5
2396echo "${ECHO_T}$ac_file" >&6
2397
2398# Check the compiler produces executables we can run. If not, either
2399# the compiler is broken, or we cross compile.
2400echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2401echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2402# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2403# If not cross compiling, check that we can run a simple program.
2404if test "$cross_compiling" != yes; then
2405 if { ac_try='./$ac_file'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 (eval $ac_try) 2>&5
2408 ac_status=$?
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; }; then
2411 cross_compiling=no
2412 else
2413 if test "$cross_compiling" = maybe; then
2414 cross_compiling=yes
2415 else
2416 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002417If you meant to cross compile, use \`--host'.
2418See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002419echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002420If you meant to cross compile, use \`--host'.
2421See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002422 { (exit 1); exit 1; }; }
2423 fi
2424 fi
2425fi
2426echo "$as_me:$LINENO: result: yes" >&5
2427echo "${ECHO_T}yes" >&6
2428
John Criswell0c38eaf2003-09-10 15:17:25 +00002429rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002430ac_clean_files=$ac_clean_files_save
2431# Check the compiler produces executables we can run. If not, either
2432# the compiler is broken, or we cross compile.
2433echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2434echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2435echo "$as_me:$LINENO: result: $cross_compiling" >&5
2436echo "${ECHO_T}$cross_compiling" >&6
2437
2438echo "$as_me:$LINENO: checking for suffix of executables" >&5
2439echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2441 (eval $ac_link) 2>&5
2442 ac_status=$?
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; then
2445 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2446# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2447# work properly (i.e., refer to `conftest.exe'), while it won't with
2448# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002449for ac_file in conftest.exe conftest conftest.*; do
2450 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002451 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002452 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002453 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2454 export ac_cv_exeext
2455 break;;
2456 * ) break;;
2457 esac
2458done
2459else
John Criswell0c38eaf2003-09-10 15:17:25 +00002460 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2461See \`config.log' for more details." >&5
2462echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2463See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002464 { (exit 1); exit 1; }; }
2465fi
2466
2467rm -f conftest$ac_cv_exeext
2468echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2469echo "${ECHO_T}$ac_cv_exeext" >&6
2470
2471rm -f conftest.$ac_ext
2472EXEEXT=$ac_cv_exeext
2473ac_exeext=$EXEEXT
2474echo "$as_me:$LINENO: checking for suffix of object files" >&5
2475echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2476if test "${ac_cv_objext+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2478else
2479 cat >conftest.$ac_ext <<_ACEOF
2480#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002481/* confdefs.h. */
2482_ACEOF
2483cat confdefs.h >>conftest.$ac_ext
2484cat >>conftest.$ac_ext <<_ACEOF
2485/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002486
John Criswell7a73b802003-06-30 21:59:07 +00002487int
2488main ()
2489{
2490
2491 ;
2492 return 0;
2493}
2494_ACEOF
2495rm -f conftest.o conftest.obj
2496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2497 (eval $ac_compile) 2>&5
2498 ac_status=$?
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; then
2501 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2502 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002504 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2505 break;;
2506 esac
2507done
2508else
2509 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002510sed 's/^/| /' conftest.$ac_ext >&5
2511
2512{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2513See \`config.log' for more details." >&5
2514echo "$as_me: error: cannot compute suffix of object files: cannot compile
2515See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002516 { (exit 1); exit 1; }; }
2517fi
2518
2519rm -f conftest.$ac_cv_objext conftest.$ac_ext
2520fi
2521echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2522echo "${ECHO_T}$ac_cv_objext" >&6
2523OBJEXT=$ac_cv_objext
2524ac_objext=$OBJEXT
2525echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2526echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2527if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2529else
2530 cat >conftest.$ac_ext <<_ACEOF
2531#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002532/* confdefs.h. */
2533_ACEOF
2534cat confdefs.h >>conftest.$ac_ext
2535cat >>conftest.$ac_ext <<_ACEOF
2536/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002537
John Criswell7a73b802003-06-30 21:59:07 +00002538int
2539main ()
2540{
2541#ifndef __GNUC__
2542 choke me
2543#endif
2544
2545 ;
2546 return 0;
2547}
2548_ACEOF
2549rm -f conftest.$ac_objext
2550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551 (eval $ac_compile) 2>&5
2552 ac_status=$?
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); } &&
2555 { ac_try='test -s conftest.$ac_objext'
2556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557 (eval $ac_try) 2>&5
2558 ac_status=$?
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; }; then
2561 ac_compiler_gnu=yes
2562else
2563 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002564sed 's/^/| /' conftest.$ac_ext >&5
2565
John Criswell7a73b802003-06-30 21:59:07 +00002566ac_compiler_gnu=no
2567fi
2568rm -f conftest.$ac_objext conftest.$ac_ext
2569ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2570
2571fi
2572echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2573echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2574GXX=`test $ac_compiler_gnu = yes && echo yes`
2575ac_test_CXXFLAGS=${CXXFLAGS+set}
2576ac_save_CXXFLAGS=$CXXFLAGS
2577CXXFLAGS="-g"
2578echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2579echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2580if test "${ac_cv_prog_cxx_g+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2582else
2583 cat >conftest.$ac_ext <<_ACEOF
2584#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002585/* confdefs.h. */
2586_ACEOF
2587cat confdefs.h >>conftest.$ac_ext
2588cat >>conftest.$ac_ext <<_ACEOF
2589/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002590
John Criswell7a73b802003-06-30 21:59:07 +00002591int
2592main ()
2593{
2594
2595 ;
2596 return 0;
2597}
2598_ACEOF
2599rm -f conftest.$ac_objext
2600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601 (eval $ac_compile) 2>&5
2602 ac_status=$?
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } &&
2605 { ac_try='test -s conftest.$ac_objext'
2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607 (eval $ac_try) 2>&5
2608 ac_status=$?
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; }; then
2611 ac_cv_prog_cxx_g=yes
2612else
2613 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002614sed 's/^/| /' conftest.$ac_ext >&5
2615
John Criswell7a73b802003-06-30 21:59:07 +00002616ac_cv_prog_cxx_g=no
2617fi
2618rm -f conftest.$ac_objext conftest.$ac_ext
2619fi
2620echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2621echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2622if test "$ac_test_CXXFLAGS" = set; then
2623 CXXFLAGS=$ac_save_CXXFLAGS
2624elif test $ac_cv_prog_cxx_g = yes; then
2625 if test "$GXX" = yes; then
2626 CXXFLAGS="-g -O2"
2627 else
2628 CXXFLAGS="-g"
2629 fi
2630else
2631 if test "$GXX" = yes; then
2632 CXXFLAGS="-O2"
2633 else
2634 CXXFLAGS=
2635 fi
2636fi
2637for ac_declaration in \
2638 ''\
2639 '#include <stdlib.h>' \
2640 'extern "C" void std::exit (int) throw (); using std::exit;' \
2641 'extern "C" void std::exit (int); using std::exit;' \
2642 'extern "C" void exit (int) throw ();' \
2643 'extern "C" void exit (int);' \
2644 'void exit (int);'
2645do
2646 cat >conftest.$ac_ext <<_ACEOF
2647#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002648/* confdefs.h. */
2649_ACEOF
2650cat confdefs.h >>conftest.$ac_ext
2651cat >>conftest.$ac_ext <<_ACEOF
2652/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002653#include <stdlib.h>
2654$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002655int
2656main ()
2657{
2658exit (42);
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 :
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 +00002680continue
2681fi
2682rm -f conftest.$ac_objext conftest.$ac_ext
2683 cat >conftest.$ac_ext <<_ACEOF
2684#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002685/* confdefs.h. */
2686_ACEOF
2687cat confdefs.h >>conftest.$ac_ext
2688cat >>conftest.$ac_ext <<_ACEOF
2689/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002690$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002691int
2692main ()
2693{
2694exit (42);
2695 ;
2696 return 0;
2697}
2698_ACEOF
2699rm -f conftest.$ac_objext
2700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2701 (eval $ac_compile) 2>&5
2702 ac_status=$?
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); } &&
2705 { ac_try='test -s conftest.$ac_objext'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 (eval $ac_try) 2>&5
2708 ac_status=$?
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; }; then
2711 break
2712else
2713 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002714sed 's/^/| /' conftest.$ac_ext >&5
2715
John Criswell7a73b802003-06-30 21:59:07 +00002716fi
2717rm -f conftest.$ac_objext conftest.$ac_ext
2718done
2719rm -f conftest*
2720if test -n "$ac_declaration"; then
2721 echo '#ifdef __cplusplus' >>confdefs.h
2722 echo $ac_declaration >>confdefs.h
2723 echo '#endif' >>confdefs.h
2724fi
2725
2726ac_ext=c
2727ac_cpp='$CPP $CPPFLAGS'
2728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2730ac_compiler_gnu=$ac_cv_c_compiler_gnu
2731
2732ac_ext=c
2733ac_cpp='$CPP $CPPFLAGS'
2734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736ac_compiler_gnu=$ac_cv_c_compiler_gnu
2737if test -n "$ac_tool_prefix"; then
2738 for ac_prog in gcc
2739 do
2740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2741set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2742echo "$as_me:$LINENO: checking for $ac_word" >&5
2743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2744if test "${ac_cv_prog_CC+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2746else
2747 if test -n "$CC"; then
2748 ac_cv_prog_CC="$CC" # Let the user override the test.
2749else
2750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751for as_dir in $PATH
2752do
2753 IFS=$as_save_IFS
2754 test -z "$as_dir" && as_dir=.
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2757 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2759 break 2
2760 fi
2761done
2762done
2763
2764fi
2765fi
2766CC=$ac_cv_prog_CC
2767if test -n "$CC"; then
2768 echo "$as_me:$LINENO: result: $CC" >&5
2769echo "${ECHO_T}$CC" >&6
2770else
2771 echo "$as_me:$LINENO: result: no" >&5
2772echo "${ECHO_T}no" >&6
2773fi
2774
2775 test -n "$CC" && break
2776 done
2777fi
2778if test -z "$CC"; then
2779 ac_ct_CC=$CC
2780 for ac_prog in gcc
2781do
2782 # Extract the first word of "$ac_prog", so it can be a program name with args.
2783set dummy $ac_prog; ac_word=$2
2784echo "$as_me:$LINENO: checking for $ac_word" >&5
2785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2786if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2787 echo $ECHO_N "(cached) $ECHO_C" >&6
2788else
2789 if test -n "$ac_ct_CC"; then
2790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2791else
2792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793for as_dir in $PATH
2794do
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2799 ac_cv_prog_ac_ct_CC="$ac_prog"
2800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 break 2
2802 fi
2803done
2804done
2805
2806fi
2807fi
2808ac_ct_CC=$ac_cv_prog_ac_ct_CC
2809if test -n "$ac_ct_CC"; then
2810 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2811echo "${ECHO_T}$ac_ct_CC" >&6
2812else
2813 echo "$as_me:$LINENO: result: no" >&5
2814echo "${ECHO_T}no" >&6
2815fi
2816
2817 test -n "$ac_ct_CC" && break
2818done
2819
2820 CC=$ac_ct_CC
2821fi
2822
2823
John Criswell0c38eaf2003-09-10 15:17:25 +00002824test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2825See \`config.log' for more details." >&5
2826echo "$as_me: error: no acceptable C compiler found in \$PATH
2827See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002828 { (exit 1); exit 1; }; }
2829
2830# Provide some information about the compiler.
2831echo "$as_me:$LINENO:" \
2832 "checking for C compiler version" >&5
2833ac_compiler=`set X $ac_compile; echo $2`
2834{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2835 (eval $ac_compiler --version </dev/null >&5) 2>&5
2836 ac_status=$?
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }
2839{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2840 (eval $ac_compiler -v </dev/null >&5) 2>&5
2841 ac_status=$?
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }
2844{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2845 (eval $ac_compiler -V </dev/null >&5) 2>&5
2846 ac_status=$?
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }
2849
2850echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2851echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2852if test "${ac_cv_c_compiler_gnu+set}" = set; then
2853 echo $ECHO_N "(cached) $ECHO_C" >&6
2854else
2855 cat >conftest.$ac_ext <<_ACEOF
2856#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002857/* confdefs.h. */
2858_ACEOF
2859cat confdefs.h >>conftest.$ac_ext
2860cat >>conftest.$ac_ext <<_ACEOF
2861/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002862
John Criswell7a73b802003-06-30 21:59:07 +00002863int
2864main ()
2865{
2866#ifndef __GNUC__
2867 choke me
2868#endif
2869
2870 ;
2871 return 0;
2872}
2873_ACEOF
2874rm -f conftest.$ac_objext
2875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2876 (eval $ac_compile) 2>&5
2877 ac_status=$?
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); } &&
2880 { ac_try='test -s conftest.$ac_objext'
2881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2882 (eval $ac_try) 2>&5
2883 ac_status=$?
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }; }; then
2886 ac_compiler_gnu=yes
2887else
2888 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002889sed 's/^/| /' conftest.$ac_ext >&5
2890
John Criswell7a73b802003-06-30 21:59:07 +00002891ac_compiler_gnu=no
2892fi
2893rm -f conftest.$ac_objext conftest.$ac_ext
2894ac_cv_c_compiler_gnu=$ac_compiler_gnu
2895
2896fi
2897echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2898echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2899GCC=`test $ac_compiler_gnu = yes && echo yes`
2900ac_test_CFLAGS=${CFLAGS+set}
2901ac_save_CFLAGS=$CFLAGS
2902CFLAGS="-g"
2903echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2904echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2905if test "${ac_cv_prog_cc_g+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2907else
2908 cat >conftest.$ac_ext <<_ACEOF
2909#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002910/* confdefs.h. */
2911_ACEOF
2912cat confdefs.h >>conftest.$ac_ext
2913cat >>conftest.$ac_ext <<_ACEOF
2914/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002915
John Criswell7a73b802003-06-30 21:59:07 +00002916int
2917main ()
2918{
2919
2920 ;
2921 return 0;
2922}
2923_ACEOF
2924rm -f conftest.$ac_objext
2925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2926 (eval $ac_compile) 2>&5
2927 ac_status=$?
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); } &&
2930 { ac_try='test -s conftest.$ac_objext'
2931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932 (eval $ac_try) 2>&5
2933 ac_status=$?
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; }; then
2936 ac_cv_prog_cc_g=yes
2937else
2938 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002939sed 's/^/| /' conftest.$ac_ext >&5
2940
John Criswell7a73b802003-06-30 21:59:07 +00002941ac_cv_prog_cc_g=no
2942fi
2943rm -f conftest.$ac_objext conftest.$ac_ext
2944fi
2945echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2946echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2947if test "$ac_test_CFLAGS" = set; then
2948 CFLAGS=$ac_save_CFLAGS
2949elif test $ac_cv_prog_cc_g = yes; then
2950 if test "$GCC" = yes; then
2951 CFLAGS="-g -O2"
2952 else
2953 CFLAGS="-g"
2954 fi
2955else
2956 if test "$GCC" = yes; then
2957 CFLAGS="-O2"
2958 else
2959 CFLAGS=
2960 fi
2961fi
John Criswell0c38eaf2003-09-10 15:17:25 +00002962echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2963echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2964if test "${ac_cv_prog_cc_stdc+set}" = set; then
2965 echo $ECHO_N "(cached) $ECHO_C" >&6
2966else
2967 ac_cv_prog_cc_stdc=no
2968ac_save_CC=$CC
2969cat >conftest.$ac_ext <<_ACEOF
2970#line $LINENO "configure"
2971/* confdefs.h. */
2972_ACEOF
2973cat confdefs.h >>conftest.$ac_ext
2974cat >>conftest.$ac_ext <<_ACEOF
2975/* end confdefs.h. */
2976#include <stdarg.h>
2977#include <stdio.h>
2978#include <sys/types.h>
2979#include <sys/stat.h>
2980/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2981struct buf { int x; };
2982FILE * (*rcsopen) (struct buf *, struct stat *, int);
2983static char *e (p, i)
2984 char **p;
2985 int i;
2986{
2987 return p[i];
2988}
2989static char *f (char * (*g) (char **, int), char **p, ...)
2990{
2991 char *s;
2992 va_list v;
2993 va_start (v,p);
2994 s = g (p, va_arg (v,int));
2995 va_end (v);
2996 return s;
2997}
2998int test (int i, double x);
2999struct s1 {int (*f) (int a);};
3000struct s2 {int (*f) (double a);};
3001int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3002int argc;
3003char **argv;
3004int
3005main ()
3006{
3007return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3008 ;
3009 return 0;
3010}
3011_ACEOF
3012# Don't try gcc -ansi; that turns off useful extensions and
3013# breaks some systems' header files.
3014# AIX -qlanglvl=ansi
3015# Ultrix and OSF/1 -std1
3016# HP-UX 10.20 and later -Ae
3017# HP-UX older versions -Aa -D_HPUX_SOURCE
3018# SVR4 -Xc -D__EXTENSIONS__
3019for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3020do
3021 CC="$ac_save_CC $ac_arg"
3022 rm -f conftest.$ac_objext
3023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3024 (eval $ac_compile) 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); } &&
3028 { ac_try='test -s conftest.$ac_objext'
3029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030 (eval $ac_try) 2>&5
3031 ac_status=$?
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; }; then
3034 ac_cv_prog_cc_stdc=$ac_arg
3035break
3036else
3037 echo "$as_me: failed program was:" >&5
3038sed 's/^/| /' conftest.$ac_ext >&5
3039
3040fi
3041rm -f conftest.$ac_objext
3042done
3043rm -f conftest.$ac_ext conftest.$ac_objext
3044CC=$ac_save_CC
3045
3046fi
3047
3048case "x$ac_cv_prog_cc_stdc" in
3049 x|xno)
3050 echo "$as_me:$LINENO: result: none needed" >&5
3051echo "${ECHO_T}none needed" >&6 ;;
3052 *)
3053 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3054echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3055 CC="$CC $ac_cv_prog_cc_stdc" ;;
3056esac
3057
John Criswell7a73b802003-06-30 21:59:07 +00003058# Some people use a C++ compiler to compile C. Since we use `exit',
3059# in C++ we need to declare it. In case someone uses the same compiler
3060# for both compiling C and C++ we need to have the C++ compiler decide
3061# the declaration of exit, since it's the most demanding environment.
3062cat >conftest.$ac_ext <<_ACEOF
3063#ifndef __cplusplus
3064 choke me
3065#endif
3066_ACEOF
3067rm -f conftest.$ac_objext
3068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3069 (eval $ac_compile) 2>&5
3070 ac_status=$?
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); } &&
3073 { ac_try='test -s conftest.$ac_objext'
3074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3075 (eval $ac_try) 2>&5
3076 ac_status=$?
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }; }; then
3079 for ac_declaration in \
3080 ''\
3081 '#include <stdlib.h>' \
3082 'extern "C" void std::exit (int) throw (); using std::exit;' \
3083 'extern "C" void std::exit (int); using std::exit;' \
3084 'extern "C" void exit (int) throw ();' \
3085 'extern "C" void exit (int);' \
3086 'void exit (int);'
3087do
3088 cat >conftest.$ac_ext <<_ACEOF
3089#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003090/* confdefs.h. */
3091_ACEOF
3092cat confdefs.h >>conftest.$ac_ext
3093cat >>conftest.$ac_ext <<_ACEOF
3094/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003095#include <stdlib.h>
3096$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003097int
3098main ()
3099{
3100exit (42);
3101 ;
3102 return 0;
3103}
3104_ACEOF
3105rm -f conftest.$ac_objext
3106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3107 (eval $ac_compile) 2>&5
3108 ac_status=$?
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); } &&
3111 { ac_try='test -s conftest.$ac_objext'
3112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3113 (eval $ac_try) 2>&5
3114 ac_status=$?
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }; }; then
3117 :
3118else
3119 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003120sed 's/^/| /' conftest.$ac_ext >&5
3121
John Criswell7a73b802003-06-30 21:59:07 +00003122continue
3123fi
3124rm -f conftest.$ac_objext conftest.$ac_ext
3125 cat >conftest.$ac_ext <<_ACEOF
3126#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003127/* confdefs.h. */
3128_ACEOF
3129cat confdefs.h >>conftest.$ac_ext
3130cat >>conftest.$ac_ext <<_ACEOF
3131/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003132$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003133int
3134main ()
3135{
3136exit (42);
3137 ;
3138 return 0;
3139}
3140_ACEOF
3141rm -f conftest.$ac_objext
3142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3143 (eval $ac_compile) 2>&5
3144 ac_status=$?
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } &&
3147 { ac_try='test -s conftest.$ac_objext'
3148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3149 (eval $ac_try) 2>&5
3150 ac_status=$?
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; }; then
3153 break
3154else
3155 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003156sed 's/^/| /' conftest.$ac_ext >&5
3157
John Criswell7a73b802003-06-30 21:59:07 +00003158fi
3159rm -f conftest.$ac_objext conftest.$ac_ext
3160done
3161rm -f conftest*
3162if test -n "$ac_declaration"; then
3163 echo '#ifdef __cplusplus' >>confdefs.h
3164 echo $ac_declaration >>confdefs.h
3165 echo '#endif' >>confdefs.h
3166fi
3167
3168else
3169 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003170sed 's/^/| /' conftest.$ac_ext >&5
3171
John Criswell7a73b802003-06-30 21:59:07 +00003172fi
3173rm -f conftest.$ac_objext conftest.$ac_ext
3174ac_ext=c
3175ac_cpp='$CPP $CPPFLAGS'
3176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3178ac_compiler_gnu=$ac_cv_c_compiler_gnu
3179
3180ac_ext=c
3181ac_cpp='$CPP $CPPFLAGS'
3182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3184ac_compiler_gnu=$ac_cv_c_compiler_gnu
3185echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3186echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3187# On Suns, sometimes $CPP names a directory.
3188if test -n "$CPP" && test -d "$CPP"; then
3189 CPP=
3190fi
3191if test -z "$CPP"; then
3192 if test "${ac_cv_prog_CPP+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3194else
3195 # Double quotes because CPP needs to be expanded
3196 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3197 do
3198 ac_preproc_ok=false
3199for ac_c_preproc_warn_flag in '' yes
3200do
3201 # Use a header file that comes with gcc, so configuring glibc
3202 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003203 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3204 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003205 # On the NeXT, cc -E runs the code through the compiler's parser,
3206 # not just through cpp. "Syntax error" is here to catch this case.
3207 cat >conftest.$ac_ext <<_ACEOF
3208#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003209/* confdefs.h. */
3210_ACEOF
3211cat confdefs.h >>conftest.$ac_ext
3212cat >>conftest.$ac_ext <<_ACEOF
3213/* end confdefs.h. */
3214#ifdef __STDC__
3215# include <limits.h>
3216#else
3217# include <assert.h>
3218#endif
John Criswell7a73b802003-06-30 21:59:07 +00003219 Syntax error
3220_ACEOF
3221if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3223 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003224 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003225 rm -f conftest.er1
3226 cat conftest.err >&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); } >/dev/null; then
3229 if test -s conftest.err; then
3230 ac_cpp_err=$ac_c_preproc_warn_flag
3231 else
3232 ac_cpp_err=
3233 fi
3234else
3235 ac_cpp_err=yes
3236fi
3237if test -z "$ac_cpp_err"; then
3238 :
3239else
3240 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003241sed 's/^/| /' conftest.$ac_ext >&5
3242
John Criswell7a73b802003-06-30 21:59:07 +00003243 # Broken: fails on valid input.
3244continue
3245fi
3246rm -f conftest.err conftest.$ac_ext
3247
3248 # OK, works on sane cases. Now check whether non-existent headers
3249 # can be detected and how.
3250 cat >conftest.$ac_ext <<_ACEOF
3251#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003252/* confdefs.h. */
3253_ACEOF
3254cat confdefs.h >>conftest.$ac_ext
3255cat >>conftest.$ac_ext <<_ACEOF
3256/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003257#include <ac_nonexistent.h>
3258_ACEOF
3259if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3261 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003262 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003263 rm -f conftest.er1
3264 cat conftest.err >&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); } >/dev/null; then
3267 if test -s conftest.err; then
3268 ac_cpp_err=$ac_c_preproc_warn_flag
3269 else
3270 ac_cpp_err=
3271 fi
3272else
3273 ac_cpp_err=yes
3274fi
3275if test -z "$ac_cpp_err"; then
3276 # Broken: success on invalid input.
3277continue
3278else
3279 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003280sed 's/^/| /' conftest.$ac_ext >&5
3281
John Criswell7a73b802003-06-30 21:59:07 +00003282 # Passes both tests.
3283ac_preproc_ok=:
3284break
3285fi
3286rm -f conftest.err conftest.$ac_ext
3287
3288done
3289# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3290rm -f conftest.err conftest.$ac_ext
3291if $ac_preproc_ok; then
3292 break
3293fi
3294
3295 done
3296 ac_cv_prog_CPP=$CPP
3297
3298fi
3299 CPP=$ac_cv_prog_CPP
3300else
3301 ac_cv_prog_CPP=$CPP
3302fi
3303echo "$as_me:$LINENO: result: $CPP" >&5
3304echo "${ECHO_T}$CPP" >&6
3305ac_preproc_ok=false
3306for ac_c_preproc_warn_flag in '' yes
3307do
3308 # Use a header file that comes with gcc, so configuring glibc
3309 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003310 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3311 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003312 # On the NeXT, cc -E runs the code through the compiler's parser,
3313 # not just through cpp. "Syntax error" is here to catch this case.
3314 cat >conftest.$ac_ext <<_ACEOF
3315#line $LINENO "configure"
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. */
3321#ifdef __STDC__
3322# include <limits.h>
3323#else
3324# include <assert.h>
3325#endif
John Criswell7a73b802003-06-30 21:59:07 +00003326 Syntax error
3327_ACEOF
3328if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3330 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003331 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003332 rm -f conftest.er1
3333 cat conftest.err >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); } >/dev/null; then
3336 if test -s conftest.err; then
3337 ac_cpp_err=$ac_c_preproc_warn_flag
3338 else
3339 ac_cpp_err=
3340 fi
3341else
3342 ac_cpp_err=yes
3343fi
3344if test -z "$ac_cpp_err"; then
3345 :
3346else
3347 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003348sed 's/^/| /' conftest.$ac_ext >&5
3349
John Criswell7a73b802003-06-30 21:59:07 +00003350 # Broken: fails on valid input.
3351continue
3352fi
3353rm -f conftest.err conftest.$ac_ext
3354
3355 # OK, works on sane cases. Now check whether non-existent headers
3356 # can be detected and how.
3357 cat >conftest.$ac_ext <<_ACEOF
3358#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003359/* confdefs.h. */
3360_ACEOF
3361cat confdefs.h >>conftest.$ac_ext
3362cat >>conftest.$ac_ext <<_ACEOF
3363/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003364#include <ac_nonexistent.h>
3365_ACEOF
3366if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3368 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003369 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003370 rm -f conftest.er1
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } >/dev/null; then
3374 if test -s conftest.err; then
3375 ac_cpp_err=$ac_c_preproc_warn_flag
3376 else
3377 ac_cpp_err=
3378 fi
3379else
3380 ac_cpp_err=yes
3381fi
3382if test -z "$ac_cpp_err"; then
3383 # Broken: success on invalid input.
3384continue
3385else
3386 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003387sed 's/^/| /' conftest.$ac_ext >&5
3388
John Criswell7a73b802003-06-30 21:59:07 +00003389 # Passes both tests.
3390ac_preproc_ok=:
3391break
3392fi
3393rm -f conftest.err conftest.$ac_ext
3394
3395done
3396# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3397rm -f conftest.err conftest.$ac_ext
3398if $ac_preproc_ok; then
3399 :
3400else
John Criswell0c38eaf2003-09-10 15:17:25 +00003401 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3402See \`config.log' for more details." >&5
3403echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3404See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003405 { (exit 1); exit 1; }; }
3406fi
3407
3408ac_ext=c
3409ac_cpp='$CPP $CPPFLAGS'
3410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3412ac_compiler_gnu=$ac_cv_c_compiler_gnu
3413
3414
3415if test "$GCC" != "yes"
3416then
3417 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3418echo "$as_me: error: gcc required but not found" >&2;}
3419 { (exit 1); exit 1; }; }
3420fi
3421
3422if test "$GXX" != "yes"
3423then
3424 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3425echo "$as_me: error: g++ required but not found" >&2;}
3426 { (exit 1); exit 1; }; }
3427fi
3428
John Criswellde00db22003-08-25 16:49:54 +00003429gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3430if test "$gccmajor" -lt "3"
3431then
3432 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3433echo "$as_me: error: gcc 3.x required" >&2;}
3434 { (exit 1); exit 1; }; }
3435fi
3436
John Criswell7a73b802003-06-30 21:59:07 +00003437 echo "$as_me:$LINENO: checking for GNU make" >&5
3438echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3439if test "${_cv_gnu_make_command+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3441else
3442 _cv_gnu_make_command='' ;
3443 for a in "$MAKE" make gmake gnumake ; do
3444 if test -z "$a" ; then continue ; fi ;
3445 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3446 _cv_gnu_make_command=$a ;
3447 break;
3448 fi
3449 done ;
3450
3451fi
3452echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3453echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3454 if test "x$_cv_gnu_make_command" != "x" ; then
3455 ifGNUmake='' ;
3456 else
3457 ifGNUmake='#' ;
3458 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3459echo "${ECHO_T}\"Not found\"" >&6;
3460 fi
3461
3462
3463if test -z "$_cv_gnu_make_command"
3464then
3465 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3466echo "$as_me: error: GNU Make required but not found" >&2;}
3467 { (exit 1); exit 1; }; }
3468fi
3469
3470
3471echo "$as_me:$LINENO: checking " >&5
3472echo $ECHO_N "checking ... $ECHO_C" >&6
3473if test "${ac_cv_has_flex+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3475else
3476 for ac_prog in flex lex
3477do
3478 # Extract the first word of "$ac_prog", so it can be a program name with args.
3479set dummy $ac_prog; ac_word=$2
3480echo "$as_me:$LINENO: checking for $ac_word" >&5
3481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3482if test "${ac_cv_prog_LEX+set}" = set; then
3483 echo $ECHO_N "(cached) $ECHO_C" >&6
3484else
3485 if test -n "$LEX"; then
3486 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3487else
3488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489for as_dir in $PATH
3490do
3491 IFS=$as_save_IFS
3492 test -z "$as_dir" && as_dir=.
3493 for ac_exec_ext in '' $ac_executable_extensions; do
3494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3495 ac_cv_prog_LEX="$ac_prog"
3496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3497 break 2
3498 fi
3499done
3500done
3501
3502fi
3503fi
3504LEX=$ac_cv_prog_LEX
3505if test -n "$LEX"; then
3506 echo "$as_me:$LINENO: result: $LEX" >&5
3507echo "${ECHO_T}$LEX" >&6
3508else
3509 echo "$as_me:$LINENO: result: no" >&5
3510echo "${ECHO_T}no" >&6
3511fi
3512
3513 test -n "$LEX" && break
3514done
3515test -n "$LEX" || LEX=":"
3516
3517if test -z "$LEXLIB"
3518then
3519 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3520echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3521if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3523else
3524 ac_check_lib_save_LIBS=$LIBS
3525LIBS="-lfl $LIBS"
3526cat >conftest.$ac_ext <<_ACEOF
3527#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003528/* confdefs.h. */
3529_ACEOF
3530cat confdefs.h >>conftest.$ac_ext
3531cat >>conftest.$ac_ext <<_ACEOF
3532/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003533
3534/* Override any gcc2 internal prototype to avoid an error. */
3535#ifdef __cplusplus
3536extern "C"
3537#endif
3538/* We use char because int might match the return type of a gcc2
3539 builtin and then its argument prototype would still apply. */
3540char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003541int
3542main ()
3543{
3544yywrap ();
3545 ;
3546 return 0;
3547}
3548_ACEOF
3549rm -f conftest.$ac_objext conftest$ac_exeext
3550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3551 (eval $ac_link) 2>&5
3552 ac_status=$?
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); } &&
3555 { ac_try='test -s conftest$ac_exeext'
3556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557 (eval $ac_try) 2>&5
3558 ac_status=$?
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }; }; then
3561 ac_cv_lib_fl_yywrap=yes
3562else
3563 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003564sed 's/^/| /' conftest.$ac_ext >&5
3565
John Criswell7a73b802003-06-30 21:59:07 +00003566ac_cv_lib_fl_yywrap=no
3567fi
3568rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3569LIBS=$ac_check_lib_save_LIBS
3570fi
3571echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3572echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3573if test $ac_cv_lib_fl_yywrap = yes; then
3574 LEXLIB="-lfl"
3575else
3576 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3577echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3578if test "${ac_cv_lib_l_yywrap+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3580else
3581 ac_check_lib_save_LIBS=$LIBS
3582LIBS="-ll $LIBS"
3583cat >conftest.$ac_ext <<_ACEOF
3584#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003585/* confdefs.h. */
3586_ACEOF
3587cat confdefs.h >>conftest.$ac_ext
3588cat >>conftest.$ac_ext <<_ACEOF
3589/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003590
3591/* Override any gcc2 internal prototype to avoid an error. */
3592#ifdef __cplusplus
3593extern "C"
3594#endif
3595/* We use char because int might match the return type of a gcc2
3596 builtin and then its argument prototype would still apply. */
3597char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003598int
3599main ()
3600{
3601yywrap ();
3602 ;
3603 return 0;
3604}
3605_ACEOF
3606rm -f conftest.$ac_objext conftest$ac_exeext
3607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3608 (eval $ac_link) 2>&5
3609 ac_status=$?
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); } &&
3612 { ac_try='test -s conftest$ac_exeext'
3613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614 (eval $ac_try) 2>&5
3615 ac_status=$?
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; }; then
3618 ac_cv_lib_l_yywrap=yes
3619else
3620 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003621sed 's/^/| /' conftest.$ac_ext >&5
3622
John Criswell7a73b802003-06-30 21:59:07 +00003623ac_cv_lib_l_yywrap=no
3624fi
3625rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3626LIBS=$ac_check_lib_save_LIBS
3627fi
3628echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3629echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3630if test $ac_cv_lib_l_yywrap = yes; then
3631 LEXLIB="-ll"
3632fi
3633
3634fi
3635
3636fi
3637
3638if test "x$LEX" != "x:"; then
3639 echo "$as_me:$LINENO: checking lex output file root" >&5
3640echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3641if test "${ac_cv_prog_lex_root+set}" = set; then
3642 echo $ECHO_N "(cached) $ECHO_C" >&6
3643else
3644 # The minimal lex program is just a single line: %%. But some broken lexes
3645# (Solaris, I think it was) want two %% lines, so accommodate them.
3646cat >conftest.l <<_ACEOF
3647%%
3648%%
3649_ACEOF
3650{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3651 (eval $LEX conftest.l) 2>&5
3652 ac_status=$?
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); }
3655if test -f lex.yy.c; then
3656 ac_cv_prog_lex_root=lex.yy
3657elif test -f lexyy.c; then
3658 ac_cv_prog_lex_root=lexyy
3659else
3660 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3661echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3662 { (exit 1); exit 1; }; }
3663fi
3664fi
3665echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3666echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3667rm -f conftest.l
3668LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3669
3670echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3671echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3672if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674else
3675 # POSIX says lex can declare yytext either as a pointer or an array; the
3676# default is implementation-dependent. Figure out which it is, since
3677# not all implementations provide the %pointer and %array declarations.
3678ac_cv_prog_lex_yytext_pointer=no
3679echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3680ac_save_LIBS=$LIBS
3681LIBS="$LIBS $LEXLIB"
3682cat >conftest.$ac_ext <<_ACEOF
3683`cat $LEX_OUTPUT_ROOT.c`
3684_ACEOF
3685rm -f conftest.$ac_objext conftest$ac_exeext
3686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3687 (eval $ac_link) 2>&5
3688 ac_status=$?
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); } &&
3691 { ac_try='test -s conftest$ac_exeext'
3692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693 (eval $ac_try) 2>&5
3694 ac_status=$?
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; }; then
3697 ac_cv_prog_lex_yytext_pointer=yes
3698else
3699 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003700sed 's/^/| /' conftest.$ac_ext >&5
3701
John Criswell7a73b802003-06-30 21:59:07 +00003702fi
3703rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3704LIBS=$ac_save_LIBS
3705rm -f "${LEX_OUTPUT_ROOT}.c"
3706
3707fi
3708echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3709echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3710if test $ac_cv_prog_lex_yytext_pointer = yes; then
3711
3712cat >>confdefs.h <<\_ACEOF
3713#define YYTEXT_POINTER 1
3714_ACEOF
3715
3716fi
3717
3718fi
3719
3720fi
3721echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3722echo "${ECHO_T}$ac_cv_has_flex" >&6
3723if test "$LEX" != "flex"; then
3724 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3725echo "$as_me: error: flex not found but required" >&2;}
3726 { (exit 1); exit 1; }; }
3727fi
3728
3729echo "$as_me:$LINENO: checking " >&5
3730echo $ECHO_N "checking ... $ECHO_C" >&6
3731if test "${ac_cv_has_bison+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3733else
3734 for ac_prog in 'bison -y' byacc
3735do
3736 # Extract the first word of "$ac_prog", so it can be a program name with args.
3737set dummy $ac_prog; ac_word=$2
3738echo "$as_me:$LINENO: checking for $ac_word" >&5
3739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3740if test "${ac_cv_prog_YACC+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3742else
3743 if test -n "$YACC"; then
3744 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3745else
3746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747for as_dir in $PATH
3748do
3749 IFS=$as_save_IFS
3750 test -z "$as_dir" && as_dir=.
3751 for ac_exec_ext in '' $ac_executable_extensions; do
3752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3753 ac_cv_prog_YACC="$ac_prog"
3754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3755 break 2
3756 fi
3757done
3758done
3759
3760fi
3761fi
3762YACC=$ac_cv_prog_YACC
3763if test -n "$YACC"; then
3764 echo "$as_me:$LINENO: result: $YACC" >&5
3765echo "${ECHO_T}$YACC" >&6
3766else
3767 echo "$as_me:$LINENO: result: no" >&5
3768echo "${ECHO_T}no" >&6
3769fi
3770
3771 test -n "$YACC" && break
3772done
3773test -n "$YACC" || YACC="yacc"
3774
3775
3776fi
3777echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3778echo "${ECHO_T}$ac_cv_has_bison" >&6
3779if test "$YACC" != "bison -y"; then
3780 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3781echo "$as_me: error: bison not found but required" >&2;}
3782 { (exit 1); exit 1; }; }
3783else
3784 YACC=bison
3785
3786fi
3787
3788
3789# Check whether --enable-shared or --disable-shared was given.
3790if test "${enable_shared+set}" = set; then
3791 enableval="$enable_shared"
3792 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003793 case $enableval in
3794 yes) enable_shared=yes ;;
3795 no) enable_shared=no ;;
3796 *)
3797 enable_shared=no
3798 # Look at the argument we got. We use all the common list separators.
3799 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3800 for pkg in $enableval; do
3801 IFS="$lt_save_ifs"
3802 if test "X$pkg" = "X$p"; then
3803 enable_shared=yes
3804 fi
3805 done
3806 IFS="$lt_save_ifs"
3807 ;;
3808 esac
John Criswell7a73b802003-06-30 21:59:07 +00003809else
3810 enable_shared=yes
3811fi;
John Criswell47fdd832003-07-14 16:52:07 +00003812
John Criswell7a73b802003-06-30 21:59:07 +00003813# Check whether --enable-static or --disable-static was given.
3814if test "${enable_static+set}" = set; then
3815 enableval="$enable_static"
3816 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003817 case $enableval in
3818 yes) enable_static=yes ;;
3819 no) enable_static=no ;;
3820 *)
3821 enable_static=no
3822 # Look at the argument we got. We use all the common list separators.
3823 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3824 for pkg in $enableval; do
3825 IFS="$lt_save_ifs"
3826 if test "X$pkg" = "X$p"; then
3827 enable_static=yes
3828 fi
3829 done
3830 IFS="$lt_save_ifs"
3831 ;;
3832 esac
John Criswell7a73b802003-06-30 21:59:07 +00003833else
3834 enable_static=yes
3835fi;
John Criswell47fdd832003-07-14 16:52:07 +00003836
John Criswell7a73b802003-06-30 21:59:07 +00003837# Check whether --enable-fast-install or --disable-fast-install was given.
3838if test "${enable_fast_install+set}" = set; then
3839 enableval="$enable_fast_install"
3840 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003841 case $enableval in
3842 yes) enable_fast_install=yes ;;
3843 no) enable_fast_install=no ;;
3844 *)
3845 enable_fast_install=no
3846 # Look at the argument we got. We use all the common list separators.
3847 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3848 for pkg in $enableval; do
3849 IFS="$lt_save_ifs"
3850 if test "X$pkg" = "X$p"; then
3851 enable_fast_install=yes
3852 fi
3853 done
3854 IFS="$lt_save_ifs"
3855 ;;
3856 esac
John Criswell7a73b802003-06-30 21:59:07 +00003857else
3858 enable_fast_install=yes
3859fi;
John Criswell47fdd832003-07-14 16:52:07 +00003860
3861echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3862echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3863if test "${lt_cv_path_SED+set}" = set; then
3864 echo $ECHO_N "(cached) $ECHO_C" >&6
3865else
3866 # Loop through the user's path and test for sed and gsed.
3867# Then use that list of sed's as ones to test for truncation.
3868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869for as_dir in $PATH
3870do
3871 IFS=$as_save_IFS
3872 test -z "$as_dir" && as_dir=.
3873 for lt_ac_prog in sed gsed; do
3874 for ac_exec_ext in '' $ac_executable_extensions; do
3875 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3876 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3877 fi
3878 done
3879 done
3880done
3881lt_ac_max=0
3882lt_ac_count=0
3883# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3884# along with /bin/sed that truncates output.
3885for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3886 test ! -f $lt_ac_sed && break
3887 cat /dev/null > conftest.in
3888 lt_ac_count=0
3889 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3890 # Check for GNU sed and select it if it is found.
3891 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3892 lt_cv_path_SED=$lt_ac_sed
3893 break
3894 fi
3895 while true; do
3896 cat conftest.in conftest.in >conftest.tmp
3897 mv conftest.tmp conftest.in
3898 cp conftest.in conftest.nl
3899 echo >>conftest.nl
3900 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3901 cmp -s conftest.out conftest.nl || break
3902 # 10000 chars as input seems more than enough
3903 test $lt_ac_count -gt 10 && break
3904 lt_ac_count=`expr $lt_ac_count + 1`
3905 if test $lt_ac_count -gt $lt_ac_max; then
3906 lt_ac_max=$lt_ac_count
3907 lt_cv_path_SED=$lt_ac_sed
3908 fi
3909 done
3910done
3911SED=$lt_cv_path_SED
3912
John Criswell7a73b802003-06-30 21:59:07 +00003913fi
3914
John Criswell47fdd832003-07-14 16:52:07 +00003915echo "$as_me:$LINENO: result: $SED" >&5
3916echo "${ECHO_T}$SED" >&6
3917
3918echo "$as_me:$LINENO: checking for egrep" >&5
3919echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3920if test "${ac_cv_prog_egrep+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3922else
3923 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3924 then ac_cv_prog_egrep='grep -E'
3925 else ac_cv_prog_egrep='egrep'
3926 fi
3927fi
3928echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3929echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3930 EGREP=$ac_cv_prog_egrep
3931
3932
John Criswell7a73b802003-06-30 21:59:07 +00003933
3934# Check whether --with-gnu-ld or --without-gnu-ld was given.
3935if test "${with_gnu_ld+set}" = set; then
3936 withval="$with_gnu_ld"
3937 test "$withval" = no || with_gnu_ld=yes
3938else
3939 with_gnu_ld=no
3940fi;
3941ac_prog=ld
3942if test "$GCC" = yes; then
3943 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003944 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3945echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003946 case $host in
3947 *-*-mingw*)
3948 # gcc leaves a trailing carriage return which upsets mingw
3949 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3950 *)
3951 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3952 esac
3953 case $ac_prog in
3954 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003955 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003956 re_direlt='/[^/][^/]*/\.\./'
3957 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00003958 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003959 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003960 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003961 done
3962 test -z "$LD" && LD="$ac_prog"
3963 ;;
3964 "")
3965 # If it fails, then pretend we aren't using GCC.
3966 ac_prog=ld
3967 ;;
3968 *)
3969 # If it is relative, then search for the first ld in PATH.
3970 with_gnu_ld=unknown
3971 ;;
3972 esac
3973elif test "$with_gnu_ld" = yes; then
3974 echo "$as_me:$LINENO: checking for GNU ld" >&5
3975echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3976else
3977 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3978echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3979fi
3980if test "${lt_cv_path_LD+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3982else
3983 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00003984 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003985 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00003986 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003987 test -z "$ac_dir" && ac_dir=.
3988 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3989 lt_cv_path_LD="$ac_dir/$ac_prog"
3990 # Check to see if the program is GNU ld. I'd rather use --version,
3991 # but apparently some GNU ld's only accept -v.
3992 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00003993 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3994 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003995 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00003996 ;;
3997 *)
John Criswell7a73b802003-06-30 21:59:07 +00003998 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00003999 ;;
4000 esac
John Criswell7a73b802003-06-30 21:59:07 +00004001 fi
4002 done
John Criswell47fdd832003-07-14 16:52:07 +00004003 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004004else
4005 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4006fi
4007fi
4008
4009LD="$lt_cv_path_LD"
4010if test -n "$LD"; then
4011 echo "$as_me:$LINENO: result: $LD" >&5
4012echo "${ECHO_T}$LD" >&6
4013else
4014 echo "$as_me:$LINENO: result: no" >&5
4015echo "${ECHO_T}no" >&6
4016fi
4017test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4018echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4019 { (exit 1); exit 1; }; }
4020echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4021echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4022if test "${lt_cv_prog_gnu_ld+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4024else
4025 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00004026case `"$LD" -v 2>&1 </dev/null` in
4027*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004028 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00004029 ;;
4030*)
John Criswell7a73b802003-06-30 21:59:07 +00004031 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00004032 ;;
4033esac
John Criswell7a73b802003-06-30 21:59:07 +00004034fi
4035echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4036echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4037with_gnu_ld=$lt_cv_prog_gnu_ld
4038
4039
4040echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4041echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4042if test "${lt_cv_ld_reload_flag+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4044else
4045 lt_cv_ld_reload_flag='-r'
4046fi
4047echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4048echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4049reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00004050case $reload_flag in
4051"" | " "*) ;;
4052*) reload_flag=" $reload_flag" ;;
4053esac
4054reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00004055
4056echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4057echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4058if test "${lt_cv_path_NM+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4060else
4061 if test -n "$NM"; then
4062 # Let the user override the test.
4063 lt_cv_path_NM="$NM"
4064else
John Criswell47fdd832003-07-14 16:52:07 +00004065 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004066 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00004067 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004068 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00004069 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4070 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00004071 # Check to see if the nm accepts a BSD-compat flag.
4072 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4073 # nm: unknown option "B" ignored
4074 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00004075 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4076 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00004077 lt_cv_path_NM="$tmp_nm -B"
4078 break
John Criswell47fdd832003-07-14 16:52:07 +00004079 ;;
4080 *)
4081 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4082 */dev/null*)
4083 lt_cv_path_NM="$tmp_nm -p"
4084 break
4085 ;;
4086 *)
4087 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4088 continue # so that we can try to find one that supports BSD flags
4089 ;;
4090 esac
4091 esac
John Criswell7a73b802003-06-30 21:59:07 +00004092 fi
4093 done
John Criswell47fdd832003-07-14 16:52:07 +00004094 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004095 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4096fi
4097fi
John Criswell47fdd832003-07-14 16:52:07 +00004098echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4099echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004100NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00004101
4102echo "$as_me:$LINENO: checking whether ln -s works" >&5
4103echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4104LN_S=$as_ln_s
4105if test "$LN_S" = "ln -s"; then
4106 echo "$as_me:$LINENO: result: yes" >&5
4107echo "${ECHO_T}yes" >&6
4108else
4109 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4110echo "${ECHO_T}no, using $LN_S" >&6
4111fi
4112
John Criswell47fdd832003-07-14 16:52:07 +00004113echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4114echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004115if test "${lt_cv_deplibs_check_method+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4117else
4118 lt_cv_file_magic_cmd='$MAGIC_CMD'
4119lt_cv_file_magic_test_file=
4120lt_cv_deplibs_check_method='unknown'
4121# Need to set the preceding variable on all platforms that support
4122# interlibrary dependencies.
4123# 'none' -- dependencies not supported.
4124# `unknown' -- same as none, but documents that we really don't know.
4125# 'pass_all' -- all dependencies passed with no checks.
4126# 'test_compile' -- check by making test program.
4127# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004128# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004129# If you have `file' or equivalent on your system and you're not sure
4130# whether `pass_all' will *always* work, you probably want this one.
4131
4132case $host_os in
4133aix4* | aix5*)
4134 lt_cv_deplibs_check_method=pass_all
4135 ;;
4136
4137beos*)
4138 lt_cv_deplibs_check_method=pass_all
4139 ;;
4140
4141bsdi4*)
4142 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4143 lt_cv_file_magic_cmd='/usr/bin/file -L'
4144 lt_cv_file_magic_test_file=/shlib/libc.so
4145 ;;
4146
4147cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00004148 # win32_libid is a shell function defined in ltmain.sh
4149 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4150 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00004151 ;;
4152
4153darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004154 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00004155 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4156 lt_cv_file_magic_cmd='/usr/bin/file -L'
4157 case "$host_os" in
4158 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00004159 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00004160 ;;
4161 *) # Darwin 1.3 on
4162 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4163 ;;
4164 esac
John Criswell47fdd832003-07-14 16:52:07 +00004165 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004166 ;;
4167
4168freebsd*)
4169 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4170 case $host_cpu in
4171 i*86 )
4172 # Not sure whether the presence of OpenBSD here was a mistake.
4173 # Let's accept both of them until this is cleared up.
4174 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4175 lt_cv_file_magic_cmd=/usr/bin/file
4176 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4177 ;;
4178 esac
4179 else
4180 lt_cv_deplibs_check_method=pass_all
4181 fi
4182 ;;
4183
4184gnu*)
4185 lt_cv_deplibs_check_method=pass_all
4186 ;;
4187
John Criswell47fdd832003-07-14 16:52:07 +00004188hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004189 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004190 case "$host_cpu" in
4191 ia64*)
4192 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4193 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4194 ;;
4195 hppa*64*)
4196 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4197 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4198 ;;
4199 *)
4200 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4201 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4202 ;;
4203 esac
John Criswell7a73b802003-06-30 21:59:07 +00004204 ;;
4205
John Criswell47fdd832003-07-14 16:52:07 +00004206irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004207 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004208 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004209 # this will be overridden with pass_all, but let us keep it just in case
4210 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4211 ;;
4212 *)
4213 case $LD in
4214 *-32|*"-32 ") libmagic=32-bit;;
4215 *-n32|*"-n32 ") libmagic=N32;;
4216 *-64|*"-64 ") libmagic=64-bit;;
4217 *) libmagic=never-match;;
4218 esac
4219 # this will be overridden with pass_all, but let us keep it just in case
4220 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4221 ;;
4222 esac
4223 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4224 lt_cv_deplibs_check_method=pass_all
4225 ;;
4226
4227# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004228linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004229 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004230 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004231 lt_cv_deplibs_check_method=pass_all ;;
4232 *)
4233 # glibc up to 2.1.1 does not perform some relocations on ARM
4234 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4235 esac
4236 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4237 ;;
4238
4239netbsd*)
4240 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004241 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004242 else
John Criswell47fdd832003-07-14 16:52:07 +00004243 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004244 fi
4245 ;;
4246
4247newos6*)
4248 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4249 lt_cv_file_magic_cmd=/usr/bin/file
4250 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4251 ;;
4252
John Criswell47fdd832003-07-14 16:52:07 +00004253nto-qnx)
4254 lt_cv_deplibs_check_method=unknown
4255 ;;
4256
John Criswell7a73b802003-06-30 21:59:07 +00004257openbsd*)
4258 lt_cv_file_magic_cmd=/usr/bin/file
4259 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4260 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4261 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4262 else
4263 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4264 fi
4265 ;;
4266
4267osf3* | osf4* | osf5*)
4268 # this will be overridden with pass_all, but let us keep it just in case
4269 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4270 lt_cv_file_magic_test_file=/shlib/libc.so
4271 lt_cv_deplibs_check_method=pass_all
4272 ;;
4273
4274sco3.2v5*)
4275 lt_cv_deplibs_check_method=pass_all
4276 ;;
4277
4278solaris*)
4279 lt_cv_deplibs_check_method=pass_all
4280 lt_cv_file_magic_test_file=/lib/libc.so
4281 ;;
4282
John Criswell7a73b802003-06-30 21:59:07 +00004283sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4284 case $host_vendor in
4285 motorola)
4286 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4287 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4288 ;;
4289 ncr)
4290 lt_cv_deplibs_check_method=pass_all
4291 ;;
4292 sequent)
4293 lt_cv_file_magic_cmd='/bin/file'
4294 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4295 ;;
4296 sni)
4297 lt_cv_file_magic_cmd='/bin/file'
4298 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4299 lt_cv_file_magic_test_file=/lib/libc.so
4300 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004301 siemens)
4302 lt_cv_deplibs_check_method=pass_all
4303 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004304 esac
4305 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004306
4307sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4308 lt_cv_deplibs_check_method=pass_all
4309 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004310esac
4311
4312fi
4313echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4314echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4315file_magic_cmd=$lt_cv_file_magic_cmd
4316deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004317test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004318
4319
4320
4321
John Criswell47fdd832003-07-14 16:52:07 +00004322# If no C compiler was specified, use CC.
4323LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004324
John Criswell47fdd832003-07-14 16:52:07 +00004325# Allow CC to be a program name with arguments.
4326compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004327
John Criswell47fdd832003-07-14 16:52:07 +00004328# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4329if test "${enable_libtool_lock+set}" = set; then
4330 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004331
John Criswell47fdd832003-07-14 16:52:07 +00004332fi;
4333test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004334
John Criswell47fdd832003-07-14 16:52:07 +00004335# Some flags need to be propagated to the compiler or linker for good
4336# libtool support.
4337case $host in
4338ia64-*-hpux*)
4339 # Find out which ABI we are using.
4340 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4342 (eval $ac_compile) 2>&5
4343 ac_status=$?
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004346 case `/usr/bin/file conftest.$ac_objext` in
4347 *ELF-32*)
4348 HPUX_IA64_MODE="32"
4349 ;;
4350 *ELF-64*)
4351 HPUX_IA64_MODE="64"
4352 ;;
4353 esac
4354 fi
4355 rm -rf conftest*
4356 ;;
4357*-*-irix6*)
4358 # Find out which ABI we are using.
John Criswellffaaf3b2003-09-10 18:38:44 +00004359 echo '#line 4359 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4361 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004364 (exit $ac_status); }; then
4365 if test "$lt_cv_prog_gnu_ld" = yes; then
4366 case `/usr/bin/file conftest.$ac_objext` in
4367 *32-bit*)
4368 LD="${LD-ld} -melf32bsmip"
4369 ;;
4370 *N32*)
4371 LD="${LD-ld} -melf32bmipn32"
4372 ;;
4373 *64-bit*)
4374 LD="${LD-ld} -melf64bmip"
4375 ;;
4376 esac
4377 else
4378 case `/usr/bin/file conftest.$ac_objext` in
4379 *32-bit*)
4380 LD="${LD-ld} -32"
4381 ;;
4382 *N32*)
4383 LD="${LD-ld} -n32"
4384 ;;
4385 *64-bit*)
4386 LD="${LD-ld} -64"
4387 ;;
4388 esac
4389 fi
4390 fi
4391 rm -rf conftest*
4392 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004393
John Criswell47fdd832003-07-14 16:52:07 +00004394x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4395 # Find out which ABI we are using.
4396 echo 'int i;' > conftest.$ac_ext
4397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4398 (eval $ac_compile) 2>&5
4399 ac_status=$?
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; then
4402 case "`/usr/bin/file conftest.o`" in
4403 *32-bit*)
4404 case $host in
4405 x86_64-*linux*)
4406 LD="${LD-ld} -m elf_i386"
4407 ;;
4408 ppc64-*linux*)
4409 LD="${LD-ld} -m elf32ppclinux"
4410 ;;
4411 s390x-*linux*)
4412 LD="${LD-ld} -m elf_s390"
4413 ;;
4414 sparc64-*linux*)
4415 LD="${LD-ld} -m elf32_sparc"
4416 ;;
4417 esac
4418 ;;
4419 *64-bit*)
4420 case $host in
4421 x86_64-*linux*)
4422 LD="${LD-ld} -m elf_x86_64"
4423 ;;
4424 ppc*-*linux*|powerpc*-*linux*)
4425 LD="${LD-ld} -m elf64ppc"
4426 ;;
4427 s390*-*linux*)
4428 LD="${LD-ld} -m elf64_s390"
4429 ;;
4430 sparc*-*linux*)
4431 LD="${LD-ld} -m elf64_sparc"
4432 ;;
4433 esac
4434 ;;
4435 esac
4436 fi
4437 rm -rf conftest*
4438 ;;
4439
4440*-*-sco3.2v5*)
4441 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4442 SAVE_CFLAGS="$CFLAGS"
4443 CFLAGS="$CFLAGS -belf"
4444 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4445echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4446if test "${lt_cv_cc_needs_belf+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4448else
4449 ac_ext=c
4450ac_cpp='$CPP $CPPFLAGS'
4451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4453ac_compiler_gnu=$ac_cv_c_compiler_gnu
4454
4455 cat >conftest.$ac_ext <<_ACEOF
4456#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004457/* confdefs.h. */
4458_ACEOF
4459cat confdefs.h >>conftest.$ac_ext
4460cat >>conftest.$ac_ext <<_ACEOF
4461/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004462
John Criswell47fdd832003-07-14 16:52:07 +00004463int
4464main ()
John Criswell7a73b802003-06-30 21:59:07 +00004465{
John Criswell7a73b802003-06-30 21:59:07 +00004466
John Criswell47fdd832003-07-14 16:52:07 +00004467 ;
4468 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004469}
John Criswell47fdd832003-07-14 16:52:07 +00004470_ACEOF
4471rm -f conftest.$ac_objext conftest$ac_exeext
4472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004473 (eval $ac_link) 2>&5
4474 ac_status=$?
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004476 (exit $ac_status); } &&
4477 { ac_try='test -s conftest$ac_exeext'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 (eval $ac_try) 2>&5
4480 ac_status=$?
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; }; then
4483 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004484else
John Criswell47fdd832003-07-14 16:52:07 +00004485 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004486sed 's/^/| /' conftest.$ac_ext >&5
4487
John Criswell47fdd832003-07-14 16:52:07 +00004488lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004489fi
John Criswell47fdd832003-07-14 16:52:07 +00004490rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4491 ac_ext=c
4492ac_cpp='$CPP $CPPFLAGS'
4493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4495ac_compiler_gnu=$ac_cv_c_compiler_gnu
4496
John Criswell7a73b802003-06-30 21:59:07 +00004497fi
John Criswell47fdd832003-07-14 16:52:07 +00004498echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4499echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4500 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4501 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4502 CFLAGS="$SAVE_CFLAGS"
4503 fi
4504 ;;
4505
4506esac
4507
4508need_locks="$enable_libtool_lock"
4509
John Criswell7a73b802003-06-30 21:59:07 +00004510
4511
4512echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4513echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4514if test "${ac_cv_header_stdc+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4516else
4517 cat >conftest.$ac_ext <<_ACEOF
4518#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004519/* confdefs.h. */
4520_ACEOF
4521cat confdefs.h >>conftest.$ac_ext
4522cat >>conftest.$ac_ext <<_ACEOF
4523/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004524#include <stdlib.h>
4525#include <stdarg.h>
4526#include <string.h>
4527#include <float.h>
4528
John Criswell0c38eaf2003-09-10 15:17:25 +00004529int
4530main ()
4531{
4532
4533 ;
4534 return 0;
4535}
John Criswell7a73b802003-06-30 21:59:07 +00004536_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004537rm -f conftest.$ac_objext
4538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4539 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004540 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004542 (exit $ac_status); } &&
4543 { ac_try='test -s conftest.$ac_objext'
4544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545 (eval $ac_try) 2>&5
4546 ac_status=$?
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004549 ac_cv_header_stdc=yes
4550else
4551 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004552sed 's/^/| /' conftest.$ac_ext >&5
4553
4554ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004555fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004556rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004557
4558if test $ac_cv_header_stdc = yes; then
4559 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4560 cat >conftest.$ac_ext <<_ACEOF
4561#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004562/* confdefs.h. */
4563_ACEOF
4564cat confdefs.h >>conftest.$ac_ext
4565cat >>conftest.$ac_ext <<_ACEOF
4566/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004567#include <string.h>
4568
4569_ACEOF
4570if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004571 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004572 :
4573else
4574 ac_cv_header_stdc=no
4575fi
4576rm -f conftest*
4577
4578fi
4579
4580if test $ac_cv_header_stdc = yes; then
4581 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4582 cat >conftest.$ac_ext <<_ACEOF
4583#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004584/* confdefs.h. */
4585_ACEOF
4586cat confdefs.h >>conftest.$ac_ext
4587cat >>conftest.$ac_ext <<_ACEOF
4588/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004589#include <stdlib.h>
4590
4591_ACEOF
4592if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004593 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004594 :
4595else
4596 ac_cv_header_stdc=no
4597fi
4598rm -f conftest*
4599
4600fi
4601
4602if test $ac_cv_header_stdc = yes; then
4603 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4604 if test "$cross_compiling" = yes; then
4605 :
4606else
4607 cat >conftest.$ac_ext <<_ACEOF
4608#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004609/* confdefs.h. */
4610_ACEOF
4611cat confdefs.h >>conftest.$ac_ext
4612cat >>conftest.$ac_ext <<_ACEOF
4613/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004614#include <ctype.h>
4615#if ((' ' & 0x0FF) == 0x020)
4616# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4617# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4618#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004619# define ISLOWER(c) \
4620 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004621 || ('j' <= (c) && (c) <= 'r') \
4622 || ('s' <= (c) && (c) <= 'z'))
4623# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4624#endif
4625
4626#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4627int
4628main ()
4629{
4630 int i;
4631 for (i = 0; i < 256; i++)
4632 if (XOR (islower (i), ISLOWER (i))
4633 || toupper (i) != TOUPPER (i))
4634 exit(2);
4635 exit (0);
4636}
4637_ACEOF
4638rm -f conftest$ac_exeext
4639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4640 (eval $ac_link) 2>&5
4641 ac_status=$?
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645 (eval $ac_try) 2>&5
4646 ac_status=$?
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }; }; then
4649 :
4650else
4651 echo "$as_me: program exited with status $ac_status" >&5
4652echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004653sed 's/^/| /' conftest.$ac_ext >&5
4654
John Criswell7a73b802003-06-30 21:59:07 +00004655( exit $ac_status )
4656ac_cv_header_stdc=no
4657fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004658rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004659fi
4660fi
4661fi
4662echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4663echo "${ECHO_T}$ac_cv_header_stdc" >&6
4664if test $ac_cv_header_stdc = yes; then
4665
4666cat >>confdefs.h <<\_ACEOF
4667#define STDC_HEADERS 1
4668_ACEOF
4669
4670fi
4671
4672# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4683 inttypes.h stdint.h unistd.h
4684do
4685as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4686echo "$as_me:$LINENO: checking for $ac_header" >&5
4687echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4688if eval "test \"\${$as_ac_Header+set}\" = set"; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
4690else
4691 cat >conftest.$ac_ext <<_ACEOF
4692#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004693/* confdefs.h. */
4694_ACEOF
4695cat confdefs.h >>conftest.$ac_ext
4696cat >>conftest.$ac_ext <<_ACEOF
4697/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004698$ac_includes_default
4699
4700#include <$ac_header>
4701_ACEOF
4702rm -f conftest.$ac_objext
4703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4704 (eval $ac_compile) 2>&5
4705 ac_status=$?
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } &&
4708 { ac_try='test -s conftest.$ac_objext'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 (eval $ac_try) 2>&5
4711 ac_status=$?
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; }; then
4714 eval "$as_ac_Header=yes"
4715else
4716 echo "$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 +00004719eval "$as_ac_Header=no"
4720fi
4721rm -f conftest.$ac_objext conftest.$ac_ext
4722fi
4723echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4724echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4725if test `eval echo '${'$as_ac_Header'}'` = yes; then
4726 cat >>confdefs.h <<_ACEOF
4727#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4728_ACEOF
4729
4730fi
4731
4732done
4733
4734
4735
4736for ac_header in dlfcn.h
4737do
4738as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4739if eval "test \"\${$as_ac_Header+set}\" = set"; then
4740 echo "$as_me:$LINENO: checking for $ac_header" >&5
4741echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4742if eval "test \"\${$as_ac_Header+set}\" = set"; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4744fi
4745echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4746echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4747else
4748 # Is the header compilable?
4749echo "$as_me:$LINENO: checking $ac_header usability" >&5
4750echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4751cat >conftest.$ac_ext <<_ACEOF
4752#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004753/* confdefs.h. */
4754_ACEOF
4755cat confdefs.h >>conftest.$ac_ext
4756cat >>conftest.$ac_ext <<_ACEOF
4757/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004758$ac_includes_default
4759#include <$ac_header>
4760_ACEOF
4761rm -f conftest.$ac_objext
4762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4763 (eval $ac_compile) 2>&5
4764 ac_status=$?
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } &&
4767 { ac_try='test -s conftest.$ac_objext'
4768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4769 (eval $ac_try) 2>&5
4770 ac_status=$?
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); }; }; then
4773 ac_header_compiler=yes
4774else
4775 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004776sed 's/^/| /' conftest.$ac_ext >&5
4777
John Criswell7a73b802003-06-30 21:59:07 +00004778ac_header_compiler=no
4779fi
4780rm -f conftest.$ac_objext conftest.$ac_ext
4781echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4782echo "${ECHO_T}$ac_header_compiler" >&6
4783
4784# Is the header present?
4785echo "$as_me:$LINENO: checking $ac_header presence" >&5
4786echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4787cat >conftest.$ac_ext <<_ACEOF
4788#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004789/* confdefs.h. */
4790_ACEOF
4791cat confdefs.h >>conftest.$ac_ext
4792cat >>conftest.$ac_ext <<_ACEOF
4793/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004794#include <$ac_header>
4795_ACEOF
4796if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4798 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004799 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004800 rm -f conftest.er1
4801 cat conftest.err >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); } >/dev/null; then
4804 if test -s conftest.err; then
4805 ac_cpp_err=$ac_c_preproc_warn_flag
4806 else
4807 ac_cpp_err=
4808 fi
4809else
4810 ac_cpp_err=yes
4811fi
4812if test -z "$ac_cpp_err"; then
4813 ac_header_preproc=yes
4814else
4815 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004816sed 's/^/| /' conftest.$ac_ext >&5
4817
John Criswell7a73b802003-06-30 21:59:07 +00004818 ac_header_preproc=no
4819fi
4820rm -f conftest.err conftest.$ac_ext
4821echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4822echo "${ECHO_T}$ac_header_preproc" >&6
4823
4824# So? What about this header?
4825case $ac_header_compiler:$ac_header_preproc in
4826 yes:no )
4827 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4828echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004830echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4831 (
4832 cat <<\_ASBOX
4833## ------------------------------------ ##
4834## Report this to bug-autoconf@gnu.org. ##
4835## ------------------------------------ ##
4836_ASBOX
4837 ) |
4838 sed "s/^/$as_me: WARNING: /" >&2
4839 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004840 no:yes )
4841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4842echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4844echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004846echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4847 (
4848 cat <<\_ASBOX
4849## ------------------------------------ ##
4850## Report this to bug-autoconf@gnu.org. ##
4851## ------------------------------------ ##
4852_ASBOX
4853 ) |
4854 sed "s/^/$as_me: WARNING: /" >&2
4855 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004856esac
4857echo "$as_me:$LINENO: checking for $ac_header" >&5
4858echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4859if eval "test \"\${$as_ac_Header+set}\" = set"; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4861else
4862 eval "$as_ac_Header=$ac_header_preproc"
4863fi
4864echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4865echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4866
4867fi
4868if test `eval echo '${'$as_ac_Header'}'` = yes; then
4869 cat >>confdefs.h <<_ACEOF
4870#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4871_ACEOF
4872
4873fi
4874
4875done
4876
John Criswell47fdd832003-07-14 16:52:07 +00004877ac_ext=cc
4878ac_cpp='$CXXCPP $CPPFLAGS'
4879ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4880ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4881ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4882echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4883echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4884if test -z "$CXXCPP"; then
4885 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004886 echo $ECHO_N "(cached) $ECHO_C" >&6
4887else
John Criswell47fdd832003-07-14 16:52:07 +00004888 # Double quotes because CXXCPP needs to be expanded
4889 for CXXCPP in "$CXX -E" "/lib/cpp"
4890 do
4891 ac_preproc_ok=false
4892for ac_cxx_preproc_warn_flag in '' yes
4893do
4894 # Use a header file that comes with gcc, so configuring glibc
4895 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4897 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004898 # On the NeXT, cc -E runs the code through the compiler's parser,
4899 # not just through cpp. "Syntax error" is here to catch this case.
4900 cat >conftest.$ac_ext <<_ACEOF
4901#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004902/* confdefs.h. */
4903_ACEOF
4904cat confdefs.h >>conftest.$ac_ext
4905cat >>conftest.$ac_ext <<_ACEOF
4906/* end confdefs.h. */
4907#ifdef __STDC__
4908# include <limits.h>
4909#else
4910# include <assert.h>
4911#endif
John Criswell47fdd832003-07-14 16:52:07 +00004912 Syntax error
4913_ACEOF
4914if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4916 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004917 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004918 rm -f conftest.er1
4919 cat conftest.err >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); } >/dev/null; then
4922 if test -s conftest.err; then
4923 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004924 else
John Criswell47fdd832003-07-14 16:52:07 +00004925 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004926 fi
John Criswell47fdd832003-07-14 16:52:07 +00004927else
4928 ac_cpp_err=yes
4929fi
4930if test -z "$ac_cpp_err"; then
4931 :
4932else
4933 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004934sed 's/^/| /' conftest.$ac_ext >&5
4935
John Criswell47fdd832003-07-14 16:52:07 +00004936 # Broken: fails on valid input.
4937continue
4938fi
4939rm -f conftest.err conftest.$ac_ext
4940
4941 # OK, works on sane cases. Now check whether non-existent headers
4942 # can be detected and how.
4943 cat >conftest.$ac_ext <<_ACEOF
4944#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004945/* confdefs.h. */
4946_ACEOF
4947cat confdefs.h >>conftest.$ac_ext
4948cat >>conftest.$ac_ext <<_ACEOF
4949/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004950#include <ac_nonexistent.h>
4951_ACEOF
4952if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4954 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004955 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004956 rm -f conftest.er1
4957 cat conftest.err >&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } >/dev/null; then
4960 if test -s conftest.err; then
4961 ac_cpp_err=$ac_cxx_preproc_warn_flag
4962 else
4963 ac_cpp_err=
4964 fi
4965else
4966 ac_cpp_err=yes
4967fi
4968if test -z "$ac_cpp_err"; then
4969 # Broken: success on invalid input.
4970continue
4971else
4972 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004973sed 's/^/| /' conftest.$ac_ext >&5
4974
John Criswell47fdd832003-07-14 16:52:07 +00004975 # Passes both tests.
4976ac_preproc_ok=:
4977break
4978fi
4979rm -f conftest.err conftest.$ac_ext
4980
4981done
4982# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4983rm -f conftest.err conftest.$ac_ext
4984if $ac_preproc_ok; then
4985 break
John Criswell7a73b802003-06-30 21:59:07 +00004986fi
4987
John Criswell47fdd832003-07-14 16:52:07 +00004988 done
4989 ac_cv_prog_CXXCPP=$CXXCPP
4990
4991fi
4992 CXXCPP=$ac_cv_prog_CXXCPP
4993else
4994 ac_cv_prog_CXXCPP=$CXXCPP
4995fi
4996echo "$as_me:$LINENO: result: $CXXCPP" >&5
4997echo "${ECHO_T}$CXXCPP" >&6
4998ac_preproc_ok=false
4999for ac_cxx_preproc_warn_flag in '' yes
5000do
5001 # Use a header file that comes with gcc, so configuring glibc
5002 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00005003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5004 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005005 # On the NeXT, cc -E runs the code through the compiler's parser,
5006 # not just through cpp. "Syntax error" is here to catch this case.
5007 cat >conftest.$ac_ext <<_ACEOF
5008#line $LINENO "configure"
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. */
5014#ifdef __STDC__
5015# include <limits.h>
5016#else
5017# include <assert.h>
5018#endif
John Criswell47fdd832003-07-14 16:52:07 +00005019 Syntax error
5020_ACEOF
5021if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5023 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005024 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005025 rm -f conftest.er1
5026 cat conftest.err >&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); } >/dev/null; then
5029 if test -s conftest.err; then
5030 ac_cpp_err=$ac_cxx_preproc_warn_flag
5031 else
5032 ac_cpp_err=
5033 fi
5034else
5035 ac_cpp_err=yes
5036fi
5037if test -z "$ac_cpp_err"; then
5038 :
5039else
5040 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005041sed 's/^/| /' conftest.$ac_ext >&5
5042
John Criswell47fdd832003-07-14 16:52:07 +00005043 # Broken: fails on valid input.
5044continue
5045fi
5046rm -f conftest.err conftest.$ac_ext
5047
5048 # OK, works on sane cases. Now check whether non-existent headers
5049 # can be detected and how.
5050 cat >conftest.$ac_ext <<_ACEOF
5051#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005052/* confdefs.h. */
5053_ACEOF
5054cat confdefs.h >>conftest.$ac_ext
5055cat >>conftest.$ac_ext <<_ACEOF
5056/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005057#include <ac_nonexistent.h>
5058_ACEOF
5059if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5061 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005062 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005063 rm -f conftest.er1
5064 cat conftest.err >&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); } >/dev/null; then
5067 if test -s conftest.err; then
5068 ac_cpp_err=$ac_cxx_preproc_warn_flag
5069 else
5070 ac_cpp_err=
5071 fi
5072else
5073 ac_cpp_err=yes
5074fi
5075if test -z "$ac_cpp_err"; then
5076 # Broken: success on invalid input.
5077continue
5078else
5079 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005080sed 's/^/| /' conftest.$ac_ext >&5
5081
John Criswell47fdd832003-07-14 16:52:07 +00005082 # Passes both tests.
5083ac_preproc_ok=:
5084break
5085fi
5086rm -f conftest.err conftest.$ac_ext
5087
5088done
5089# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5090rm -f conftest.err conftest.$ac_ext
5091if $ac_preproc_ok; then
5092 :
5093else
John Criswell0c38eaf2003-09-10 15:17:25 +00005094 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5095See \`config.log' for more details." >&5
5096echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5097See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005098 { (exit 1); exit 1; }; }
5099fi
5100
5101ac_ext=cc
5102ac_cpp='$CXXCPP $CPPFLAGS'
5103ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5106
5107
5108ac_ext=f
5109ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5110ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5111ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5112if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00005113 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 +00005114 do
5115 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5116set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5117echo "$as_me:$LINENO: checking for $ac_word" >&5
5118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5119if test "${ac_cv_prog_F77+set}" = set; then
5120 echo $ECHO_N "(cached) $ECHO_C" >&6
5121else
5122 if test -n "$F77"; then
5123 ac_cv_prog_F77="$F77" # Let the user override the test.
5124else
5125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126for as_dir in $PATH
5127do
5128 IFS=$as_save_IFS
5129 test -z "$as_dir" && as_dir=.
5130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5132 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5134 break 2
5135 fi
5136done
5137done
5138
5139fi
5140fi
5141F77=$ac_cv_prog_F77
5142if test -n "$F77"; then
5143 echo "$as_me:$LINENO: result: $F77" >&5
5144echo "${ECHO_T}$F77" >&6
5145else
5146 echo "$as_me:$LINENO: result: no" >&5
5147echo "${ECHO_T}no" >&6
5148fi
5149
5150 test -n "$F77" && break
5151 done
5152fi
5153if test -z "$F77"; then
5154 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00005155 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 +00005156do
5157 # Extract the first word of "$ac_prog", so it can be a program name with args.
5158set dummy $ac_prog; ac_word=$2
5159echo "$as_me:$LINENO: checking for $ac_word" >&5
5160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5161if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5163else
5164 if test -n "$ac_ct_F77"; then
5165 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5166else
5167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168for as_dir in $PATH
5169do
5170 IFS=$as_save_IFS
5171 test -z "$as_dir" && as_dir=.
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5174 ac_cv_prog_ac_ct_F77="$ac_prog"
5175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 break 2
5177 fi
5178done
5179done
5180
5181fi
5182fi
5183ac_ct_F77=$ac_cv_prog_ac_ct_F77
5184if test -n "$ac_ct_F77"; then
5185 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5186echo "${ECHO_T}$ac_ct_F77" >&6
5187else
5188 echo "$as_me:$LINENO: result: no" >&5
5189echo "${ECHO_T}no" >&6
5190fi
5191
5192 test -n "$ac_ct_F77" && break
5193done
5194
5195 F77=$ac_ct_F77
5196fi
5197
5198
5199# Provide some information about the compiler.
John Criswellffaaf3b2003-09-10 18:38:44 +00005200echo "$as_me:5200:" \
John Criswell47fdd832003-07-14 16:52:07 +00005201 "checking for Fortran 77 compiler version" >&5
5202ac_compiler=`set X $ac_compile; echo $2`
5203{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5204 (eval $ac_compiler --version </dev/null >&5) 2>&5
5205 ac_status=$?
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }
5208{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5209 (eval $ac_compiler -v </dev/null >&5) 2>&5
5210 ac_status=$?
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); }
5213{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5214 (eval $ac_compiler -V </dev/null >&5) 2>&5
5215 ac_status=$?
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }
5218
5219# If we don't use `.F' as extension, the preprocessor is not run on the
5220# input file.
5221ac_save_ext=$ac_ext
5222ac_ext=F
5223echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5224echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5225if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
5227else
5228 cat >conftest.$ac_ext <<_ACEOF
5229 program main
5230#ifndef __GNUC__
5231 choke me
5232#endif
5233
5234 end
5235_ACEOF
5236rm -f conftest.$ac_objext
5237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5238 (eval $ac_compile) 2>&5
5239 ac_status=$?
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); } &&
5242 { ac_try='test -s conftest.$ac_objext'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244 (eval $ac_try) 2>&5
5245 ac_status=$?
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; }; then
5248 ac_compiler_gnu=yes
5249else
5250 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005251sed 's/^/| /' conftest.$ac_ext >&5
5252
John Criswell47fdd832003-07-14 16:52:07 +00005253ac_compiler_gnu=no
5254fi
5255rm -f conftest.$ac_objext conftest.$ac_ext
5256ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5257
5258fi
5259echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5260echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5261ac_ext=$ac_save_ext
5262G77=`test $ac_compiler_gnu = yes && echo yes`
5263ac_test_FFLAGS=${FFLAGS+set}
5264ac_save_FFLAGS=$FFLAGS
5265FFLAGS=
5266echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5267echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5268if test "${ac_cv_prog_f77_g+set}" = set; then
5269 echo $ECHO_N "(cached) $ECHO_C" >&6
5270else
5271 FFLAGS=-g
5272cat >conftest.$ac_ext <<_ACEOF
5273 program main
5274
5275 end
5276_ACEOF
5277rm -f conftest.$ac_objext
5278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5279 (eval $ac_compile) 2>&5
5280 ac_status=$?
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); } &&
5283 { ac_try='test -s conftest.$ac_objext'
5284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285 (eval $ac_try) 2>&5
5286 ac_status=$?
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); }; }; then
5289 ac_cv_prog_f77_g=yes
5290else
5291 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005292sed 's/^/| /' conftest.$ac_ext >&5
5293
John Criswell47fdd832003-07-14 16:52:07 +00005294ac_cv_prog_f77_g=no
5295fi
5296rm -f conftest.$ac_objext conftest.$ac_ext
5297
5298fi
5299echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5300echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5301if test "$ac_test_FFLAGS" = set; then
5302 FFLAGS=$ac_save_FFLAGS
5303elif test $ac_cv_prog_f77_g = yes; then
5304 if test "$G77" = yes; then
5305 FFLAGS="-g -O2"
5306 else
5307 FFLAGS="-g"
5308 fi
5309else
5310 if test "$G77" = yes; then
5311 FFLAGS="-O2"
5312 else
5313 FFLAGS=
5314 fi
5315fi
5316ac_ext=c
5317ac_cpp='$CPP $CPPFLAGS'
5318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5320ac_compiler_gnu=$ac_cv_c_compiler_gnu
5321
5322
5323
5324# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5325
5326# find the maximum length of command line arguments
5327echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5328echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5329if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5331else
5332 i=0
5333 testring="ABCD"
5334
5335 case $build_os in
5336 msdosdjgpp*)
5337 # On DJGPP, this test can blow up pretty badly due to problems in libc
5338 # (any single argument exceeding 2000 bytes causes a buffer overrun
5339 # during glob expansion). Even if it were fixed, the result of this
5340 # check would be larger than it should be.
5341 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5342 ;;
5343
5344 gnu*)
5345 # Under GNU Hurd, this test is not required because there is
5346 # no limit to the length of command line arguments.
5347 # Libtool will interpret -1 as no limit whatsoever
5348 lt_cv_sys_max_cmd_len=-1;
5349 ;;
5350
5351 cygwin* | mingw*)
5352 # On Win9x/ME, this test blows up -- it succeeds, but takes
5353 # about 5 minutes as the teststring grows exponentially.
5354 # Worse, since 9x/ME are not pre-emptively multitasking,
5355 # you end up with a "frozen" computer, even though with patience
5356 # the test eventually succeeds (with a max line length of 256k).
5357 # Instead, let's just punt: use the minimum linelength reported by
5358 # all of the supported platforms: 8192 (on NT/2K/XP).
5359 lt_cv_sys_max_cmd_len=8192;
5360 ;;
5361
5362 *)
5363 # If test is not a shell built-in, we'll probably end up computing a
5364 # maximum length that is only half of the actual maximum length, but
5365 # we can't tell.
5366 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5367 = "XX$testring") >/dev/null 2>&1 &&
5368 new_result=`expr "X$testring" : ".*" 2>&1` &&
5369 lt_cv_sys_max_cmd_len=$new_result &&
5370 test $i != 17 # 1/2 MB should be enough
5371 do
5372 i=`expr $i + 1`
5373 testring=$testring$testring
5374 done
5375 testring=
5376 # Add a significant safety factor because C++ compilers can tack on massive
5377 # amounts of additional arguments before passing them to the linker.
5378 # It appears as though 1/2 is a usable value.
5379 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5380 ;;
5381 esac
5382
5383fi
5384
5385if test -n $lt_cv_sys_max_cmd_len ; then
5386 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5387echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5388else
5389 echo "$as_me:$LINENO: result: none" >&5
5390echo "${ECHO_T}none" >&6
5391fi
5392
5393
5394
5395
5396# Check for command to grab the raw symbol name followed by C symbol from nm.
5397echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5398echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5399if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5401else
5402
5403# These are sane defaults that work on at least a few old systems.
5404# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5405
5406# Character class describing NM global symbol codes.
5407symcode='[BCDEGRST]'
5408
5409# Regexp to match symbols that can be accessed directly from C.
5410sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5411
5412# Transform the above into a raw symbol and a C symbol.
5413symxfrm='\1 \2\3 \3'
5414
5415# Transform an extracted symbol line into a proper C declaration
5416lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5417
5418# Transform an extracted symbol line into symbol name and symbol address
5419lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5420
5421# Define system-specific variables.
5422case $host_os in
5423aix*)
5424 symcode='[BCDT]'
5425 ;;
5426cygwin* | mingw* | pw32*)
5427 symcode='[ABCDGISTW]'
5428 ;;
5429hpux*) # Its linker distinguishes data from code symbols
5430 if test "$host_cpu" = ia64; then
5431 symcode='[ABCDEGRST]'
5432 fi
5433 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5434 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5435 ;;
5436irix* | nonstopux*)
5437 symcode='[BCDEGRST]'
5438 ;;
5439osf*)
5440 symcode='[BCDEGQRST]'
5441 ;;
5442solaris* | sysv5*)
5443 symcode='[BDT]'
5444 ;;
5445sysv4)
5446 symcode='[DFNSTU]'
5447 ;;
5448esac
5449
5450# Handle CRLF in mingw tool chain
5451opt_cr=
5452case $build_os in
5453mingw*)
5454 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5455 ;;
5456esac
5457
5458# If we're using GNU nm, then use its standard symbol codes.
5459case `$NM -V 2>&1` in
5460*GNU* | *'with BFD'*)
5461 symcode='[ABCDGISTW]' ;;
5462esac
5463
5464# Try without a prefix undercore, then with it.
5465for ac_symprfx in "" "_"; do
5466
5467 # Write the raw and C identifiers.
5468 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5469
5470 # Check to see that the pipe works correctly.
5471 pipe_works=no
5472
5473 rm -f conftest*
5474 cat > conftest.$ac_ext <<EOF
5475#ifdef __cplusplus
5476extern "C" {
5477#endif
5478char nm_test_var;
5479void nm_test_func(){}
5480#ifdef __cplusplus
5481}
5482#endif
5483int main(){nm_test_var='a';nm_test_func();return(0);}
5484EOF
5485
5486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5487 (eval $ac_compile) 2>&5
5488 ac_status=$?
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; then
5491 # Now try to grab the symbols.
5492 nlist=conftest.nm
5493 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5494 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5495 ac_status=$?
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } && test -s "$nlist"; then
5498 # Try sorting and uniquifying the output.
5499 if sort "$nlist" | uniq > "$nlist"T; then
5500 mv -f "$nlist"T "$nlist"
5501 else
5502 rm -f "$nlist"T
5503 fi
5504
5505 # Make sure that we snagged all the symbols we need.
5506 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5507 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5508 cat <<EOF > conftest.$ac_ext
5509#ifdef __cplusplus
5510extern "C" {
5511#endif
5512
5513EOF
5514 # Now generate the symbol file.
5515 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5516
5517 cat <<EOF >> conftest.$ac_ext
5518#if defined (__STDC__) && __STDC__
5519# define lt_ptr_t void *
5520#else
5521# define lt_ptr_t char *
5522# define const
5523#endif
5524
5525/* The mapping between symbol names and symbols. */
5526const struct {
5527 const char *name;
5528 lt_ptr_t address;
5529}
5530lt_preloaded_symbols[] =
5531{
5532EOF
5533 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5534 cat <<\EOF >> conftest.$ac_ext
5535 {0, (lt_ptr_t) 0}
5536};
5537
5538#ifdef __cplusplus
5539}
5540#endif
5541EOF
5542 # Now try linking the two files.
5543 mv conftest.$ac_objext conftstm.$ac_objext
5544 lt_save_LIBS="$LIBS"
5545 lt_save_CFLAGS="$CFLAGS"
5546 LIBS="conftstm.$ac_objext"
5547 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5549 (eval $ac_link) 2>&5
5550 ac_status=$?
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5553 pipe_works=yes
5554 fi
5555 LIBS="$lt_save_LIBS"
5556 CFLAGS="$lt_save_CFLAGS"
5557 else
5558 echo "cannot find nm_test_func in $nlist" >&5
5559 fi
5560 else
5561 echo "cannot find nm_test_var in $nlist" >&5
5562 fi
5563 else
5564 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5565 fi
5566 else
5567 echo "$progname: failed program was:" >&5
5568 cat conftest.$ac_ext >&5
5569 fi
5570 rm -f conftest* conftst*
5571
5572 # Do not use the global_symbol_pipe unless it works.
5573 if test "$pipe_works" = yes; then
5574 break
5575 else
5576 lt_cv_sys_global_symbol_pipe=
5577 fi
5578done
5579
5580fi
5581
5582if test -z "$lt_cv_sys_global_symbol_pipe"; then
5583 lt_cv_sys_global_symbol_to_cdecl=
5584fi
5585if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5586 echo "$as_me:$LINENO: result: failed" >&5
5587echo "${ECHO_T}failed" >&6
5588else
5589 echo "$as_me:$LINENO: result: ok" >&5
5590echo "${ECHO_T}ok" >&6
5591fi
5592
5593echo "$as_me:$LINENO: checking for objdir" >&5
5594echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5595if test "${lt_cv_objdir+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
5597else
5598 rm -f .libs 2>/dev/null
5599mkdir .libs 2>/dev/null
5600if test -d .libs; then
5601 lt_cv_objdir=.libs
5602else
5603 # MS-DOS does not allow filenames that begin with a dot.
5604 lt_cv_objdir=_libs
5605fi
5606rmdir .libs 2>/dev/null
5607fi
5608echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5609echo "${ECHO_T}$lt_cv_objdir" >&6
5610objdir=$lt_cv_objdir
5611
5612
5613
5614
5615
5616case $host_os in
5617aix3*)
5618 # AIX sometimes has problems with the GCC collect2 program. For some
5619 # reason, if we set the COLLECT_NAMES environment variable, the problems
5620 # vanish in a puff of smoke.
5621 if test "X${COLLECT_NAMES+set}" != Xset; then
5622 COLLECT_NAMES=
5623 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005624 fi
5625 ;;
5626esac
5627
John Criswell47fdd832003-07-14 16:52:07 +00005628# Sed substitution that helps us do robust quoting. It backslashifies
5629# metacharacters that are still active within double-quoted strings.
5630Xsed='sed -e s/^X//'
5631sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5632
5633# Same as above, but do not quote variable references.
5634double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5635
5636# Sed substitution to delay expansion of an escaped shell variable in a
5637# double_quote_subst'ed string.
5638delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5639
5640# Sed substitution to avoid accidental globbing in evaled expressions
5641no_glob_subst='s/\*/\\\*/g'
5642
5643# Constants:
5644rm="rm -f"
5645
5646# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005647default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005648can_build_shared=yes
5649
5650# All known linkers require a `.a' archive for static linking (except M$VC,
5651# which needs '.lib').
5652libext=a
5653ltmain="$ac_aux_dir/ltmain.sh"
5654ofile="$default_ofile"
5655with_gnu_ld="$lt_cv_prog_gnu_ld"
5656
5657if test -n "$ac_tool_prefix"; then
5658 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5659set dummy ${ac_tool_prefix}ar; ac_word=$2
5660echo "$as_me:$LINENO: checking for $ac_word" >&5
5661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5662if test "${ac_cv_prog_AR+set}" = set; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
5664else
5665 if test -n "$AR"; then
5666 ac_cv_prog_AR="$AR" # Let the user override the test.
5667else
5668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669for as_dir in $PATH
5670do
5671 IFS=$as_save_IFS
5672 test -z "$as_dir" && as_dir=.
5673 for ac_exec_ext in '' $ac_executable_extensions; do
5674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5675 ac_cv_prog_AR="${ac_tool_prefix}ar"
5676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5677 break 2
5678 fi
5679done
5680done
5681
5682fi
5683fi
5684AR=$ac_cv_prog_AR
5685if test -n "$AR"; then
5686 echo "$as_me:$LINENO: result: $AR" >&5
5687echo "${ECHO_T}$AR" >&6
5688else
5689 echo "$as_me:$LINENO: result: no" >&5
5690echo "${ECHO_T}no" >&6
5691fi
5692
5693fi
5694if test -z "$ac_cv_prog_AR"; then
5695 ac_ct_AR=$AR
5696 # Extract the first word of "ar", so it can be a program name with args.
5697set dummy ar; ac_word=$2
5698echo "$as_me:$LINENO: checking for $ac_word" >&5
5699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5700if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5702else
5703 if test -n "$ac_ct_AR"; then
5704 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5705else
5706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707for as_dir in $PATH
5708do
5709 IFS=$as_save_IFS
5710 test -z "$as_dir" && as_dir=.
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5713 ac_cv_prog_ac_ct_AR="ar"
5714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5715 break 2
5716 fi
5717done
5718done
5719
5720 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5721fi
5722fi
5723ac_ct_AR=$ac_cv_prog_ac_ct_AR
5724if test -n "$ac_ct_AR"; then
5725 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5726echo "${ECHO_T}$ac_ct_AR" >&6
5727else
5728 echo "$as_me:$LINENO: result: no" >&5
5729echo "${ECHO_T}no" >&6
5730fi
5731
5732 AR=$ac_ct_AR
5733else
5734 AR="$ac_cv_prog_AR"
5735fi
5736
John Criswell7a73b802003-06-30 21:59:07 +00005737if test -n "$ac_tool_prefix"; then
5738 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5739set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5740echo "$as_me:$LINENO: checking for $ac_word" >&5
5741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5742if test "${ac_cv_prog_RANLIB+set}" = set; then
5743 echo $ECHO_N "(cached) $ECHO_C" >&6
5744else
5745 if test -n "$RANLIB"; then
5746 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5747else
5748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749for as_dir in $PATH
5750do
5751 IFS=$as_save_IFS
5752 test -z "$as_dir" && as_dir=.
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5755 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5757 break 2
5758 fi
5759done
5760done
5761
5762fi
5763fi
5764RANLIB=$ac_cv_prog_RANLIB
5765if test -n "$RANLIB"; then
5766 echo "$as_me:$LINENO: result: $RANLIB" >&5
5767echo "${ECHO_T}$RANLIB" >&6
5768else
5769 echo "$as_me:$LINENO: result: no" >&5
5770echo "${ECHO_T}no" >&6
5771fi
5772
5773fi
5774if test -z "$ac_cv_prog_RANLIB"; then
5775 ac_ct_RANLIB=$RANLIB
5776 # Extract the first word of "ranlib", so it can be a program name with args.
5777set dummy ranlib; ac_word=$2
5778echo "$as_me:$LINENO: checking for $ac_word" >&5
5779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5780if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5782else
5783 if test -n "$ac_ct_RANLIB"; then
5784 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5785else
5786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787for as_dir in $PATH
5788do
5789 IFS=$as_save_IFS
5790 test -z "$as_dir" && as_dir=.
5791 for ac_exec_ext in '' $ac_executable_extensions; do
5792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5793 ac_cv_prog_ac_ct_RANLIB="ranlib"
5794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5795 break 2
5796 fi
5797done
5798done
5799
5800 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5801fi
5802fi
5803ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5804if test -n "$ac_ct_RANLIB"; then
5805 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5806echo "${ECHO_T}$ac_ct_RANLIB" >&6
5807else
5808 echo "$as_me:$LINENO: result: no" >&5
5809echo "${ECHO_T}no" >&6
5810fi
5811
5812 RANLIB=$ac_ct_RANLIB
5813else
5814 RANLIB="$ac_cv_prog_RANLIB"
5815fi
5816
5817if test -n "$ac_tool_prefix"; then
5818 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5819set dummy ${ac_tool_prefix}strip; ac_word=$2
5820echo "$as_me:$LINENO: checking for $ac_word" >&5
5821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5822if test "${ac_cv_prog_STRIP+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5824else
5825 if test -n "$STRIP"; then
5826 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5827else
5828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829for as_dir in $PATH
5830do
5831 IFS=$as_save_IFS
5832 test -z "$as_dir" && as_dir=.
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5835 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5837 break 2
5838 fi
5839done
5840done
5841
5842fi
5843fi
5844STRIP=$ac_cv_prog_STRIP
5845if test -n "$STRIP"; then
5846 echo "$as_me:$LINENO: result: $STRIP" >&5
5847echo "${ECHO_T}$STRIP" >&6
5848else
5849 echo "$as_me:$LINENO: result: no" >&5
5850echo "${ECHO_T}no" >&6
5851fi
5852
5853fi
5854if test -z "$ac_cv_prog_STRIP"; then
5855 ac_ct_STRIP=$STRIP
5856 # Extract the first word of "strip", so it can be a program name with args.
5857set dummy strip; ac_word=$2
5858echo "$as_me:$LINENO: checking for $ac_word" >&5
5859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5860if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
5862else
5863 if test -n "$ac_ct_STRIP"; then
5864 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5865else
5866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867for as_dir in $PATH
5868do
5869 IFS=$as_save_IFS
5870 test -z "$as_dir" && as_dir=.
5871 for ac_exec_ext in '' $ac_executable_extensions; do
5872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5873 ac_cv_prog_ac_ct_STRIP="strip"
5874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5875 break 2
5876 fi
5877done
5878done
5879
5880 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5881fi
5882fi
5883ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5884if test -n "$ac_ct_STRIP"; then
5885 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5886echo "${ECHO_T}$ac_ct_STRIP" >&6
5887else
5888 echo "$as_me:$LINENO: result: no" >&5
5889echo "${ECHO_T}no" >&6
5890fi
5891
5892 STRIP=$ac_ct_STRIP
5893else
5894 STRIP="$ac_cv_prog_STRIP"
5895fi
5896
5897
John Criswell7a73b802003-06-30 21:59:07 +00005898old_CC="$CC"
5899old_CFLAGS="$CFLAGS"
5900
5901# Set sane defaults for various variables
5902test -z "$AR" && AR=ar
5903test -z "$AR_FLAGS" && AR_FLAGS=cru
5904test -z "$AS" && AS=as
5905test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005906test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005907test -z "$DLLTOOL" && DLLTOOL=dlltool
5908test -z "$LD" && LD=ld
5909test -z "$LN_S" && LN_S="ln -s"
5910test -z "$MAGIC_CMD" && MAGIC_CMD=file
5911test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005912test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005913test -z "$OBJDUMP" && OBJDUMP=objdump
5914test -z "$RANLIB" && RANLIB=:
5915test -z "$STRIP" && STRIP=:
5916test -z "$ac_objext" && ac_objext=o
5917
John Criswell7a73b802003-06-30 21:59:07 +00005918# Determine commands to create old-style static archives.
5919old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5920old_postinstall_cmds='chmod 644 $oldlib'
5921old_postuninstall_cmds=
5922
5923if test -n "$RANLIB"; then
5924 case $host_os in
5925 openbsd*)
5926 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5927 ;;
5928 *)
5929 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5930 ;;
5931 esac
5932 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5933fi
5934
John Criswell47fdd832003-07-14 16:52:07 +00005935# Only perform the check for file, if the check method requires it
5936case $deplibs_check_method in
5937file_magic*)
5938 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5939 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5940echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5941if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5942 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005943else
John Criswell47fdd832003-07-14 16:52:07 +00005944 case $MAGIC_CMD in
5945[\\/*] | ?:[\\/]*)
5946 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5947 ;;
5948*)
5949 lt_save_MAGIC_CMD="$MAGIC_CMD"
5950 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5951 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5952 for ac_dir in $ac_dummy; do
5953 IFS="$lt_save_ifs"
5954 test -z "$ac_dir" && ac_dir=.
5955 if test -f $ac_dir/${ac_tool_prefix}file; then
5956 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5957 if test -n "$file_magic_test_file"; then
5958 case $deplibs_check_method in
5959 "file_magic "*)
5960 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5961 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5962 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5963 $EGREP "$file_magic_regex" > /dev/null; then
5964 :
5965 else
5966 cat <<EOF 1>&2
5967
5968*** Warning: the command libtool uses to detect shared libraries,
5969*** $file_magic_cmd, produces output that libtool cannot recognize.
5970*** The result is that libtool may fail to recognize shared libraries
5971*** as such. This will affect the creation of libtool libraries that
5972*** depend on shared libraries, but programs linked with such libtool
5973*** libraries will work regardless of this problem. Nevertheless, you
5974*** may want to report the problem to your system manager and/or to
5975*** bug-libtool@gnu.org
5976
5977EOF
5978 fi ;;
5979 esac
5980 fi
5981 break
5982 fi
5983 done
5984 IFS="$lt_save_ifs"
5985 MAGIC_CMD="$lt_save_MAGIC_CMD"
5986 ;;
5987esac
John Criswell7a73b802003-06-30 21:59:07 +00005988fi
John Criswell7a73b802003-06-30 21:59:07 +00005989
John Criswell47fdd832003-07-14 16:52:07 +00005990MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5991if test -n "$MAGIC_CMD"; then
5992 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5993echo "${ECHO_T}$MAGIC_CMD" >&6
5994else
5995 echo "$as_me:$LINENO: result: no" >&5
5996echo "${ECHO_T}no" >&6
5997fi
John Criswell7a73b802003-06-30 21:59:07 +00005998
John Criswell47fdd832003-07-14 16:52:07 +00005999if test -z "$lt_cv_path_MAGIC_CMD"; then
6000 if test -n "$ac_tool_prefix"; then
6001 echo "$as_me:$LINENO: checking for file" >&5
6002echo $ECHO_N "checking for file... $ECHO_C" >&6
6003if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6004 echo $ECHO_N "(cached) $ECHO_C" >&6
6005else
6006 case $MAGIC_CMD in
6007[\\/*] | ?:[\\/]*)
6008 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6009 ;;
6010*)
6011 lt_save_MAGIC_CMD="$MAGIC_CMD"
6012 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6013 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6014 for ac_dir in $ac_dummy; do
6015 IFS="$lt_save_ifs"
6016 test -z "$ac_dir" && ac_dir=.
6017 if test -f $ac_dir/file; then
6018 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6019 if test -n "$file_magic_test_file"; then
6020 case $deplibs_check_method in
6021 "file_magic "*)
6022 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6023 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6024 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6025 $EGREP "$file_magic_regex" > /dev/null; then
6026 :
6027 else
6028 cat <<EOF 1>&2
6029
6030*** Warning: the command libtool uses to detect shared libraries,
6031*** $file_magic_cmd, produces output that libtool cannot recognize.
6032*** The result is that libtool may fail to recognize shared libraries
6033*** as such. This will affect the creation of libtool libraries that
6034*** depend on shared libraries, but programs linked with such libtool
6035*** libraries will work regardless of this problem. Nevertheless, you
6036*** may want to report the problem to your system manager and/or to
6037*** bug-libtool@gnu.org
6038
6039EOF
6040 fi ;;
6041 esac
6042 fi
6043 break
6044 fi
6045 done
6046 IFS="$lt_save_ifs"
6047 MAGIC_CMD="$lt_save_MAGIC_CMD"
6048 ;;
6049esac
6050fi
6051
6052MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6053if test -n "$MAGIC_CMD"; then
6054 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6055echo "${ECHO_T}$MAGIC_CMD" >&6
6056else
6057 echo "$as_me:$LINENO: result: no" >&5
6058echo "${ECHO_T}no" >&6
6059fi
6060
6061 else
6062 MAGIC_CMD=:
6063 fi
6064fi
6065
6066 fi
6067 ;;
6068esac
6069
6070enable_dlopen=no
6071enable_win32_dll=no
6072
6073# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6074if test "${enable_libtool_lock+set}" = set; then
6075 enableval="$enable_libtool_lock"
6076
6077fi;
6078test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6079
John Criswell7a73b802003-06-30 21:59:07 +00006080
6081# Check whether --with-pic or --without-pic was given.
6082if test "${with_pic+set}" = set; then
6083 withval="$with_pic"
6084 pic_mode="$withval"
6085else
6086 pic_mode=default
6087fi;
6088test -z "$pic_mode" && pic_mode=default
6089
John Criswell47fdd832003-07-14 16:52:07 +00006090# Use C for the default configuration in the libtool script
6091tagname=
6092lt_save_CC="$CC"
6093ac_ext=c
6094ac_cpp='$CPP $CPPFLAGS'
6095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6097ac_compiler_gnu=$ac_cv_c_compiler_gnu
6098
6099
6100# Source file extension for C test sources.
6101ac_ext=c
6102
6103# Object file extension for compiled C test sources.
6104objext=o
6105objext=$objext
6106
6107# Code to be used in simple compile tests
6108lt_simple_compile_test_code="int some_variable = 0;\n"
6109
6110# Code to be used in simple link tests
6111lt_simple_link_test_code='int main(){return(0);}\n'
6112
6113
6114# If no C compiler was specified, use CC.
6115LTCC=${LTCC-"$CC"}
6116
6117# Allow CC to be a program name with arguments.
6118compiler=$CC
6119
6120
6121#
6122# Check for any special shared library compilation flags.
6123#
6124lt_prog_cc_shlib=
6125if test "$GCC" = no; then
6126 case $host_os in
6127 sco3.2v5*)
6128 lt_prog_cc_shlib='-belf'
6129 ;;
6130 esac
6131fi
6132if test -n "$lt_prog_cc_shlib"; then
6133 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6134echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6135 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6136 else
6137 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6138echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6139 lt_cv_prog_cc_can_build_shared=no
6140 fi
6141fi
6142
6143
6144#
6145# Check to make sure the static flag actually works.
6146#
6147echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6148echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6149if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006150 echo $ECHO_N "(cached) $ECHO_C" >&6
6151else
John Criswell47fdd832003-07-14 16:52:07 +00006152 lt_prog_compiler_static_works=no
6153 save_LDFLAGS="$LDFLAGS"
6154 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6155 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6156 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6157 # The compiler can only warn and ignore the option if not recognized
6158 # So say no if there are warnings
6159 if test -s conftest.err; then
6160 # Append any errors to the config.log.
6161 cat conftest.err 1>&5
6162 else
6163 lt_prog_compiler_static_works=yes
6164 fi
6165 fi
6166 $rm conftest*
6167 LDFLAGS="$save_LDFLAGS"
6168
6169fi
6170echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6171echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6172
6173if test x"$lt_prog_compiler_static_works" = xyes; then
6174 :
6175else
6176 lt_prog_compiler_static=
6177fi
6178
6179
6180
6181## CAVEAT EMPTOR:
6182## There is no encapsulation within the following macros, do not change
6183## the running order or otherwise move them around unless you know exactly
6184## what you are doing...
6185
6186lt_prog_compiler_no_builtin_flag=
6187
6188if test "$GCC" = yes; then
6189 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6190
6191 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6192echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6193if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6195else
6196 lt_cv_prog_compiler_rtti_exceptions=no
6197 ac_outfile=conftest.$ac_objext
6198 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6199 lt_compiler_flag="-fno-rtti -fno-exceptions"
6200 # Insert the option either (1) after the last *FLAGS variable, or
6201 # (2) before a word containing "conftest.", or (3) at the end.
6202 # Note that $ac_compile itself does not contain backslashes and begins
6203 # with a dollar sign (not a hyphen), so the echo should work correctly.
6204 # The option is referenced via a variable to avoid confusing sed.
6205 lt_compile=`echo "$ac_compile" | $SED \
6206 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6207 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6208 -e 's:$: $lt_compiler_flag:'`
John Criswellffaaf3b2003-09-10 18:38:44 +00006209 (eval echo "\"\$as_me:6209: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006210 (eval "$lt_compile" 2>conftest.err)
6211 ac_status=$?
6212 cat conftest.err >&5
John Criswellffaaf3b2003-09-10 18:38:44 +00006213 echo "$as_me:6213: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006214 if (exit $ac_status) && test -s "$ac_outfile"; then
6215 # The compiler can only warn and ignore the option if not recognized
6216 # So say no if there are warnings
6217 if test ! -s conftest.err; then
6218 lt_cv_prog_compiler_rtti_exceptions=yes
6219 fi
6220 fi
6221 $rm conftest*
6222
6223fi
6224echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6225echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6226
6227if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6228 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6229else
6230 :
6231fi
6232
6233fi
6234
6235lt_prog_compiler_wl=
6236lt_prog_compiler_pic=
6237lt_prog_compiler_static=
6238
6239echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6240echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006241
6242 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006243 lt_prog_compiler_wl='-Wl,'
6244 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006245
6246 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006247 aix*)
6248 # All AIX code is PIC.
6249 if test "$host_cpu" = ia64; then
6250 # AIX 5 now supports IA64 processor
6251 lt_prog_compiler_static='-Bstatic'
6252 fi
John Criswell7a73b802003-06-30 21:59:07 +00006253 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006254
John Criswell7a73b802003-06-30 21:59:07 +00006255 amigaos*)
6256 # FIXME: we need at least 68020 code to build shared libraries, but
6257 # adding the `-m68020' flag to GCC prevents building anything better,
6258 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006259 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006260 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006261
6262 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006263 # PIC is the default for these OSes.
6264 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006265
6266 mingw* | pw32* | os2*)
6267 # This hack is so that the source file can tell whether it is being
6268 # built for inclusion in a dll (and should export symbols for example).
6269 lt_prog_compiler_pic='-DDLL_EXPORT'
6270 ;;
6271
John Criswell7a73b802003-06-30 21:59:07 +00006272 darwin* | rhapsody*)
6273 # PIC is the default on this platform
6274 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006275 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006276 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006277
6278 msdosdjgpp*)
6279 # Just because we use GCC doesn't mean we suddenly get shared libraries
6280 # on systems that don't support them.
6281 lt_prog_compiler_can_build_shared=no
6282 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006283 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006284
John Criswell7a73b802003-06-30 21:59:07 +00006285 sysv4*MP*)
6286 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006287 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006288 fi
6289 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006290
6291 hpux*)
6292 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6293 # not for PA HP-UX.
6294 case "$host_cpu" in
6295 hppa*64*|ia64*)
6296 # +Z the default
6297 ;;
6298 *)
6299 lt_prog_compiler_pic='-fPIC'
6300 ;;
6301 esac
6302 ;;
6303
John Criswell7a73b802003-06-30 21:59:07 +00006304 *)
John Criswell47fdd832003-07-14 16:52:07 +00006305 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006306 ;;
6307 esac
6308 else
John Criswell47fdd832003-07-14 16:52:07 +00006309 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006310 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006311 aix*)
6312 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006313 if test "$host_cpu" = ia64; then
6314 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006315 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006316 else
John Criswell47fdd832003-07-14 16:52:07 +00006317 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006318 fi
6319 ;;
6320
John Criswell47fdd832003-07-14 16:52:07 +00006321 mingw* | pw32* | os2*)
6322 # This hack is so that the source file can tell whether it is being
6323 # built for inclusion in a dll (and should export symbols for example).
6324 lt_prog_compiler_pic='-DDLL_EXPORT'
6325 ;;
6326
John Criswell7a73b802003-06-30 21:59:07 +00006327 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006328 lt_prog_compiler_wl='-Wl,'
6329 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6330 # not for PA HP-UX.
6331 case "$host_cpu" in
6332 hppa*64*|ia64*)
6333 # +Z the default
6334 ;;
6335 *)
6336 lt_prog_compiler_pic='+Z'
6337 ;;
6338 esac
6339 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6340 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006341 ;;
6342
John Criswell47fdd832003-07-14 16:52:07 +00006343 irix5* | irix6* | nonstopux*)
6344 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006345 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006346 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006347 ;;
6348
6349 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006350 lt_prog_compiler_pic='-KPIC'
6351 lt_prog_compiler_static='-Bstatic'
6352 ;;
6353
6354 linux*)
6355 case $CC in
6356 icc|ecc)
6357 lt_prog_compiler_wl='-Wl,'
6358 lt_prog_compiler_pic='-KPIC'
6359 lt_prog_compiler_static='-static'
6360 ;;
6361 ccc)
6362 lt_prog_compiler_wl='-Wl,'
6363 # All Alpha code is PIC.
6364 lt_prog_compiler_static='-non_shared'
6365 ;;
6366 esac
John Criswell7a73b802003-06-30 21:59:07 +00006367 ;;
6368
6369 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006370 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006371 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006372 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006373 ;;
6374
6375 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006376 lt_prog_compiler_pic='-Kpic'
6377 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006378 ;;
6379
6380 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006381 lt_prog_compiler_wl='-Wl,'
6382 lt_prog_compiler_pic='-KPIC'
6383 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006384 ;;
6385
6386 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006387 lt_prog_compiler_wl='-Qoption ld '
6388 lt_prog_compiler_pic='-PIC'
6389 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006390 ;;
6391
6392 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006393 lt_prog_compiler_wl='-Wl,'
6394 lt_prog_compiler_pic='-KPIC'
6395 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006396 ;;
6397
6398 sysv4*MP*)
6399 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006400 lt_prog_compiler_pic='-Kconform_pic'
6401 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006402 fi
6403 ;;
6404
John Criswell47fdd832003-07-14 16:52:07 +00006405 uts4*)
6406 lt_prog_compiler_pic='-pic'
6407 lt_prog_compiler_static='-Bstatic'
6408 ;;
6409
John Criswell7a73b802003-06-30 21:59:07 +00006410 *)
John Criswell47fdd832003-07-14 16:52:07 +00006411 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006412 ;;
6413 esac
6414 fi
6415
John Criswell47fdd832003-07-14 16:52:07 +00006416echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6417echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006418
John Criswell47fdd832003-07-14 16:52:07 +00006419#
6420# Check to make sure the PIC flag actually works.
6421#
6422if test -n "$lt_prog_compiler_pic"; then
6423 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6424echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6425if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006426 echo $ECHO_N "(cached) $ECHO_C" >&6
6427else
John Criswell47fdd832003-07-14 16:52:07 +00006428 lt_prog_compiler_pic_works=no
6429 ac_outfile=conftest.$ac_objext
6430 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6431 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6432 # Insert the option either (1) after the last *FLAGS variable, or
6433 # (2) before a word containing "conftest.", or (3) at the end.
6434 # Note that $ac_compile itself does not contain backslashes and begins
6435 # with a dollar sign (not a hyphen), so the echo should work correctly.
6436 # The option is referenced via a variable to avoid confusing sed.
6437 lt_compile=`echo "$ac_compile" | $SED \
6438 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6439 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6440 -e 's:$: $lt_compiler_flag:'`
John Criswellffaaf3b2003-09-10 18:38:44 +00006441 (eval echo "\"\$as_me:6441: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006442 (eval "$lt_compile" 2>conftest.err)
6443 ac_status=$?
6444 cat conftest.err >&5
John Criswellffaaf3b2003-09-10 18:38:44 +00006445 echo "$as_me:6445: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006446 if (exit $ac_status) && test -s "$ac_outfile"; then
6447 # The compiler can only warn and ignore the option if not recognized
6448 # So say no if there are warnings
6449 if test ! -s conftest.err; then
6450 lt_prog_compiler_pic_works=yes
6451 fi
6452 fi
6453 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006454
John Criswell47fdd832003-07-14 16:52:07 +00006455fi
6456echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6457echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006458
John Criswell47fdd832003-07-14 16:52:07 +00006459if test x"$lt_prog_compiler_pic_works" = xyes; then
6460 case $lt_prog_compiler_pic in
6461 "" | " "*) ;;
6462 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6463 esac
John Criswell7a73b802003-06-30 21:59:07 +00006464else
John Criswell47fdd832003-07-14 16:52:07 +00006465 lt_prog_compiler_pic=
6466 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006467fi
6468
John Criswell7a73b802003-06-30 21:59:07 +00006469fi
John Criswell47fdd832003-07-14 16:52:07 +00006470case "$host_os" in
6471 # For platforms which do not support PIC, -DPIC is meaningless:
6472 *djgpp*)
6473 lt_prog_compiler_pic=
6474 ;;
6475 *)
6476 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6477 ;;
6478esac
John Criswell7a73b802003-06-30 21:59:07 +00006479
John Criswell7a73b802003-06-30 21:59:07 +00006480echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6481echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006482if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006483 echo $ECHO_N "(cached) $ECHO_C" >&6
6484else
John Criswell47fdd832003-07-14 16:52:07 +00006485 lt_cv_prog_compiler_c_o=no
6486 $rm -r conftest 2>/dev/null
6487 mkdir conftest
6488 cd conftest
6489 mkdir out
6490 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006491
John Criswell47fdd832003-07-14 16:52:07 +00006492 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6493 # that will create temporary files in the current directory regardless of
6494 # the output directory. Thus, making CWD read-only will cause this test
6495 # to fail, enabling locking or at least warning the user not to do parallel
6496 # builds.
6497 chmod -w .
6498
6499 lt_compiler_flag="-o out/conftest2.$ac_objext"
6500 # Insert the option either (1) after the last *FLAGS variable, or
6501 # (2) before a word containing "conftest.", or (3) at the end.
6502 # Note that $ac_compile itself does not contain backslashes and begins
6503 # with a dollar sign (not a hyphen), so the echo should work correctly.
6504 lt_compile=`echo "$ac_compile" | $SED \
6505 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6507 -e 's:$: $lt_compiler_flag:'`
John Criswellffaaf3b2003-09-10 18:38:44 +00006508 (eval echo "\"\$as_me:6508: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006509 (eval "$lt_compile" 2>out/conftest.err)
6510 ac_status=$?
6511 cat out/conftest.err >&5
John Criswellffaaf3b2003-09-10 18:38:44 +00006512 echo "$as_me:6512: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006513 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6514 then
6515 # The compiler can only warn and ignore the option if not recognized
6516 # So say no if there are warnings
6517 if test ! -s out/conftest.err; then
6518 lt_cv_prog_compiler_c_o=yes
6519 fi
6520 fi
6521 chmod u+w .
6522 $rm conftest* out/*
6523 rmdir out
6524 cd ..
6525 rmdir conftest
6526 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006527
6528fi
John Criswell47fdd832003-07-14 16:52:07 +00006529echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6530echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006531
John Criswell7a73b802003-06-30 21:59:07 +00006532
John Criswell7a73b802003-06-30 21:59:07 +00006533hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006534if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006535 # do not overwrite the value of need_locks provided by the user
6536 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6537echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6538 hard_links=yes
6539 $rm conftest*
6540 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6541 touch conftest.a
6542 ln conftest.a conftest.b 2>&5 || hard_links=no
6543 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6544 echo "$as_me:$LINENO: result: $hard_links" >&5
6545echo "${ECHO_T}$hard_links" >&6
6546 if test "$hard_links" = no; then
6547 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6548echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6549 need_locks=warn
6550 fi
6551else
6552 need_locks=no
6553fi
John Criswell7a73b802003-06-30 21:59:07 +00006554
John Criswell47fdd832003-07-14 16:52:07 +00006555echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6556echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6557
6558 runpath_var=
6559 allow_undefined_flag=
6560 enable_shared_with_static_runtimes=no
6561 archive_cmds=
6562 archive_expsym_cmds=
6563 old_archive_From_new_cmds=
6564 old_archive_from_expsyms_cmds=
6565 export_dynamic_flag_spec=
6566 whole_archive_flag_spec=
6567 thread_safe_flag_spec=
6568 hardcode_libdir_flag_spec=
6569 hardcode_libdir_flag_spec_ld=
6570 hardcode_libdir_separator=
6571 hardcode_direct=no
6572 hardcode_minus_L=no
6573 hardcode_shlibpath_var=unsupported
6574 link_all_deplibs=unknown
6575 hardcode_automatic=no
6576 module_cmds=
6577 module_expsym_cmds=
6578 always_export_symbols=no
6579 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6580 # include_expsyms should be a list of space-separated symbols to be *always*
6581 # included in the symbol list
6582 include_expsyms=
6583 # exclude_expsyms can be an extended regexp of symbols to exclude
6584 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6585 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6586 # as well as any symbol that contains `d'.
6587 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6588 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6589 # platforms (ab)use it in PIC code, but their linkers get confused if
6590 # the symbol is explicitly referenced. Since portable code cannot
6591 # rely on this symbol name, it's probably fine to never include it in
6592 # preloaded symbol tables.
6593 extract_expsyms_cmds=
6594
6595 case $host_os in
6596 cygwin* | mingw* | pw32*)
6597 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6598 # When not using gcc, we currently assume that we are using
6599 # Microsoft Visual C++.
6600 if test "$GCC" != yes; then
6601 with_gnu_ld=no
6602 fi
6603 ;;
6604 openbsd*)
6605 with_gnu_ld=no
6606 ;;
6607 esac
6608
6609 ld_shlibs=yes
6610 if test "$with_gnu_ld" = yes; then
6611 # If archive_cmds runs LD, not CC, wlarc should be empty
6612 wlarc='${wl}'
6613
6614 # See if GNU ld supports shared libraries.
6615 case $host_os in
6616 aix3* | aix4* | aix5*)
6617 # On AIX/PPC, the GNU linker is very broken
6618 if test "$host_cpu" != ia64; then
6619 ld_shlibs=no
6620 cat <<EOF 1>&2
6621
6622*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6623*** to be unable to reliably create shared libraries on AIX.
6624*** Therefore, libtool is disabling shared libraries support. If you
6625*** really care for shared libraries, you may want to modify your PATH
6626*** so that a non-GNU linker is found, and then restart.
6627
6628EOF
6629 fi
6630 ;;
6631
6632 amigaos*)
6633 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6634 hardcode_libdir_flag_spec='-L$libdir'
6635 hardcode_minus_L=yes
6636
6637 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6638 # that the semantics of dynamic libraries on AmigaOS, at least up
6639 # to version 4, is to share data among multiple programs linked
6640 # with the same dynamic library. Since this doesn't match the
6641 # behavior of shared libraries on other platforms, we can't use
6642 # them.
6643 ld_shlibs=no
6644 ;;
6645
6646 beos*)
6647 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6648 allow_undefined_flag=unsupported
6649 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6650 # support --undefined. This deserves some investigation. FIXME
6651 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6652 else
6653 ld_shlibs=no
6654 fi
6655 ;;
6656
6657 cygwin* | mingw* | pw32*)
6658 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6659 # as there is no search path for DLLs.
6660 hardcode_libdir_flag_spec='-L$libdir'
6661 allow_undefined_flag=unsupported
6662 always_export_symbols=no
6663 enable_shared_with_static_runtimes=yes
6664 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6665
6666 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6667 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6668 # If the export-symbols file already is a .def file (1st line
6669 # is EXPORTS), use it as is; otherwise, prepend...
6670 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6671 cp $export_symbols $output_objdir/$soname.def;
6672 else
6673 echo EXPORTS > $output_objdir/$soname.def;
6674 cat $export_symbols >> $output_objdir/$soname.def;
6675 fi~
6676 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6677 else
6678 ld_shlibs=no
6679 fi
6680 ;;
6681
6682 netbsd*)
6683 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6684 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6685 wlarc=
6686 else
6687 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6688 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6689 fi
6690 ;;
6691
6692 solaris* | sysv5*)
6693 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6694 ld_shlibs=no
6695 cat <<EOF 1>&2
6696
6697*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6698*** create shared libraries on Solaris systems. Therefore, libtool
6699*** is disabling shared libraries support. We urge you to upgrade GNU
6700*** binutils to release 2.9.1 or newer. Another option is to modify
6701*** your PATH or compiler configuration so that the native linker is
6702*** used, and then restart.
6703
6704EOF
6705 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6706 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6707 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6708 else
6709 ld_shlibs=no
6710 fi
6711 ;;
6712
6713 sunos4*)
6714 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6715 wlarc=
6716 hardcode_direct=yes
6717 hardcode_shlibpath_var=no
6718 ;;
6719
6720 *)
6721 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6722 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6723 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6724 else
6725 ld_shlibs=no
6726 fi
6727 ;;
6728 esac
6729
6730 if test "$ld_shlibs" = yes; then
6731 runpath_var=LD_RUN_PATH
6732 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6733 export_dynamic_flag_spec='${wl}--export-dynamic'
6734 # ancient GNU ld didn't support --whole-archive et. al.
6735 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6736 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6737 else
6738 whole_archive_flag_spec=
6739 fi
6740 fi
6741 else
6742 # PORTME fill in a description of your system's linker (not GNU ld)
6743 case $host_os in
6744 aix3*)
6745 allow_undefined_flag=unsupported
6746 always_export_symbols=yes
6747 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6748 # Note: this linker hardcodes the directories in LIBPATH if there
6749 # are no directories specified by -L.
6750 hardcode_minus_L=yes
6751 if test "$GCC" = yes && test -z "$link_static_flag"; then
6752 # Neither direct hardcoding nor static linking is supported with a
6753 # broken collect2.
6754 hardcode_direct=unsupported
6755 fi
6756 ;;
6757
6758 aix4* | aix5*)
6759 if test "$host_cpu" = ia64; then
6760 # On IA64, the linker does run time linking by default, so we don't
6761 # have to do anything special.
6762 aix_use_runtimelinking=no
6763 exp_sym_flag='-Bexport'
6764 no_entry_flag=""
6765 else
6766 # If we're using GNU nm, then we don't want the "-C" option.
6767 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6768 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6769 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6770 else
6771 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6772 fi
6773 aix_use_runtimelinking=no
6774
6775 # Test if we are trying to use run time linking or normal
6776 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6777 # need to do runtime linking.
6778 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6779 for ld_flag in $LDFLAGS; do
6780 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6781 aix_use_runtimelinking=yes
6782 break
6783 fi
6784 done
6785 esac
6786
6787 exp_sym_flag='-bexport'
6788 no_entry_flag='-bnoentry'
6789 fi
6790
6791 # When large executables or shared objects are built, AIX ld can
6792 # have problems creating the table of contents. If linking a library
6793 # or program results in "error TOC overflow" add -mminimal-toc to
6794 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6795 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6796
6797 archive_cmds=''
6798 hardcode_direct=yes
6799 hardcode_libdir_separator=':'
6800 link_all_deplibs=yes
6801
6802 if test "$GCC" = yes; then
6803 case $host_os in aix4.012|aix4.012.*)
6804 # We only want to do this on AIX 4.2 and lower, the check
6805 # below for broken collect2 doesn't work under 4.3+
6806 collect2name=`${CC} -print-prog-name=collect2`
6807 if test -f "$collect2name" && \
6808 strings "$collect2name" | grep resolve_lib_name >/dev/null
6809 then
6810 # We have reworked collect2
6811 hardcode_direct=yes
6812 else
6813 # We have old collect2
6814 hardcode_direct=unsupported
6815 # It fails to find uninstalled libraries when the uninstalled
6816 # path is not listed in the libpath. Setting hardcode_minus_L
6817 # to unsupported forces relinking
6818 hardcode_minus_L=yes
6819 hardcode_libdir_flag_spec='-L$libdir'
6820 hardcode_libdir_separator=
6821 fi
6822 esac
6823 shared_flag='-shared'
6824 else
6825 # not using gcc
6826 if test "$host_cpu" = ia64; then
6827 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6828 # chokes on -Wl,-G. The following line is correct:
6829 shared_flag='-G'
6830 else
6831 if test "$aix_use_runtimelinking" = yes; then
6832 shared_flag='${wl}-G'
6833 else
6834 shared_flag='${wl}-bM:SRE'
6835 fi
6836 fi
6837 fi
6838
6839 # It seems that -bexpall does not export symbols beginning with
6840 # underscore (_), so it is better to generate a list of symbols to export.
6841 always_export_symbols=yes
6842 if test "$aix_use_runtimelinking" = yes; then
6843 # Warning - without using the other runtime loading flags (-brtl),
6844 # -berok will link without error, but may produce a broken library.
6845 allow_undefined_flag='-berok'
6846 # Determine the default libpath from the value encoded in an empty executable.
6847 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006848#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006849/* confdefs.h. */
6850_ACEOF
6851cat confdefs.h >>conftest.$ac_ext
6852cat >>conftest.$ac_ext <<_ACEOF
6853/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006854
John Criswell7a73b802003-06-30 21:59:07 +00006855int
6856main ()
6857{
John Criswell47fdd832003-07-14 16:52:07 +00006858
John Criswell7a73b802003-06-30 21:59:07 +00006859 ;
6860 return 0;
6861}
6862_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006863rm -f conftest.$ac_objext conftest$ac_exeext
6864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6865 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006866 ac_status=$?
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006869 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6871 (eval $ac_try) 2>&5
6872 ac_status=$?
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006875
John Criswell47fdd832003-07-14 16:52:07 +00006876aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6877}'`
6878# Check for a 64-bit object if we didn't find anything.
6879if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6880}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006881else
6882 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006883sed 's/^/| /' conftest.$ac_ext >&5
6884
John Criswell7a73b802003-06-30 21:59:07 +00006885fi
John Criswell47fdd832003-07-14 16:52:07 +00006886rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6887if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006888
John Criswell47fdd832003-07-14 16:52:07 +00006889 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6890 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6891 else
6892 if test "$host_cpu" = ia64; then
6893 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6894 allow_undefined_flag="-z nodefs"
6895 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6896 else
6897 # Determine the default libpath from the value encoded in an empty executable.
6898 cat >conftest.$ac_ext <<_ACEOF
6899#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006900/* confdefs.h. */
6901_ACEOF
6902cat confdefs.h >>conftest.$ac_ext
6903cat >>conftest.$ac_ext <<_ACEOF
6904/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006905
John Criswell47fdd832003-07-14 16:52:07 +00006906int
6907main ()
6908{
John Criswell7a73b802003-06-30 21:59:07 +00006909
John Criswell47fdd832003-07-14 16:52:07 +00006910 ;
6911 return 0;
6912}
6913_ACEOF
6914rm -f conftest.$ac_objext conftest$ac_exeext
6915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6916 (eval $ac_link) 2>&5
6917 ac_status=$?
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } &&
6920 { ac_try='test -s conftest$ac_exeext'
6921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922 (eval $ac_try) 2>&5
6923 ac_status=$?
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006926
John Criswell47fdd832003-07-14 16:52:07 +00006927aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6928}'`
6929# Check for a 64-bit object if we didn't find anything.
6930if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6931}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006932else
John Criswell47fdd832003-07-14 16:52:07 +00006933 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006934sed 's/^/| /' conftest.$ac_ext >&5
6935
John Criswell47fdd832003-07-14 16:52:07 +00006936fi
6937rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6938if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006939
John Criswell47fdd832003-07-14 16:52:07 +00006940 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6941 # Warning - without using the other run time loading flags,
6942 # -berok will link without error, but may produce a broken library.
6943 no_undefined_flag=' ${wl}-bernotok'
6944 allow_undefined_flag=' ${wl}-berok'
6945 # -bexpall does not export symbols beginning with underscore (_)
6946 always_export_symbols=yes
6947 # Exported symbols can be pulled into shared objects from archives
6948 whole_archive_flag_spec=' '
6949 archive_cmds_need_lc=yes
6950 # This is similar to how AIX traditionally builds it's shared libraries.
6951 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
John Criswell7a73b802003-06-30 21:59:07 +00006952 fi
6953 fi
John Criswell7a73b802003-06-30 21:59:07 +00006954 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006955
6956 amigaos*)
6957 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6958 hardcode_libdir_flag_spec='-L$libdir'
6959 hardcode_minus_L=yes
6960 # see comment about different semantics on the GNU ld section
6961 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006962 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006963
John Criswell47fdd832003-07-14 16:52:07 +00006964 bsdi4*)
6965 export_dynamic_flag_spec=-rdynamic
6966 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006967
John Criswell47fdd832003-07-14 16:52:07 +00006968 cygwin* | mingw* | pw32*)
6969 # When not using gcc, we currently assume that we are using
6970 # Microsoft Visual C++.
6971 # hardcode_libdir_flag_spec is actually meaningless, as there is
6972 # no search path for DLLs.
6973 hardcode_libdir_flag_spec=' '
6974 allow_undefined_flag=unsupported
6975 # Tell ltmain to make .lib files, not .a files.
6976 libext=lib
6977 # Tell ltmain to make .dll files, not .so files.
6978 shrext=".dll"
6979 # FIXME: Setting linknames here is a bad hack.
6980 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6981 # The linker will automatically build a .lib file if we build a DLL.
6982 old_archive_From_new_cmds='true'
6983 # FIXME: Should let the user specify the lib program.
6984 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6985 fix_srcfile_path='`cygpath -w "$srcfile"`'
6986 enable_shared_with_static_runtimes=yes
6987 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006988
John Criswell47fdd832003-07-14 16:52:07 +00006989 darwin* | rhapsody*)
6990 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6991 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00006992 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00006993 rhapsody* | darwin1.[012])
6994 allow_undefined_flag='-undefined suppress'
6995 ;;
6996 *) # Darwin 1.3 on
6997 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00006998 ;;
6999 esac
John Criswell47fdd832003-07-14 16:52:07 +00007000 # FIXME: Relying on posixy $() will cause problems for
7001 # cross-compilation, but unfortunately the echo tests do not
7002 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7003 # `"' quotes if we put them in here... so don't!
7004 lt_int_apple_cc_single_mod=no
7005 output_verbose_link_cmd='echo'
7006 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7007 lt_int_apple_cc_single_mod=yes
7008 fi
7009 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7010 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7011 else
7012 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7013 fi
7014 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7015 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7016 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7017 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7018 else
7019 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7020 fi
7021 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7022 hardcode_direct=no
7023 hardcode_automatic=yes
7024 hardcode_shlibpath_var=unsupported
7025 whole_archive_flag_spec='-all_load $convenience'
7026 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007027 fi
John Criswell47fdd832003-07-14 16:52:07 +00007028 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007029
John Criswell47fdd832003-07-14 16:52:07 +00007030 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007031 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007032 hardcode_libdir_flag_spec='-L$libdir'
7033 hardcode_shlibpath_var=no
7034 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007035
John Criswell47fdd832003-07-14 16:52:07 +00007036 freebsd1*)
7037 ld_shlibs=no
7038 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007039
John Criswell47fdd832003-07-14 16:52:07 +00007040 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7041 # support. Future versions do this automatically, but an explicit c++rt0.o
7042 # does not break anything, and helps significantly (at the cost of a little
7043 # extra space).
7044 freebsd2.2*)
7045 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7046 hardcode_libdir_flag_spec='-R$libdir'
7047 hardcode_direct=yes
7048 hardcode_shlibpath_var=no
7049 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007050
John Criswell47fdd832003-07-14 16:52:07 +00007051 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7052 freebsd2*)
7053 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7054 hardcode_direct=yes
7055 hardcode_minus_L=yes
7056 hardcode_shlibpath_var=no
7057 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007058
John Criswell47fdd832003-07-14 16:52:07 +00007059 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7060 freebsd*)
7061 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7062 hardcode_libdir_flag_spec='-R$libdir'
7063 hardcode_direct=yes
7064 hardcode_shlibpath_var=no
7065 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007066
John Criswell47fdd832003-07-14 16:52:07 +00007067 hpux9*)
7068 if test "$GCC" = yes; then
7069 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7070 else
7071 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7072 fi
7073 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7074 hardcode_libdir_separator=:
7075 hardcode_direct=yes
7076
7077 # hardcode_minus_L: Not really in the search PATH,
7078 # but as the default location of the library.
7079 hardcode_minus_L=yes
7080 export_dynamic_flag_spec='${wl}-E'
7081 ;;
7082
7083 hpux10* | hpux11*)
7084 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7085 case "$host_cpu" in
7086 hppa*64*|ia64*)
7087 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7088 ;;
7089 *)
7090 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7091 ;;
7092 esac
7093 else
7094 case "$host_cpu" in
7095 hppa*64*|ia64*)
7096 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7097 ;;
7098 *)
7099 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7100 ;;
7101 esac
7102 fi
7103 if test "$with_gnu_ld" = no; then
7104 case "$host_cpu" in
7105 hppa*64*)
7106 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7107 hardcode_libdir_flag_spec_ld='+b $libdir'
7108 hardcode_libdir_separator=:
7109 hardcode_direct=no
7110 hardcode_shlibpath_var=no
7111 ;;
7112 ia64*)
7113 hardcode_libdir_flag_spec='-L$libdir'
7114 hardcode_direct=no
7115 hardcode_shlibpath_var=no
7116
7117 # hardcode_minus_L: Not really in the search PATH,
7118 # but as the default location of the library.
7119 hardcode_minus_L=yes
7120 ;;
7121 *)
7122 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7123 hardcode_libdir_separator=:
7124 hardcode_direct=yes
7125 export_dynamic_flag_spec='${wl}-E'
7126
7127 # hardcode_minus_L: Not really in the search PATH,
7128 # but as the default location of the library.
7129 hardcode_minus_L=yes
7130 ;;
7131 esac
7132 fi
7133 ;;
7134
7135 irix5* | irix6* | nonstopux*)
7136 if test "$GCC" = yes; then
7137 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7138 else
7139 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7140 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7141 fi
7142 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7143 hardcode_libdir_separator=:
7144 link_all_deplibs=yes
7145 ;;
7146
7147 netbsd*)
7148 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7149 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7150 else
7151 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7152 fi
7153 hardcode_libdir_flag_spec='-R$libdir'
7154 hardcode_direct=yes
7155 hardcode_shlibpath_var=no
7156 ;;
7157
7158 newsos6)
7159 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7160 hardcode_direct=yes
7161 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7162 hardcode_libdir_separator=:
7163 hardcode_shlibpath_var=no
7164 ;;
7165
7166 openbsd*)
7167 hardcode_direct=yes
7168 hardcode_shlibpath_var=no
7169 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7170 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7171 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7172 export_dynamic_flag_spec='${wl}-E'
7173 else
7174 case $host_os in
7175 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7176 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7177 hardcode_libdir_flag_spec='-R$libdir'
7178 ;;
7179 *)
7180 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7181 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7182 ;;
7183 esac
7184 fi
7185 ;;
7186
7187 os2*)
7188 hardcode_libdir_flag_spec='-L$libdir'
7189 hardcode_minus_L=yes
7190 allow_undefined_flag=unsupported
7191 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7192 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7193 ;;
7194
7195 osf3*)
7196 if test "$GCC" = yes; then
7197 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7198 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7199 else
7200 allow_undefined_flag=' -expect_unresolved \*'
7201 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7202 fi
7203 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7204 hardcode_libdir_separator=:
7205 ;;
7206
7207 osf4* | osf5*) # as osf3* with the addition of -msym flag
7208 if test "$GCC" = yes; then
7209 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7210 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7211 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7212 else
7213 allow_undefined_flag=' -expect_unresolved \*'
7214 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7215 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7216 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7217
7218 # Both c and cxx compiler support -rpath directly
7219 hardcode_libdir_flag_spec='-rpath $libdir'
7220 fi
7221 hardcode_libdir_separator=:
7222 ;;
7223
7224 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007225 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7226 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007227 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007228 runpath_var=LD_RUN_PATH
7229 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007230 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007231
John Criswell47fdd832003-07-14 16:52:07 +00007232 solaris*)
7233 no_undefined_flag=' -z text'
7234 if test "$GCC" = yes; then
7235 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7236 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7237 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7238 else
7239 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7240 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7241 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7242 fi
7243 hardcode_libdir_flag_spec='-R$libdir'
7244 hardcode_shlibpath_var=no
7245 case $host_os in
7246 solaris2.[0-5] | solaris2.[0-5].*) ;;
7247 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7248 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7249 esac
7250 link_all_deplibs=yes
7251 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007252
John Criswell47fdd832003-07-14 16:52:07 +00007253 sunos4*)
7254 if test "x$host_vendor" = xsequent; then
7255 # Use $CC to link under sequent, because it throws in some extra .o
7256 # files that make .init and .fini sections work.
7257 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7258 else
7259 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7260 fi
7261 hardcode_libdir_flag_spec='-L$libdir'
7262 hardcode_direct=yes
7263 hardcode_minus_L=yes
7264 hardcode_shlibpath_var=no
7265 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007266
John Criswell47fdd832003-07-14 16:52:07 +00007267 sysv4)
7268 case $host_vendor in
7269 sni)
7270 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7271 hardcode_direct=yes # is this really true???
7272 ;;
7273 siemens)
7274 ## LD is ld it makes a PLAMLIB
7275 ## CC just makes a GrossModule.
7276 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7277 reload_cmds='$CC -r -o $output$reload_objs'
7278 hardcode_direct=no
7279 ;;
7280 motorola)
7281 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7282 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7283 ;;
7284 esac
7285 runpath_var='LD_RUN_PATH'
7286 hardcode_shlibpath_var=no
7287 ;;
7288
7289 sysv4.3*)
7290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7291 hardcode_shlibpath_var=no
7292 export_dynamic_flag_spec='-Bexport'
7293 ;;
7294
7295 sysv4*MP*)
7296 if test -d /usr/nec; then
7297 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7298 hardcode_shlibpath_var=no
7299 runpath_var=LD_RUN_PATH
7300 hardcode_runpath_var=yes
7301 ld_shlibs=yes
7302 fi
7303 ;;
7304
7305 sysv4.2uw2*)
7306 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7307 hardcode_direct=yes
7308 hardcode_minus_L=no
7309 hardcode_shlibpath_var=no
7310 hardcode_runpath_var=yes
7311 runpath_var=LD_RUN_PATH
7312 ;;
7313
7314 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7315 no_undefined_flag='${wl}-z ${wl}text'
7316 if test "$GCC" = yes; then
7317 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7318 else
7319 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7320 fi
7321 runpath_var='LD_RUN_PATH'
7322 hardcode_shlibpath_var=no
7323 ;;
7324
7325 sysv5*)
7326 no_undefined_flag=' -z text'
7327 # $CC -shared without GNU ld will not create a library from C++
7328 # object files and a static libstdc++, better avoid it by now
7329 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7330 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7331 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7332 hardcode_libdir_flag_spec=
7333 hardcode_shlibpath_var=no
7334 runpath_var='LD_RUN_PATH'
7335 ;;
7336
7337 uts4*)
7338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7339 hardcode_libdir_flag_spec='-L$libdir'
7340 hardcode_shlibpath_var=no
7341 ;;
7342
7343 *)
7344 ld_shlibs=no
7345 ;;
7346 esac
7347 fi
7348
John Criswell7a73b802003-06-30 21:59:07 +00007349echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7350echo "${ECHO_T}$ld_shlibs" >&6
7351test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007352
John Criswell47fdd832003-07-14 16:52:07 +00007353variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7354if test "$GCC" = yes; then
7355 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7356fi
7357
7358#
7359# Do we need to explicitly link libc?
7360#
7361case "x$archive_cmds_need_lc" in
7362x|xyes)
7363 # Assume -lc should be added
7364 archive_cmds_need_lc=yes
7365
7366 if test "$enable_shared" = yes && test "$GCC" = yes; then
7367 case $archive_cmds in
7368 *'~'*)
7369 # FIXME: we may have to deal with multi-command sequences.
7370 ;;
7371 '$CC '*)
7372 # Test whether the compiler implicitly links with -lc since on some
7373 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7374 # to ld, don't add -lc before -lgcc.
7375 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7376echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7377 $rm conftest*
7378 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7379
7380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7381 (eval $ac_compile) 2>&5
7382 ac_status=$?
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); } 2>conftest.err; then
7385 soname=conftest
7386 lib=conftest
7387 libobjs=conftest.$ac_objext
7388 deplibs=
7389 wl=$lt_prog_compiler_wl
7390 compiler_flags=-v
7391 linker_flags=-v
7392 verstring=
7393 output_objdir=.
7394 libname=conftest
7395 lt_save_allow_undefined_flag=$allow_undefined_flag
7396 allow_undefined_flag=
7397 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7398 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7399 ac_status=$?
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); }
7402 then
7403 archive_cmds_need_lc=no
7404 else
7405 archive_cmds_need_lc=yes
7406 fi
7407 allow_undefined_flag=$lt_save_allow_undefined_flag
7408 else
7409 cat conftest.err 1>&5
7410 fi
7411 $rm conftest*
7412 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7413echo "${ECHO_T}$archive_cmds_need_lc" >&6
7414 ;;
7415 esac
7416 fi
7417 ;;
7418esac
7419
John Criswell7a73b802003-06-30 21:59:07 +00007420echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7421echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7422hardcode_action=
7423if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007424 test -n "$runpath_var " || \
7425 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007426
7427 # We can hardcode non-existant directories.
7428 if test "$hardcode_direct" != no &&
7429 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7430 # have to relink, otherwise we might link with an installed library
7431 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007432 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007433 test "$hardcode_minus_L" != no; then
7434 # Linking always hardcodes the temporary library directory.
7435 hardcode_action=relink
7436 else
7437 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7438 hardcode_action=immediate
7439 fi
7440else
7441 # We cannot hardcode anything, or else we can only hardcode existing
7442 # directories.
7443 hardcode_action=unsupported
7444fi
7445echo "$as_me:$LINENO: result: $hardcode_action" >&5
7446echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007447
John Criswell47fdd832003-07-14 16:52:07 +00007448if test "$hardcode_action" = relink; then
7449 # Fast installation is not supported
7450 enable_fast_install=no
7451elif test "$shlibpath_overrides_runpath" = yes ||
7452 test "$enable_shared" = no; then
7453 # Fast installation is not necessary
7454 enable_fast_install=needless
7455fi
7456
John Criswell7a73b802003-06-30 21:59:07 +00007457striplib=
7458old_striplib=
7459echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7460echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7461if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7462 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7463 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7464 echo "$as_me:$LINENO: result: yes" >&5
7465echo "${ECHO_T}yes" >&6
7466else
John Criswell47fdd832003-07-14 16:52:07 +00007467# FIXME - insert some real tests, host_os isn't really good enough
7468 case $host_os in
7469 darwin*)
7470 if test -n "$STRIP" ; then
7471 striplib="$STRIP -x"
7472 echo "$as_me:$LINENO: result: yes" >&5
7473echo "${ECHO_T}yes" >&6
7474 else
John Criswell7a73b802003-06-30 21:59:07 +00007475 echo "$as_me:$LINENO: result: no" >&5
7476echo "${ECHO_T}no" >&6
7477fi
John Criswell47fdd832003-07-14 16:52:07 +00007478 ;;
7479 *)
7480 echo "$as_me:$LINENO: result: no" >&5
7481echo "${ECHO_T}no" >&6
7482 ;;
7483 esac
7484fi
John Criswell7a73b802003-06-30 21:59:07 +00007485
John Criswell7a73b802003-06-30 21:59:07 +00007486echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7487echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7488library_names_spec=
7489libname_spec='lib$name'
7490soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007491shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007492postinstall_cmds=
7493postuninstall_cmds=
7494finish_cmds=
7495finish_eval=
7496shlibpath_var=
7497shlibpath_overrides_runpath=unknown
7498version_type=none
7499dynamic_linker="$host_os ld.so"
7500sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007501if test "$GCC" = yes; then
7502 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7503 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7504 # if the path contains ";" then we assume it to be the separator
7505 # otherwise default to the standard path separator (i.e. ":") - it is
7506 # assumed that no part of a normal pathname contains ";" but that should
7507 # okay in the real world where ";" in dirpaths is itself problematic.
7508 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7509 else
7510 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7511 fi
7512else
7513 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7514fi
7515need_lib_prefix=unknown
7516hardcode_into_libs=no
7517
7518# when you set need_version to no, make sure it does not cause -set_version
7519# flags to be left without arguments
7520need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007521
7522case $host_os in
7523aix3*)
7524 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007525 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007526 shlibpath_var=LIBPATH
7527
John Criswell47fdd832003-07-14 16:52:07 +00007528 # AIX 3 has no versioning support, so we append a major version to the name.
7529 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007530 ;;
7531
7532aix4* | aix5*)
7533 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007534 need_lib_prefix=no
7535 need_version=no
7536 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007537 if test "$host_cpu" = ia64; then
7538 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007539 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007540 shlibpath_var=LD_LIBRARY_PATH
7541 else
7542 # With GCC up to 2.95.x, collect2 would create an import file
7543 # for dependence libraries. The import file would start with
7544 # the line `#! .'. This would cause the generated library to
7545 # depend on `.', always an invalid library. This was fixed in
7546 # development snapshots of GCC prior to 3.0.
7547 case $host_os in
7548 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007549 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7550 echo ' yes '
7551 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7552 :
7553 else
7554 can_build_shared=no
7555 fi
7556 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007557 esac
John Criswell47fdd832003-07-14 16:52:07 +00007558 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7559 # soname into executable. Probably we can add versioning support to
7560 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007561 if test "$aix_use_runtimelinking" = yes; then
7562 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7563 # instead of lib<name>.a to let people know that these are not
7564 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007566 else
7567 # We preserve .a as extension for shared libraries through AIX4.2
7568 # and later when we are not doing run time linking.
7569 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007570 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007571 fi
7572 shlibpath_var=LIBPATH
7573 fi
7574 ;;
7575
7576amigaos*)
7577 library_names_spec='$libname.ixlibrary $libname.a'
7578 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7579 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
7580 ;;
7581
7582beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007583 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007584 dynamic_linker="$host_os ld.so"
7585 shlibpath_var=LIBRARY_PATH
7586 ;;
7587
7588bsdi4*)
7589 version_type=linux
7590 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7592 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007593 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7594 shlibpath_var=LD_LIBRARY_PATH
7595 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7596 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007597 # the default ld.so.conf also contains /usr/contrib/lib and
7598 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7599 # libtool to hard-code these into programs
7600 ;;
7601
7602cygwin* | mingw* | pw32*)
7603 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007604 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007605 need_version=no
7606 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007607
John Criswell7a73b802003-06-30 21:59:07 +00007608 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007609 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007610 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007611 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7612 postinstall_cmds='base_file=`basename \${file}`~
7613 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007614 dldir=$destdir/`dirname \$dlpath`~
7615 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007616 $install_prog $dir/$dlname \$dldir/$dlname'
7617 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007618 dlpath=$dir/\$dldll~
7619 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007620 shlibpath_overrides_runpath=yes
7621
7622 case $host_os in
7623 cygwin*)
7624 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7625 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7626 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7627 ;;
7628 mingw*)
7629 # MinGW DLLs use traditional 'lib' prefix
7630 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7631 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7632 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7633 # It is most probably a Windows format PATH printed by
7634 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7635 # path with ; separators, and with drive letters. We can handle the
7636 # drive letters (cygwin fileutils understands them), so leave them,
7637 # especially as we might pass files found there to a mingw objdump,
7638 # which wouldn't understand a cygwinified path. Ahh.
7639 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7640 else
7641 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7642 fi
7643 ;;
7644 pw32*)
7645 # pw32 DLLs use 'pw' prefix rather than 'lib'
7646 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7647 ;;
7648 esac
John Criswell7a73b802003-06-30 21:59:07 +00007649 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007650
John Criswell7a73b802003-06-30 21:59:07 +00007651 *)
John Criswell47fdd832003-07-14 16:52:07 +00007652 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007653 ;;
7654 esac
7655 dynamic_linker='Win32 ld.exe'
7656 # FIXME: first we should search . and the directory the executable is in
7657 shlibpath_var=PATH
7658 ;;
7659
7660darwin* | rhapsody*)
7661 dynamic_linker="$host_os dyld"
7662 version_type=darwin
7663 need_lib_prefix=no
7664 need_version=no
7665 # FIXME: Relying on posixy $() will cause problems for
7666 # cross-compilation, but unfortunately the echo tests do not
7667 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007668 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7669 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007670 shlibpath_overrides_runpath=yes
7671 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007672 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7673 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7674 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7675 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7676 fi
7677 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7678 ;;
7679
7680dgux*)
7681 version_type=linux
7682 need_lib_prefix=no
7683 need_version=no
7684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7685 soname_spec='${libname}${release}${shared_ext}$major'
7686 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007687 ;;
7688
7689freebsd1*)
7690 dynamic_linker=no
7691 ;;
7692
7693freebsd*)
7694 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7695 version_type=freebsd-$objformat
7696 case $version_type in
7697 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007699 need_version=no
7700 need_lib_prefix=no
7701 ;;
7702 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007703 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007704 need_version=yes
7705 ;;
7706 esac
7707 shlibpath_var=LD_LIBRARY_PATH
7708 case $host_os in
7709 freebsd2*)
7710 shlibpath_overrides_runpath=yes
7711 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007712 freebsd3.01* | freebsdelf3.01*)
7713 shlibpath_overrides_runpath=yes
7714 hardcode_into_libs=yes
7715 ;;
7716 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007717 shlibpath_overrides_runpath=no
7718 hardcode_into_libs=yes
7719 ;;
7720 esac
7721 ;;
7722
7723gnu*)
7724 version_type=linux
7725 need_lib_prefix=no
7726 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7728 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007729 shlibpath_var=LD_LIBRARY_PATH
7730 hardcode_into_libs=yes
7731 ;;
7732
7733hpux9* | hpux10* | hpux11*)
7734 # Give a soname corresponding to the major version so that dld.sl refuses to
7735 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007736 version_type=sunos
7737 need_lib_prefix=no
7738 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007739 case "$host_cpu" in
7740 ia64*)
7741 shrext='.so'
7742 hardcode_into_libs=yes
7743 dynamic_linker="$host_os dld.so"
7744 shlibpath_var=LD_LIBRARY_PATH
7745 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7747 soname_spec='${libname}${release}${shared_ext}$major'
7748 if test "X$HPUX_IA64_MODE" = X32; then
7749 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7750 else
7751 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7752 fi
7753 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7754 ;;
7755 hppa*64*)
7756 shrext='.sl'
7757 hardcode_into_libs=yes
7758 dynamic_linker="$host_os dld.sl"
7759 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7760 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7762 soname_spec='${libname}${release}${shared_ext}$major'
7763 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7764 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7765 ;;
7766 *)
7767 shrext='.sl'
7768 dynamic_linker="$host_os dld.sl"
7769 shlibpath_var=SHLIB_PATH
7770 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7772 soname_spec='${libname}${release}${shared_ext}$major'
7773 ;;
7774 esac
John Criswell7a73b802003-06-30 21:59:07 +00007775 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7776 postinstall_cmds='chmod 555 $lib'
7777 ;;
7778
John Criswell47fdd832003-07-14 16:52:07 +00007779irix5* | irix6* | nonstopux*)
7780 case $host_os in
7781 nonstopux*) version_type=nonstopux ;;
7782 *)
7783 if test "$lt_cv_prog_gnu_ld" = yes; then
7784 version_type=linux
7785 else
7786 version_type=irix
7787 fi ;;
7788 esac
John Criswell7a73b802003-06-30 21:59:07 +00007789 need_lib_prefix=no
7790 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007791 soname_spec='${libname}${release}${shared_ext}$major'
7792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007793 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007794 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007795 libsuff= shlibsuff=
7796 ;;
7797 *)
7798 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007799 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7800 libsuff= shlibsuff= libmagic=32-bit;;
7801 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7802 libsuff=32 shlibsuff=N32 libmagic=N32;;
7803 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7804 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007805 *) libsuff= shlibsuff= libmagic=never-match;;
7806 esac
7807 ;;
7808 esac
7809 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7810 shlibpath_overrides_runpath=no
7811 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7812 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007813 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007814 ;;
7815
7816# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007817linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007818 dynamic_linker=no
7819 ;;
7820
7821# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007822linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007823 version_type=linux
7824 need_lib_prefix=no
7825 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7827 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007828 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7829 shlibpath_var=LD_LIBRARY_PATH
7830 shlibpath_overrides_runpath=no
7831 # This implies no fast_install, which is unacceptable.
7832 # Some rework will be needed to allow for fast_install
7833 # before this can be enabled.
7834 hardcode_into_libs=yes
7835
7836 # We used to test for /lib/ld.so.1 and disable shared libraries on
7837 # powerpc, because MkLinux only supported shared libraries with the
7838 # GNU dynamic linker. Since this was broken with cross compilers,
7839 # most powerpc-linux boxes support dynamic linking these days and
7840 # people can always --disable-shared, the test was removed, and we
7841 # assume the GNU/Linux dynamic linker is in use.
7842 dynamic_linker='GNU/Linux ld.so'
7843 ;;
7844
7845netbsd*)
7846 version_type=sunos
7847 need_lib_prefix=no
7848 need_version=no
7849 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007851 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7852 dynamic_linker='NetBSD (a.out) ld.so'
7853 else
John Criswell47fdd832003-07-14 16:52:07 +00007854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7855 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007856 dynamic_linker='NetBSD ld.elf_so'
7857 fi
7858 shlibpath_var=LD_LIBRARY_PATH
7859 shlibpath_overrides_runpath=yes
7860 hardcode_into_libs=yes
7861 ;;
7862
7863newsos6)
7864 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7866 shlibpath_var=LD_LIBRARY_PATH
7867 shlibpath_overrides_runpath=yes
7868 ;;
7869
7870nto-qnx)
7871 version_type=linux
7872 need_lib_prefix=no
7873 need_version=no
7874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7875 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007876 shlibpath_var=LD_LIBRARY_PATH
7877 shlibpath_overrides_runpath=yes
7878 ;;
7879
7880openbsd*)
7881 version_type=sunos
7882 need_lib_prefix=no
7883 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7885 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7886 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007887 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 +00007888 case $host_os in
7889 openbsd2.[89] | openbsd2.[89].*)
7890 shlibpath_overrides_runpath=no
7891 ;;
7892 *)
7893 shlibpath_overrides_runpath=yes
7894 ;;
7895 esac
John Criswell7a73b802003-06-30 21:59:07 +00007896 else
7897 shlibpath_overrides_runpath=yes
7898 fi
John Criswell7a73b802003-06-30 21:59:07 +00007899 ;;
7900
7901os2*)
7902 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007903 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007904 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007905 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007906 dynamic_linker='OS/2 ld.exe'
7907 shlibpath_var=LIBPATH
7908 ;;
7909
7910osf3* | osf4* | osf5*)
7911 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007912 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007913 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007914 soname_spec='${libname}${release}${shared_ext}$major'
7915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007916 shlibpath_var=LD_LIBRARY_PATH
7917 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7918 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7919 ;;
7920
7921sco3.2v5*)
7922 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007923 soname_spec='${libname}${release}${shared_ext}$major'
7924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007925 shlibpath_var=LD_LIBRARY_PATH
7926 ;;
7927
7928solaris*)
7929 version_type=linux
7930 need_lib_prefix=no
7931 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7933 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007934 shlibpath_var=LD_LIBRARY_PATH
7935 shlibpath_overrides_runpath=yes
7936 hardcode_into_libs=yes
7937 # ldd complains unless libraries are executable
7938 postinstall_cmds='chmod +x $lib'
7939 ;;
7940
7941sunos4*)
7942 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007944 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7945 shlibpath_var=LD_LIBRARY_PATH
7946 shlibpath_overrides_runpath=yes
7947 if test "$with_gnu_ld" = yes; then
7948 need_lib_prefix=no
7949 fi
7950 need_version=yes
7951 ;;
7952
7953sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7954 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7956 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007957 shlibpath_var=LD_LIBRARY_PATH
7958 case $host_vendor in
7959 sni)
7960 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007961 need_lib_prefix=no
7962 export_dynamic_flag_spec='${wl}-Blargedynsym'
7963 runpath_var=LD_RUN_PATH
7964 ;;
7965 siemens)
7966 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007967 ;;
7968 motorola)
7969 need_lib_prefix=no
7970 need_version=no
7971 shlibpath_overrides_runpath=no
7972 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7973 ;;
7974 esac
7975 ;;
7976
John Criswell7a73b802003-06-30 21:59:07 +00007977sysv4*MP*)
7978 if test -d /usr/nec ;then
7979 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007980 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7981 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00007982 shlibpath_var=LD_LIBRARY_PATH
7983 fi
7984 ;;
7985
John Criswell47fdd832003-07-14 16:52:07 +00007986uts4*)
7987 version_type=linux
7988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7989 soname_spec='${libname}${release}${shared_ext}$major'
7990 shlibpath_var=LD_LIBRARY_PATH
7991 ;;
7992
John Criswell7a73b802003-06-30 21:59:07 +00007993*)
7994 dynamic_linker=no
7995 ;;
7996esac
7997echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7998echo "${ECHO_T}$dynamic_linker" >&6
7999test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00008000
8001if test "x$enable_dlopen" != xyes; then
8002 enable_dlopen=unknown
8003 enable_dlopen_self=unknown
8004 enable_dlopen_self_static=unknown
8005else
8006 lt_cv_dlopen=no
8007 lt_cv_dlopen_libs=
8008
8009 case $host_os in
8010 beos*)
8011 lt_cv_dlopen="load_add_on"
8012 lt_cv_dlopen_libs=
8013 lt_cv_dlopen_self=yes
8014 ;;
8015
John Criswell47fdd832003-07-14 16:52:07 +00008016 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008017 lt_cv_dlopen="LoadLibrary"
8018 lt_cv_dlopen_libs=
8019 ;;
8020
John Criswell47fdd832003-07-14 16:52:07 +00008021 cygwin*)
8022 lt_cv_dlopen="dlopen"
8023 lt_cv_dlopen_libs=
8024 ;;
8025
8026 darwin*)
8027 # if libdl is installed we need to link against it
8028 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8029echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8030if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8032else
8033 ac_check_lib_save_LIBS=$LIBS
8034LIBS="-ldl $LIBS"
8035cat >conftest.$ac_ext <<_ACEOF
8036#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008037/* confdefs.h. */
8038_ACEOF
8039cat confdefs.h >>conftest.$ac_ext
8040cat >>conftest.$ac_ext <<_ACEOF
8041/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008042
8043/* Override any gcc2 internal prototype to avoid an error. */
8044#ifdef __cplusplus
8045extern "C"
8046#endif
8047/* We use char because int might match the return type of a gcc2
8048 builtin and then its argument prototype would still apply. */
8049char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008050int
8051main ()
8052{
8053dlopen ();
8054 ;
8055 return 0;
8056}
8057_ACEOF
8058rm -f conftest.$ac_objext conftest$ac_exeext
8059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8060 (eval $ac_link) 2>&5
8061 ac_status=$?
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); } &&
8064 { ac_try='test -s conftest$ac_exeext'
8065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066 (eval $ac_try) 2>&5
8067 ac_status=$?
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }; }; then
8070 ac_cv_lib_dl_dlopen=yes
8071else
8072 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008073sed 's/^/| /' conftest.$ac_ext >&5
8074
John Criswell47fdd832003-07-14 16:52:07 +00008075ac_cv_lib_dl_dlopen=no
8076fi
8077rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8078LIBS=$ac_check_lib_save_LIBS
8079fi
8080echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8081echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8082if test $ac_cv_lib_dl_dlopen = yes; then
8083 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8084else
8085
8086 lt_cv_dlopen="dyld"
8087 lt_cv_dlopen_libs=
8088 lt_cv_dlopen_self=yes
8089
8090fi
8091
8092 ;;
8093
John Criswell7a73b802003-06-30 21:59:07 +00008094 *)
8095 echo "$as_me:$LINENO: checking for shl_load" >&5
8096echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8097if test "${ac_cv_func_shl_load+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8099else
8100 cat >conftest.$ac_ext <<_ACEOF
8101#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008102/* confdefs.h. */
8103_ACEOF
8104cat confdefs.h >>conftest.$ac_ext
8105cat >>conftest.$ac_ext <<_ACEOF
8106/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008107/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008108 which can conflict with char shl_load (); below.
8109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8110 <limits.h> exists even on freestanding compilers. */
8111#ifdef __STDC__
8112# include <limits.h>
8113#else
8114# include <assert.h>
8115#endif
John Criswell7a73b802003-06-30 21:59:07 +00008116/* Override any gcc2 internal prototype to avoid an error. */
8117#ifdef __cplusplus
8118extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008119{
John Criswell7a73b802003-06-30 21:59:07 +00008120#endif
8121/* We use char because int might match the return type of a gcc2
8122 builtin and then its argument prototype would still apply. */
8123char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008124/* The GNU C library defines this for functions which it implements
8125 to always fail with ENOSYS. Some functions are actually named
8126 something starting with __ and the normal name is an alias. */
8127#if defined (__stub_shl_load) || defined (__stub___shl_load)
8128choke me
8129#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008130char (*f) () = shl_load;
8131#endif
8132#ifdef __cplusplus
8133}
John Criswell7a73b802003-06-30 21:59:07 +00008134#endif
8135
John Criswell0c38eaf2003-09-10 15:17:25 +00008136int
8137main ()
8138{
8139return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008140 ;
8141 return 0;
8142}
8143_ACEOF
8144rm -f conftest.$ac_objext conftest$ac_exeext
8145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8146 (eval $ac_link) 2>&5
8147 ac_status=$?
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); } &&
8150 { ac_try='test -s conftest$ac_exeext'
8151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8152 (eval $ac_try) 2>&5
8153 ac_status=$?
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); }; }; then
8156 ac_cv_func_shl_load=yes
8157else
8158 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008159sed 's/^/| /' conftest.$ac_ext >&5
8160
John Criswell7a73b802003-06-30 21:59:07 +00008161ac_cv_func_shl_load=no
8162fi
8163rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8164fi
8165echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8166echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8167if test $ac_cv_func_shl_load = yes; then
8168 lt_cv_dlopen="shl_load"
8169else
8170 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8171echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8172if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8174else
8175 ac_check_lib_save_LIBS=$LIBS
8176LIBS="-ldld $LIBS"
8177cat >conftest.$ac_ext <<_ACEOF
8178#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008179/* confdefs.h. */
8180_ACEOF
8181cat confdefs.h >>conftest.$ac_ext
8182cat >>conftest.$ac_ext <<_ACEOF
8183/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008184
8185/* Override any gcc2 internal prototype to avoid an error. */
8186#ifdef __cplusplus
8187extern "C"
8188#endif
8189/* We use char because int might match the return type of a gcc2
8190 builtin and then its argument prototype would still apply. */
8191char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008192int
8193main ()
8194{
8195shl_load ();
8196 ;
8197 return 0;
8198}
8199_ACEOF
8200rm -f conftest.$ac_objext conftest$ac_exeext
8201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8202 (eval $ac_link) 2>&5
8203 ac_status=$?
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); } &&
8206 { ac_try='test -s conftest$ac_exeext'
8207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8208 (eval $ac_try) 2>&5
8209 ac_status=$?
8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211 (exit $ac_status); }; }; then
8212 ac_cv_lib_dld_shl_load=yes
8213else
8214 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008215sed 's/^/| /' conftest.$ac_ext >&5
8216
John Criswell7a73b802003-06-30 21:59:07 +00008217ac_cv_lib_dld_shl_load=no
8218fi
8219rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8220LIBS=$ac_check_lib_save_LIBS
8221fi
8222echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8223echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8224if test $ac_cv_lib_dld_shl_load = yes; then
8225 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8226else
8227 echo "$as_me:$LINENO: checking for dlopen" >&5
8228echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8229if test "${ac_cv_func_dlopen+set}" = set; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8231else
8232 cat >conftest.$ac_ext <<_ACEOF
8233#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008234/* confdefs.h. */
8235_ACEOF
8236cat confdefs.h >>conftest.$ac_ext
8237cat >>conftest.$ac_ext <<_ACEOF
8238/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008239/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008240 which can conflict with char dlopen (); below.
8241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8242 <limits.h> exists even on freestanding compilers. */
8243#ifdef __STDC__
8244# include <limits.h>
8245#else
8246# include <assert.h>
8247#endif
John Criswell7a73b802003-06-30 21:59:07 +00008248/* Override any gcc2 internal prototype to avoid an error. */
8249#ifdef __cplusplus
8250extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008251{
John Criswell7a73b802003-06-30 21:59:07 +00008252#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 dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008256/* The GNU C library defines this for functions which it implements
8257 to always fail with ENOSYS. Some functions are actually named
8258 something starting with __ and the normal name is an alias. */
8259#if defined (__stub_dlopen) || defined (__stub___dlopen)
8260choke me
8261#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008262char (*f) () = dlopen;
8263#endif
8264#ifdef __cplusplus
8265}
John Criswell7a73b802003-06-30 21:59:07 +00008266#endif
8267
John Criswell0c38eaf2003-09-10 15:17:25 +00008268int
8269main ()
8270{
8271return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008272 ;
8273 return 0;
8274}
8275_ACEOF
8276rm -f conftest.$ac_objext conftest$ac_exeext
8277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8278 (eval $ac_link) 2>&5
8279 ac_status=$?
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); } &&
8282 { ac_try='test -s conftest$ac_exeext'
8283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8284 (eval $ac_try) 2>&5
8285 ac_status=$?
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); }; }; then
8288 ac_cv_func_dlopen=yes
8289else
8290 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008291sed 's/^/| /' conftest.$ac_ext >&5
8292
John Criswell7a73b802003-06-30 21:59:07 +00008293ac_cv_func_dlopen=no
8294fi
8295rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8296fi
8297echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8298echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8299if test $ac_cv_func_dlopen = yes; then
8300 lt_cv_dlopen="dlopen"
8301else
8302 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8303echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8304if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8305 echo $ECHO_N "(cached) $ECHO_C" >&6
8306else
8307 ac_check_lib_save_LIBS=$LIBS
8308LIBS="-ldl $LIBS"
8309cat >conftest.$ac_ext <<_ACEOF
8310#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008311/* confdefs.h. */
8312_ACEOF
8313cat confdefs.h >>conftest.$ac_ext
8314cat >>conftest.$ac_ext <<_ACEOF
8315/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008316
8317/* Override any gcc2 internal prototype to avoid an error. */
8318#ifdef __cplusplus
8319extern "C"
8320#endif
8321/* We use char because int might match the return type of a gcc2
8322 builtin and then its argument prototype would still apply. */
8323char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008324int
8325main ()
8326{
8327dlopen ();
8328 ;
8329 return 0;
8330}
8331_ACEOF
8332rm -f conftest.$ac_objext conftest$ac_exeext
8333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8334 (eval $ac_link) 2>&5
8335 ac_status=$?
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); } &&
8338 { ac_try='test -s conftest$ac_exeext'
8339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340 (eval $ac_try) 2>&5
8341 ac_status=$?
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; }; then
8344 ac_cv_lib_dl_dlopen=yes
8345else
8346 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008347sed 's/^/| /' conftest.$ac_ext >&5
8348
John Criswell7a73b802003-06-30 21:59:07 +00008349ac_cv_lib_dl_dlopen=no
8350fi
8351rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8352LIBS=$ac_check_lib_save_LIBS
8353fi
8354echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8355echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8356if test $ac_cv_lib_dl_dlopen = yes; then
8357 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8358else
8359 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8360echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8361if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8362 echo $ECHO_N "(cached) $ECHO_C" >&6
8363else
8364 ac_check_lib_save_LIBS=$LIBS
8365LIBS="-lsvld $LIBS"
8366cat >conftest.$ac_ext <<_ACEOF
8367#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008368/* confdefs.h. */
8369_ACEOF
8370cat confdefs.h >>conftest.$ac_ext
8371cat >>conftest.$ac_ext <<_ACEOF
8372/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008373
8374/* Override any gcc2 internal prototype to avoid an error. */
8375#ifdef __cplusplus
8376extern "C"
8377#endif
8378/* We use char because int might match the return type of a gcc2
8379 builtin and then its argument prototype would still apply. */
8380char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008381int
8382main ()
8383{
8384dlopen ();
8385 ;
8386 return 0;
8387}
8388_ACEOF
8389rm -f conftest.$ac_objext conftest$ac_exeext
8390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8391 (eval $ac_link) 2>&5
8392 ac_status=$?
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } &&
8395 { ac_try='test -s conftest$ac_exeext'
8396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397 (eval $ac_try) 2>&5
8398 ac_status=$?
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; }; then
8401 ac_cv_lib_svld_dlopen=yes
8402else
8403 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008404sed 's/^/| /' conftest.$ac_ext >&5
8405
John Criswell7a73b802003-06-30 21:59:07 +00008406ac_cv_lib_svld_dlopen=no
8407fi
8408rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8409LIBS=$ac_check_lib_save_LIBS
8410fi
8411echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8412echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8413if test $ac_cv_lib_svld_dlopen = yes; then
8414 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8415else
8416 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8417echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8418if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8420else
8421 ac_check_lib_save_LIBS=$LIBS
8422LIBS="-ldld $LIBS"
8423cat >conftest.$ac_ext <<_ACEOF
8424#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008425/* confdefs.h. */
8426_ACEOF
8427cat confdefs.h >>conftest.$ac_ext
8428cat >>conftest.$ac_ext <<_ACEOF
8429/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008430
8431/* Override any gcc2 internal prototype to avoid an error. */
8432#ifdef __cplusplus
8433extern "C"
8434#endif
8435/* We use char because int might match the return type of a gcc2
8436 builtin and then its argument prototype would still apply. */
8437char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008438int
8439main ()
8440{
8441dld_link ();
8442 ;
8443 return 0;
8444}
8445_ACEOF
8446rm -f conftest.$ac_objext conftest$ac_exeext
8447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8448 (eval $ac_link) 2>&5
8449 ac_status=$?
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } &&
8452 { ac_try='test -s conftest$ac_exeext'
8453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454 (eval $ac_try) 2>&5
8455 ac_status=$?
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; }; then
8458 ac_cv_lib_dld_dld_link=yes
8459else
8460 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008461sed 's/^/| /' conftest.$ac_ext >&5
8462
John Criswell7a73b802003-06-30 21:59:07 +00008463ac_cv_lib_dld_dld_link=no
8464fi
8465rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8466LIBS=$ac_check_lib_save_LIBS
8467fi
8468echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8469echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8470if test $ac_cv_lib_dld_dld_link = yes; then
8471 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8472fi
8473
8474
8475fi
8476
8477
8478fi
8479
8480
8481fi
8482
8483
8484fi
8485
8486
8487fi
8488
8489 ;;
8490 esac
8491
8492 if test "x$lt_cv_dlopen" != xno; then
8493 enable_dlopen=yes
8494 else
8495 enable_dlopen=no
8496 fi
8497
8498 case $lt_cv_dlopen in
8499 dlopen)
8500 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008501 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008502
8503 save_LDFLAGS="$LDFLAGS"
8504 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8505
8506 save_LIBS="$LIBS"
8507 LIBS="$lt_cv_dlopen_libs $LIBS"
8508
8509 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8510echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8511if test "${lt_cv_dlopen_self+set}" = set; then
8512 echo $ECHO_N "(cached) $ECHO_C" >&6
8513else
8514 if test "$cross_compiling" = yes; then :
8515 lt_cv_dlopen_self=cross
8516else
John Criswell47fdd832003-07-14 16:52:07 +00008517 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008518 lt_status=$lt_dlunknown
8519 cat > conftest.$ac_ext <<EOF
John Criswellffaaf3b2003-09-10 18:38:44 +00008520#line 8520 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008521#include "confdefs.h"
8522
8523#if HAVE_DLFCN_H
8524#include <dlfcn.h>
8525#endif
8526
8527#include <stdio.h>
8528
8529#ifdef RTLD_GLOBAL
8530# define LT_DLGLOBAL RTLD_GLOBAL
8531#else
8532# ifdef DL_GLOBAL
8533# define LT_DLGLOBAL DL_GLOBAL
8534# else
8535# define LT_DLGLOBAL 0
8536# endif
8537#endif
8538
8539/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8540 find out it does not work in some platform. */
8541#ifndef LT_DLLAZY_OR_NOW
8542# ifdef RTLD_LAZY
8543# define LT_DLLAZY_OR_NOW RTLD_LAZY
8544# else
8545# ifdef DL_LAZY
8546# define LT_DLLAZY_OR_NOW DL_LAZY
8547# else
8548# ifdef RTLD_NOW
8549# define LT_DLLAZY_OR_NOW RTLD_NOW
8550# else
8551# ifdef DL_NOW
8552# define LT_DLLAZY_OR_NOW DL_NOW
8553# else
8554# define LT_DLLAZY_OR_NOW 0
8555# endif
8556# endif
8557# endif
8558# endif
8559#endif
8560
8561#ifdef __cplusplus
8562extern "C" void exit (int);
8563#endif
8564
8565void fnord() { int i=42;}
8566int main ()
8567{
8568 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8569 int status = $lt_dlunknown;
8570
8571 if (self)
8572 {
8573 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8574 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8575 /* dlclose (self); */
8576 }
8577
8578 exit (status);
8579}
8580EOF
8581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8582 (eval $ac_link) 2>&5
8583 ac_status=$?
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8586 (./conftest; exit; ) 2>/dev/null
8587 lt_status=$?
8588 case x$lt_status in
8589 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8590 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8591 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8592 esac
8593 else :
8594 # compilation failed
8595 lt_cv_dlopen_self=no
8596 fi
8597fi
8598rm -fr conftest*
8599
8600
8601fi
8602echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8603echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8604
8605 if test "x$lt_cv_dlopen_self" = xyes; then
8606 LDFLAGS="$LDFLAGS $link_static_flag"
8607 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8608echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8609if test "${lt_cv_dlopen_self_static+set}" = set; then
8610 echo $ECHO_N "(cached) $ECHO_C" >&6
8611else
8612 if test "$cross_compiling" = yes; then :
8613 lt_cv_dlopen_self_static=cross
8614else
John Criswell47fdd832003-07-14 16:52:07 +00008615 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008616 lt_status=$lt_dlunknown
8617 cat > conftest.$ac_ext <<EOF
John Criswellffaaf3b2003-09-10 18:38:44 +00008618#line 8618 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008619#include "confdefs.h"
8620
8621#if HAVE_DLFCN_H
8622#include <dlfcn.h>
8623#endif
8624
8625#include <stdio.h>
8626
8627#ifdef RTLD_GLOBAL
8628# define LT_DLGLOBAL RTLD_GLOBAL
8629#else
8630# ifdef DL_GLOBAL
8631# define LT_DLGLOBAL DL_GLOBAL
8632# else
8633# define LT_DLGLOBAL 0
8634# endif
8635#endif
8636
8637/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8638 find out it does not work in some platform. */
8639#ifndef LT_DLLAZY_OR_NOW
8640# ifdef RTLD_LAZY
8641# define LT_DLLAZY_OR_NOW RTLD_LAZY
8642# else
8643# ifdef DL_LAZY
8644# define LT_DLLAZY_OR_NOW DL_LAZY
8645# else
8646# ifdef RTLD_NOW
8647# define LT_DLLAZY_OR_NOW RTLD_NOW
8648# else
8649# ifdef DL_NOW
8650# define LT_DLLAZY_OR_NOW DL_NOW
8651# else
8652# define LT_DLLAZY_OR_NOW 0
8653# endif
8654# endif
8655# endif
8656# endif
8657#endif
8658
8659#ifdef __cplusplus
8660extern "C" void exit (int);
8661#endif
8662
8663void fnord() { int i=42;}
8664int main ()
8665{
8666 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8667 int status = $lt_dlunknown;
8668
8669 if (self)
8670 {
8671 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8672 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8673 /* dlclose (self); */
8674 }
8675
8676 exit (status);
8677}
8678EOF
8679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8680 (eval $ac_link) 2>&5
8681 ac_status=$?
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8684 (./conftest; exit; ) 2>/dev/null
8685 lt_status=$?
8686 case x$lt_status in
8687 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8688 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8689 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8690 esac
8691 else :
8692 # compilation failed
8693 lt_cv_dlopen_self_static=no
8694 fi
8695fi
8696rm -fr conftest*
8697
8698
8699fi
8700echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8701echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8702 fi
8703
8704 CPPFLAGS="$save_CPPFLAGS"
8705 LDFLAGS="$save_LDFLAGS"
8706 LIBS="$save_LIBS"
8707 ;;
8708 esac
8709
8710 case $lt_cv_dlopen_self in
8711 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8712 *) enable_dlopen_self=unknown ;;
8713 esac
8714
8715 case $lt_cv_dlopen_self_static in
8716 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8717 *) enable_dlopen_self_static=unknown ;;
8718 esac
8719fi
8720
8721
John Criswell47fdd832003-07-14 16:52:07 +00008722# Report which librarie types wil actually be built
8723echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8724echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8725echo "$as_me:$LINENO: result: $can_build_shared" >&5
8726echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008727
John Criswell47fdd832003-07-14 16:52:07 +00008728echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8729echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8730test "$can_build_shared" = "no" && enable_shared=no
8731
8732# On AIX, shared libraries and static libraries use the same namespace, and
8733# are all built from PIC.
8734case "$host_os" in
8735aix3*)
8736 test "$enable_shared" = yes && enable_static=no
8737 if test -n "$RANLIB"; then
8738 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8739 postinstall_cmds='$RANLIB $lib'
8740 fi
8741 ;;
8742
8743aix4*)
8744 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8745 test "$enable_shared" = yes && enable_static=no
8746 fi
8747 ;;
8748 darwin* | rhapsody*)
8749 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8750 archive_cmds_need_lc=no
8751 case "$host_os" in
8752 rhapsody* | darwin1.[012])
8753 allow_undefined_flag='-undefined suppress'
8754 ;;
8755 *) # Darwin 1.3 on
8756 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8757 ;;
8758 esac
8759 # FIXME: Relying on posixy $() will cause problems for
8760 # cross-compilation, but unfortunately the echo tests do not
8761 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8762 # `"' quotes if we put them in here... so don't!
8763 output_verbose_link_cmd='echo'
8764 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8765 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8766 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8767 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8768 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8769 hardcode_direct=no
8770 hardcode_automatic=yes
8771 hardcode_shlibpath_var=unsupported
8772 whole_archive_flag_spec='-all_load $convenience'
8773 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008774 fi
John Criswell7a73b802003-06-30 21:59:07 +00008775 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008776esac
8777echo "$as_me:$LINENO: result: $enable_shared" >&5
8778echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008779
John Criswell47fdd832003-07-14 16:52:07 +00008780echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8781echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8782# Make sure either enable_shared or enable_static is yes.
8783test "$enable_shared" = yes || enable_static=yes
8784echo "$as_me:$LINENO: result: $enable_static" >&5
8785echo "${ECHO_T}$enable_static" >&6
8786
8787# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008788# libtool distribution, otherwise you forgot to ship ltmain.sh
8789# with your package, and you will get complaints that there are
8790# no rules to generate ltmain.sh.
8791if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008792 # See if we are running on zsh, and set the options which allow our commands through
8793 # without removal of \ escapes.
8794 if test -n "${ZSH_VERSION+set}" ; then
8795 setopt NO_GLOB_SUBST
8796 fi
John Criswell7a73b802003-06-30 21:59:07 +00008797 # Now quote all the things that may contain metacharacters while being
8798 # careful not to overquote the AC_SUBSTed values. We take copies of the
8799 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008800 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8801 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8802 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8803 deplibs_check_method reload_flag reload_cmds need_locks \
8804 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8805 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008806 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008807 old_postinstall_cmds old_postuninstall_cmds \
8808 compiler \
8809 CC \
8810 LD \
8811 lt_prog_compiler_wl \
8812 lt_prog_compiler_pic \
8813 lt_prog_compiler_static \
8814 lt_prog_compiler_no_builtin_flag \
8815 export_dynamic_flag_spec \
8816 thread_safe_flag_spec \
8817 whole_archive_flag_spec \
8818 enable_shared_with_static_runtimes \
8819 old_archive_cmds \
8820 old_archive_from_new_cmds \
8821 predep_objects \
8822 postdep_objects \
8823 predeps \
8824 postdeps \
8825 compiler_lib_search_path \
8826 archive_cmds \
8827 archive_expsym_cmds \
8828 postinstall_cmds \
8829 postuninstall_cmds \
8830 old_archive_from_expsyms_cmds \
8831 allow_undefined_flag \
8832 no_undefined_flag \
8833 export_symbols_cmds \
8834 hardcode_libdir_flag_spec \
8835 hardcode_libdir_flag_spec_ld \
8836 hardcode_libdir_separator \
8837 hardcode_automatic \
8838 module_cmds \
8839 module_expsym_cmds \
8840 lt_cv_prog_compiler_c_o \
8841 exclude_expsyms \
8842 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008843
8844 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008845 old_archive_cmds | \
8846 old_archive_from_new_cmds | \
8847 archive_cmds | \
8848 archive_expsym_cmds | \
8849 module_cmds | \
8850 module_expsym_cmds | \
8851 old_archive_from_expsyms_cmds | \
8852 export_symbols_cmds | \
8853 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008854 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008855 old_postinstall_cmds | old_postuninstall_cmds | \
8856 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008857 # Double-quote double-evaled strings.
8858 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8859 ;;
8860 *)
8861 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8862 ;;
8863 esac
8864 done
8865
John Criswell47fdd832003-07-14 16:52:07 +00008866 case $lt_echo in
8867 *'\$0 --fallback-echo"')
8868 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8869 ;;
8870 esac
8871
8872cfgfile="${ofile}T"
8873 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8874 $rm -f "$cfgfile"
8875 { echo "$as_me:$LINENO: creating $ofile" >&5
8876echo "$as_me: creating $ofile" >&6;}
8877
8878 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008879#! $SHELL
8880
John Criswell47fdd832003-07-14 16:52:07 +00008881# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008882# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8883# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8884#
John Criswell47fdd832003-07-14 16:52:07 +00008885# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8886# Free Software Foundation, Inc.
8887#
8888# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008889# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8890#
8891# This program is free software; you can redistribute it and/or modify
8892# it under the terms of the GNU General Public License as published by
8893# the Free Software Foundation; either version 2 of the License, or
8894# (at your option) any later version.
8895#
8896# This program is distributed in the hope that it will be useful, but
8897# WITHOUT ANY WARRANTY; without even the implied warranty of
8898# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8899# General Public License for more details.
8900#
8901# You should have received a copy of the GNU General Public License
8902# along with this program; if not, write to the Free Software
8903# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8904#
8905# As a special exception to the GNU General Public License, if you
8906# distribute this file as part of a program that contains a
8907# configuration script generated by Autoconf, you may include it under
8908# the same distribution terms that you use for the rest of that program.
8909
John Criswell47fdd832003-07-14 16:52:07 +00008910# A sed program that does not truncate output.
8911SED=$lt_SED
8912
John Criswell7a73b802003-06-30 21:59:07 +00008913# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008914Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008915
8916# The HP-UX ksh and POSIX shell print the target directory to stdout
8917# if CDPATH is set.
8918if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8919
John Criswell47fdd832003-07-14 16:52:07 +00008920# The names of the tagged configurations supported by this script.
8921available_tags=
8922
John Criswell7a73b802003-06-30 21:59:07 +00008923# ### BEGIN LIBTOOL CONFIG
8924
8925# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8926
8927# Shell to use when invoking shell scripts.
8928SHELL=$lt_SHELL
8929
8930# Whether or not to build shared libraries.
8931build_libtool_libs=$enable_shared
8932
8933# Whether or not to build static libraries.
8934build_old_libs=$enable_static
8935
8936# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008937build_libtool_need_lc=$archive_cmds_need_lc
8938
8939# Whether or not to disallow shared libs when runtime libs are static
8940allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008941
8942# Whether or not to optimize for fast installation.
8943fast_install=$enable_fast_install
8944
8945# The host system.
8946host_alias=$host_alias
8947host=$host
8948
8949# An echo program that does not interpret backslashes.
8950echo=$lt_echo
8951
8952# The archiver.
8953AR=$lt_AR
8954AR_FLAGS=$lt_AR_FLAGS
8955
John Criswell47fdd832003-07-14 16:52:07 +00008956# A C compiler.
8957LTCC=$lt_LTCC
8958
8959# A language-specific compiler.
8960CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00008961
8962# Is the compiler the GNU C compiler?
8963with_gcc=$GCC
8964
John Criswell47fdd832003-07-14 16:52:07 +00008965# An ERE matcher.
8966EGREP=$lt_EGREP
8967
John Criswell7a73b802003-06-30 21:59:07 +00008968# The linker used to build libraries.
8969LD=$lt_LD
8970
8971# Whether we need hard or soft links.
8972LN_S=$lt_LN_S
8973
8974# A BSD-compatible nm program.
8975NM=$lt_NM
8976
8977# A symbol stripping program
8978STRIP=$STRIP
8979
8980# Used to examine libraries when file_magic_cmd begins "file"
8981MAGIC_CMD=$MAGIC_CMD
8982
8983# Used on cygwin: DLL creation program.
8984DLLTOOL="$DLLTOOL"
8985
8986# Used on cygwin: object dumper.
8987OBJDUMP="$OBJDUMP"
8988
8989# Used on cygwin: assembler.
8990AS="$AS"
8991
8992# The name of the directory that contains temporary libtool files.
8993objdir=$objdir
8994
8995# How to create reloadable object files.
8996reload_flag=$lt_reload_flag
8997reload_cmds=$lt_reload_cmds
8998
8999# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009000wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009001
9002# Object file suffix (normally "o").
9003objext="$ac_objext"
9004
9005# Old archive suffix (normally "a").
9006libext="$libext"
9007
John Criswell47fdd832003-07-14 16:52:07 +00009008# Shared library suffix (normally ".so").
9009shrext='$shrext'
9010
John Criswell7a73b802003-06-30 21:59:07 +00009011# Executable file suffix (normally "").
9012exeext="$exeext"
9013
9014# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009015pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009016pic_mode=$pic_mode
9017
John Criswell47fdd832003-07-14 16:52:07 +00009018# What is the maximum length of a command?
9019max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009020
John Criswell47fdd832003-07-14 16:52:07 +00009021# Does compiler simultaneously support -c and -o options?
9022compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009023
9024# Must we lock files when doing compilation ?
9025need_locks=$lt_need_locks
9026
9027# Do we need the lib prefix for modules?
9028need_lib_prefix=$need_lib_prefix
9029
9030# Do we need a version for libraries?
9031need_version=$need_version
9032
9033# Whether dlopen is supported.
9034dlopen_support=$enable_dlopen
9035
9036# Whether dlopen of programs is supported.
9037dlopen_self=$enable_dlopen_self
9038
9039# Whether dlopen of statically linked programs is supported.
9040dlopen_self_static=$enable_dlopen_self_static
9041
9042# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009043link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009044
9045# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009046no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009047
9048# Compiler flag to allow reflexive dlopens.
9049export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9050
9051# Compiler flag to generate shared objects directly from archives.
9052whole_archive_flag_spec=$lt_whole_archive_flag_spec
9053
9054# Compiler flag to generate thread-safe objects.
9055thread_safe_flag_spec=$lt_thread_safe_flag_spec
9056
9057# Library versioning type.
9058version_type=$version_type
9059
9060# Format of library name prefix.
9061libname_spec=$lt_libname_spec
9062
9063# List of archive names. First name is the real one, the rest are links.
9064# The last name is the one that the linker finds with -lNAME.
9065library_names_spec=$lt_library_names_spec
9066
9067# The coded name of the library, if different from the real name.
9068soname_spec=$lt_soname_spec
9069
9070# Commands used to build and install an old-style archive.
9071RANLIB=$lt_RANLIB
9072old_archive_cmds=$lt_old_archive_cmds
9073old_postinstall_cmds=$lt_old_postinstall_cmds
9074old_postuninstall_cmds=$lt_old_postuninstall_cmds
9075
9076# Create an old-style archive from a shared archive.
9077old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9078
9079# Create a temporary old-style archive to link instead of a shared archive.
9080old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9081
9082# Commands used to build and install a shared archive.
9083archive_cmds=$lt_archive_cmds
9084archive_expsym_cmds=$lt_archive_expsym_cmds
9085postinstall_cmds=$lt_postinstall_cmds
9086postuninstall_cmds=$lt_postuninstall_cmds
9087
John Criswell47fdd832003-07-14 16:52:07 +00009088# Commands used to build a loadable module (assumed same as above if empty)
9089module_cmds=$lt_module_cmds
9090module_expsym_cmds=$lt_module_expsym_cmds
9091
John Criswell7a73b802003-06-30 21:59:07 +00009092# Commands to strip libraries.
9093old_striplib=$lt_old_striplib
9094striplib=$lt_striplib
9095
John Criswell47fdd832003-07-14 16:52:07 +00009096# Dependencies to place before the objects being linked to create a
9097# shared library.
9098predep_objects=$lt_predep_objects
9099
9100# Dependencies to place after the objects being linked to create a
9101# shared library.
9102postdep_objects=$lt_postdep_objects
9103
9104# Dependencies to place before the objects being linked to create a
9105# shared library.
9106predeps=$lt_predeps
9107
9108# Dependencies to place after the objects being linked to create a
9109# shared library.
9110postdeps=$lt_postdeps
9111
9112# The library search path used internally by the compiler when linking
9113# a shared library.
9114compiler_lib_search_path=$lt_compiler_lib_search_path
9115
John Criswell7a73b802003-06-30 21:59:07 +00009116# Method to check whether dependent libraries are shared objects.
9117deplibs_check_method=$lt_deplibs_check_method
9118
9119# Command to use when deplibs_check_method == file_magic.
9120file_magic_cmd=$lt_file_magic_cmd
9121
9122# Flag that allows shared libraries with undefined symbols to be built.
9123allow_undefined_flag=$lt_allow_undefined_flag
9124
9125# Flag that forces no undefined symbols.
9126no_undefined_flag=$lt_no_undefined_flag
9127
9128# Commands used to finish a libtool library installation in a directory.
9129finish_cmds=$lt_finish_cmds
9130
9131# Same as above, but a single script fragment to be evaled but not shown.
9132finish_eval=$lt_finish_eval
9133
9134# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009135global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009136
9137# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009138global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009139
9140# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009141global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009142
9143# This is the shared library runtime path variable.
9144runpath_var=$runpath_var
9145
9146# This is the shared library path variable.
9147shlibpath_var=$shlibpath_var
9148
9149# Is shlibpath searched before the hard-coded library search path?
9150shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9151
9152# How to hardcode a shared library path into an executable.
9153hardcode_action=$hardcode_action
9154
9155# Whether we should hardcode library paths into libraries.
9156hardcode_into_libs=$hardcode_into_libs
9157
9158# Flag to hardcode \$libdir into a binary during linking.
9159# This must work even if \$libdir does not exist.
9160hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9161
John Criswell47fdd832003-07-14 16:52:07 +00009162# If ld is used when linking, flag to hardcode \$libdir into
9163# a binary during linking. This must work even if \$libdir does
9164# not exist.
9165hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9166
John Criswell7a73b802003-06-30 21:59:07 +00009167# Whether we need a single -rpath flag with a separated argument.
9168hardcode_libdir_separator=$lt_hardcode_libdir_separator
9169
John Criswell47fdd832003-07-14 16:52:07 +00009170# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009171# resulting binary.
9172hardcode_direct=$hardcode_direct
9173
9174# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9175# resulting binary.
9176hardcode_minus_L=$hardcode_minus_L
9177
9178# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9179# the resulting binary.
9180hardcode_shlibpath_var=$hardcode_shlibpath_var
9181
John Criswell47fdd832003-07-14 16:52:07 +00009182# Set to yes if building a shared library automatically hardcodes DIR into the library
9183# and all subsequent libraries and executables linked against it.
9184hardcode_automatic=$hardcode_automatic
9185
John Criswell7a73b802003-06-30 21:59:07 +00009186# Variables whose values should be saved in libtool wrapper scripts and
9187# restored at relink time.
9188variables_saved_for_relink="$variables_saved_for_relink"
9189
9190# Whether libtool must link a program against all its dependency libraries.
9191link_all_deplibs=$link_all_deplibs
9192
9193# Compile-time system search path for libraries
9194sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9195
9196# Run-time system search path for libraries
9197sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9198
9199# Fix the shell variable \$srcfile for the compiler.
9200fix_srcfile_path="$fix_srcfile_path"
9201
9202# Set to yes if exported symbols are required.
9203always_export_symbols=$always_export_symbols
9204
9205# The commands to list exported symbols.
9206export_symbols_cmds=$lt_export_symbols_cmds
9207
9208# The commands to extract the exported symbol list from a shared archive.
9209extract_expsyms_cmds=$lt_extract_expsyms_cmds
9210
9211# Symbols that should not be listed in the preloaded symbols.
9212exclude_expsyms=$lt_exclude_expsyms
9213
9214# Symbols that must always be exported.
9215include_expsyms=$lt_include_expsyms
9216
9217# ### END LIBTOOL CONFIG
9218
9219__EOF__
9220
John Criswell47fdd832003-07-14 16:52:07 +00009221
John Criswell7a73b802003-06-30 21:59:07 +00009222 case $host_os in
9223 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009224 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009225
9226# AIX sometimes has problems with the GCC collect2 program. For some
9227# reason, if we set the COLLECT_NAMES environment variable, the problems
9228# vanish in a puff of smoke.
9229if test "X${COLLECT_NAMES+set}" != Xset; then
9230 COLLECT_NAMES=
9231 export COLLECT_NAMES
9232fi
9233EOF
9234 ;;
9235 esac
9236
John Criswell7a73b802003-06-30 21:59:07 +00009237 # We use sed instead of cat because bash on DJGPP gets confused if
9238 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9239 # text mode, it properly converts lines to CR/LF. This bash problem
9240 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009241 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009242
John Criswell47fdd832003-07-14 16:52:07 +00009243 mv -f "$cfgfile" "$ofile" || \
9244 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009245 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009246
9247else
9248 # If there is no Makefile yet, we rely on a make rule to execute
9249 # `config.status --recheck' to rerun these tests and create the
9250 # libtool script then.
9251 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009252fi
John Criswell7a73b802003-06-30 21:59:07 +00009253
9254
John Criswell47fdd832003-07-14 16:52:07 +00009255ac_ext=c
9256ac_cpp='$CPP $CPPFLAGS'
9257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9259ac_compiler_gnu=$ac_cv_c_compiler_gnu
9260
9261CC="$lt_save_CC"
9262
9263
9264# Check whether --with-tags or --without-tags was given.
9265if test "${with_tags+set}" = set; then
9266 withval="$with_tags"
9267 tagnames="$withval"
9268fi;
9269
9270if test -f "$ltmain" && test -n "$tagnames"; then
9271 if test ! -f "${ofile}"; then
9272 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9273echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9274 fi
9275
9276 if test -z "$LTCC"; then
9277 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9278 if test -z "$LTCC"; then
9279 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9280echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9281 else
9282 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9283echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9284 fi
9285 fi
9286
9287 # Extract list of available tagged configurations in $ofile.
9288 # Note that this assumes the entire list is on one line.
9289 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9290
9291 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9292 for tagname in $tagnames; do
9293 IFS="$lt_save_ifs"
9294 # Check whether tagname contains only valid characters
9295 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9296 "") ;;
9297 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9298echo "$as_me: error: invalid tag name: $tagname" >&2;}
9299 { (exit 1); exit 1; }; }
9300 ;;
9301 esac
9302
9303 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9304 then
9305 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9306echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9307 { (exit 1); exit 1; }; }
9308 fi
9309
9310 # Update the list of available tags.
9311 if test -n "$tagname"; then
9312 echo appending configuration tag \"$tagname\" to $ofile
9313
9314 case $tagname in
9315 CXX)
9316 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9317 ac_ext=cc
9318ac_cpp='$CXXCPP $CPPFLAGS'
9319ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9320ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9321ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9322
9323
9324
9325
9326archive_cmds_need_lc_CXX=no
9327allow_undefined_flag_CXX=
9328always_export_symbols_CXX=no
9329archive_expsym_cmds_CXX=
9330export_dynamic_flag_spec_CXX=
9331hardcode_direct_CXX=no
9332hardcode_libdir_flag_spec_CXX=
9333hardcode_libdir_flag_spec_ld_CXX=
9334hardcode_libdir_separator_CXX=
9335hardcode_minus_L_CXX=no
9336hardcode_automatic_CXX=no
9337module_cmds_CXX=
9338module_expsym_cmds_CXX=
9339link_all_deplibs_CXX=unknown
9340old_archive_cmds_CXX=$old_archive_cmds
9341no_undefined_flag_CXX=
9342whole_archive_flag_spec_CXX=
9343enable_shared_with_static_runtimes_CXX=no
9344
9345# Dependencies to place before and after the object being linked:
9346predep_objects_CXX=
9347postdep_objects_CXX=
9348predeps_CXX=
9349postdeps_CXX=
9350compiler_lib_search_path_CXX=
9351
9352# Source file extension for C++ test sources.
9353ac_ext=cc
9354
9355# Object file extension for compiled C++ test sources.
9356objext=o
9357objext_CXX=$objext
9358
9359# Code to be used in simple compile tests
9360lt_simple_compile_test_code="int some_variable = 0;\n"
9361
9362# Code to be used in simple link tests
9363lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9364
9365# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9366
9367# If no C compiler was specified, use CC.
9368LTCC=${LTCC-"$CC"}
9369
9370# Allow CC to be a program name with arguments.
9371compiler=$CC
9372
9373
9374# Allow CC to be a program name with arguments.
9375lt_save_CC=$CC
9376lt_save_LD=$LD
9377lt_save_GCC=$GCC
9378GCC=$GXX
9379lt_save_with_gnu_ld=$with_gnu_ld
9380lt_save_path_LD=$lt_cv_path_LD
9381if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9382 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9383else
9384 unset lt_cv_prog_gnu_ld
9385fi
9386if test -n "${lt_cv_path_LDCXX+set}"; then
9387 lt_cv_path_LD=$lt_cv_path_LDCXX
9388else
9389 unset lt_cv_path_LD
9390fi
9391test -z "${LDCXX+set}" || LD=$LDCXX
9392CC=${CXX-"c++"}
9393compiler=$CC
9394compiler_CXX=$CC
9395cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9396
9397# We don't want -fno-exception wen compiling C++ code, so set the
9398# no_builtin_flag separately
9399if test "$GXX" = yes; then
9400 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9401else
9402 lt_prog_compiler_no_builtin_flag_CXX=
9403fi
9404
9405if test "$GXX" = yes; then
9406 # Set up default GNU C++ configuration
9407
9408
9409# Check whether --with-gnu-ld or --without-gnu-ld was given.
9410if test "${with_gnu_ld+set}" = set; then
9411 withval="$with_gnu_ld"
9412 test "$withval" = no || with_gnu_ld=yes
9413else
9414 with_gnu_ld=no
9415fi;
9416ac_prog=ld
9417if test "$GCC" = yes; then
9418 # Check if gcc -print-prog-name=ld gives a path.
9419 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9420echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9421 case $host in
9422 *-*-mingw*)
9423 # gcc leaves a trailing carriage return which upsets mingw
9424 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9425 *)
9426 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9427 esac
9428 case $ac_prog in
9429 # Accept absolute paths.
9430 [\\/]* | ?:[\\/]*)
9431 re_direlt='/[^/][^/]*/\.\./'
9432 # Canonicalize the path of ld
9433 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9434 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9435 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9436 done
9437 test -z "$LD" && LD="$ac_prog"
9438 ;;
9439 "")
9440 # If it fails, then pretend we aren't using GCC.
9441 ac_prog=ld
9442 ;;
9443 *)
9444 # If it is relative, then search for the first ld in PATH.
9445 with_gnu_ld=unknown
9446 ;;
9447 esac
9448elif test "$with_gnu_ld" = yes; then
9449 echo "$as_me:$LINENO: checking for GNU ld" >&5
9450echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9451else
9452 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9453echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9454fi
9455if test "${lt_cv_path_LD+set}" = set; then
9456 echo $ECHO_N "(cached) $ECHO_C" >&6
9457else
9458 if test -z "$LD"; then
9459 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9460 for ac_dir in $PATH; do
9461 IFS="$lt_save_ifs"
9462 test -z "$ac_dir" && ac_dir=.
9463 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9464 lt_cv_path_LD="$ac_dir/$ac_prog"
9465 # Check to see if the program is GNU ld. I'd rather use --version,
9466 # but apparently some GNU ld's only accept -v.
9467 # Break only if it was the GNU/non-GNU ld that we prefer.
9468 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9469 *GNU* | *'with BFD'*)
9470 test "$with_gnu_ld" != no && break
9471 ;;
9472 *)
9473 test "$with_gnu_ld" != yes && break
9474 ;;
9475 esac
9476 fi
9477 done
9478 IFS="$lt_save_ifs"
9479else
9480 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9481fi
9482fi
9483
9484LD="$lt_cv_path_LD"
9485if test -n "$LD"; then
9486 echo "$as_me:$LINENO: result: $LD" >&5
9487echo "${ECHO_T}$LD" >&6
9488else
9489 echo "$as_me:$LINENO: result: no" >&5
9490echo "${ECHO_T}no" >&6
9491fi
9492test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9493echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9494 { (exit 1); exit 1; }; }
9495echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9496echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9497if test "${lt_cv_prog_gnu_ld+set}" = set; then
9498 echo $ECHO_N "(cached) $ECHO_C" >&6
9499else
9500 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9501case `"$LD" -v 2>&1 </dev/null` in
9502*GNU* | *'with BFD'*)
9503 lt_cv_prog_gnu_ld=yes
9504 ;;
9505*)
9506 lt_cv_prog_gnu_ld=no
9507 ;;
9508esac
9509fi
9510echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9511echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9512with_gnu_ld=$lt_cv_prog_gnu_ld
9513
9514
9515
9516 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9517 # archiving commands below assume that GNU ld is being used.
9518 if test "$with_gnu_ld" = yes; then
9519 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9520 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9521
9522 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9523 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9524
9525 # If archive_cmds runs LD, not CC, wlarc should be empty
9526 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9527 # investigate it a little bit more. (MM)
9528 wlarc='${wl}'
9529
9530 # ancient GNU ld didn't support --whole-archive et. al.
9531 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9532 grep 'no-whole-archive' > /dev/null; then
9533 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9534 else
9535 whole_archive_flag_spec_CXX=
9536 fi
9537 else
9538 with_gnu_ld=no
9539 wlarc=
9540
9541 # A generic and very simple default shared library creation
9542 # command for GNU C++ for the case where it uses the native
9543 # linker, instead of GNU ld. If possible, this setting should
9544 # overridden to take advantage of the native linker features on
9545 # the platform it is being used on.
9546 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9547 fi
9548
9549 # Commands to make compiler produce verbose output that lists
9550 # what "hidden" libraries, object files and flags are used when
9551 # linking a shared library.
9552 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9553
9554else
9555 GXX=no
9556 with_gnu_ld=no
9557 wlarc=
9558fi
9559
9560# PORTME: fill in a description of your system's C++ link characteristics
9561echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9562echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9563ld_shlibs_CXX=yes
9564case $host_os in
9565 aix3*)
9566 # FIXME: insert proper C++ library support
9567 ld_shlibs_CXX=no
9568 ;;
9569 aix4* | aix5*)
9570 if test "$host_cpu" = ia64; then
9571 # On IA64, the linker does run time linking by default, so we don't
9572 # have to do anything special.
9573 aix_use_runtimelinking=no
9574 exp_sym_flag='-Bexport'
9575 no_entry_flag=""
9576 else
9577 aix_use_runtimelinking=no
9578
9579 # Test if we are trying to use run time linking or normal
9580 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9581 # need to do runtime linking.
9582 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9583 for ld_flag in $LDFLAGS; do
9584 case $ld_flag in
9585 *-brtl*)
9586 aix_use_runtimelinking=yes
9587 break
9588 ;;
9589 esac
9590 done
9591 esac
9592
9593 exp_sym_flag='-bexport'
9594 no_entry_flag='-bnoentry'
9595 fi
9596
9597 # When large executables or shared objects are built, AIX ld can
9598 # have problems creating the table of contents. If linking a library
9599 # or program results in "error TOC overflow" add -mminimal-toc to
9600 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9601 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9602
9603 archive_cmds_CXX=''
9604 hardcode_direct_CXX=yes
9605 hardcode_libdir_separator_CXX=':'
9606 link_all_deplibs_CXX=yes
9607
9608 if test "$GXX" = yes; then
9609 case $host_os in aix4.012|aix4.012.*)
9610 # We only want to do this on AIX 4.2 and lower, the check
9611 # below for broken collect2 doesn't work under 4.3+
9612 collect2name=`${CC} -print-prog-name=collect2`
9613 if test -f "$collect2name" && \
9614 strings "$collect2name" | grep resolve_lib_name >/dev/null
9615 then
9616 # We have reworked collect2
9617 hardcode_direct_CXX=yes
9618 else
9619 # We have old collect2
9620 hardcode_direct_CXX=unsupported
9621 # It fails to find uninstalled libraries when the uninstalled
9622 # path is not listed in the libpath. Setting hardcode_minus_L
9623 # to unsupported forces relinking
9624 hardcode_minus_L_CXX=yes
9625 hardcode_libdir_flag_spec_CXX='-L$libdir'
9626 hardcode_libdir_separator_CXX=
9627 fi
9628 esac
9629 shared_flag='-shared'
9630 else
9631 # not using gcc
9632 if test "$host_cpu" = ia64; then
9633 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9634 # chokes on -Wl,-G. The following line is correct:
9635 shared_flag='-G'
9636 else
9637 if test "$aix_use_runtimelinking" = yes; then
9638 shared_flag='${wl}-G'
9639 else
9640 shared_flag='${wl}-bM:SRE'
9641 fi
9642 fi
9643 fi
9644
9645 # It seems that -bexpall does not export symbols beginning with
9646 # underscore (_), so it is better to generate a list of symbols to export.
9647 always_export_symbols_CXX=yes
9648 if test "$aix_use_runtimelinking" = yes; then
9649 # Warning - without using the other runtime loading flags (-brtl),
9650 # -berok will link without error, but may produce a broken library.
9651 allow_undefined_flag_CXX='-berok'
9652 # Determine the default libpath from the value encoded in an empty executable.
9653 cat >conftest.$ac_ext <<_ACEOF
9654#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009655/* confdefs.h. */
9656_ACEOF
9657cat confdefs.h >>conftest.$ac_ext
9658cat >>conftest.$ac_ext <<_ACEOF
9659/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009660
John Criswell47fdd832003-07-14 16:52:07 +00009661int
9662main ()
9663{
9664
9665 ;
9666 return 0;
9667}
9668_ACEOF
9669rm -f conftest.$ac_objext conftest$ac_exeext
9670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9671 (eval $ac_link) 2>&5
9672 ac_status=$?
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); } &&
9675 { ac_try='test -s conftest$ac_exeext'
9676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677 (eval $ac_try) 2>&5
9678 ac_status=$?
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; }; then
9681
9682aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9683}'`
9684# Check for a 64-bit object if we didn't find anything.
9685if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9686}'`; fi
9687else
9688 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009689sed 's/^/| /' conftest.$ac_ext >&5
9690
John Criswell47fdd832003-07-14 16:52:07 +00009691fi
9692rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9693if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9694
9695 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9696
9697 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9698 else
9699 if test "$host_cpu" = ia64; then
9700 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9701 allow_undefined_flag_CXX="-z nodefs"
9702 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9703 else
9704 # Determine the default libpath from the value encoded in an empty executable.
9705 cat >conftest.$ac_ext <<_ACEOF
9706#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009707/* confdefs.h. */
9708_ACEOF
9709cat confdefs.h >>conftest.$ac_ext
9710cat >>conftest.$ac_ext <<_ACEOF
9711/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009712
John Criswell47fdd832003-07-14 16:52:07 +00009713int
9714main ()
9715{
9716
9717 ;
9718 return 0;
9719}
9720_ACEOF
9721rm -f conftest.$ac_objext conftest$ac_exeext
9722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9723 (eval $ac_link) 2>&5
9724 ac_status=$?
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } &&
9727 { ac_try='test -s conftest$ac_exeext'
9728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9729 (eval $ac_try) 2>&5
9730 ac_status=$?
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); }; }; then
9733
9734aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9735}'`
9736# Check for a 64-bit object if we didn't find anything.
9737if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9738}'`; fi
9739else
9740 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009741sed 's/^/| /' conftest.$ac_ext >&5
9742
John Criswell47fdd832003-07-14 16:52:07 +00009743fi
9744rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9745if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9746
9747 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9748 # Warning - without using the other run time loading flags,
9749 # -berok will link without error, but may produce a broken library.
9750 no_undefined_flag_CXX=' ${wl}-bernotok'
9751 allow_undefined_flag_CXX=' ${wl}-berok'
9752 # -bexpall does not export symbols beginning with underscore (_)
9753 always_export_symbols_CXX=yes
9754 # Exported symbols can be pulled into shared objects from archives
9755 whole_archive_flag_spec_CXX=' '
9756 archive_cmds_need_lc_CXX=yes
9757 # This is similar to how AIX traditionally builds it's shared libraries.
9758 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9759 fi
9760 fi
9761 ;;
9762 chorus*)
9763 case $cc_basename in
9764 *)
9765 # FIXME: insert proper C++ library support
9766 ld_shlibs_CXX=no
9767 ;;
9768 esac
9769 ;;
9770
9771 cygwin* | mingw* | pw32*)
9772 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9773 # as there is no search path for DLLs.
9774 hardcode_libdir_flag_spec_CXX='-L$libdir'
9775 allow_undefined_flag_CXX=unsupported
9776 always_export_symbols_CXX=no
9777 enable_shared_with_static_runtimes_CXX=yes
9778
9779 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9780 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9781 # If the export-symbols file already is a .def file (1st line
9782 # is EXPORTS), use it as is; otherwise, prepend...
9783 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9784 cp $export_symbols $output_objdir/$soname.def;
9785 else
9786 echo EXPORTS > $output_objdir/$soname.def;
9787 cat $export_symbols >> $output_objdir/$soname.def;
9788 fi~
9789 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9790 else
9791 ld_shlibs_CXX=no
9792 fi
9793 ;;
9794
9795 darwin* | rhapsody*)
9796 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9797 archive_cmds_need_lc_CXX=no
9798 case "$host_os" in
9799 rhapsody* | darwin1.[012])
9800 allow_undefined_flag_CXX='-undefined suppress'
9801 ;;
9802 *) # Darwin 1.3 on
9803 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9804 ;;
9805 esac
9806 lt_int_apple_cc_single_mod=no
9807 output_verbose_link_cmd='echo'
9808 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9809 lt_int_apple_cc_single_mod=yes
9810 fi
9811 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9812 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9813 else
9814 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9815 fi
9816 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9817
9818 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9819 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9820 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9821 else
9822 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9823 fi
9824 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9825 hardcode_direct_CXX=no
9826 hardcode_automatic_CXX=yes
9827 hardcode_shlibpath_var_CXX=unsupported
9828 whole_archive_flag_spec_CXX='-all_load $convenience'
9829 link_all_deplibs_CXX=yes
9830 fi
9831 ;;
9832
9833 dgux*)
9834 case $cc_basename in
9835 ec++)
9836 # FIXME: insert proper C++ library support
9837 ld_shlibs_CXX=no
9838 ;;
9839 ghcx)
9840 # Green Hills C++ Compiler
9841 # FIXME: insert proper C++ library support
9842 ld_shlibs_CXX=no
9843 ;;
9844 *)
9845 # FIXME: insert proper C++ library support
9846 ld_shlibs_CXX=no
9847 ;;
9848 esac
9849 ;;
9850 freebsd12*)
9851 # C++ shared libraries reported to be fairly broken before switch to ELF
9852 ld_shlibs_CXX=no
9853 ;;
9854 freebsd-elf*)
9855 archive_cmds_need_lc_CXX=no
9856 ;;
9857 freebsd*)
9858 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9859 # conventions
9860 ld_shlibs_CXX=yes
9861 ;;
9862 gnu*)
9863 ;;
9864 hpux9*)
9865 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9866 hardcode_libdir_separator_CXX=:
9867 export_dynamic_flag_spec_CXX='${wl}-E'
9868 hardcode_direct_CXX=yes
9869 hardcode_minus_L_CXX=yes # Not in the search PATH,
9870 # but as the default
9871 # location of the library.
9872
9873 case $cc_basename in
9874 CC)
9875 # FIXME: insert proper C++ library support
9876 ld_shlibs_CXX=no
9877 ;;
9878 aCC)
9879 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9880 # Commands to make compiler produce verbose output that lists
9881 # what "hidden" libraries, object files and flags are used when
9882 # linking a shared library.
9883 #
9884 # There doesn't appear to be a way to prevent this compiler from
9885 # explicitly linking system object files so we need to strip them
9886 # from the output so that they don't get included in the library
9887 # dependencies.
9888 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9889 ;;
9890 *)
9891 if test "$GXX" = yes; then
9892 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9893 else
9894 # FIXME: insert proper C++ library support
9895 ld_shlibs_CXX=no
9896 fi
9897 ;;
9898 esac
9899 ;;
9900 hpux10*|hpux11*)
9901 if test $with_gnu_ld = no; then
9902 case "$host_cpu" in
9903 hppa*64*)
9904 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9905 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9906 hardcode_libdir_separator_CXX=:
9907 ;;
9908 ia64*)
9909 hardcode_libdir_flag_spec_CXX='-L$libdir'
9910 ;;
9911 *)
9912 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9913 hardcode_libdir_separator_CXX=:
9914 export_dynamic_flag_spec_CXX='${wl}-E'
9915 ;;
9916 esac
9917 fi
9918 case "$host_cpu" in
9919 hppa*64*)
9920 hardcode_direct_CXX=no
9921 hardcode_shlibpath_var_CXX=no
9922 ;;
9923 ia64*)
9924 hardcode_direct_CXX=no
9925 hardcode_shlibpath_var_CXX=no
9926 hardcode_minus_L_CXX=yes # Not in the search PATH,
9927 # but as the default
9928 # location of the library.
9929 ;;
9930 *)
9931 hardcode_direct_CXX=yes
9932 hardcode_minus_L_CXX=yes # Not in the search PATH,
9933 # but as the default
9934 # location of the library.
9935 ;;
9936 esac
9937
9938 case $cc_basename in
9939 CC)
9940 # FIXME: insert proper C++ library support
9941 ld_shlibs_CXX=no
9942 ;;
9943 aCC)
9944 case "$host_cpu" in
9945 hppa*64*|ia64*)
9946 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9947 ;;
9948 *)
9949 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9950 ;;
9951 esac
9952 # Commands to make compiler produce verbose output that lists
9953 # what "hidden" libraries, object files and flags are used when
9954 # linking a shared library.
9955 #
9956 # There doesn't appear to be a way to prevent this compiler from
9957 # explicitly linking system object files so we need to strip them
9958 # from the output so that they don't get included in the library
9959 # dependencies.
9960 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9961 ;;
9962 *)
9963 if test "$GXX" = yes; then
9964 if test $with_gnu_ld = no; then
9965 case "$host_cpu" in
9966 ia64*|hppa*64*)
9967 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9968 ;;
9969 *)
9970 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9971 ;;
9972 esac
9973 fi
9974 else
9975 # FIXME: insert proper C++ library support
9976 ld_shlibs_CXX=no
9977 fi
9978 ;;
9979 esac
9980 ;;
9981 irix5* | irix6*)
9982 case $cc_basename in
9983 CC)
9984 # SGI C++
9985 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9986
9987 # Archives containing C++ object files must be created using
9988 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9989 # necessary to make sure instantiated templates are included
9990 # in the archive.
9991 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9992 ;;
9993 *)
9994 if test "$GXX" = yes; then
9995 if test "$with_gnu_ld" = no; then
9996 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9997 else
9998 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
9999 fi
10000 fi
10001 link_all_deplibs_CXX=yes
10002 ;;
10003 esac
10004 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10005 hardcode_libdir_separator_CXX=:
10006 ;;
10007 linux*)
10008 case $cc_basename in
10009 KCC)
10010 # Kuck and Associates, Inc. (KAI) C++ Compiler
10011
10012 # KCC will only create a shared library if the output file
10013 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10014 # to its proper name (with version) after linking.
10015 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10016 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10017 # Commands to make compiler produce verbose output that lists
10018 # what "hidden" libraries, object files and flags are used when
10019 # linking a shared library.
10020 #
10021 # There doesn't appear to be a way to prevent this compiler from
10022 # explicitly linking system object files so we need to strip them
10023 # from the output so that they don't get included in the library
10024 # dependencies.
10025 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10026
10027 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10028 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10029
10030 # Archives containing C++ object files must be created using
10031 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10032 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10033 ;;
10034 icpc)
10035 # Intel C++
10036 with_gnu_ld=yes
10037 archive_cmds_need_lc_CXX=no
10038 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10039 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10040 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10041 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10042 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10043 ;;
10044 cxx)
10045 # Compaq C++
10046 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10047 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10048
10049 runpath_var=LD_RUN_PATH
10050 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10051 hardcode_libdir_separator_CXX=:
10052
10053 # Commands to make compiler produce verbose output that lists
10054 # what "hidden" libraries, object files and flags are used when
10055 # linking a shared library.
10056 #
10057 # There doesn't appear to be a way to prevent this compiler from
10058 # explicitly linking system object files so we need to strip them
10059 # from the output so that they don't get included in the library
10060 # dependencies.
10061 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10062 ;;
10063 esac
10064 ;;
10065 lynxos*)
10066 # FIXME: insert proper C++ library support
10067 ld_shlibs_CXX=no
10068 ;;
10069 m88k*)
10070 # FIXME: insert proper C++ library support
10071 ld_shlibs_CXX=no
10072 ;;
10073 mvs*)
10074 case $cc_basename in
10075 cxx)
10076 # FIXME: insert proper C++ library support
10077 ld_shlibs_CXX=no
10078 ;;
10079 *)
10080 # FIXME: insert proper C++ library support
10081 ld_shlibs_CXX=no
10082 ;;
10083 esac
10084 ;;
10085 netbsd*)
10086 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10087 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10088 wlarc=
10089 hardcode_libdir_flag_spec_CXX='-R$libdir'
10090 hardcode_direct_CXX=yes
10091 hardcode_shlibpath_var_CXX=no
10092 fi
10093 # Workaround some broken pre-1.5 toolchains
10094 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10095 ;;
10096 osf3*)
10097 case $cc_basename in
10098 KCC)
10099 # Kuck and Associates, Inc. (KAI) C++ Compiler
10100
10101 # KCC will only create a shared library if the output file
10102 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10103 # to its proper name (with version) after linking.
10104 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10105
10106 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10107 hardcode_libdir_separator_CXX=:
10108
10109 # Archives containing C++ object files must be created using
10110 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10111 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10112
10113 ;;
10114 RCC)
10115 # Rational C++ 2.4.1
10116 # FIXME: insert proper C++ library support
10117 ld_shlibs_CXX=no
10118 ;;
10119 cxx)
10120 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10121 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10122
10123 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10124 hardcode_libdir_separator_CXX=:
10125
10126 # Commands to make compiler produce verbose output that lists
10127 # what "hidden" libraries, object files and flags are used when
10128 # linking a shared library.
10129 #
10130 # There doesn't appear to be a way to prevent this compiler from
10131 # explicitly linking system object files so we need to strip them
10132 # from the output so that they don't get included in the library
10133 # dependencies.
10134 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10135 ;;
10136 *)
10137 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10138 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10139 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10140
10141 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10142 hardcode_libdir_separator_CXX=:
10143
10144 # Commands to make compiler produce verbose output that lists
10145 # what "hidden" libraries, object files and flags are used when
10146 # linking a shared library.
10147 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10148
10149 else
10150 # FIXME: insert proper C++ library support
10151 ld_shlibs_CXX=no
10152 fi
10153 ;;
10154 esac
10155 ;;
10156 osf4* | osf5*)
10157 case $cc_basename in
10158 KCC)
10159 # Kuck and Associates, Inc. (KAI) C++ Compiler
10160
10161 # KCC will only create a shared library if the output file
10162 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10163 # to its proper name (with version) after linking.
10164 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10165
10166 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10167 hardcode_libdir_separator_CXX=:
10168
10169 # Archives containing C++ object files must be created using
10170 # the KAI C++ compiler.
10171 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10172 ;;
10173 RCC)
10174 # Rational C++ 2.4.1
10175 # FIXME: insert proper C++ library support
10176 ld_shlibs_CXX=no
10177 ;;
10178 cxx)
10179 allow_undefined_flag_CXX=' -expect_unresolved \*'
10180 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10181 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10182 echo "-hidden">> $lib.exp~
10183 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10184 $rm $lib.exp'
10185
10186 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10187 hardcode_libdir_separator_CXX=:
10188
10189 # Commands to make compiler produce verbose output that lists
10190 # what "hidden" libraries, object files and flags are used when
10191 # linking a shared library.
10192 #
10193 # There doesn't appear to be a way to prevent this compiler from
10194 # explicitly linking system object files so we need to strip them
10195 # from the output so that they don't get included in the library
10196 # dependencies.
10197 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10198 ;;
10199 *)
10200 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10201 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10202 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10203
10204 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10205 hardcode_libdir_separator_CXX=:
10206
10207 # Commands to make compiler produce verbose output that lists
10208 # what "hidden" libraries, object files and flags are used when
10209 # linking a shared library.
10210 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10211
10212 else
10213 # FIXME: insert proper C++ library support
10214 ld_shlibs_CXX=no
10215 fi
10216 ;;
10217 esac
10218 ;;
10219 psos*)
10220 # FIXME: insert proper C++ library support
10221 ld_shlibs_CXX=no
10222 ;;
10223 sco*)
10224 archive_cmds_need_lc_CXX=no
10225 case $cc_basename in
10226 CC)
10227 # FIXME: insert proper C++ library support
10228 ld_shlibs_CXX=no
10229 ;;
10230 *)
10231 # FIXME: insert proper C++ library support
10232 ld_shlibs_CXX=no
10233 ;;
10234 esac
10235 ;;
10236 sunos4*)
10237 case $cc_basename in
10238 CC)
10239 # Sun C++ 4.x
10240 # FIXME: insert proper C++ library support
10241 ld_shlibs_CXX=no
10242 ;;
10243 lcc)
10244 # Lucid
10245 # FIXME: insert proper C++ library support
10246 ld_shlibs_CXX=no
10247 ;;
10248 *)
10249 # FIXME: insert proper C++ library support
10250 ld_shlibs_CXX=no
10251 ;;
10252 esac
10253 ;;
10254 solaris*)
10255 case $cc_basename in
10256 CC)
10257 # Sun C++ 4.2, 5.x and Centerline C++
10258 no_undefined_flag_CXX=' -zdefs'
10259 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10260 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10261 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10262
10263 hardcode_libdir_flag_spec_CXX='-R$libdir'
10264 hardcode_shlibpath_var_CXX=no
10265 case $host_os in
10266 solaris2.0-5 | solaris2.0-5.*) ;;
10267 *)
10268 # The C++ compiler is used as linker so we must use $wl
10269 # flag to pass the commands to the underlying system
10270 # linker.
10271 # Supported since Solaris 2.6 (maybe 2.5.1?)
10272 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10273 ;;
10274 esac
10275 link_all_deplibs_CXX=yes
10276
10277 # Commands to make compiler produce verbose output that lists
10278 # what "hidden" libraries, object files and flags are used when
10279 # linking a shared library.
10280 #
10281 # There doesn't appear to be a way to prevent this compiler from
10282 # explicitly linking system object files so we need to strip them
10283 # from the output so that they don't get included in the library
10284 # dependencies.
10285 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10286
10287 # Archives containing C++ object files must be created using
10288 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10289 # necessary to make sure instantiated templates are included
10290 # in the archive.
10291 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10292 ;;
10293 gcx)
10294 # Green Hills C++ Compiler
10295 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10296
10297 # The C++ compiler must be used to create the archive.
10298 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10299 ;;
10300 *)
10301 # GNU C++ compiler with Solaris linker
10302 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10303 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10304 if $CC --version | grep -v '^2\.7' > /dev/null; then
10305 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10306 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10307 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10308
10309 # Commands to make compiler produce verbose output that lists
10310 # what "hidden" libraries, object files and flags are used when
10311 # linking a shared library.
10312 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10313 else
10314 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10315 # platform.
10316 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10317 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10318 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10319
10320 # Commands to make compiler produce verbose output that lists
10321 # what "hidden" libraries, object files and flags are used when
10322 # linking a shared library.
10323 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10324 fi
10325
10326 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10327 fi
10328 ;;
10329 esac
10330 ;;
10331 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10332 archive_cmds_need_lc_CXX=no
10333 ;;
10334 tandem*)
10335 case $cc_basename in
10336 NCC)
10337 # NonStop-UX NCC 3.20
10338 # FIXME: insert proper C++ library support
10339 ld_shlibs_CXX=no
10340 ;;
10341 *)
10342 # FIXME: insert proper C++ library support
10343 ld_shlibs_CXX=no
10344 ;;
10345 esac
10346 ;;
10347 vxworks*)
10348 # FIXME: insert proper C++ library support
10349 ld_shlibs_CXX=no
10350 ;;
10351 *)
10352 # FIXME: insert proper C++ library support
10353 ld_shlibs_CXX=no
10354 ;;
10355esac
10356echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10357echo "${ECHO_T}$ld_shlibs_CXX" >&6
10358test "$ld_shlibs_CXX" = no && can_build_shared=no
10359
10360GCC_CXX="$GXX"
10361LD_CXX="$LD"
10362
10363## CAVEAT EMPTOR:
10364## There is no encapsulation within the following macros, do not change
10365## the running order or otherwise move them around unless you know exactly
10366## what you are doing...
10367
10368cat > conftest.$ac_ext <<EOF
10369class Foo
10370{
10371public:
10372 Foo (void) { a = 0; }
10373private:
10374 int a;
10375};
10376EOF
10377
10378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10379 (eval $ac_compile) 2>&5
10380 ac_status=$?
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); }; then
10383 # Parse the compiler output and extract the necessary
10384 # objects, libraries and library flags.
10385
10386 # Sentinel used to keep track of whether or not we are before
10387 # the conftest object file.
10388 pre_test_object_deps_done=no
10389
10390 # The `*' in the case matches for architectures that use `case' in
10391 # $output_verbose_cmd can trigger glob expansion during the loop
10392 # eval without this substitution.
10393 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10394
10395 for p in `eval $output_verbose_link_cmd`; do
10396 case $p in
10397
10398 -L* | -R* | -l*)
10399 # Some compilers place space between "-{L,R}" and the path.
10400 # Remove the space.
10401 if test $p = "-L" \
10402 || test $p = "-R"; then
10403 prev=$p
10404 continue
10405 else
10406 prev=
10407 fi
10408
10409 if test "$pre_test_object_deps_done" = no; then
10410 case $p in
10411 -L* | -R*)
10412 # Internal compiler library paths should come after those
10413 # provided the user. The postdeps already come after the
10414 # user supplied libs so there is no need to process them.
10415 if test -z "$compiler_lib_search_path_CXX"; then
10416 compiler_lib_search_path_CXX="${prev}${p}"
10417 else
10418 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10419 fi
10420 ;;
10421 # The "-l" case would never come before the object being
10422 # linked, so don't bother handling this case.
10423 esac
10424 else
10425 if test -z "$postdeps_CXX"; then
10426 postdeps_CXX="${prev}${p}"
10427 else
10428 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10429 fi
10430 fi
10431 ;;
10432
10433 *.$objext)
10434 # This assumes that the test object file only shows up
10435 # once in the compiler output.
10436 if test "$p" = "conftest.$objext"; then
10437 pre_test_object_deps_done=yes
10438 continue
10439 fi
10440
10441 if test "$pre_test_object_deps_done" = no; then
10442 if test -z "$predep_objects_CXX"; then
10443 predep_objects_CXX="$p"
10444 else
10445 predep_objects_CXX="$predep_objects_CXX $p"
10446 fi
10447 else
10448 if test -z "$postdep_objects_CXX"; then
10449 postdep_objects_CXX="$p"
10450 else
10451 postdep_objects_CXX="$postdep_objects_CXX $p"
10452 fi
10453 fi
10454 ;;
10455
10456 *) ;; # Ignore the rest.
10457
10458 esac
10459 done
10460
10461 # Clean up.
10462 rm -f a.out a.exe
10463else
10464 echo "libtool.m4: error: problem compiling CXX test program"
10465fi
10466
10467$rm -f confest.$objext
10468
10469case " $postdeps_CXX " in
10470*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10471esac
10472
10473lt_prog_compiler_wl_CXX=
10474lt_prog_compiler_pic_CXX=
10475lt_prog_compiler_static_CXX=
10476
10477echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10478echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10479
10480 # C++ specific cases for pic, static, wl, etc.
10481 if test "$GXX" = yes; then
10482 lt_prog_compiler_wl_CXX='-Wl,'
10483 lt_prog_compiler_static_CXX='-static'
10484
10485 case $host_os in
10486 aix*)
10487 # All AIX code is PIC.
10488 if test "$host_cpu" = ia64; then
10489 # AIX 5 now supports IA64 processor
10490 lt_prog_compiler_static_CXX='-Bstatic'
10491 fi
10492 ;;
10493 amigaos*)
10494 # FIXME: we need at least 68020 code to build shared libraries, but
10495 # adding the `-m68020' flag to GCC prevents building anything better,
10496 # like `-m68040'.
10497 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10498 ;;
10499 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10500 # PIC is the default for these OSes.
10501 ;;
10502 mingw* | os2* | pw32*)
10503 # This hack is so that the source file can tell whether it is being
10504 # built for inclusion in a dll (and should export symbols for example).
10505 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10506 ;;
10507 darwin* | rhapsody*)
10508 # PIC is the default on this platform
10509 # Common symbols not allowed in MH_DYLIB files
10510 lt_prog_compiler_pic_CXX='-fno-common'
10511 ;;
10512 *djgpp*)
10513 # DJGPP does not support shared libraries at all
10514 lt_prog_compiler_pic_CXX=
10515 ;;
10516 sysv4*MP*)
10517 if test -d /usr/nec; then
10518 lt_prog_compiler_pic_CXX=-Kconform_pic
10519 fi
10520 ;;
10521 hpux*)
10522 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10523 # not for PA HP-UX.
10524 case "$host_cpu" in
10525 hppa*64*|ia64*)
10526 ;;
10527 *)
10528 lt_prog_compiler_pic_CXX='-fPIC'
10529 ;;
10530 esac
10531 ;;
10532 *)
10533 lt_prog_compiler_pic_CXX='-fPIC'
10534 ;;
10535 esac
10536 else
10537 case $host_os in
10538 aix4* | aix5*)
10539 # All AIX code is PIC.
10540 if test "$host_cpu" = ia64; then
10541 # AIX 5 now supports IA64 processor
10542 lt_prog_compiler_static_CXX='-Bstatic'
10543 else
10544 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10545 fi
10546 ;;
10547 chorus*)
10548 case $cc_basename in
10549 cxch68)
10550 # Green Hills C++ Compiler
10551 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
10552 ;;
10553 esac
10554 ;;
10555 dgux*)
10556 case $cc_basename in
10557 ec++)
10558 lt_prog_compiler_pic_CXX='-KPIC'
10559 ;;
10560 ghcx)
10561 # Green Hills C++ Compiler
10562 lt_prog_compiler_pic_CXX='-pic'
10563 ;;
10564 *)
10565 ;;
10566 esac
10567 ;;
10568 freebsd*)
10569 # FreeBSD uses GNU C++
10570 ;;
10571 hpux9* | hpux10* | hpux11*)
10572 case $cc_basename in
10573 CC)
10574 lt_prog_compiler_wl_CXX='-Wl,'
10575 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10576 if test "$host_cpu" != ia64; then
10577 lt_prog_compiler_pic_CXX='+Z'
10578 fi
10579 ;;
10580 aCC)
10581 lt_prog_compiler_wl_CXX='-Wl,'
10582 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10583 case "$host_cpu" in
10584 hppa*64*|ia64*)
10585 # +Z the default
10586 ;;
10587 *)
10588 lt_prog_compiler_pic_CXX='+Z'
10589 ;;
10590 esac
10591 ;;
10592 *)
10593 ;;
10594 esac
10595 ;;
10596 irix5* | irix6* | nonstopux*)
10597 case $cc_basename in
10598 CC)
10599 lt_prog_compiler_wl_CXX='-Wl,'
10600 lt_prog_compiler_static_CXX='-non_shared'
10601 # CC pic flag -KPIC is the default.
10602 ;;
10603 *)
10604 ;;
10605 esac
10606 ;;
10607 linux*)
10608 case $cc_basename in
10609 KCC)
10610 # KAI C++ Compiler
10611 lt_prog_compiler_wl_CXX='--backend -Wl,'
10612 lt_prog_compiler_pic_CXX='-fPIC'
10613 ;;
10614 icpc)
10615 # Intel C++
10616 lt_prog_compiler_wl_CXX='-Wl,'
10617 lt_prog_compiler_pic_CXX='-KPIC'
10618 lt_prog_compiler_static_CXX='-static'
10619 ;;
10620 cxx)
10621 # Compaq C++
10622 # Make sure the PIC flag is empty. It appears that all Alpha
10623 # Linux and Compaq Tru64 Unix objects are PIC.
10624 lt_prog_compiler_pic_CXX=
10625 lt_prog_compiler_static_CXX='-non_shared'
10626 ;;
10627 *)
10628 ;;
10629 esac
10630 ;;
10631 lynxos*)
10632 ;;
10633 m88k*)
10634 ;;
10635 mvs*)
10636 case $cc_basename in
10637 cxx)
10638 lt_prog_compiler_pic_CXX='-W c,exportall'
10639 ;;
10640 *)
10641 ;;
10642 esac
10643 ;;
10644 netbsd*)
10645 ;;
10646 osf3* | osf4* | osf5*)
10647 case $cc_basename in
10648 KCC)
10649 lt_prog_compiler_wl_CXX='--backend -Wl,'
10650 ;;
10651 RCC)
10652 # Rational C++ 2.4.1
10653 lt_prog_compiler_pic_CXX='-pic'
10654 ;;
10655 cxx)
10656 # Digital/Compaq C++
10657 lt_prog_compiler_wl_CXX='-Wl,'
10658 # Make sure the PIC flag is empty. It appears that all Alpha
10659 # Linux and Compaq Tru64 Unix objects are PIC.
10660 lt_prog_compiler_pic_CXX=
10661 lt_prog_compiler_static_CXX='-non_shared'
10662 ;;
10663 *)
10664 ;;
10665 esac
10666 ;;
10667 psos*)
10668 ;;
10669 sco*)
10670 case $cc_basename in
10671 CC)
10672 lt_prog_compiler_pic_CXX='-fPIC'
10673 ;;
10674 *)
10675 ;;
10676 esac
10677 ;;
10678 solaris*)
10679 case $cc_basename in
10680 CC)
10681 # Sun C++ 4.2, 5.x and Centerline C++
10682 lt_prog_compiler_pic_CXX='-KPIC'
10683 lt_prog_compiler_static_CXX='-Bstatic'
10684 lt_prog_compiler_wl_CXX='-Qoption ld '
10685 ;;
10686 gcx)
10687 # Green Hills C++ Compiler
10688 lt_prog_compiler_pic_CXX='-PIC'
10689 ;;
10690 *)
10691 ;;
10692 esac
10693 ;;
10694 sunos4*)
10695 case $cc_basename in
10696 CC)
10697 # Sun C++ 4.x
10698 lt_prog_compiler_pic_CXX='-pic'
10699 lt_prog_compiler_static_CXX='-Bstatic'
10700 ;;
10701 lcc)
10702 # Lucid
10703 lt_prog_compiler_pic_CXX='-pic'
10704 ;;
10705 *)
10706 ;;
10707 esac
10708 ;;
10709 tandem*)
10710 case $cc_basename in
10711 NCC)
10712 # NonStop-UX NCC 3.20
10713 lt_prog_compiler_pic_CXX='-KPIC'
10714 ;;
10715 *)
10716 ;;
10717 esac
10718 ;;
10719 unixware*)
10720 ;;
10721 vxworks*)
10722 ;;
10723 *)
10724 lt_prog_compiler_can_build_shared_CXX=no
10725 ;;
10726 esac
10727 fi
10728
10729echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10730echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10731
10732#
10733# Check to make sure the PIC flag actually works.
10734#
10735if test -n "$lt_prog_compiler_pic_CXX"; then
10736 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10737echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10738if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10739 echo $ECHO_N "(cached) $ECHO_C" >&6
10740else
10741 lt_prog_compiler_pic_works_CXX=no
10742 ac_outfile=conftest.$ac_objext
10743 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10744 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10745 # Insert the option either (1) after the last *FLAGS variable, or
10746 # (2) before a word containing "conftest.", or (3) at the end.
10747 # Note that $ac_compile itself does not contain backslashes and begins
10748 # with a dollar sign (not a hyphen), so the echo should work correctly.
10749 # The option is referenced via a variable to avoid confusing sed.
10750 lt_compile=`echo "$ac_compile" | $SED \
10751 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10753 -e 's:$: $lt_compiler_flag:'`
John Criswellffaaf3b2003-09-10 18:38:44 +000010754 (eval echo "\"\$as_me:10754: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010755 (eval "$lt_compile" 2>conftest.err)
10756 ac_status=$?
10757 cat conftest.err >&5
John Criswellffaaf3b2003-09-10 18:38:44 +000010758 echo "$as_me:10758: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010759 if (exit $ac_status) && test -s "$ac_outfile"; then
10760 # The compiler can only warn and ignore the option if not recognized
10761 # So say no if there are warnings
10762 if test ! -s conftest.err; then
10763 lt_prog_compiler_pic_works_CXX=yes
10764 fi
10765 fi
10766 $rm conftest*
10767
10768fi
10769echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10770echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10771
10772if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10773 case $lt_prog_compiler_pic_CXX in
10774 "" | " "*) ;;
10775 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10776 esac
10777else
10778 lt_prog_compiler_pic_CXX=
10779 lt_prog_compiler_can_build_shared_CXX=no
10780fi
10781
10782fi
10783case "$host_os" in
10784 # For platforms which do not support PIC, -DPIC is meaningless:
10785 *djgpp*)
10786 lt_prog_compiler_pic_CXX=
10787 ;;
10788 *)
10789 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10790 ;;
10791esac
10792
10793echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10794echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10795if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10796 echo $ECHO_N "(cached) $ECHO_C" >&6
10797else
10798 lt_cv_prog_compiler_c_o_CXX=no
10799 $rm -r conftest 2>/dev/null
10800 mkdir conftest
10801 cd conftest
10802 mkdir out
10803 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10804
10805 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10806 # that will create temporary files in the current directory regardless of
10807 # the output directory. Thus, making CWD read-only will cause this test
10808 # to fail, enabling locking or at least warning the user not to do parallel
10809 # builds.
10810 chmod -w .
10811
10812 lt_compiler_flag="-o out/conftest2.$ac_objext"
10813 # Insert the option either (1) after the last *FLAGS variable, or
10814 # (2) before a word containing "conftest.", or (3) at the end.
10815 # Note that $ac_compile itself does not contain backslashes and begins
10816 # with a dollar sign (not a hyphen), so the echo should work correctly.
10817 lt_compile=`echo "$ac_compile" | $SED \
10818 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10819 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10820 -e 's:$: $lt_compiler_flag:'`
John Criswellffaaf3b2003-09-10 18:38:44 +000010821 (eval echo "\"\$as_me:10821: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010822 (eval "$lt_compile" 2>out/conftest.err)
10823 ac_status=$?
10824 cat out/conftest.err >&5
John Criswellffaaf3b2003-09-10 18:38:44 +000010825 echo "$as_me:10825: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010826 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10827 then
10828 # The compiler can only warn and ignore the option if not recognized
10829 # So say no if there are warnings
10830 if test ! -s out/conftest.err; then
10831 lt_cv_prog_compiler_c_o_CXX=yes
10832 fi
10833 fi
10834 chmod u+w .
10835 $rm conftest* out/*
10836 rmdir out
10837 cd ..
10838 rmdir conftest
10839 $rm conftest*
10840
10841fi
10842echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10843echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10844
10845
10846hard_links="nottested"
10847if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10848 # do not overwrite the value of need_locks provided by the user
10849 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10850echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10851 hard_links=yes
10852 $rm conftest*
10853 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10854 touch conftest.a
10855 ln conftest.a conftest.b 2>&5 || hard_links=no
10856 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10857 echo "$as_me:$LINENO: result: $hard_links" >&5
10858echo "${ECHO_T}$hard_links" >&6
10859 if test "$hard_links" = no; then
10860 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10861echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10862 need_locks=warn
10863 fi
10864else
10865 need_locks=no
10866fi
10867
10868echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10869echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10870
10871 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10872 case $host_os in
10873 aix4* | aix5*)
10874 # If we're using GNU nm, then we don't want the "-C" option.
10875 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10876 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10877 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10878 else
10879 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10880 fi
10881 ;;
10882 pw32*)
10883 export_symbols_cmds_CXX="$ltdll_cmds"
10884 ;;
10885 cygwin* | mingw*)
10886 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10887 ;;
10888 *)
10889 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10890 ;;
10891 esac
10892
10893echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10894echo "${ECHO_T}$ld_shlibs_CXX" >&6
10895test "$ld_shlibs_CXX" = no && can_build_shared=no
10896
10897variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10898if test "$GCC" = yes; then
10899 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10900fi
10901
10902#
10903# Do we need to explicitly link libc?
10904#
10905case "x$archive_cmds_need_lc_CXX" in
10906x|xyes)
10907 # Assume -lc should be added
10908 archive_cmds_need_lc_CXX=yes
10909
10910 if test "$enable_shared" = yes && test "$GCC" = yes; then
10911 case $archive_cmds_CXX in
10912 *'~'*)
10913 # FIXME: we may have to deal with multi-command sequences.
10914 ;;
10915 '$CC '*)
10916 # Test whether the compiler implicitly links with -lc since on some
10917 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10918 # to ld, don't add -lc before -lgcc.
10919 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10920echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10921 $rm conftest*
10922 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10923
10924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10925 (eval $ac_compile) 2>&5
10926 ac_status=$?
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); } 2>conftest.err; then
10929 soname=conftest
10930 lib=conftest
10931 libobjs=conftest.$ac_objext
10932 deplibs=
10933 wl=$lt_prog_compiler_wl_CXX
10934 compiler_flags=-v
10935 linker_flags=-v
10936 verstring=
10937 output_objdir=.
10938 libname=conftest
10939 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10940 allow_undefined_flag_CXX=
10941 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10942 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10943 ac_status=$?
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); }
10946 then
10947 archive_cmds_need_lc_CXX=no
10948 else
10949 archive_cmds_need_lc_CXX=yes
10950 fi
10951 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10952 else
10953 cat conftest.err 1>&5
10954 fi
10955 $rm conftest*
10956 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10957echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10958 ;;
10959 esac
10960 fi
10961 ;;
10962esac
10963
10964echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10965echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10966hardcode_action_CXX=
10967if test -n "$hardcode_libdir_flag_spec_CXX" || \
10968 test -n "$runpath_var CXX" || \
10969 test "X$hardcode_automatic_CXX"="Xyes" ; then
10970
10971 # We can hardcode non-existant directories.
10972 if test "$hardcode_direct_CXX" != no &&
10973 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10974 # have to relink, otherwise we might link with an installed library
10975 # when we should be linking with a yet-to-be-installed one
10976 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10977 test "$hardcode_minus_L_CXX" != no; then
10978 # Linking always hardcodes the temporary library directory.
10979 hardcode_action_CXX=relink
10980 else
10981 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10982 hardcode_action_CXX=immediate
10983 fi
10984else
10985 # We cannot hardcode anything, or else we can only hardcode existing
10986 # directories.
10987 hardcode_action_CXX=unsupported
10988fi
10989echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10990echo "${ECHO_T}$hardcode_action_CXX" >&6
10991
10992if test "$hardcode_action_CXX" = relink; then
10993 # Fast installation is not supported
10994 enable_fast_install=no
10995elif test "$shlibpath_overrides_runpath" = yes ||
10996 test "$enable_shared" = no; then
10997 # Fast installation is not necessary
10998 enable_fast_install=needless
10999fi
11000
11001striplib=
11002old_striplib=
11003echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11004echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11005if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11006 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11007 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11008 echo "$as_me:$LINENO: result: yes" >&5
11009echo "${ECHO_T}yes" >&6
11010else
11011# FIXME - insert some real tests, host_os isn't really good enough
11012 case $host_os in
11013 darwin*)
11014 if test -n "$STRIP" ; then
11015 striplib="$STRIP -x"
11016 echo "$as_me:$LINENO: result: yes" >&5
11017echo "${ECHO_T}yes" >&6
11018 else
11019 echo "$as_me:$LINENO: result: no" >&5
11020echo "${ECHO_T}no" >&6
11021fi
11022 ;;
11023 *)
11024 echo "$as_me:$LINENO: result: no" >&5
11025echo "${ECHO_T}no" >&6
11026 ;;
11027 esac
11028fi
11029
11030echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11031echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11032library_names_spec=
11033libname_spec='lib$name'
11034soname_spec=
11035shrext=".so"
11036postinstall_cmds=
11037postuninstall_cmds=
11038finish_cmds=
11039finish_eval=
11040shlibpath_var=
11041shlibpath_overrides_runpath=unknown
11042version_type=none
11043dynamic_linker="$host_os ld.so"
11044sys_lib_dlsearch_path_spec="/lib /usr/lib"
11045if test "$GCC" = yes; then
11046 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11047 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11048 # if the path contains ";" then we assume it to be the separator
11049 # otherwise default to the standard path separator (i.e. ":") - it is
11050 # assumed that no part of a normal pathname contains ";" but that should
11051 # okay in the real world where ";" in dirpaths is itself problematic.
11052 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11053 else
11054 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11055 fi
11056else
11057 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11058fi
11059need_lib_prefix=unknown
11060hardcode_into_libs=no
11061
11062# when you set need_version to no, make sure it does not cause -set_version
11063# flags to be left without arguments
11064need_version=unknown
11065
11066case $host_os in
11067aix3*)
11068 version_type=linux
11069 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11070 shlibpath_var=LIBPATH
11071
11072 # AIX 3 has no versioning support, so we append a major version to the name.
11073 soname_spec='${libname}${release}${shared_ext}$major'
11074 ;;
11075
11076aix4* | aix5*)
11077 version_type=linux
11078 need_lib_prefix=no
11079 need_version=no
11080 hardcode_into_libs=yes
11081 if test "$host_cpu" = ia64; then
11082 # AIX 5 supports IA64
11083 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11084 shlibpath_var=LD_LIBRARY_PATH
11085 else
11086 # With GCC up to 2.95.x, collect2 would create an import file
11087 # for dependence libraries. The import file would start with
11088 # the line `#! .'. This would cause the generated library to
11089 # depend on `.', always an invalid library. This was fixed in
11090 # development snapshots of GCC prior to 3.0.
11091 case $host_os in
11092 aix4 | aix4.[01] | aix4.[01].*)
11093 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11094 echo ' yes '
11095 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11096 :
11097 else
11098 can_build_shared=no
11099 fi
11100 ;;
11101 esac
11102 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11103 # soname into executable. Probably we can add versioning support to
11104 # collect2, so additional links can be useful in future.
11105 if test "$aix_use_runtimelinking" = yes; then
11106 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11107 # instead of lib<name>.a to let people know that these are not
11108 # typical AIX shared libraries.
11109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11110 else
11111 # We preserve .a as extension for shared libraries through AIX4.2
11112 # and later when we are not doing run time linking.
11113 library_names_spec='${libname}${release}.a $libname.a'
11114 soname_spec='${libname}${release}${shared_ext}$major'
11115 fi
11116 shlibpath_var=LIBPATH
11117 fi
11118 ;;
11119
11120amigaos*)
11121 library_names_spec='$libname.ixlibrary $libname.a'
11122 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11123 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
11124 ;;
11125
11126beos*)
11127 library_names_spec='${libname}${shared_ext}'
11128 dynamic_linker="$host_os ld.so"
11129 shlibpath_var=LIBRARY_PATH
11130 ;;
11131
11132bsdi4*)
11133 version_type=linux
11134 need_version=no
11135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11136 soname_spec='${libname}${release}${shared_ext}$major'
11137 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11138 shlibpath_var=LD_LIBRARY_PATH
11139 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11140 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11141 # the default ld.so.conf also contains /usr/contrib/lib and
11142 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11143 # libtool to hard-code these into programs
11144 ;;
11145
11146cygwin* | mingw* | pw32*)
11147 version_type=windows
11148 shrext=".dll"
11149 need_version=no
11150 need_lib_prefix=no
11151
11152 case $GCC,$host_os in
11153 yes,cygwin* | yes,mingw* | yes,pw32*)
11154 library_names_spec='$libname.dll.a'
11155 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11156 postinstall_cmds='base_file=`basename \${file}`~
11157 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11158 dldir=$destdir/`dirname \$dlpath`~
11159 test -d \$dldir || mkdir -p \$dldir~
11160 $install_prog $dir/$dlname \$dldir/$dlname'
11161 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11162 dlpath=$dir/\$dldll~
11163 $rm \$dlpath'
11164 shlibpath_overrides_runpath=yes
11165
11166 case $host_os in
11167 cygwin*)
11168 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11169 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11170 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11171 ;;
11172 mingw*)
11173 # MinGW DLLs use traditional 'lib' prefix
11174 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11175 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11176 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11177 # It is most probably a Windows format PATH printed by
11178 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11179 # path with ; separators, and with drive letters. We can handle the
11180 # drive letters (cygwin fileutils understands them), so leave them,
11181 # especially as we might pass files found there to a mingw objdump,
11182 # which wouldn't understand a cygwinified path. Ahh.
11183 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11184 else
11185 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11186 fi
11187 ;;
11188 pw32*)
11189 # pw32 DLLs use 'pw' prefix rather than 'lib'
11190 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11191 ;;
11192 esac
11193 ;;
11194
11195 *)
11196 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11197 ;;
11198 esac
11199 dynamic_linker='Win32 ld.exe'
11200 # FIXME: first we should search . and the directory the executable is in
11201 shlibpath_var=PATH
11202 ;;
11203
11204darwin* | rhapsody*)
11205 dynamic_linker="$host_os dyld"
11206 version_type=darwin
11207 need_lib_prefix=no
11208 need_version=no
11209 # FIXME: Relying on posixy $() will cause problems for
11210 # cross-compilation, but unfortunately the echo tests do not
11211 # yet detect zsh echo's removal of \ escapes.
11212 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11213 soname_spec='${libname}${release}${major}$shared_ext'
11214 shlibpath_overrides_runpath=yes
11215 shlibpath_var=DYLD_LIBRARY_PATH
11216 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11217 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11218 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11219 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11220 fi
11221 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11222 ;;
11223
11224dgux*)
11225 version_type=linux
11226 need_lib_prefix=no
11227 need_version=no
11228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11229 soname_spec='${libname}${release}${shared_ext}$major'
11230 shlibpath_var=LD_LIBRARY_PATH
11231 ;;
11232
11233freebsd1*)
11234 dynamic_linker=no
11235 ;;
11236
11237freebsd*)
11238 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11239 version_type=freebsd-$objformat
11240 case $version_type in
11241 freebsd-elf*)
11242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11243 need_version=no
11244 need_lib_prefix=no
11245 ;;
11246 freebsd-*)
11247 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11248 need_version=yes
11249 ;;
11250 esac
11251 shlibpath_var=LD_LIBRARY_PATH
11252 case $host_os in
11253 freebsd2*)
11254 shlibpath_overrides_runpath=yes
11255 ;;
11256 freebsd3.01* | freebsdelf3.01*)
11257 shlibpath_overrides_runpath=yes
11258 hardcode_into_libs=yes
11259 ;;
11260 *) # from 3.2 on
11261 shlibpath_overrides_runpath=no
11262 hardcode_into_libs=yes
11263 ;;
11264 esac
11265 ;;
11266
11267gnu*)
11268 version_type=linux
11269 need_lib_prefix=no
11270 need_version=no
11271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11272 soname_spec='${libname}${release}${shared_ext}$major'
11273 shlibpath_var=LD_LIBRARY_PATH
11274 hardcode_into_libs=yes
11275 ;;
11276
11277hpux9* | hpux10* | hpux11*)
11278 # Give a soname corresponding to the major version so that dld.sl refuses to
11279 # link against other versions.
11280 version_type=sunos
11281 need_lib_prefix=no
11282 need_version=no
11283 case "$host_cpu" in
11284 ia64*)
11285 shrext='.so'
11286 hardcode_into_libs=yes
11287 dynamic_linker="$host_os dld.so"
11288 shlibpath_var=LD_LIBRARY_PATH
11289 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11291 soname_spec='${libname}${release}${shared_ext}$major'
11292 if test "X$HPUX_IA64_MODE" = X32; then
11293 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11294 else
11295 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11296 fi
11297 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11298 ;;
11299 hppa*64*)
11300 shrext='.sl'
11301 hardcode_into_libs=yes
11302 dynamic_linker="$host_os dld.sl"
11303 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11304 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11306 soname_spec='${libname}${release}${shared_ext}$major'
11307 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11308 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11309 ;;
11310 *)
11311 shrext='.sl'
11312 dynamic_linker="$host_os dld.sl"
11313 shlibpath_var=SHLIB_PATH
11314 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11316 soname_spec='${libname}${release}${shared_ext}$major'
11317 ;;
11318 esac
11319 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11320 postinstall_cmds='chmod 555 $lib'
11321 ;;
11322
11323irix5* | irix6* | nonstopux*)
11324 case $host_os in
11325 nonstopux*) version_type=nonstopux ;;
11326 *)
11327 if test "$lt_cv_prog_gnu_ld" = yes; then
11328 version_type=linux
11329 else
11330 version_type=irix
11331 fi ;;
11332 esac
11333 need_lib_prefix=no
11334 need_version=no
11335 soname_spec='${libname}${release}${shared_ext}$major'
11336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11337 case $host_os in
11338 irix5* | nonstopux*)
11339 libsuff= shlibsuff=
11340 ;;
11341 *)
11342 case $LD in # libtool.m4 will add one of these switches to LD
11343 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11344 libsuff= shlibsuff= libmagic=32-bit;;
11345 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11346 libsuff=32 shlibsuff=N32 libmagic=N32;;
11347 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11348 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11349 *) libsuff= shlibsuff= libmagic=never-match;;
11350 esac
11351 ;;
11352 esac
11353 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11354 shlibpath_overrides_runpath=no
11355 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11356 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11357 hardcode_into_libs=yes
11358 ;;
11359
11360# No shared lib support for Linux oldld, aout, or coff.
11361linux*oldld* | linux*aout* | linux*coff*)
11362 dynamic_linker=no
11363 ;;
11364
11365# This must be Linux ELF.
11366linux*)
11367 version_type=linux
11368 need_lib_prefix=no
11369 need_version=no
11370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11371 soname_spec='${libname}${release}${shared_ext}$major'
11372 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11373 shlibpath_var=LD_LIBRARY_PATH
11374 shlibpath_overrides_runpath=no
11375 # This implies no fast_install, which is unacceptable.
11376 # Some rework will be needed to allow for fast_install
11377 # before this can be enabled.
11378 hardcode_into_libs=yes
11379
11380 # We used to test for /lib/ld.so.1 and disable shared libraries on
11381 # powerpc, because MkLinux only supported shared libraries with the
11382 # GNU dynamic linker. Since this was broken with cross compilers,
11383 # most powerpc-linux boxes support dynamic linking these days and
11384 # people can always --disable-shared, the test was removed, and we
11385 # assume the GNU/Linux dynamic linker is in use.
11386 dynamic_linker='GNU/Linux ld.so'
11387 ;;
11388
11389netbsd*)
11390 version_type=sunos
11391 need_lib_prefix=no
11392 need_version=no
11393 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11395 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11396 dynamic_linker='NetBSD (a.out) ld.so'
11397 else
11398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11399 soname_spec='${libname}${release}${shared_ext}$major'
11400 dynamic_linker='NetBSD ld.elf_so'
11401 fi
11402 shlibpath_var=LD_LIBRARY_PATH
11403 shlibpath_overrides_runpath=yes
11404 hardcode_into_libs=yes
11405 ;;
11406
11407newsos6)
11408 version_type=linux
11409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11410 shlibpath_var=LD_LIBRARY_PATH
11411 shlibpath_overrides_runpath=yes
11412 ;;
11413
11414nto-qnx)
11415 version_type=linux
11416 need_lib_prefix=no
11417 need_version=no
11418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11419 soname_spec='${libname}${release}${shared_ext}$major'
11420 shlibpath_var=LD_LIBRARY_PATH
11421 shlibpath_overrides_runpath=yes
11422 ;;
11423
11424openbsd*)
11425 version_type=sunos
11426 need_lib_prefix=no
11427 need_version=no
11428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11429 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11430 shlibpath_var=LD_LIBRARY_PATH
11431 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11432 case $host_os in
11433 openbsd2.[89] | openbsd2.[89].*)
11434 shlibpath_overrides_runpath=no
11435 ;;
11436 *)
11437 shlibpath_overrides_runpath=yes
11438 ;;
11439 esac
11440 else
11441 shlibpath_overrides_runpath=yes
11442 fi
11443 ;;
11444
11445os2*)
11446 libname_spec='$name'
11447 shrext=".dll"
11448 need_lib_prefix=no
11449 library_names_spec='$libname${shared_ext} $libname.a'
11450 dynamic_linker='OS/2 ld.exe'
11451 shlibpath_var=LIBPATH
11452 ;;
11453
11454osf3* | osf4* | osf5*)
11455 version_type=osf
11456 need_lib_prefix=no
11457 need_version=no
11458 soname_spec='${libname}${release}${shared_ext}$major'
11459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11460 shlibpath_var=LD_LIBRARY_PATH
11461 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11462 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11463 ;;
11464
11465sco3.2v5*)
11466 version_type=osf
11467 soname_spec='${libname}${release}${shared_ext}$major'
11468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11469 shlibpath_var=LD_LIBRARY_PATH
11470 ;;
11471
11472solaris*)
11473 version_type=linux
11474 need_lib_prefix=no
11475 need_version=no
11476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11477 soname_spec='${libname}${release}${shared_ext}$major'
11478 shlibpath_var=LD_LIBRARY_PATH
11479 shlibpath_overrides_runpath=yes
11480 hardcode_into_libs=yes
11481 # ldd complains unless libraries are executable
11482 postinstall_cmds='chmod +x $lib'
11483 ;;
11484
11485sunos4*)
11486 version_type=sunos
11487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11488 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11489 shlibpath_var=LD_LIBRARY_PATH
11490 shlibpath_overrides_runpath=yes
11491 if test "$with_gnu_ld" = yes; then
11492 need_lib_prefix=no
11493 fi
11494 need_version=yes
11495 ;;
11496
11497sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11498 version_type=linux
11499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11500 soname_spec='${libname}${release}${shared_ext}$major'
11501 shlibpath_var=LD_LIBRARY_PATH
11502 case $host_vendor in
11503 sni)
11504 shlibpath_overrides_runpath=no
11505 need_lib_prefix=no
11506 export_dynamic_flag_spec='${wl}-Blargedynsym'
11507 runpath_var=LD_RUN_PATH
11508 ;;
11509 siemens)
11510 need_lib_prefix=no
11511 ;;
11512 motorola)
11513 need_lib_prefix=no
11514 need_version=no
11515 shlibpath_overrides_runpath=no
11516 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11517 ;;
11518 esac
11519 ;;
11520
11521sysv4*MP*)
11522 if test -d /usr/nec ;then
11523 version_type=linux
11524 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11525 soname_spec='$libname${shared_ext}.$major'
11526 shlibpath_var=LD_LIBRARY_PATH
11527 fi
11528 ;;
11529
11530uts4*)
11531 version_type=linux
11532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11533 soname_spec='${libname}${release}${shared_ext}$major'
11534 shlibpath_var=LD_LIBRARY_PATH
11535 ;;
11536
11537*)
11538 dynamic_linker=no
11539 ;;
11540esac
11541echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11542echo "${ECHO_T}$dynamic_linker" >&6
11543test "$dynamic_linker" = no && can_build_shared=no
11544
11545if test "x$enable_dlopen" != xyes; then
11546 enable_dlopen=unknown
11547 enable_dlopen_self=unknown
11548 enable_dlopen_self_static=unknown
11549else
11550 lt_cv_dlopen=no
11551 lt_cv_dlopen_libs=
11552
11553 case $host_os in
11554 beos*)
11555 lt_cv_dlopen="load_add_on"
11556 lt_cv_dlopen_libs=
11557 lt_cv_dlopen_self=yes
11558 ;;
11559
11560 mingw* | pw32*)
11561 lt_cv_dlopen="LoadLibrary"
11562 lt_cv_dlopen_libs=
11563 ;;
11564
11565 cygwin*)
11566 lt_cv_dlopen="dlopen"
11567 lt_cv_dlopen_libs=
11568 ;;
11569
11570 darwin*)
11571 # if libdl is installed we need to link against it
11572 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11573echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11574if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11575 echo $ECHO_N "(cached) $ECHO_C" >&6
11576else
11577 ac_check_lib_save_LIBS=$LIBS
11578LIBS="-ldl $LIBS"
11579cat >conftest.$ac_ext <<_ACEOF
11580#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011581/* confdefs.h. */
11582_ACEOF
11583cat confdefs.h >>conftest.$ac_ext
11584cat >>conftest.$ac_ext <<_ACEOF
11585/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011586
11587/* Override any gcc2 internal prototype to avoid an error. */
11588#ifdef __cplusplus
11589extern "C"
11590#endif
11591/* We use char because int might match the return type of a gcc2
11592 builtin and then its argument prototype would still apply. */
11593char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011594int
11595main ()
11596{
11597dlopen ();
11598 ;
11599 return 0;
11600}
11601_ACEOF
11602rm -f conftest.$ac_objext conftest$ac_exeext
11603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11604 (eval $ac_link) 2>&5
11605 ac_status=$?
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); } &&
11608 { ac_try='test -s conftest$ac_exeext'
11609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11610 (eval $ac_try) 2>&5
11611 ac_status=$?
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); }; }; then
11614 ac_cv_lib_dl_dlopen=yes
11615else
11616 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011617sed 's/^/| /' conftest.$ac_ext >&5
11618
John Criswell47fdd832003-07-14 16:52:07 +000011619ac_cv_lib_dl_dlopen=no
11620fi
11621rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11622LIBS=$ac_check_lib_save_LIBS
11623fi
11624echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11625echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11626if test $ac_cv_lib_dl_dlopen = yes; then
11627 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11628else
11629
11630 lt_cv_dlopen="dyld"
11631 lt_cv_dlopen_libs=
11632 lt_cv_dlopen_self=yes
11633
11634fi
11635
11636 ;;
11637
11638 *)
11639 echo "$as_me:$LINENO: checking for shl_load" >&5
11640echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11641if test "${ac_cv_func_shl_load+set}" = set; then
11642 echo $ECHO_N "(cached) $ECHO_C" >&6
11643else
11644 cat >conftest.$ac_ext <<_ACEOF
11645#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011646/* confdefs.h. */
11647_ACEOF
11648cat confdefs.h >>conftest.$ac_ext
11649cat >>conftest.$ac_ext <<_ACEOF
11650/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011651/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011652 which can conflict with char shl_load (); below.
11653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11654 <limits.h> exists even on freestanding compilers. */
11655#ifdef __STDC__
11656# include <limits.h>
11657#else
11658# include <assert.h>
11659#endif
John Criswell47fdd832003-07-14 16:52:07 +000011660/* Override any gcc2 internal prototype to avoid an error. */
11661#ifdef __cplusplus
11662extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011663{
John Criswell47fdd832003-07-14 16:52:07 +000011664#endif
11665/* We use char because int might match the return type of a gcc2
11666 builtin and then its argument prototype would still apply. */
11667char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011668/* The GNU C library defines this for functions which it implements
11669 to always fail with ENOSYS. Some functions are actually named
11670 something starting with __ and the normal name is an alias. */
11671#if defined (__stub_shl_load) || defined (__stub___shl_load)
11672choke me
11673#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011674char (*f) () = shl_load;
11675#endif
11676#ifdef __cplusplus
11677}
John Criswell47fdd832003-07-14 16:52:07 +000011678#endif
11679
John Criswell0c38eaf2003-09-10 15:17:25 +000011680int
11681main ()
11682{
11683return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011684 ;
11685 return 0;
11686}
11687_ACEOF
11688rm -f conftest.$ac_objext conftest$ac_exeext
11689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11690 (eval $ac_link) 2>&5
11691 ac_status=$?
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); } &&
11694 { ac_try='test -s conftest$ac_exeext'
11695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11696 (eval $ac_try) 2>&5
11697 ac_status=$?
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); }; }; then
11700 ac_cv_func_shl_load=yes
11701else
11702 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011703sed 's/^/| /' conftest.$ac_ext >&5
11704
John Criswell47fdd832003-07-14 16:52:07 +000011705ac_cv_func_shl_load=no
11706fi
11707rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11708fi
11709echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11710echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11711if test $ac_cv_func_shl_load = yes; then
11712 lt_cv_dlopen="shl_load"
11713else
11714 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11715echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11716if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11717 echo $ECHO_N "(cached) $ECHO_C" >&6
11718else
11719 ac_check_lib_save_LIBS=$LIBS
11720LIBS="-ldld $LIBS"
11721cat >conftest.$ac_ext <<_ACEOF
11722#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011723/* confdefs.h. */
11724_ACEOF
11725cat confdefs.h >>conftest.$ac_ext
11726cat >>conftest.$ac_ext <<_ACEOF
11727/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011728
11729/* Override any gcc2 internal prototype to avoid an error. */
11730#ifdef __cplusplus
11731extern "C"
11732#endif
11733/* We use char because int might match the return type of a gcc2
11734 builtin and then its argument prototype would still apply. */
11735char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011736int
11737main ()
11738{
11739shl_load ();
11740 ;
11741 return 0;
11742}
11743_ACEOF
11744rm -f conftest.$ac_objext conftest$ac_exeext
11745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11746 (eval $ac_link) 2>&5
11747 ac_status=$?
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); } &&
11750 { ac_try='test -s conftest$ac_exeext'
11751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11752 (eval $ac_try) 2>&5
11753 ac_status=$?
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); }; }; then
11756 ac_cv_lib_dld_shl_load=yes
11757else
11758 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011759sed 's/^/| /' conftest.$ac_ext >&5
11760
John Criswell47fdd832003-07-14 16:52:07 +000011761ac_cv_lib_dld_shl_load=no
11762fi
11763rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11764LIBS=$ac_check_lib_save_LIBS
11765fi
11766echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11767echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11768if test $ac_cv_lib_dld_shl_load = yes; then
11769 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11770else
11771 echo "$as_me:$LINENO: checking for dlopen" >&5
11772echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11773if test "${ac_cv_func_dlopen+set}" = set; then
11774 echo $ECHO_N "(cached) $ECHO_C" >&6
11775else
11776 cat >conftest.$ac_ext <<_ACEOF
11777#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011778/* confdefs.h. */
11779_ACEOF
11780cat confdefs.h >>conftest.$ac_ext
11781cat >>conftest.$ac_ext <<_ACEOF
11782/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011783/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011784 which can conflict with char dlopen (); below.
11785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11786 <limits.h> exists even on freestanding compilers. */
11787#ifdef __STDC__
11788# include <limits.h>
11789#else
11790# include <assert.h>
11791#endif
John Criswell47fdd832003-07-14 16:52:07 +000011792/* Override any gcc2 internal prototype to avoid an error. */
11793#ifdef __cplusplus
11794extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011795{
John Criswell47fdd832003-07-14 16:52:07 +000011796#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 dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011800/* The GNU C library defines this for functions which it implements
11801 to always fail with ENOSYS. Some functions are actually named
11802 something starting with __ and the normal name is an alias. */
11803#if defined (__stub_dlopen) || defined (__stub___dlopen)
11804choke me
11805#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011806char (*f) () = dlopen;
11807#endif
11808#ifdef __cplusplus
11809}
John Criswell47fdd832003-07-14 16:52:07 +000011810#endif
11811
John Criswell0c38eaf2003-09-10 15:17:25 +000011812int
11813main ()
11814{
11815return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011816 ;
11817 return 0;
11818}
11819_ACEOF
11820rm -f conftest.$ac_objext conftest$ac_exeext
11821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11822 (eval $ac_link) 2>&5
11823 ac_status=$?
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); } &&
11826 { ac_try='test -s conftest$ac_exeext'
11827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11828 (eval $ac_try) 2>&5
11829 ac_status=$?
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); }; }; then
11832 ac_cv_func_dlopen=yes
11833else
11834 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011835sed 's/^/| /' conftest.$ac_ext >&5
11836
John Criswell47fdd832003-07-14 16:52:07 +000011837ac_cv_func_dlopen=no
11838fi
11839rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11840fi
11841echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11842echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11843if test $ac_cv_func_dlopen = yes; then
11844 lt_cv_dlopen="dlopen"
11845else
11846 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11847echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11848if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11849 echo $ECHO_N "(cached) $ECHO_C" >&6
11850else
11851 ac_check_lib_save_LIBS=$LIBS
11852LIBS="-ldl $LIBS"
11853cat >conftest.$ac_ext <<_ACEOF
11854#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011855/* confdefs.h. */
11856_ACEOF
11857cat confdefs.h >>conftest.$ac_ext
11858cat >>conftest.$ac_ext <<_ACEOF
11859/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011860
11861/* Override any gcc2 internal prototype to avoid an error. */
11862#ifdef __cplusplus
11863extern "C"
11864#endif
11865/* We use char because int might match the return type of a gcc2
11866 builtin and then its argument prototype would still apply. */
11867char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011868int
11869main ()
11870{
11871dlopen ();
11872 ;
11873 return 0;
11874}
11875_ACEOF
11876rm -f conftest.$ac_objext conftest$ac_exeext
11877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11878 (eval $ac_link) 2>&5
11879 ac_status=$?
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); } &&
11882 { ac_try='test -s conftest$ac_exeext'
11883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884 (eval $ac_try) 2>&5
11885 ac_status=$?
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); }; }; then
11888 ac_cv_lib_dl_dlopen=yes
11889else
11890 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011891sed 's/^/| /' conftest.$ac_ext >&5
11892
John Criswell47fdd832003-07-14 16:52:07 +000011893ac_cv_lib_dl_dlopen=no
11894fi
11895rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11896LIBS=$ac_check_lib_save_LIBS
11897fi
11898echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11899echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11900if test $ac_cv_lib_dl_dlopen = yes; then
11901 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11902else
11903 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11904echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11905if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11906 echo $ECHO_N "(cached) $ECHO_C" >&6
11907else
11908 ac_check_lib_save_LIBS=$LIBS
11909LIBS="-lsvld $LIBS"
11910cat >conftest.$ac_ext <<_ACEOF
11911#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011912/* confdefs.h. */
11913_ACEOF
11914cat confdefs.h >>conftest.$ac_ext
11915cat >>conftest.$ac_ext <<_ACEOF
11916/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011917
11918/* Override any gcc2 internal prototype to avoid an error. */
11919#ifdef __cplusplus
11920extern "C"
11921#endif
11922/* We use char because int might match the return type of a gcc2
11923 builtin and then its argument prototype would still apply. */
11924char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011925int
11926main ()
11927{
11928dlopen ();
11929 ;
11930 return 0;
11931}
11932_ACEOF
11933rm -f conftest.$ac_objext conftest$ac_exeext
11934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11935 (eval $ac_link) 2>&5
11936 ac_status=$?
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); } &&
11939 { ac_try='test -s conftest$ac_exeext'
11940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941 (eval $ac_try) 2>&5
11942 ac_status=$?
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; }; then
11945 ac_cv_lib_svld_dlopen=yes
11946else
11947 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011948sed 's/^/| /' conftest.$ac_ext >&5
11949
John Criswell47fdd832003-07-14 16:52:07 +000011950ac_cv_lib_svld_dlopen=no
11951fi
11952rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11953LIBS=$ac_check_lib_save_LIBS
11954fi
11955echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11956echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11957if test $ac_cv_lib_svld_dlopen = yes; then
11958 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11959else
11960 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11961echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11962if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11963 echo $ECHO_N "(cached) $ECHO_C" >&6
11964else
11965 ac_check_lib_save_LIBS=$LIBS
11966LIBS="-ldld $LIBS"
11967cat >conftest.$ac_ext <<_ACEOF
11968#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011969/* confdefs.h. */
11970_ACEOF
11971cat confdefs.h >>conftest.$ac_ext
11972cat >>conftest.$ac_ext <<_ACEOF
11973/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011974
11975/* Override any gcc2 internal prototype to avoid an error. */
11976#ifdef __cplusplus
11977extern "C"
11978#endif
11979/* We use char because int might match the return type of a gcc2
11980 builtin and then its argument prototype would still apply. */
11981char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000011982int
11983main ()
11984{
11985dld_link ();
11986 ;
11987 return 0;
11988}
11989_ACEOF
11990rm -f conftest.$ac_objext conftest$ac_exeext
11991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11992 (eval $ac_link) 2>&5
11993 ac_status=$?
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); } &&
11996 { ac_try='test -s conftest$ac_exeext'
11997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998 (eval $ac_try) 2>&5
11999 ac_status=$?
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); }; }; then
12002 ac_cv_lib_dld_dld_link=yes
12003else
12004 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012005sed 's/^/| /' conftest.$ac_ext >&5
12006
John Criswell47fdd832003-07-14 16:52:07 +000012007ac_cv_lib_dld_dld_link=no
12008fi
12009rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12010LIBS=$ac_check_lib_save_LIBS
12011fi
12012echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12013echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12014if test $ac_cv_lib_dld_dld_link = yes; then
12015 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12016fi
12017
12018
12019fi
12020
12021
12022fi
12023
12024
12025fi
12026
12027
12028fi
12029
12030
12031fi
12032
12033 ;;
12034 esac
12035
12036 if test "x$lt_cv_dlopen" != xno; then
12037 enable_dlopen=yes
12038 else
12039 enable_dlopen=no
12040 fi
12041
12042 case $lt_cv_dlopen in
12043 dlopen)
12044 save_CPPFLAGS="$CPPFLAGS"
12045 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12046
12047 save_LDFLAGS="$LDFLAGS"
12048 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12049
12050 save_LIBS="$LIBS"
12051 LIBS="$lt_cv_dlopen_libs $LIBS"
12052
12053 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12054echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12055if test "${lt_cv_dlopen_self+set}" = set; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12057else
12058 if test "$cross_compiling" = yes; then :
12059 lt_cv_dlopen_self=cross
12060else
12061 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12062 lt_status=$lt_dlunknown
12063 cat > conftest.$ac_ext <<EOF
John Criswellffaaf3b2003-09-10 18:38:44 +000012064#line 12064 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012065#include "confdefs.h"
12066
12067#if HAVE_DLFCN_H
12068#include <dlfcn.h>
12069#endif
12070
12071#include <stdio.h>
12072
12073#ifdef RTLD_GLOBAL
12074# define LT_DLGLOBAL RTLD_GLOBAL
12075#else
12076# ifdef DL_GLOBAL
12077# define LT_DLGLOBAL DL_GLOBAL
12078# else
12079# define LT_DLGLOBAL 0
12080# endif
12081#endif
12082
12083/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12084 find out it does not work in some platform. */
12085#ifndef LT_DLLAZY_OR_NOW
12086# ifdef RTLD_LAZY
12087# define LT_DLLAZY_OR_NOW RTLD_LAZY
12088# else
12089# ifdef DL_LAZY
12090# define LT_DLLAZY_OR_NOW DL_LAZY
12091# else
12092# ifdef RTLD_NOW
12093# define LT_DLLAZY_OR_NOW RTLD_NOW
12094# else
12095# ifdef DL_NOW
12096# define LT_DLLAZY_OR_NOW DL_NOW
12097# else
12098# define LT_DLLAZY_OR_NOW 0
12099# endif
12100# endif
12101# endif
12102# endif
12103#endif
12104
12105#ifdef __cplusplus
12106extern "C" void exit (int);
12107#endif
12108
12109void fnord() { int i=42;}
12110int main ()
12111{
12112 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12113 int status = $lt_dlunknown;
12114
12115 if (self)
12116 {
12117 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12118 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12119 /* dlclose (self); */
12120 }
12121
12122 exit (status);
12123}
12124EOF
12125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12126 (eval $ac_link) 2>&5
12127 ac_status=$?
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12130 (./conftest; exit; ) 2>/dev/null
12131 lt_status=$?
12132 case x$lt_status in
12133 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12134 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12135 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12136 esac
12137 else :
12138 # compilation failed
12139 lt_cv_dlopen_self=no
12140 fi
12141fi
12142rm -fr conftest*
12143
12144
12145fi
12146echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12147echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12148
12149 if test "x$lt_cv_dlopen_self" = xyes; then
12150 LDFLAGS="$LDFLAGS $link_static_flag"
12151 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12152echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12153if test "${lt_cv_dlopen_self_static+set}" = set; then
12154 echo $ECHO_N "(cached) $ECHO_C" >&6
12155else
12156 if test "$cross_compiling" = yes; then :
12157 lt_cv_dlopen_self_static=cross
12158else
12159 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12160 lt_status=$lt_dlunknown
12161 cat > conftest.$ac_ext <<EOF
John Criswellffaaf3b2003-09-10 18:38:44 +000012162#line 12162 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012163#include "confdefs.h"
12164
12165#if HAVE_DLFCN_H
12166#include <dlfcn.h>
12167#endif
12168
12169#include <stdio.h>
12170
12171#ifdef RTLD_GLOBAL
12172# define LT_DLGLOBAL RTLD_GLOBAL
12173#else
12174# ifdef DL_GLOBAL
12175# define LT_DLGLOBAL DL_GLOBAL
12176# else
12177# define LT_DLGLOBAL 0
12178# endif
12179#endif
12180
12181/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12182 find out it does not work in some platform. */
12183#ifndef LT_DLLAZY_OR_NOW
12184# ifdef RTLD_LAZY
12185# define LT_DLLAZY_OR_NOW RTLD_LAZY
12186# else
12187# ifdef DL_LAZY
12188# define LT_DLLAZY_OR_NOW DL_LAZY
12189# else
12190# ifdef RTLD_NOW
12191# define LT_DLLAZY_OR_NOW RTLD_NOW
12192# else
12193# ifdef DL_NOW
12194# define LT_DLLAZY_OR_NOW DL_NOW
12195# else
12196# define LT_DLLAZY_OR_NOW 0
12197# endif
12198# endif
12199# endif
12200# endif
12201#endif
12202
12203#ifdef __cplusplus
12204extern "C" void exit (int);
12205#endif
12206
12207void fnord() { int i=42;}
12208int main ()
12209{
12210 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12211 int status = $lt_dlunknown;
12212
12213 if (self)
12214 {
12215 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12216 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12217 /* dlclose (self); */
12218 }
12219
12220 exit (status);
12221}
12222EOF
12223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12224 (eval $ac_link) 2>&5
12225 ac_status=$?
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12228 (./conftest; exit; ) 2>/dev/null
12229 lt_status=$?
12230 case x$lt_status in
12231 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12232 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12233 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12234 esac
12235 else :
12236 # compilation failed
12237 lt_cv_dlopen_self_static=no
12238 fi
12239fi
12240rm -fr conftest*
12241
12242
12243fi
12244echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12245echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12246 fi
12247
12248 CPPFLAGS="$save_CPPFLAGS"
12249 LDFLAGS="$save_LDFLAGS"
12250 LIBS="$save_LIBS"
12251 ;;
12252 esac
12253
12254 case $lt_cv_dlopen_self in
12255 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12256 *) enable_dlopen_self=unknown ;;
12257 esac
12258
12259 case $lt_cv_dlopen_self_static in
12260 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12261 *) enable_dlopen_self_static=unknown ;;
12262 esac
12263fi
12264
12265
12266# The else clause should only fire when bootstrapping the
12267# libtool distribution, otherwise you forgot to ship ltmain.sh
12268# with your package, and you will get complaints that there are
12269# no rules to generate ltmain.sh.
12270if test -f "$ltmain"; then
12271 # See if we are running on zsh, and set the options which allow our commands through
12272 # without removal of \ escapes.
12273 if test -n "${ZSH_VERSION+set}" ; then
12274 setopt NO_GLOB_SUBST
12275 fi
12276 # Now quote all the things that may contain metacharacters while being
12277 # careful not to overquote the AC_SUBSTed values. We take copies of the
12278 # variables and quote the copies for generation of the libtool script.
12279 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12280 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12281 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12282 deplibs_check_method reload_flag reload_cmds need_locks \
12283 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12284 lt_cv_sys_global_symbol_to_c_name_address \
12285 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12286 old_postinstall_cmds old_postuninstall_cmds \
12287 compiler_CXX \
12288 CC_CXX \
12289 LD_CXX \
12290 lt_prog_compiler_wl_CXX \
12291 lt_prog_compiler_pic_CXX \
12292 lt_prog_compiler_static_CXX \
12293 lt_prog_compiler_no_builtin_flag_CXX \
12294 export_dynamic_flag_spec_CXX \
12295 thread_safe_flag_spec_CXX \
12296 whole_archive_flag_spec_CXX \
12297 enable_shared_with_static_runtimes_CXX \
12298 old_archive_cmds_CXX \
12299 old_archive_from_new_cmds_CXX \
12300 predep_objects_CXX \
12301 postdep_objects_CXX \
12302 predeps_CXX \
12303 postdeps_CXX \
12304 compiler_lib_search_path_CXX \
12305 archive_cmds_CXX \
12306 archive_expsym_cmds_CXX \
12307 postinstall_cmds_CXX \
12308 postuninstall_cmds_CXX \
12309 old_archive_from_expsyms_cmds_CXX \
12310 allow_undefined_flag_CXX \
12311 no_undefined_flag_CXX \
12312 export_symbols_cmds_CXX \
12313 hardcode_libdir_flag_spec_CXX \
12314 hardcode_libdir_flag_spec_ld_CXX \
12315 hardcode_libdir_separator_CXX \
12316 hardcode_automatic_CXX \
12317 module_cmds_CXX \
12318 module_expsym_cmds_CXX \
12319 lt_cv_prog_compiler_c_o_CXX \
12320 exclude_expsyms_CXX \
12321 include_expsyms_CXX; do
12322
12323 case $var in
12324 old_archive_cmds_CXX | \
12325 old_archive_from_new_cmds_CXX | \
12326 archive_cmds_CXX | \
12327 archive_expsym_cmds_CXX | \
12328 module_cmds_CXX | \
12329 module_expsym_cmds_CXX | \
12330 old_archive_from_expsyms_cmds_CXX | \
12331 export_symbols_cmds_CXX | \
12332 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12333 postinstall_cmds | postuninstall_cmds | \
12334 old_postinstall_cmds | old_postuninstall_cmds | \
12335 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12336 # Double-quote double-evaled strings.
12337 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12338 ;;
12339 *)
12340 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12341 ;;
12342 esac
12343 done
12344
12345 case $lt_echo in
12346 *'\$0 --fallback-echo"')
12347 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12348 ;;
12349 esac
12350
12351cfgfile="$ofile"
12352
12353 cat <<__EOF__ >> "$cfgfile"
12354# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12355
12356# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12357
12358# Shell to use when invoking shell scripts.
12359SHELL=$lt_SHELL
12360
12361# Whether or not to build shared libraries.
12362build_libtool_libs=$enable_shared
12363
12364# Whether or not to build static libraries.
12365build_old_libs=$enable_static
12366
12367# Whether or not to add -lc for building shared libraries.
12368build_libtool_need_lc=$archive_cmds_need_lc_CXX
12369
12370# Whether or not to disallow shared libs when runtime libs are static
12371allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12372
12373# Whether or not to optimize for fast installation.
12374fast_install=$enable_fast_install
12375
12376# The host system.
12377host_alias=$host_alias
12378host=$host
12379
12380# An echo program that does not interpret backslashes.
12381echo=$lt_echo
12382
12383# The archiver.
12384AR=$lt_AR
12385AR_FLAGS=$lt_AR_FLAGS
12386
12387# A C compiler.
12388LTCC=$lt_LTCC
12389
12390# A language-specific compiler.
12391CC=$lt_compiler_CXX
12392
12393# Is the compiler the GNU C compiler?
12394with_gcc=$GCC_CXX
12395
12396# An ERE matcher.
12397EGREP=$lt_EGREP
12398
12399# The linker used to build libraries.
12400LD=$lt_LD_CXX
12401
12402# Whether we need hard or soft links.
12403LN_S=$lt_LN_S
12404
12405# A BSD-compatible nm program.
12406NM=$lt_NM
12407
12408# A symbol stripping program
12409STRIP=$STRIP
12410
12411# Used to examine libraries when file_magic_cmd begins "file"
12412MAGIC_CMD=$MAGIC_CMD
12413
12414# Used on cygwin: DLL creation program.
12415DLLTOOL="$DLLTOOL"
12416
12417# Used on cygwin: object dumper.
12418OBJDUMP="$OBJDUMP"
12419
12420# Used on cygwin: assembler.
12421AS="$AS"
12422
12423# The name of the directory that contains temporary libtool files.
12424objdir=$objdir
12425
12426# How to create reloadable object files.
12427reload_flag=$lt_reload_flag
12428reload_cmds=$lt_reload_cmds
12429
12430# How to pass a linker flag through the compiler.
12431wl=$lt_lt_prog_compiler_wl_CXX
12432
12433# Object file suffix (normally "o").
12434objext="$ac_objext"
12435
12436# Old archive suffix (normally "a").
12437libext="$libext"
12438
12439# Shared library suffix (normally ".so").
12440shrext='$shrext'
12441
12442# Executable file suffix (normally "").
12443exeext="$exeext"
12444
12445# Additional compiler flags for building library objects.
12446pic_flag=$lt_lt_prog_compiler_pic_CXX
12447pic_mode=$pic_mode
12448
12449# What is the maximum length of a command?
12450max_cmd_len=$lt_cv_sys_max_cmd_len
12451
12452# Does compiler simultaneously support -c and -o options?
12453compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12454
12455# Must we lock files when doing compilation ?
12456need_locks=$lt_need_locks
12457
12458# Do we need the lib prefix for modules?
12459need_lib_prefix=$need_lib_prefix
12460
12461# Do we need a version for libraries?
12462need_version=$need_version
12463
12464# Whether dlopen is supported.
12465dlopen_support=$enable_dlopen
12466
12467# Whether dlopen of programs is supported.
12468dlopen_self=$enable_dlopen_self
12469
12470# Whether dlopen of statically linked programs is supported.
12471dlopen_self_static=$enable_dlopen_self_static
12472
12473# Compiler flag to prevent dynamic linking.
12474link_static_flag=$lt_lt_prog_compiler_static_CXX
12475
12476# Compiler flag to turn off builtin functions.
12477no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12478
12479# Compiler flag to allow reflexive dlopens.
12480export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12481
12482# Compiler flag to generate shared objects directly from archives.
12483whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12484
12485# Compiler flag to generate thread-safe objects.
12486thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12487
12488# Library versioning type.
12489version_type=$version_type
12490
12491# Format of library name prefix.
12492libname_spec=$lt_libname_spec
12493
12494# List of archive names. First name is the real one, the rest are links.
12495# The last name is the one that the linker finds with -lNAME.
12496library_names_spec=$lt_library_names_spec
12497
12498# The coded name of the library, if different from the real name.
12499soname_spec=$lt_soname_spec
12500
12501# Commands used to build and install an old-style archive.
12502RANLIB=$lt_RANLIB
12503old_archive_cmds=$lt_old_archive_cmds_CXX
12504old_postinstall_cmds=$lt_old_postinstall_cmds
12505old_postuninstall_cmds=$lt_old_postuninstall_cmds
12506
12507# Create an old-style archive from a shared archive.
12508old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12509
12510# Create a temporary old-style archive to link instead of a shared archive.
12511old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12512
12513# Commands used to build and install a shared archive.
12514archive_cmds=$lt_archive_cmds_CXX
12515archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12516postinstall_cmds=$lt_postinstall_cmds
12517postuninstall_cmds=$lt_postuninstall_cmds
12518
12519# Commands used to build a loadable module (assumed same as above if empty)
12520module_cmds=$lt_module_cmds_CXX
12521module_expsym_cmds=$lt_module_expsym_cmds_CXX
12522
12523# Commands to strip libraries.
12524old_striplib=$lt_old_striplib
12525striplib=$lt_striplib
12526
12527# Dependencies to place before the objects being linked to create a
12528# shared library.
12529predep_objects=$lt_predep_objects_CXX
12530
12531# Dependencies to place after the objects being linked to create a
12532# shared library.
12533postdep_objects=$lt_postdep_objects_CXX
12534
12535# Dependencies to place before the objects being linked to create a
12536# shared library.
12537predeps=$lt_predeps_CXX
12538
12539# Dependencies to place after the objects being linked to create a
12540# shared library.
12541postdeps=$lt_postdeps_CXX
12542
12543# The library search path used internally by the compiler when linking
12544# a shared library.
12545compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12546
12547# Method to check whether dependent libraries are shared objects.
12548deplibs_check_method=$lt_deplibs_check_method
12549
12550# Command to use when deplibs_check_method == file_magic.
12551file_magic_cmd=$lt_file_magic_cmd
12552
12553# Flag that allows shared libraries with undefined symbols to be built.
12554allow_undefined_flag=$lt_allow_undefined_flag_CXX
12555
12556# Flag that forces no undefined symbols.
12557no_undefined_flag=$lt_no_undefined_flag_CXX
12558
12559# Commands used to finish a libtool library installation in a directory.
12560finish_cmds=$lt_finish_cmds
12561
12562# Same as above, but a single script fragment to be evaled but not shown.
12563finish_eval=$lt_finish_eval
12564
12565# Take the output of nm and produce a listing of raw symbols and C names.
12566global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12567
12568# Transform the output of nm in a proper C declaration
12569global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12570
12571# Transform the output of nm in a C name address pair
12572global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12573
12574# This is the shared library runtime path variable.
12575runpath_var=$runpath_var
12576
12577# This is the shared library path variable.
12578shlibpath_var=$shlibpath_var
12579
12580# Is shlibpath searched before the hard-coded library search path?
12581shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12582
12583# How to hardcode a shared library path into an executable.
12584hardcode_action=$hardcode_action_CXX
12585
12586# Whether we should hardcode library paths into libraries.
12587hardcode_into_libs=$hardcode_into_libs
12588
12589# Flag to hardcode \$libdir into a binary during linking.
12590# This must work even if \$libdir does not exist.
12591hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12592
12593# If ld is used when linking, flag to hardcode \$libdir into
12594# a binary during linking. This must work even if \$libdir does
12595# not exist.
12596hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12597
12598# Whether we need a single -rpath flag with a separated argument.
12599hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12600
12601# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12602# resulting binary.
12603hardcode_direct=$hardcode_direct_CXX
12604
12605# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12606# resulting binary.
12607hardcode_minus_L=$hardcode_minus_L_CXX
12608
12609# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12610# the resulting binary.
12611hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12612
12613# Set to yes if building a shared library automatically hardcodes DIR into the library
12614# and all subsequent libraries and executables linked against it.
12615hardcode_automatic=$hardcode_automatic_CXX
12616
12617# Variables whose values should be saved in libtool wrapper scripts and
12618# restored at relink time.
12619variables_saved_for_relink="$variables_saved_for_relink"
12620
12621# Whether libtool must link a program against all its dependency libraries.
12622link_all_deplibs=$link_all_deplibs_CXX
12623
12624# Compile-time system search path for libraries
12625sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12626
12627# Run-time system search path for libraries
12628sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12629
12630# Fix the shell variable \$srcfile for the compiler.
12631fix_srcfile_path="$fix_srcfile_path_CXX"
12632
12633# Set to yes if exported symbols are required.
12634always_export_symbols=$always_export_symbols_CXX
12635
12636# The commands to list exported symbols.
12637export_symbols_cmds=$lt_export_symbols_cmds_CXX
12638
12639# The commands to extract the exported symbol list from a shared archive.
12640extract_expsyms_cmds=$lt_extract_expsyms_cmds
12641
12642# Symbols that should not be listed in the preloaded symbols.
12643exclude_expsyms=$lt_exclude_expsyms_CXX
12644
12645# Symbols that must always be exported.
12646include_expsyms=$lt_include_expsyms_CXX
12647
12648# ### END LIBTOOL TAG CONFIG: $tagname
12649
12650__EOF__
12651
12652
12653else
12654 # If there is no Makefile yet, we rely on a make rule to execute
12655 # `config.status --recheck' to rerun these tests and create the
12656 # libtool script then.
12657 test -f Makefile && make "$ltmain"
12658fi
12659
12660
12661ac_ext=c
12662ac_cpp='$CPP $CPPFLAGS'
12663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12665ac_compiler_gnu=$ac_cv_c_compiler_gnu
12666
12667CC=$lt_save_CC
12668LDCXX=$LD
12669LD=$lt_save_LD
12670GCC=$lt_save_GCC
12671with_gnu_ldcxx=$with_gnu_ld
12672with_gnu_ld=$lt_save_with_gnu_ld
12673lt_cv_path_LDCXX=$lt_cv_path_LD
12674lt_cv_path_LD=$lt_save_path_LD
12675lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12676lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12677
12678 else
12679 tagname=""
12680 fi
12681 ;;
12682
12683 F77)
12684 if test -n "$F77" && test "X$F77" != "Xno"; then
12685
12686ac_ext=f
12687ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12688ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12689ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12690
12691
12692archive_cmds_need_lc_F77=no
12693allow_undefined_flag_F77=
12694always_export_symbols_F77=no
12695archive_expsym_cmds_F77=
12696export_dynamic_flag_spec_F77=
12697hardcode_direct_F77=no
12698hardcode_libdir_flag_spec_F77=
12699hardcode_libdir_flag_spec_ld_F77=
12700hardcode_libdir_separator_F77=
12701hardcode_minus_L_F77=no
12702hardcode_automatic_F77=no
12703module_cmds_F77=
12704module_expsym_cmds_F77=
12705link_all_deplibs_F77=unknown
12706old_archive_cmds_F77=$old_archive_cmds
12707no_undefined_flag_F77=
12708whole_archive_flag_spec_F77=
12709enable_shared_with_static_runtimes_F77=no
12710
12711# Source file extension for f77 test sources.
12712ac_ext=f
12713
12714# Object file extension for compiled f77 test sources.
12715objext=o
12716objext_F77=$objext
12717
12718# Code to be used in simple compile tests
12719lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12720
12721# Code to be used in simple link tests
12722lt_simple_link_test_code=" program t\n end\n"
12723
12724# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12725
12726# If no C compiler was specified, use CC.
12727LTCC=${LTCC-"$CC"}
12728
12729# Allow CC to be a program name with arguments.
12730compiler=$CC
12731
12732
12733# Allow CC to be a program name with arguments.
12734lt_save_CC="$CC"
12735CC=${F77-"f77"}
12736compiler=$CC
12737compiler_F77=$CC
12738cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12739
12740echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12741echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12742echo "$as_me:$LINENO: result: $can_build_shared" >&5
12743echo "${ECHO_T}$can_build_shared" >&6
12744
12745echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12746echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12747test "$can_build_shared" = "no" && enable_shared=no
12748
12749# On AIX, shared libraries and static libraries use the same namespace, and
12750# are all built from PIC.
12751case "$host_os" in
12752aix3*)
12753 test "$enable_shared" = yes && enable_static=no
12754 if test -n "$RANLIB"; then
12755 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12756 postinstall_cmds='$RANLIB $lib'
12757 fi
12758 ;;
12759aix4*)
12760 test "$enable_shared" = yes && enable_static=no
12761 ;;
12762esac
12763echo "$as_me:$LINENO: result: $enable_shared" >&5
12764echo "${ECHO_T}$enable_shared" >&6
12765
12766echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12767echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12768# Make sure either enable_shared or enable_static is yes.
12769test "$enable_shared" = yes || enable_static=yes
12770echo "$as_me:$LINENO: result: $enable_static" >&5
12771echo "${ECHO_T}$enable_static" >&6
12772
12773test "$ld_shlibs_F77" = no && can_build_shared=no
12774
12775GCC_F77="$G77"
12776LD_F77="$LD"
12777
12778lt_prog_compiler_wl_F77=
12779lt_prog_compiler_pic_F77=
12780lt_prog_compiler_static_F77=
12781
12782echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12783echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12784
12785 if test "$GCC" = yes; then
12786 lt_prog_compiler_wl_F77='-Wl,'
12787 lt_prog_compiler_static_F77='-static'
12788
12789 case $host_os in
12790 aix*)
12791 # All AIX code is PIC.
12792 if test "$host_cpu" = ia64; then
12793 # AIX 5 now supports IA64 processor
12794 lt_prog_compiler_static_F77='-Bstatic'
12795 fi
12796 ;;
12797
12798 amigaos*)
12799 # FIXME: we need at least 68020 code to build shared libraries, but
12800 # adding the `-m68020' flag to GCC prevents building anything better,
12801 # like `-m68040'.
12802 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12803 ;;
12804
12805 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12806 # PIC is the default for these OSes.
12807 ;;
12808
12809 mingw* | pw32* | os2*)
12810 # This hack is so that the source file can tell whether it is being
12811 # built for inclusion in a dll (and should export symbols for example).
12812 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12813 ;;
12814
12815 darwin* | rhapsody*)
12816 # PIC is the default on this platform
12817 # Common symbols not allowed in MH_DYLIB files
12818 lt_prog_compiler_pic_F77='-fno-common'
12819 ;;
12820
12821 msdosdjgpp*)
12822 # Just because we use GCC doesn't mean we suddenly get shared libraries
12823 # on systems that don't support them.
12824 lt_prog_compiler_can_build_shared_F77=no
12825 enable_shared=no
12826 ;;
12827
12828 sysv4*MP*)
12829 if test -d /usr/nec; then
12830 lt_prog_compiler_pic_F77=-Kconform_pic
12831 fi
12832 ;;
12833
12834 hpux*)
12835 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12836 # not for PA HP-UX.
12837 case "$host_cpu" in
12838 hppa*64*|ia64*)
12839 # +Z the default
12840 ;;
12841 *)
12842 lt_prog_compiler_pic_F77='-fPIC'
12843 ;;
12844 esac
12845 ;;
12846
12847 *)
12848 lt_prog_compiler_pic_F77='-fPIC'
12849 ;;
12850 esac
12851 else
12852 # PORTME Check for flag to pass linker flags through the system compiler.
12853 case $host_os in
12854 aix*)
12855 lt_prog_compiler_wl_F77='-Wl,'
12856 if test "$host_cpu" = ia64; then
12857 # AIX 5 now supports IA64 processor
12858 lt_prog_compiler_static_F77='-Bstatic'
12859 else
12860 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12861 fi
12862 ;;
12863
12864 mingw* | pw32* | os2*)
12865 # This hack is so that the source file can tell whether it is being
12866 # built for inclusion in a dll (and should export symbols for example).
12867 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12868 ;;
12869
12870 hpux9* | hpux10* | hpux11*)
12871 lt_prog_compiler_wl_F77='-Wl,'
12872 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12873 # not for PA HP-UX.
12874 case "$host_cpu" in
12875 hppa*64*|ia64*)
12876 # +Z the default
12877 ;;
12878 *)
12879 lt_prog_compiler_pic_F77='+Z'
12880 ;;
12881 esac
12882 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12883 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12884 ;;
12885
12886 irix5* | irix6* | nonstopux*)
12887 lt_prog_compiler_wl_F77='-Wl,'
12888 # PIC (with -KPIC) is the default.
12889 lt_prog_compiler_static_F77='-non_shared'
12890 ;;
12891
12892 newsos6)
12893 lt_prog_compiler_pic_F77='-KPIC'
12894 lt_prog_compiler_static_F77='-Bstatic'
12895 ;;
12896
12897 linux*)
12898 case $CC in
12899 icc|ecc)
12900 lt_prog_compiler_wl_F77='-Wl,'
12901 lt_prog_compiler_pic_F77='-KPIC'
12902 lt_prog_compiler_static_F77='-static'
12903 ;;
12904 ccc)
12905 lt_prog_compiler_wl_F77='-Wl,'
12906 # All Alpha code is PIC.
12907 lt_prog_compiler_static_F77='-non_shared'
12908 ;;
12909 esac
12910 ;;
12911
12912 osf3* | osf4* | osf5*)
12913 lt_prog_compiler_wl_F77='-Wl,'
12914 # All OSF/1 code is PIC.
12915 lt_prog_compiler_static_F77='-non_shared'
12916 ;;
12917
12918 sco3.2v5*)
12919 lt_prog_compiler_pic_F77='-Kpic'
12920 lt_prog_compiler_static_F77='-dn'
12921 ;;
12922
12923 solaris*)
12924 lt_prog_compiler_wl_F77='-Wl,'
12925 lt_prog_compiler_pic_F77='-KPIC'
12926 lt_prog_compiler_static_F77='-Bstatic'
12927 ;;
12928
12929 sunos4*)
12930 lt_prog_compiler_wl_F77='-Qoption ld '
12931 lt_prog_compiler_pic_F77='-PIC'
12932 lt_prog_compiler_static_F77='-Bstatic'
12933 ;;
12934
12935 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12936 lt_prog_compiler_wl_F77='-Wl,'
12937 lt_prog_compiler_pic_F77='-KPIC'
12938 lt_prog_compiler_static_F77='-Bstatic'
12939 ;;
12940
12941 sysv4*MP*)
12942 if test -d /usr/nec ;then
12943 lt_prog_compiler_pic_F77='-Kconform_pic'
12944 lt_prog_compiler_static_F77='-Bstatic'
12945 fi
12946 ;;
12947
12948 uts4*)
12949 lt_prog_compiler_pic_F77='-pic'
12950 lt_prog_compiler_static_F77='-Bstatic'
12951 ;;
12952
12953 *)
12954 lt_prog_compiler_can_build_shared_F77=no
12955 ;;
12956 esac
12957 fi
12958
12959echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12960echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12961
12962#
12963# Check to make sure the PIC flag actually works.
12964#
12965if test -n "$lt_prog_compiler_pic_F77"; then
12966 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12967echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12968if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12969 echo $ECHO_N "(cached) $ECHO_C" >&6
12970else
12971 lt_prog_compiler_pic_works_F77=no
12972 ac_outfile=conftest.$ac_objext
12973 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12974 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12975 # Insert the option either (1) after the last *FLAGS variable, or
12976 # (2) before a word containing "conftest.", or (3) at the end.
12977 # Note that $ac_compile itself does not contain backslashes and begins
12978 # with a dollar sign (not a hyphen), so the echo should work correctly.
12979 # The option is referenced via a variable to avoid confusing sed.
12980 lt_compile=`echo "$ac_compile" | $SED \
12981 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12983 -e 's:$: $lt_compiler_flag:'`
John Criswellffaaf3b2003-09-10 18:38:44 +000012984 (eval echo "\"\$as_me:12984: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012985 (eval "$lt_compile" 2>conftest.err)
12986 ac_status=$?
12987 cat conftest.err >&5
John Criswellffaaf3b2003-09-10 18:38:44 +000012988 echo "$as_me:12988: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012989 if (exit $ac_status) && test -s "$ac_outfile"; then
12990 # The compiler can only warn and ignore the option if not recognized
12991 # So say no if there are warnings
12992 if test ! -s conftest.err; then
12993 lt_prog_compiler_pic_works_F77=yes
12994 fi
12995 fi
12996 $rm conftest*
12997
12998fi
12999echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13000echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13001
13002if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13003 case $lt_prog_compiler_pic_F77 in
13004 "" | " "*) ;;
13005 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13006 esac
13007else
13008 lt_prog_compiler_pic_F77=
13009 lt_prog_compiler_can_build_shared_F77=no
13010fi
13011
13012fi
13013case "$host_os" in
13014 # For platforms which do not support PIC, -DPIC is meaningless:
13015 *djgpp*)
13016 lt_prog_compiler_pic_F77=
13017 ;;
13018 *)
13019 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13020 ;;
13021esac
13022
13023echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13024echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13025if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13026 echo $ECHO_N "(cached) $ECHO_C" >&6
13027else
13028 lt_cv_prog_compiler_c_o_F77=no
13029 $rm -r conftest 2>/dev/null
13030 mkdir conftest
13031 cd conftest
13032 mkdir out
13033 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13034
13035 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13036 # that will create temporary files in the current directory regardless of
13037 # the output directory. Thus, making CWD read-only will cause this test
13038 # to fail, enabling locking or at least warning the user not to do parallel
13039 # builds.
13040 chmod -w .
13041
13042 lt_compiler_flag="-o out/conftest2.$ac_objext"
13043 # Insert the option either (1) after the last *FLAGS variable, or
13044 # (2) before a word containing "conftest.", or (3) at the end.
13045 # Note that $ac_compile itself does not contain backslashes and begins
13046 # with a dollar sign (not a hyphen), so the echo should work correctly.
13047 lt_compile=`echo "$ac_compile" | $SED \
13048 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13049 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13050 -e 's:$: $lt_compiler_flag:'`
John Criswellffaaf3b2003-09-10 18:38:44 +000013051 (eval echo "\"\$as_me:13051: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013052 (eval "$lt_compile" 2>out/conftest.err)
13053 ac_status=$?
13054 cat out/conftest.err >&5
John Criswellffaaf3b2003-09-10 18:38:44 +000013055 echo "$as_me:13055: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013056 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13057 then
13058 # The compiler can only warn and ignore the option if not recognized
13059 # So say no if there are warnings
13060 if test ! -s out/conftest.err; then
13061 lt_cv_prog_compiler_c_o_F77=yes
13062 fi
13063 fi
13064 chmod u+w .
13065 $rm conftest* out/*
13066 rmdir out
13067 cd ..
13068 rmdir conftest
13069 $rm conftest*
13070
13071fi
13072echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13073echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13074
13075
13076hard_links="nottested"
13077if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13078 # do not overwrite the value of need_locks provided by the user
13079 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13080echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13081 hard_links=yes
13082 $rm conftest*
13083 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13084 touch conftest.a
13085 ln conftest.a conftest.b 2>&5 || hard_links=no
13086 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13087 echo "$as_me:$LINENO: result: $hard_links" >&5
13088echo "${ECHO_T}$hard_links" >&6
13089 if test "$hard_links" = no; then
13090 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13091echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13092 need_locks=warn
13093 fi
13094else
13095 need_locks=no
13096fi
13097
13098echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13099echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13100
13101 runpath_var=
13102 allow_undefined_flag_F77=
13103 enable_shared_with_static_runtimes_F77=no
13104 archive_cmds_F77=
13105 archive_expsym_cmds_F77=
13106 old_archive_From_new_cmds_F77=
13107 old_archive_from_expsyms_cmds_F77=
13108 export_dynamic_flag_spec_F77=
13109 whole_archive_flag_spec_F77=
13110 thread_safe_flag_spec_F77=
13111 hardcode_libdir_flag_spec_F77=
13112 hardcode_libdir_flag_spec_ld_F77=
13113 hardcode_libdir_separator_F77=
13114 hardcode_direct_F77=no
13115 hardcode_minus_L_F77=no
13116 hardcode_shlibpath_var_F77=unsupported
13117 link_all_deplibs_F77=unknown
13118 hardcode_automatic_F77=no
13119 module_cmds_F77=
13120 module_expsym_cmds_F77=
13121 always_export_symbols_F77=no
13122 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13123 # include_expsyms should be a list of space-separated symbols to be *always*
13124 # included in the symbol list
13125 include_expsyms_F77=
13126 # exclude_expsyms can be an extended regexp of symbols to exclude
13127 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13128 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13129 # as well as any symbol that contains `d'.
13130 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13131 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13132 # platforms (ab)use it in PIC code, but their linkers get confused if
13133 # the symbol is explicitly referenced. Since portable code cannot
13134 # rely on this symbol name, it's probably fine to never include it in
13135 # preloaded symbol tables.
13136 extract_expsyms_cmds=
13137
13138 case $host_os in
13139 cygwin* | mingw* | pw32*)
13140 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13141 # When not using gcc, we currently assume that we are using
13142 # Microsoft Visual C++.
13143 if test "$GCC" != yes; then
13144 with_gnu_ld=no
13145 fi
13146 ;;
13147 openbsd*)
13148 with_gnu_ld=no
13149 ;;
13150 esac
13151
13152 ld_shlibs_F77=yes
13153 if test "$with_gnu_ld" = yes; then
13154 # If archive_cmds runs LD, not CC, wlarc should be empty
13155 wlarc='${wl}'
13156
13157 # See if GNU ld supports shared libraries.
13158 case $host_os in
13159 aix3* | aix4* | aix5*)
13160 # On AIX/PPC, the GNU linker is very broken
13161 if test "$host_cpu" != ia64; then
13162 ld_shlibs_F77=no
13163 cat <<EOF 1>&2
13164
13165*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13166*** to be unable to reliably create shared libraries on AIX.
13167*** Therefore, libtool is disabling shared libraries support. If you
13168*** really care for shared libraries, you may want to modify your PATH
13169*** so that a non-GNU linker is found, and then restart.
13170
13171EOF
13172 fi
13173 ;;
13174
13175 amigaos*)
13176 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13177 hardcode_libdir_flag_spec_F77='-L$libdir'
13178 hardcode_minus_L_F77=yes
13179
13180 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13181 # that the semantics of dynamic libraries on AmigaOS, at least up
13182 # to version 4, is to share data among multiple programs linked
13183 # with the same dynamic library. Since this doesn't match the
13184 # behavior of shared libraries on other platforms, we can't use
13185 # them.
13186 ld_shlibs_F77=no
13187 ;;
13188
13189 beos*)
13190 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13191 allow_undefined_flag_F77=unsupported
13192 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13193 # support --undefined. This deserves some investigation. FIXME
13194 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13195 else
13196 ld_shlibs_F77=no
13197 fi
13198 ;;
13199
13200 cygwin* | mingw* | pw32*)
13201 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13202 # as there is no search path for DLLs.
13203 hardcode_libdir_flag_spec_F77='-L$libdir'
13204 allow_undefined_flag_F77=unsupported
13205 always_export_symbols_F77=no
13206 enable_shared_with_static_runtimes_F77=yes
13207 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13208
13209 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13210 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13211 # If the export-symbols file already is a .def file (1st line
13212 # is EXPORTS), use it as is; otherwise, prepend...
13213 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13214 cp $export_symbols $output_objdir/$soname.def;
13215 else
13216 echo EXPORTS > $output_objdir/$soname.def;
13217 cat $export_symbols >> $output_objdir/$soname.def;
13218 fi~
13219 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13220 else
13221 ld_shlibs=no
13222 fi
13223 ;;
13224
13225 netbsd*)
13226 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13227 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13228 wlarc=
13229 else
13230 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13231 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13232 fi
13233 ;;
13234
13235 solaris* | sysv5*)
13236 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13237 ld_shlibs_F77=no
13238 cat <<EOF 1>&2
13239
13240*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13241*** create shared libraries on Solaris systems. Therefore, libtool
13242*** is disabling shared libraries support. We urge you to upgrade GNU
13243*** binutils to release 2.9.1 or newer. Another option is to modify
13244*** your PATH or compiler configuration so that the native linker is
13245*** used, and then restart.
13246
13247EOF
13248 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13249 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13250 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13251 else
13252 ld_shlibs_F77=no
13253 fi
13254 ;;
13255
13256 sunos4*)
13257 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13258 wlarc=
13259 hardcode_direct_F77=yes
13260 hardcode_shlibpath_var_F77=no
13261 ;;
13262
13263 *)
13264 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13265 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13266 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13267 else
13268 ld_shlibs_F77=no
13269 fi
13270 ;;
13271 esac
13272
13273 if test "$ld_shlibs_F77" = yes; then
13274 runpath_var=LD_RUN_PATH
13275 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13276 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13277 # ancient GNU ld didn't support --whole-archive et. al.
13278 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13279 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13280 else
13281 whole_archive_flag_spec_F77=
13282 fi
13283 fi
13284 else
13285 # PORTME fill in a description of your system's linker (not GNU ld)
13286 case $host_os in
13287 aix3*)
13288 allow_undefined_flag_F77=unsupported
13289 always_export_symbols_F77=yes
13290 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13291 # Note: this linker hardcodes the directories in LIBPATH if there
13292 # are no directories specified by -L.
13293 hardcode_minus_L_F77=yes
13294 if test "$GCC" = yes && test -z "$link_static_flag"; then
13295 # Neither direct hardcoding nor static linking is supported with a
13296 # broken collect2.
13297 hardcode_direct_F77=unsupported
13298 fi
13299 ;;
13300
13301 aix4* | aix5*)
13302 if test "$host_cpu" = ia64; then
13303 # On IA64, the linker does run time linking by default, so we don't
13304 # have to do anything special.
13305 aix_use_runtimelinking=no
13306 exp_sym_flag='-Bexport'
13307 no_entry_flag=""
13308 else
13309 # If we're using GNU nm, then we don't want the "-C" option.
13310 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13311 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13312 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13313 else
13314 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13315 fi
13316 aix_use_runtimelinking=no
13317
13318 # Test if we are trying to use run time linking or normal
13319 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13320 # need to do runtime linking.
13321 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13322 for ld_flag in $LDFLAGS; do
13323 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13324 aix_use_runtimelinking=yes
13325 break
13326 fi
13327 done
13328 esac
13329
13330 exp_sym_flag='-bexport'
13331 no_entry_flag='-bnoentry'
13332 fi
13333
13334 # When large executables or shared objects are built, AIX ld can
13335 # have problems creating the table of contents. If linking a library
13336 # or program results in "error TOC overflow" add -mminimal-toc to
13337 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13338 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13339
13340 archive_cmds_F77=''
13341 hardcode_direct_F77=yes
13342 hardcode_libdir_separator_F77=':'
13343 link_all_deplibs_F77=yes
13344
13345 if test "$GCC" = yes; then
13346 case $host_os in aix4.012|aix4.012.*)
13347 # We only want to do this on AIX 4.2 and lower, the check
13348 # below for broken collect2 doesn't work under 4.3+
13349 collect2name=`${CC} -print-prog-name=collect2`
13350 if test -f "$collect2name" && \
13351 strings "$collect2name" | grep resolve_lib_name >/dev/null
13352 then
13353 # We have reworked collect2
13354 hardcode_direct_F77=yes
13355 else
13356 # We have old collect2
13357 hardcode_direct_F77=unsupported
13358 # It fails to find uninstalled libraries when the uninstalled
13359 # path is not listed in the libpath. Setting hardcode_minus_L
13360 # to unsupported forces relinking
13361 hardcode_minus_L_F77=yes
13362 hardcode_libdir_flag_spec_F77='-L$libdir'
13363 hardcode_libdir_separator_F77=
13364 fi
13365 esac
13366 shared_flag='-shared'
13367 else
13368 # not using gcc
13369 if test "$host_cpu" = ia64; then
13370 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13371 # chokes on -Wl,-G. The following line is correct:
13372 shared_flag='-G'
13373 else
13374 if test "$aix_use_runtimelinking" = yes; then
13375 shared_flag='${wl}-G'
13376 else
13377 shared_flag='${wl}-bM:SRE'
13378 fi
13379 fi
13380 fi
13381
13382 # It seems that -bexpall does not export symbols beginning with
13383 # underscore (_), so it is better to generate a list of symbols to export.
13384 always_export_symbols_F77=yes
13385 if test "$aix_use_runtimelinking" = yes; then
13386 # Warning - without using the other runtime loading flags (-brtl),
13387 # -berok will link without error, but may produce a broken library.
13388 allow_undefined_flag_F77='-berok'
13389 # Determine the default libpath from the value encoded in an empty executable.
13390 cat >conftest.$ac_ext <<_ACEOF
13391 program main
13392
13393 end
13394_ACEOF
13395rm -f conftest.$ac_objext conftest$ac_exeext
13396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13397 (eval $ac_link) 2>&5
13398 ac_status=$?
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); } &&
13401 { ac_try='test -s conftest$ac_exeext'
13402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13403 (eval $ac_try) 2>&5
13404 ac_status=$?
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; }; then
13407
13408aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13409}'`
13410# Check for a 64-bit object if we didn't find anything.
13411if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13412}'`; fi
13413else
13414 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013415sed 's/^/| /' conftest.$ac_ext >&5
13416
John Criswell47fdd832003-07-14 16:52:07 +000013417fi
13418rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13419if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13420
13421 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13422 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13423 else
13424 if test "$host_cpu" = ia64; then
13425 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13426 allow_undefined_flag_F77="-z nodefs"
13427 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13428 else
13429 # Determine the default libpath from the value encoded in an empty executable.
13430 cat >conftest.$ac_ext <<_ACEOF
13431 program main
13432
13433 end
13434_ACEOF
13435rm -f conftest.$ac_objext conftest$ac_exeext
13436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13437 (eval $ac_link) 2>&5
13438 ac_status=$?
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); } &&
13441 { ac_try='test -s conftest$ac_exeext'
13442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443 (eval $ac_try) 2>&5
13444 ac_status=$?
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; }; then
13447
13448aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13449}'`
13450# Check for a 64-bit object if we didn't find anything.
13451if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13452}'`; fi
13453else
13454 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013455sed 's/^/| /' conftest.$ac_ext >&5
13456
John Criswell47fdd832003-07-14 16:52:07 +000013457fi
13458rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13459if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13460
13461 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13462 # Warning - without using the other run time loading flags,
13463 # -berok will link without error, but may produce a broken library.
13464 no_undefined_flag_F77=' ${wl}-bernotok'
13465 allow_undefined_flag_F77=' ${wl}-berok'
13466 # -bexpall does not export symbols beginning with underscore (_)
13467 always_export_symbols_F77=yes
13468 # Exported symbols can be pulled into shared objects from archives
13469 whole_archive_flag_spec_F77=' '
13470 archive_cmds_need_lc_F77=yes
13471 # This is similar to how AIX traditionally builds it's shared libraries.
13472 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13473 fi
13474 fi
13475 ;;
13476
13477 amigaos*)
13478 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13479 hardcode_libdir_flag_spec_F77='-L$libdir'
13480 hardcode_minus_L_F77=yes
13481 # see comment about different semantics on the GNU ld section
13482 ld_shlibs_F77=no
13483 ;;
13484
13485 bsdi4*)
13486 export_dynamic_flag_spec_F77=-rdynamic
13487 ;;
13488
13489 cygwin* | mingw* | pw32*)
13490 # When not using gcc, we currently assume that we are using
13491 # Microsoft Visual C++.
13492 # hardcode_libdir_flag_spec is actually meaningless, as there is
13493 # no search path for DLLs.
13494 hardcode_libdir_flag_spec_F77=' '
13495 allow_undefined_flag_F77=unsupported
13496 # Tell ltmain to make .lib files, not .a files.
13497 libext=lib
13498 # Tell ltmain to make .dll files, not .so files.
13499 shrext=".dll"
13500 # FIXME: Setting linknames here is a bad hack.
13501 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13502 # The linker will automatically build a .lib file if we build a DLL.
13503 old_archive_From_new_cmds_F77='true'
13504 # FIXME: Should let the user specify the lib program.
13505 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13506 fix_srcfile_path='`cygpath -w "$srcfile"`'
13507 enable_shared_with_static_runtimes_F77=yes
13508 ;;
13509
13510 darwin* | rhapsody*)
13511 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13512 archive_cmds_need_lc_F77=no
13513 case "$host_os" in
13514 rhapsody* | darwin1.[012])
13515 allow_undefined_flag_F77='-undefined suppress'
13516 ;;
13517 *) # Darwin 1.3 on
13518 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13519 ;;
13520 esac
13521 # FIXME: Relying on posixy $() will cause problems for
13522 # cross-compilation, but unfortunately the echo tests do not
13523 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13524 # `"' quotes if we put them in here... so don't!
13525 lt_int_apple_cc_single_mod=no
13526 output_verbose_link_cmd='echo'
13527 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13528 lt_int_apple_cc_single_mod=yes
13529 fi
13530 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13531 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13532 else
13533 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13534 fi
13535 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13536 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13537 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13538 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13539 else
13540 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13541 fi
13542 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13543 hardcode_direct_F77=no
13544 hardcode_automatic_F77=yes
13545 hardcode_shlibpath_var_F77=unsupported
13546 whole_archive_flag_spec_F77='-all_load $convenience'
13547 link_all_deplibs_F77=yes
13548 fi
13549 ;;
13550
13551 dgux*)
13552 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13553 hardcode_libdir_flag_spec_F77='-L$libdir'
13554 hardcode_shlibpath_var_F77=no
13555 ;;
13556
13557 freebsd1*)
13558 ld_shlibs_F77=no
13559 ;;
13560
13561 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13562 # support. Future versions do this automatically, but an explicit c++rt0.o
13563 # does not break anything, and helps significantly (at the cost of a little
13564 # extra space).
13565 freebsd2.2*)
13566 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13567 hardcode_libdir_flag_spec_F77='-R$libdir'
13568 hardcode_direct_F77=yes
13569 hardcode_shlibpath_var_F77=no
13570 ;;
13571
13572 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13573 freebsd2*)
13574 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13575 hardcode_direct_F77=yes
13576 hardcode_minus_L_F77=yes
13577 hardcode_shlibpath_var_F77=no
13578 ;;
13579
13580 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13581 freebsd*)
13582 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13583 hardcode_libdir_flag_spec_F77='-R$libdir'
13584 hardcode_direct_F77=yes
13585 hardcode_shlibpath_var_F77=no
13586 ;;
13587
13588 hpux9*)
13589 if test "$GCC" = yes; then
13590 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13591 else
13592 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13593 fi
13594 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13595 hardcode_libdir_separator_F77=:
13596 hardcode_direct_F77=yes
13597
13598 # hardcode_minus_L: Not really in the search PATH,
13599 # but as the default location of the library.
13600 hardcode_minus_L_F77=yes
13601 export_dynamic_flag_spec_F77='${wl}-E'
13602 ;;
13603
13604 hpux10* | hpux11*)
13605 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13606 case "$host_cpu" in
13607 hppa*64*|ia64*)
13608 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13609 ;;
13610 *)
13611 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13612 ;;
13613 esac
13614 else
13615 case "$host_cpu" in
13616 hppa*64*|ia64*)
13617 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13618 ;;
13619 *)
13620 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13621 ;;
13622 esac
13623 fi
13624 if test "$with_gnu_ld" = no; then
13625 case "$host_cpu" in
13626 hppa*64*)
13627 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13628 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13629 hardcode_libdir_separator_F77=:
13630 hardcode_direct_F77=no
13631 hardcode_shlibpath_var_F77=no
13632 ;;
13633 ia64*)
13634 hardcode_libdir_flag_spec_F77='-L$libdir'
13635 hardcode_direct_F77=no
13636 hardcode_shlibpath_var_F77=no
13637
13638 # hardcode_minus_L: Not really in the search PATH,
13639 # but as the default location of the library.
13640 hardcode_minus_L_F77=yes
13641 ;;
13642 *)
13643 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13644 hardcode_libdir_separator_F77=:
13645 hardcode_direct_F77=yes
13646 export_dynamic_flag_spec_F77='${wl}-E'
13647
13648 # hardcode_minus_L: Not really in the search PATH,
13649 # but as the default location of the library.
13650 hardcode_minus_L_F77=yes
13651 ;;
13652 esac
13653 fi
13654 ;;
13655
13656 irix5* | irix6* | nonstopux*)
13657 if test "$GCC" = yes; then
13658 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13659 else
13660 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13661 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13662 fi
13663 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13664 hardcode_libdir_separator_F77=:
13665 link_all_deplibs_F77=yes
13666 ;;
13667
13668 netbsd*)
13669 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13670 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13671 else
13672 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13673 fi
13674 hardcode_libdir_flag_spec_F77='-R$libdir'
13675 hardcode_direct_F77=yes
13676 hardcode_shlibpath_var_F77=no
13677 ;;
13678
13679 newsos6)
13680 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13681 hardcode_direct_F77=yes
13682 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13683 hardcode_libdir_separator_F77=:
13684 hardcode_shlibpath_var_F77=no
13685 ;;
13686
13687 openbsd*)
13688 hardcode_direct_F77=yes
13689 hardcode_shlibpath_var_F77=no
13690 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13691 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13692 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13693 export_dynamic_flag_spec_F77='${wl}-E'
13694 else
13695 case $host_os in
13696 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13697 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13698 hardcode_libdir_flag_spec_F77='-R$libdir'
13699 ;;
13700 *)
13701 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13702 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13703 ;;
13704 esac
13705 fi
13706 ;;
13707
13708 os2*)
13709 hardcode_libdir_flag_spec_F77='-L$libdir'
13710 hardcode_minus_L_F77=yes
13711 allow_undefined_flag_F77=unsupported
13712 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
13713 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13714 ;;
13715
13716 osf3*)
13717 if test "$GCC" = yes; then
13718 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13719 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13720 else
13721 allow_undefined_flag_F77=' -expect_unresolved \*'
13722 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13723 fi
13724 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13725 hardcode_libdir_separator_F77=:
13726 ;;
13727
13728 osf4* | osf5*) # as osf3* with the addition of -msym flag
13729 if test "$GCC" = yes; then
13730 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13731 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13732 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13733 else
13734 allow_undefined_flag_F77=' -expect_unresolved \*'
13735 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13736 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13737 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13738
13739 # Both c and cxx compiler support -rpath directly
13740 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13741 fi
13742 hardcode_libdir_separator_F77=:
13743 ;;
13744
13745 sco3.2v5*)
13746 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13747 hardcode_shlibpath_var_F77=no
13748 export_dynamic_flag_spec_F77='${wl}-Bexport'
13749 runpath_var=LD_RUN_PATH
13750 hardcode_runpath_var=yes
13751 ;;
13752
13753 solaris*)
13754 no_undefined_flag_F77=' -z text'
13755 if test "$GCC" = yes; then
13756 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13757 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13758 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13759 else
13760 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13761 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13762 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13763 fi
13764 hardcode_libdir_flag_spec_F77='-R$libdir'
13765 hardcode_shlibpath_var_F77=no
13766 case $host_os in
13767 solaris2.[0-5] | solaris2.[0-5].*) ;;
13768 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13769 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13770 esac
13771 link_all_deplibs_F77=yes
13772 ;;
13773
13774 sunos4*)
13775 if test "x$host_vendor" = xsequent; then
13776 # Use $CC to link under sequent, because it throws in some extra .o
13777 # files that make .init and .fini sections work.
13778 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13779 else
13780 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13781 fi
13782 hardcode_libdir_flag_spec_F77='-L$libdir'
13783 hardcode_direct_F77=yes
13784 hardcode_minus_L_F77=yes
13785 hardcode_shlibpath_var_F77=no
13786 ;;
13787
13788 sysv4)
13789 case $host_vendor in
13790 sni)
13791 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13792 hardcode_direct_F77=yes # is this really true???
13793 ;;
13794 siemens)
13795 ## LD is ld it makes a PLAMLIB
13796 ## CC just makes a GrossModule.
13797 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13798 reload_cmds_F77='$CC -r -o $output$reload_objs'
13799 hardcode_direct_F77=no
13800 ;;
13801 motorola)
13802 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13803 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13804 ;;
13805 esac
13806 runpath_var='LD_RUN_PATH'
13807 hardcode_shlibpath_var_F77=no
13808 ;;
13809
13810 sysv4.3*)
13811 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13812 hardcode_shlibpath_var_F77=no
13813 export_dynamic_flag_spec_F77='-Bexport'
13814 ;;
13815
13816 sysv4*MP*)
13817 if test -d /usr/nec; then
13818 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13819 hardcode_shlibpath_var_F77=no
13820 runpath_var=LD_RUN_PATH
13821 hardcode_runpath_var=yes
13822 ld_shlibs_F77=yes
13823 fi
13824 ;;
13825
13826 sysv4.2uw2*)
13827 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13828 hardcode_direct_F77=yes
13829 hardcode_minus_L_F77=no
13830 hardcode_shlibpath_var_F77=no
13831 hardcode_runpath_var=yes
13832 runpath_var=LD_RUN_PATH
13833 ;;
13834
13835 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13836 no_undefined_flag_F77='${wl}-z ${wl}text'
13837 if test "$GCC" = yes; then
13838 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13839 else
13840 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13841 fi
13842 runpath_var='LD_RUN_PATH'
13843 hardcode_shlibpath_var_F77=no
13844 ;;
13845
13846 sysv5*)
13847 no_undefined_flag_F77=' -z text'
13848 # $CC -shared without GNU ld will not create a library from C++
13849 # object files and a static libstdc++, better avoid it by now
13850 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13851 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13852 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13853 hardcode_libdir_flag_spec_F77=
13854 hardcode_shlibpath_var_F77=no
13855 runpath_var='LD_RUN_PATH'
13856 ;;
13857
13858 uts4*)
13859 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13860 hardcode_libdir_flag_spec_F77='-L$libdir'
13861 hardcode_shlibpath_var_F77=no
13862 ;;
13863
13864 *)
13865 ld_shlibs_F77=no
13866 ;;
13867 esac
13868 fi
13869
13870echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13871echo "${ECHO_T}$ld_shlibs_F77" >&6
13872test "$ld_shlibs_F77" = no && can_build_shared=no
13873
13874variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13875if test "$GCC" = yes; then
13876 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13877fi
13878
13879#
13880# Do we need to explicitly link libc?
13881#
13882case "x$archive_cmds_need_lc_F77" in
13883x|xyes)
13884 # Assume -lc should be added
13885 archive_cmds_need_lc_F77=yes
13886
13887 if test "$enable_shared" = yes && test "$GCC" = yes; then
13888 case $archive_cmds_F77 in
13889 *'~'*)
13890 # FIXME: we may have to deal with multi-command sequences.
13891 ;;
13892 '$CC '*)
13893 # Test whether the compiler implicitly links with -lc since on some
13894 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13895 # to ld, don't add -lc before -lgcc.
13896 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13897echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13898 $rm conftest*
13899 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13900
13901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13902 (eval $ac_compile) 2>&5
13903 ac_status=$?
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); } 2>conftest.err; then
13906 soname=conftest
13907 lib=conftest
13908 libobjs=conftest.$ac_objext
13909 deplibs=
13910 wl=$lt_prog_compiler_wl_F77
13911 compiler_flags=-v
13912 linker_flags=-v
13913 verstring=
13914 output_objdir=.
13915 libname=conftest
13916 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13917 allow_undefined_flag_F77=
13918 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13919 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13920 ac_status=$?
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); }
13923 then
13924 archive_cmds_need_lc_F77=no
13925 else
13926 archive_cmds_need_lc_F77=yes
13927 fi
13928 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13929 else
13930 cat conftest.err 1>&5
13931 fi
13932 $rm conftest*
13933 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13934echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13935 ;;
13936 esac
13937 fi
13938 ;;
13939esac
13940
13941echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13942echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13943hardcode_action_F77=
13944if test -n "$hardcode_libdir_flag_spec_F77" || \
13945 test -n "$runpath_var F77" || \
13946 test "X$hardcode_automatic_F77"="Xyes" ; then
13947
13948 # We can hardcode non-existant directories.
13949 if test "$hardcode_direct_F77" != no &&
13950 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13951 # have to relink, otherwise we might link with an installed library
13952 # when we should be linking with a yet-to-be-installed one
13953 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13954 test "$hardcode_minus_L_F77" != no; then
13955 # Linking always hardcodes the temporary library directory.
13956 hardcode_action_F77=relink
13957 else
13958 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13959 hardcode_action_F77=immediate
13960 fi
13961else
13962 # We cannot hardcode anything, or else we can only hardcode existing
13963 # directories.
13964 hardcode_action_F77=unsupported
13965fi
13966echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13967echo "${ECHO_T}$hardcode_action_F77" >&6
13968
13969if test "$hardcode_action_F77" = relink; then
13970 # Fast installation is not supported
13971 enable_fast_install=no
13972elif test "$shlibpath_overrides_runpath" = yes ||
13973 test "$enable_shared" = no; then
13974 # Fast installation is not necessary
13975 enable_fast_install=needless
13976fi
13977
13978striplib=
13979old_striplib=
13980echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13981echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13982if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13983 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13984 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13985 echo "$as_me:$LINENO: result: yes" >&5
13986echo "${ECHO_T}yes" >&6
13987else
13988# FIXME - insert some real tests, host_os isn't really good enough
13989 case $host_os in
13990 darwin*)
13991 if test -n "$STRIP" ; then
13992 striplib="$STRIP -x"
13993 echo "$as_me:$LINENO: result: yes" >&5
13994echo "${ECHO_T}yes" >&6
13995 else
13996 echo "$as_me:$LINENO: result: no" >&5
13997echo "${ECHO_T}no" >&6
13998fi
13999 ;;
14000 *)
14001 echo "$as_me:$LINENO: result: no" >&5
14002echo "${ECHO_T}no" >&6
14003 ;;
14004 esac
14005fi
14006
14007echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14008echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14009library_names_spec=
14010libname_spec='lib$name'
14011soname_spec=
14012shrext=".so"
14013postinstall_cmds=
14014postuninstall_cmds=
14015finish_cmds=
14016finish_eval=
14017shlibpath_var=
14018shlibpath_overrides_runpath=unknown
14019version_type=none
14020dynamic_linker="$host_os ld.so"
14021sys_lib_dlsearch_path_spec="/lib /usr/lib"
14022if test "$GCC" = yes; then
14023 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14024 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14025 # if the path contains ";" then we assume it to be the separator
14026 # otherwise default to the standard path separator (i.e. ":") - it is
14027 # assumed that no part of a normal pathname contains ";" but that should
14028 # okay in the real world where ";" in dirpaths is itself problematic.
14029 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14030 else
14031 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14032 fi
14033else
14034 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14035fi
14036need_lib_prefix=unknown
14037hardcode_into_libs=no
14038
14039# when you set need_version to no, make sure it does not cause -set_version
14040# flags to be left without arguments
14041need_version=unknown
14042
14043case $host_os in
14044aix3*)
14045 version_type=linux
14046 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14047 shlibpath_var=LIBPATH
14048
14049 # AIX 3 has no versioning support, so we append a major version to the name.
14050 soname_spec='${libname}${release}${shared_ext}$major'
14051 ;;
14052
14053aix4* | aix5*)
14054 version_type=linux
14055 need_lib_prefix=no
14056 need_version=no
14057 hardcode_into_libs=yes
14058 if test "$host_cpu" = ia64; then
14059 # AIX 5 supports IA64
14060 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14061 shlibpath_var=LD_LIBRARY_PATH
14062 else
14063 # With GCC up to 2.95.x, collect2 would create an import file
14064 # for dependence libraries. The import file would start with
14065 # the line `#! .'. This would cause the generated library to
14066 # depend on `.', always an invalid library. This was fixed in
14067 # development snapshots of GCC prior to 3.0.
14068 case $host_os in
14069 aix4 | aix4.[01] | aix4.[01].*)
14070 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14071 echo ' yes '
14072 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14073 :
14074 else
14075 can_build_shared=no
14076 fi
14077 ;;
14078 esac
14079 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14080 # soname into executable. Probably we can add versioning support to
14081 # collect2, so additional links can be useful in future.
14082 if test "$aix_use_runtimelinking" = yes; then
14083 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14084 # instead of lib<name>.a to let people know that these are not
14085 # typical AIX shared libraries.
14086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14087 else
14088 # We preserve .a as extension for shared libraries through AIX4.2
14089 # and later when we are not doing run time linking.
14090 library_names_spec='${libname}${release}.a $libname.a'
14091 soname_spec='${libname}${release}${shared_ext}$major'
14092 fi
14093 shlibpath_var=LIBPATH
14094 fi
14095 ;;
14096
14097amigaos*)
14098 library_names_spec='$libname.ixlibrary $libname.a'
14099 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14100 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
14101 ;;
14102
14103beos*)
14104 library_names_spec='${libname}${shared_ext}'
14105 dynamic_linker="$host_os ld.so"
14106 shlibpath_var=LIBRARY_PATH
14107 ;;
14108
14109bsdi4*)
14110 version_type=linux
14111 need_version=no
14112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14113 soname_spec='${libname}${release}${shared_ext}$major'
14114 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14115 shlibpath_var=LD_LIBRARY_PATH
14116 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14117 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14118 # the default ld.so.conf also contains /usr/contrib/lib and
14119 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14120 # libtool to hard-code these into programs
14121 ;;
14122
14123cygwin* | mingw* | pw32*)
14124 version_type=windows
14125 shrext=".dll"
14126 need_version=no
14127 need_lib_prefix=no
14128
14129 case $GCC,$host_os in
14130 yes,cygwin* | yes,mingw* | yes,pw32*)
14131 library_names_spec='$libname.dll.a'
14132 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14133 postinstall_cmds='base_file=`basename \${file}`~
14134 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14135 dldir=$destdir/`dirname \$dlpath`~
14136 test -d \$dldir || mkdir -p \$dldir~
14137 $install_prog $dir/$dlname \$dldir/$dlname'
14138 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14139 dlpath=$dir/\$dldll~
14140 $rm \$dlpath'
14141 shlibpath_overrides_runpath=yes
14142
14143 case $host_os in
14144 cygwin*)
14145 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14146 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14147 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14148 ;;
14149 mingw*)
14150 # MinGW DLLs use traditional 'lib' prefix
14151 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14152 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14153 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14154 # It is most probably a Windows format PATH printed by
14155 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14156 # path with ; separators, and with drive letters. We can handle the
14157 # drive letters (cygwin fileutils understands them), so leave them,
14158 # especially as we might pass files found there to a mingw objdump,
14159 # which wouldn't understand a cygwinified path. Ahh.
14160 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14161 else
14162 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14163 fi
14164 ;;
14165 pw32*)
14166 # pw32 DLLs use 'pw' prefix rather than 'lib'
14167 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14168 ;;
14169 esac
14170 ;;
14171
14172 *)
14173 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14174 ;;
14175 esac
14176 dynamic_linker='Win32 ld.exe'
14177 # FIXME: first we should search . and the directory the executable is in
14178 shlibpath_var=PATH
14179 ;;
14180
14181darwin* | rhapsody*)
14182 dynamic_linker="$host_os dyld"
14183 version_type=darwin
14184 need_lib_prefix=no
14185 need_version=no
14186 # FIXME: Relying on posixy $() will cause problems for
14187 # cross-compilation, but unfortunately the echo tests do not
14188 # yet detect zsh echo's removal of \ escapes.
14189 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14190 soname_spec='${libname}${release}${major}$shared_ext'
14191 shlibpath_overrides_runpath=yes
14192 shlibpath_var=DYLD_LIBRARY_PATH
14193 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14194 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14195 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14196 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14197 fi
14198 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14199 ;;
14200
14201dgux*)
14202 version_type=linux
14203 need_lib_prefix=no
14204 need_version=no
14205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14206 soname_spec='${libname}${release}${shared_ext}$major'
14207 shlibpath_var=LD_LIBRARY_PATH
14208 ;;
14209
14210freebsd1*)
14211 dynamic_linker=no
14212 ;;
14213
14214freebsd*)
14215 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14216 version_type=freebsd-$objformat
14217 case $version_type in
14218 freebsd-elf*)
14219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14220 need_version=no
14221 need_lib_prefix=no
14222 ;;
14223 freebsd-*)
14224 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14225 need_version=yes
14226 ;;
14227 esac
14228 shlibpath_var=LD_LIBRARY_PATH
14229 case $host_os in
14230 freebsd2*)
14231 shlibpath_overrides_runpath=yes
14232 ;;
14233 freebsd3.01* | freebsdelf3.01*)
14234 shlibpath_overrides_runpath=yes
14235 hardcode_into_libs=yes
14236 ;;
14237 *) # from 3.2 on
14238 shlibpath_overrides_runpath=no
14239 hardcode_into_libs=yes
14240 ;;
14241 esac
14242 ;;
14243
14244gnu*)
14245 version_type=linux
14246 need_lib_prefix=no
14247 need_version=no
14248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14249 soname_spec='${libname}${release}${shared_ext}$major'
14250 shlibpath_var=LD_LIBRARY_PATH
14251 hardcode_into_libs=yes
14252 ;;
14253
14254hpux9* | hpux10* | hpux11*)
14255 # Give a soname corresponding to the major version so that dld.sl refuses to
14256 # link against other versions.
14257 version_type=sunos
14258 need_lib_prefix=no
14259 need_version=no
14260 case "$host_cpu" in
14261 ia64*)
14262 shrext='.so'
14263 hardcode_into_libs=yes
14264 dynamic_linker="$host_os dld.so"
14265 shlibpath_var=LD_LIBRARY_PATH
14266 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14268 soname_spec='${libname}${release}${shared_ext}$major'
14269 if test "X$HPUX_IA64_MODE" = X32; then
14270 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14271 else
14272 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14273 fi
14274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14275 ;;
14276 hppa*64*)
14277 shrext='.sl'
14278 hardcode_into_libs=yes
14279 dynamic_linker="$host_os dld.sl"
14280 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14281 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14283 soname_spec='${libname}${release}${shared_ext}$major'
14284 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14285 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14286 ;;
14287 *)
14288 shrext='.sl'
14289 dynamic_linker="$host_os dld.sl"
14290 shlibpath_var=SHLIB_PATH
14291 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14293 soname_spec='${libname}${release}${shared_ext}$major'
14294 ;;
14295 esac
14296 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14297 postinstall_cmds='chmod 555 $lib'
14298 ;;
14299
14300irix5* | irix6* | nonstopux*)
14301 case $host_os in
14302 nonstopux*) version_type=nonstopux ;;
14303 *)
14304 if test "$lt_cv_prog_gnu_ld" = yes; then
14305 version_type=linux
14306 else
14307 version_type=irix
14308 fi ;;
14309 esac
14310 need_lib_prefix=no
14311 need_version=no
14312 soname_spec='${libname}${release}${shared_ext}$major'
14313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14314 case $host_os in
14315 irix5* | nonstopux*)
14316 libsuff= shlibsuff=
14317 ;;
14318 *)
14319 case $LD in # libtool.m4 will add one of these switches to LD
14320 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14321 libsuff= shlibsuff= libmagic=32-bit;;
14322 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14323 libsuff=32 shlibsuff=N32 libmagic=N32;;
14324 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14325 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14326 *) libsuff= shlibsuff= libmagic=never-match;;
14327 esac
14328 ;;
14329 esac
14330 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14331 shlibpath_overrides_runpath=no
14332 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14333 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14334 hardcode_into_libs=yes
14335 ;;
14336
14337# No shared lib support for Linux oldld, aout, or coff.
14338linux*oldld* | linux*aout* | linux*coff*)
14339 dynamic_linker=no
14340 ;;
14341
14342# This must be Linux ELF.
14343linux*)
14344 version_type=linux
14345 need_lib_prefix=no
14346 need_version=no
14347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14348 soname_spec='${libname}${release}${shared_ext}$major'
14349 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14350 shlibpath_var=LD_LIBRARY_PATH
14351 shlibpath_overrides_runpath=no
14352 # This implies no fast_install, which is unacceptable.
14353 # Some rework will be needed to allow for fast_install
14354 # before this can be enabled.
14355 hardcode_into_libs=yes
14356
14357 # We used to test for /lib/ld.so.1 and disable shared libraries on
14358 # powerpc, because MkLinux only supported shared libraries with the
14359 # GNU dynamic linker. Since this was broken with cross compilers,
14360 # most powerpc-linux boxes support dynamic linking these days and
14361 # people can always --disable-shared, the test was removed, and we
14362 # assume the GNU/Linux dynamic linker is in use.
14363 dynamic_linker='GNU/Linux ld.so'
14364 ;;
14365
14366netbsd*)
14367 version_type=sunos
14368 need_lib_prefix=no
14369 need_version=no
14370 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14372 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14373 dynamic_linker='NetBSD (a.out) ld.so'
14374 else
14375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14376 soname_spec='${libname}${release}${shared_ext}$major'
14377 dynamic_linker='NetBSD ld.elf_so'
14378 fi
14379 shlibpath_var=LD_LIBRARY_PATH
14380 shlibpath_overrides_runpath=yes
14381 hardcode_into_libs=yes
14382 ;;
14383
14384newsos6)
14385 version_type=linux
14386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14387 shlibpath_var=LD_LIBRARY_PATH
14388 shlibpath_overrides_runpath=yes
14389 ;;
14390
14391nto-qnx)
14392 version_type=linux
14393 need_lib_prefix=no
14394 need_version=no
14395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14396 soname_spec='${libname}${release}${shared_ext}$major'
14397 shlibpath_var=LD_LIBRARY_PATH
14398 shlibpath_overrides_runpath=yes
14399 ;;
14400
14401openbsd*)
14402 version_type=sunos
14403 need_lib_prefix=no
14404 need_version=no
14405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14406 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14407 shlibpath_var=LD_LIBRARY_PATH
14408 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14409 case $host_os in
14410 openbsd2.[89] | openbsd2.[89].*)
14411 shlibpath_overrides_runpath=no
14412 ;;
14413 *)
14414 shlibpath_overrides_runpath=yes
14415 ;;
14416 esac
14417 else
14418 shlibpath_overrides_runpath=yes
14419 fi
14420 ;;
14421
14422os2*)
14423 libname_spec='$name'
14424 shrext=".dll"
14425 need_lib_prefix=no
14426 library_names_spec='$libname${shared_ext} $libname.a'
14427 dynamic_linker='OS/2 ld.exe'
14428 shlibpath_var=LIBPATH
14429 ;;
14430
14431osf3* | osf4* | osf5*)
14432 version_type=osf
14433 need_lib_prefix=no
14434 need_version=no
14435 soname_spec='${libname}${release}${shared_ext}$major'
14436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14437 shlibpath_var=LD_LIBRARY_PATH
14438 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14439 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14440 ;;
14441
14442sco3.2v5*)
14443 version_type=osf
14444 soname_spec='${libname}${release}${shared_ext}$major'
14445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14446 shlibpath_var=LD_LIBRARY_PATH
14447 ;;
14448
14449solaris*)
14450 version_type=linux
14451 need_lib_prefix=no
14452 need_version=no
14453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14454 soname_spec='${libname}${release}${shared_ext}$major'
14455 shlibpath_var=LD_LIBRARY_PATH
14456 shlibpath_overrides_runpath=yes
14457 hardcode_into_libs=yes
14458 # ldd complains unless libraries are executable
14459 postinstall_cmds='chmod +x $lib'
14460 ;;
14461
14462sunos4*)
14463 version_type=sunos
14464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14465 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14466 shlibpath_var=LD_LIBRARY_PATH
14467 shlibpath_overrides_runpath=yes
14468 if test "$with_gnu_ld" = yes; then
14469 need_lib_prefix=no
14470 fi
14471 need_version=yes
14472 ;;
14473
14474sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14475 version_type=linux
14476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14477 soname_spec='${libname}${release}${shared_ext}$major'
14478 shlibpath_var=LD_LIBRARY_PATH
14479 case $host_vendor in
14480 sni)
14481 shlibpath_overrides_runpath=no
14482 need_lib_prefix=no
14483 export_dynamic_flag_spec='${wl}-Blargedynsym'
14484 runpath_var=LD_RUN_PATH
14485 ;;
14486 siemens)
14487 need_lib_prefix=no
14488 ;;
14489 motorola)
14490 need_lib_prefix=no
14491 need_version=no
14492 shlibpath_overrides_runpath=no
14493 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14494 ;;
14495 esac
14496 ;;
14497
14498sysv4*MP*)
14499 if test -d /usr/nec ;then
14500 version_type=linux
14501 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14502 soname_spec='$libname${shared_ext}.$major'
14503 shlibpath_var=LD_LIBRARY_PATH
14504 fi
14505 ;;
14506
14507uts4*)
14508 version_type=linux
14509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14510 soname_spec='${libname}${release}${shared_ext}$major'
14511 shlibpath_var=LD_LIBRARY_PATH
14512 ;;
14513
14514*)
14515 dynamic_linker=no
14516 ;;
14517esac
14518echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14519echo "${ECHO_T}$dynamic_linker" >&6
14520test "$dynamic_linker" = no && can_build_shared=no
14521
14522
14523# The else clause should only fire when bootstrapping the
14524# libtool distribution, otherwise you forgot to ship ltmain.sh
14525# with your package, and you will get complaints that there are
14526# no rules to generate ltmain.sh.
14527if test -f "$ltmain"; then
14528 # See if we are running on zsh, and set the options which allow our commands through
14529 # without removal of \ escapes.
14530 if test -n "${ZSH_VERSION+set}" ; then
14531 setopt NO_GLOB_SUBST
14532 fi
14533 # Now quote all the things that may contain metacharacters while being
14534 # careful not to overquote the AC_SUBSTed values. We take copies of the
14535 # variables and quote the copies for generation of the libtool script.
14536 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14537 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14538 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14539 deplibs_check_method reload_flag reload_cmds need_locks \
14540 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14541 lt_cv_sys_global_symbol_to_c_name_address \
14542 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14543 old_postinstall_cmds old_postuninstall_cmds \
14544 compiler_F77 \
14545 CC_F77 \
14546 LD_F77 \
14547 lt_prog_compiler_wl_F77 \
14548 lt_prog_compiler_pic_F77 \
14549 lt_prog_compiler_static_F77 \
14550 lt_prog_compiler_no_builtin_flag_F77 \
14551 export_dynamic_flag_spec_F77 \
14552 thread_safe_flag_spec_F77 \
14553 whole_archive_flag_spec_F77 \
14554 enable_shared_with_static_runtimes_F77 \
14555 old_archive_cmds_F77 \
14556 old_archive_from_new_cmds_F77 \
14557 predep_objects_F77 \
14558 postdep_objects_F77 \
14559 predeps_F77 \
14560 postdeps_F77 \
14561 compiler_lib_search_path_F77 \
14562 archive_cmds_F77 \
14563 archive_expsym_cmds_F77 \
14564 postinstall_cmds_F77 \
14565 postuninstall_cmds_F77 \
14566 old_archive_from_expsyms_cmds_F77 \
14567 allow_undefined_flag_F77 \
14568 no_undefined_flag_F77 \
14569 export_symbols_cmds_F77 \
14570 hardcode_libdir_flag_spec_F77 \
14571 hardcode_libdir_flag_spec_ld_F77 \
14572 hardcode_libdir_separator_F77 \
14573 hardcode_automatic_F77 \
14574 module_cmds_F77 \
14575 module_expsym_cmds_F77 \
14576 lt_cv_prog_compiler_c_o_F77 \
14577 exclude_expsyms_F77 \
14578 include_expsyms_F77; do
14579
14580 case $var in
14581 old_archive_cmds_F77 | \
14582 old_archive_from_new_cmds_F77 | \
14583 archive_cmds_F77 | \
14584 archive_expsym_cmds_F77 | \
14585 module_cmds_F77 | \
14586 module_expsym_cmds_F77 | \
14587 old_archive_from_expsyms_cmds_F77 | \
14588 export_symbols_cmds_F77 | \
14589 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14590 postinstall_cmds | postuninstall_cmds | \
14591 old_postinstall_cmds | old_postuninstall_cmds | \
14592 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14593 # Double-quote double-evaled strings.
14594 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14595 ;;
14596 *)
14597 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14598 ;;
14599 esac
14600 done
14601
14602 case $lt_echo in
14603 *'\$0 --fallback-echo"')
14604 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14605 ;;
14606 esac
14607
14608cfgfile="$ofile"
14609
14610 cat <<__EOF__ >> "$cfgfile"
14611# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14612
14613# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14614
14615# Shell to use when invoking shell scripts.
14616SHELL=$lt_SHELL
14617
14618# Whether or not to build shared libraries.
14619build_libtool_libs=$enable_shared
14620
14621# Whether or not to build static libraries.
14622build_old_libs=$enable_static
14623
14624# Whether or not to add -lc for building shared libraries.
14625build_libtool_need_lc=$archive_cmds_need_lc_F77
14626
14627# Whether or not to disallow shared libs when runtime libs are static
14628allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14629
14630# Whether or not to optimize for fast installation.
14631fast_install=$enable_fast_install
14632
14633# The host system.
14634host_alias=$host_alias
14635host=$host
14636
14637# An echo program that does not interpret backslashes.
14638echo=$lt_echo
14639
14640# The archiver.
14641AR=$lt_AR
14642AR_FLAGS=$lt_AR_FLAGS
14643
14644# A C compiler.
14645LTCC=$lt_LTCC
14646
14647# A language-specific compiler.
14648CC=$lt_compiler_F77
14649
14650# Is the compiler the GNU C compiler?
14651with_gcc=$GCC_F77
14652
14653# An ERE matcher.
14654EGREP=$lt_EGREP
14655
14656# The linker used to build libraries.
14657LD=$lt_LD_F77
14658
14659# Whether we need hard or soft links.
14660LN_S=$lt_LN_S
14661
14662# A BSD-compatible nm program.
14663NM=$lt_NM
14664
14665# A symbol stripping program
14666STRIP=$STRIP
14667
14668# Used to examine libraries when file_magic_cmd begins "file"
14669MAGIC_CMD=$MAGIC_CMD
14670
14671# Used on cygwin: DLL creation program.
14672DLLTOOL="$DLLTOOL"
14673
14674# Used on cygwin: object dumper.
14675OBJDUMP="$OBJDUMP"
14676
14677# Used on cygwin: assembler.
14678AS="$AS"
14679
14680# The name of the directory that contains temporary libtool files.
14681objdir=$objdir
14682
14683# How to create reloadable object files.
14684reload_flag=$lt_reload_flag
14685reload_cmds=$lt_reload_cmds
14686
14687# How to pass a linker flag through the compiler.
14688wl=$lt_lt_prog_compiler_wl_F77
14689
14690# Object file suffix (normally "o").
14691objext="$ac_objext"
14692
14693# Old archive suffix (normally "a").
14694libext="$libext"
14695
14696# Shared library suffix (normally ".so").
14697shrext='$shrext'
14698
14699# Executable file suffix (normally "").
14700exeext="$exeext"
14701
14702# Additional compiler flags for building library objects.
14703pic_flag=$lt_lt_prog_compiler_pic_F77
14704pic_mode=$pic_mode
14705
14706# What is the maximum length of a command?
14707max_cmd_len=$lt_cv_sys_max_cmd_len
14708
14709# Does compiler simultaneously support -c and -o options?
14710compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14711
14712# Must we lock files when doing compilation ?
14713need_locks=$lt_need_locks
14714
14715# Do we need the lib prefix for modules?
14716need_lib_prefix=$need_lib_prefix
14717
14718# Do we need a version for libraries?
14719need_version=$need_version
14720
14721# Whether dlopen is supported.
14722dlopen_support=$enable_dlopen
14723
14724# Whether dlopen of programs is supported.
14725dlopen_self=$enable_dlopen_self
14726
14727# Whether dlopen of statically linked programs is supported.
14728dlopen_self_static=$enable_dlopen_self_static
14729
14730# Compiler flag to prevent dynamic linking.
14731link_static_flag=$lt_lt_prog_compiler_static_F77
14732
14733# Compiler flag to turn off builtin functions.
14734no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14735
14736# Compiler flag to allow reflexive dlopens.
14737export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14738
14739# Compiler flag to generate shared objects directly from archives.
14740whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14741
14742# Compiler flag to generate thread-safe objects.
14743thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14744
14745# Library versioning type.
14746version_type=$version_type
14747
14748# Format of library name prefix.
14749libname_spec=$lt_libname_spec
14750
14751# List of archive names. First name is the real one, the rest are links.
14752# The last name is the one that the linker finds with -lNAME.
14753library_names_spec=$lt_library_names_spec
14754
14755# The coded name of the library, if different from the real name.
14756soname_spec=$lt_soname_spec
14757
14758# Commands used to build and install an old-style archive.
14759RANLIB=$lt_RANLIB
14760old_archive_cmds=$lt_old_archive_cmds_F77
14761old_postinstall_cmds=$lt_old_postinstall_cmds
14762old_postuninstall_cmds=$lt_old_postuninstall_cmds
14763
14764# Create an old-style archive from a shared archive.
14765old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14766
14767# Create a temporary old-style archive to link instead of a shared archive.
14768old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14769
14770# Commands used to build and install a shared archive.
14771archive_cmds=$lt_archive_cmds_F77
14772archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14773postinstall_cmds=$lt_postinstall_cmds
14774postuninstall_cmds=$lt_postuninstall_cmds
14775
14776# Commands used to build a loadable module (assumed same as above if empty)
14777module_cmds=$lt_module_cmds_F77
14778module_expsym_cmds=$lt_module_expsym_cmds_F77
14779
14780# Commands to strip libraries.
14781old_striplib=$lt_old_striplib
14782striplib=$lt_striplib
14783
14784# Dependencies to place before the objects being linked to create a
14785# shared library.
14786predep_objects=$lt_predep_objects_F77
14787
14788# Dependencies to place after the objects being linked to create a
14789# shared library.
14790postdep_objects=$lt_postdep_objects_F77
14791
14792# Dependencies to place before the objects being linked to create a
14793# shared library.
14794predeps=$lt_predeps_F77
14795
14796# Dependencies to place after the objects being linked to create a
14797# shared library.
14798postdeps=$lt_postdeps_F77
14799
14800# The library search path used internally by the compiler when linking
14801# a shared library.
14802compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14803
14804# Method to check whether dependent libraries are shared objects.
14805deplibs_check_method=$lt_deplibs_check_method
14806
14807# Command to use when deplibs_check_method == file_magic.
14808file_magic_cmd=$lt_file_magic_cmd
14809
14810# Flag that allows shared libraries with undefined symbols to be built.
14811allow_undefined_flag=$lt_allow_undefined_flag_F77
14812
14813# Flag that forces no undefined symbols.
14814no_undefined_flag=$lt_no_undefined_flag_F77
14815
14816# Commands used to finish a libtool library installation in a directory.
14817finish_cmds=$lt_finish_cmds
14818
14819# Same as above, but a single script fragment to be evaled but not shown.
14820finish_eval=$lt_finish_eval
14821
14822# Take the output of nm and produce a listing of raw symbols and C names.
14823global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14824
14825# Transform the output of nm in a proper C declaration
14826global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14827
14828# Transform the output of nm in a C name address pair
14829global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14830
14831# This is the shared library runtime path variable.
14832runpath_var=$runpath_var
14833
14834# This is the shared library path variable.
14835shlibpath_var=$shlibpath_var
14836
14837# Is shlibpath searched before the hard-coded library search path?
14838shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14839
14840# How to hardcode a shared library path into an executable.
14841hardcode_action=$hardcode_action_F77
14842
14843# Whether we should hardcode library paths into libraries.
14844hardcode_into_libs=$hardcode_into_libs
14845
14846# Flag to hardcode \$libdir into a binary during linking.
14847# This must work even if \$libdir does not exist.
14848hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14849
14850# If ld is used when linking, flag to hardcode \$libdir into
14851# a binary during linking. This must work even if \$libdir does
14852# not exist.
14853hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14854
14855# Whether we need a single -rpath flag with a separated argument.
14856hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14857
14858# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14859# resulting binary.
14860hardcode_direct=$hardcode_direct_F77
14861
14862# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14863# resulting binary.
14864hardcode_minus_L=$hardcode_minus_L_F77
14865
14866# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14867# the resulting binary.
14868hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14869
14870# Set to yes if building a shared library automatically hardcodes DIR into the library
14871# and all subsequent libraries and executables linked against it.
14872hardcode_automatic=$hardcode_automatic_F77
14873
14874# Variables whose values should be saved in libtool wrapper scripts and
14875# restored at relink time.
14876variables_saved_for_relink="$variables_saved_for_relink"
14877
14878# Whether libtool must link a program against all its dependency libraries.
14879link_all_deplibs=$link_all_deplibs_F77
14880
14881# Compile-time system search path for libraries
14882sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14883
14884# Run-time system search path for libraries
14885sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14886
14887# Fix the shell variable \$srcfile for the compiler.
14888fix_srcfile_path="$fix_srcfile_path_F77"
14889
14890# Set to yes if exported symbols are required.
14891always_export_symbols=$always_export_symbols_F77
14892
14893# The commands to list exported symbols.
14894export_symbols_cmds=$lt_export_symbols_cmds_F77
14895
14896# The commands to extract the exported symbol list from a shared archive.
14897extract_expsyms_cmds=$lt_extract_expsyms_cmds
14898
14899# Symbols that should not be listed in the preloaded symbols.
14900exclude_expsyms=$lt_exclude_expsyms_F77
14901
14902# Symbols that must always be exported.
14903include_expsyms=$lt_include_expsyms_F77
14904
14905# ### END LIBTOOL TAG CONFIG: $tagname
14906
14907__EOF__
14908
14909
14910else
14911 # If there is no Makefile yet, we rely on a make rule to execute
14912 # `config.status --recheck' to rerun these tests and create the
14913 # libtool script then.
14914 test -f Makefile && make "$ltmain"
14915fi
14916
14917
14918ac_ext=c
14919ac_cpp='$CPP $CPPFLAGS'
14920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14922ac_compiler_gnu=$ac_cv_c_compiler_gnu
14923
14924CC="$lt_save_CC"
14925
14926 else
14927 tagname=""
14928 fi
14929 ;;
14930
14931 GCJ)
14932 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14933
14934
14935
14936# Source file extension for Java test sources.
14937ac_ext=java
14938
14939# Object file extension for compiled Java test sources.
14940objext=o
14941objext_GCJ=$objext
14942
14943# Code to be used in simple compile tests
14944lt_simple_compile_test_code="class foo {}\n"
14945
14946# Code to be used in simple link tests
14947lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14948
14949# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14950
14951# If no C compiler was specified, use CC.
14952LTCC=${LTCC-"$CC"}
14953
14954# Allow CC to be a program name with arguments.
14955compiler=$CC
14956
14957
14958# Allow CC to be a program name with arguments.
14959lt_save_CC="$CC"
14960CC=${GCJ-"gcj"}
14961compiler=$CC
14962compiler_GCJ=$CC
14963
14964# GCJ did not exist at the time GCC didn't implicitly link libc in.
14965archive_cmds_need_lc_GCJ=no
14966
14967## CAVEAT EMPTOR:
14968## There is no encapsulation within the following macros, do not change
14969## the running order or otherwise move them around unless you know exactly
14970## what you are doing...
14971
14972lt_prog_compiler_no_builtin_flag_GCJ=
14973
14974if test "$GCC" = yes; then
14975 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14976
14977 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14978echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14979if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14980 echo $ECHO_N "(cached) $ECHO_C" >&6
14981else
14982 lt_cv_prog_compiler_rtti_exceptions=no
14983 ac_outfile=conftest.$ac_objext
14984 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14985 lt_compiler_flag="-fno-rtti -fno-exceptions"
14986 # Insert the option either (1) after the last *FLAGS variable, or
14987 # (2) before a word containing "conftest.", or (3) at the end.
14988 # Note that $ac_compile itself does not contain backslashes and begins
14989 # with a dollar sign (not a hyphen), so the echo should work correctly.
14990 # The option is referenced via a variable to avoid confusing sed.
14991 lt_compile=`echo "$ac_compile" | $SED \
14992 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14994 -e 's:$: $lt_compiler_flag:'`
John Criswellffaaf3b2003-09-10 18:38:44 +000014995 (eval echo "\"\$as_me:14995: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014996 (eval "$lt_compile" 2>conftest.err)
14997 ac_status=$?
14998 cat conftest.err >&5
John Criswellffaaf3b2003-09-10 18:38:44 +000014999 echo "$as_me:14999: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015000 if (exit $ac_status) && test -s "$ac_outfile"; then
15001 # The compiler can only warn and ignore the option if not recognized
15002 # So say no if there are warnings
15003 if test ! -s conftest.err; then
15004 lt_cv_prog_compiler_rtti_exceptions=yes
15005 fi
15006 fi
15007 $rm conftest*
15008
15009fi
15010echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15011echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15012
15013if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15014 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15015else
15016 :
15017fi
15018
15019fi
15020
15021lt_prog_compiler_wl_GCJ=
15022lt_prog_compiler_pic_GCJ=
15023lt_prog_compiler_static_GCJ=
15024
15025echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15026echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15027
15028 if test "$GCC" = yes; then
15029 lt_prog_compiler_wl_GCJ='-Wl,'
15030 lt_prog_compiler_static_GCJ='-static'
15031
15032 case $host_os in
15033 aix*)
15034 # All AIX code is PIC.
15035 if test "$host_cpu" = ia64; then
15036 # AIX 5 now supports IA64 processor
15037 lt_prog_compiler_static_GCJ='-Bstatic'
15038 fi
15039 ;;
15040
15041 amigaos*)
15042 # FIXME: we need at least 68020 code to build shared libraries, but
15043 # adding the `-m68020' flag to GCC prevents building anything better,
15044 # like `-m68040'.
15045 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15046 ;;
15047
15048 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15049 # PIC is the default for these OSes.
15050 ;;
15051
15052 mingw* | pw32* | os2*)
15053 # This hack is so that the source file can tell whether it is being
15054 # built for inclusion in a dll (and should export symbols for example).
15055 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15056 ;;
15057
15058 darwin* | rhapsody*)
15059 # PIC is the default on this platform
15060 # Common symbols not allowed in MH_DYLIB files
15061 lt_prog_compiler_pic_GCJ='-fno-common'
15062 ;;
15063
15064 msdosdjgpp*)
15065 # Just because we use GCC doesn't mean we suddenly get shared libraries
15066 # on systems that don't support them.
15067 lt_prog_compiler_can_build_shared_GCJ=no
15068 enable_shared=no
15069 ;;
15070
15071 sysv4*MP*)
15072 if test -d /usr/nec; then
15073 lt_prog_compiler_pic_GCJ=-Kconform_pic
15074 fi
15075 ;;
15076
15077 hpux*)
15078 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15079 # not for PA HP-UX.
15080 case "$host_cpu" in
15081 hppa*64*|ia64*)
15082 # +Z the default
15083 ;;
15084 *)
15085 lt_prog_compiler_pic_GCJ='-fPIC'
15086 ;;
15087 esac
15088 ;;
15089
15090 *)
15091 lt_prog_compiler_pic_GCJ='-fPIC'
15092 ;;
15093 esac
15094 else
15095 # PORTME Check for flag to pass linker flags through the system compiler.
15096 case $host_os in
15097 aix*)
15098 lt_prog_compiler_wl_GCJ='-Wl,'
15099 if test "$host_cpu" = ia64; then
15100 # AIX 5 now supports IA64 processor
15101 lt_prog_compiler_static_GCJ='-Bstatic'
15102 else
15103 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15104 fi
15105 ;;
15106
15107 mingw* | pw32* | os2*)
15108 # This hack is so that the source file can tell whether it is being
15109 # built for inclusion in a dll (and should export symbols for example).
15110 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15111 ;;
15112
15113 hpux9* | hpux10* | hpux11*)
15114 lt_prog_compiler_wl_GCJ='-Wl,'
15115 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15116 # not for PA HP-UX.
15117 case "$host_cpu" in
15118 hppa*64*|ia64*)
15119 # +Z the default
15120 ;;
15121 *)
15122 lt_prog_compiler_pic_GCJ='+Z'
15123 ;;
15124 esac
15125 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15126 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15127 ;;
15128
15129 irix5* | irix6* | nonstopux*)
15130 lt_prog_compiler_wl_GCJ='-Wl,'
15131 # PIC (with -KPIC) is the default.
15132 lt_prog_compiler_static_GCJ='-non_shared'
15133 ;;
15134
15135 newsos6)
15136 lt_prog_compiler_pic_GCJ='-KPIC'
15137 lt_prog_compiler_static_GCJ='-Bstatic'
15138 ;;
15139
15140 linux*)
15141 case $CC in
15142 icc|ecc)
15143 lt_prog_compiler_wl_GCJ='-Wl,'
15144 lt_prog_compiler_pic_GCJ='-KPIC'
15145 lt_prog_compiler_static_GCJ='-static'
15146 ;;
15147 ccc)
15148 lt_prog_compiler_wl_GCJ='-Wl,'
15149 # All Alpha code is PIC.
15150 lt_prog_compiler_static_GCJ='-non_shared'
15151 ;;
15152 esac
15153 ;;
15154
15155 osf3* | osf4* | osf5*)
15156 lt_prog_compiler_wl_GCJ='-Wl,'
15157 # All OSF/1 code is PIC.
15158 lt_prog_compiler_static_GCJ='-non_shared'
15159 ;;
15160
15161 sco3.2v5*)
15162 lt_prog_compiler_pic_GCJ='-Kpic'
15163 lt_prog_compiler_static_GCJ='-dn'
15164 ;;
15165
15166 solaris*)
15167 lt_prog_compiler_wl_GCJ='-Wl,'
15168 lt_prog_compiler_pic_GCJ='-KPIC'
15169 lt_prog_compiler_static_GCJ='-Bstatic'
15170 ;;
15171
15172 sunos4*)
15173 lt_prog_compiler_wl_GCJ='-Qoption ld '
15174 lt_prog_compiler_pic_GCJ='-PIC'
15175 lt_prog_compiler_static_GCJ='-Bstatic'
15176 ;;
15177
15178 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15179 lt_prog_compiler_wl_GCJ='-Wl,'
15180 lt_prog_compiler_pic_GCJ='-KPIC'
15181 lt_prog_compiler_static_GCJ='-Bstatic'
15182 ;;
15183
15184 sysv4*MP*)
15185 if test -d /usr/nec ;then
15186 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15187 lt_prog_compiler_static_GCJ='-Bstatic'
15188 fi
15189 ;;
15190
15191 uts4*)
15192 lt_prog_compiler_pic_GCJ='-pic'
15193 lt_prog_compiler_static_GCJ='-Bstatic'
15194 ;;
15195
15196 *)
15197 lt_prog_compiler_can_build_shared_GCJ=no
15198 ;;
15199 esac
15200 fi
15201
15202echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15203echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15204
15205#
15206# Check to make sure the PIC flag actually works.
15207#
15208if test -n "$lt_prog_compiler_pic_GCJ"; then
15209 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15210echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15211if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15212 echo $ECHO_N "(cached) $ECHO_C" >&6
15213else
15214 lt_prog_compiler_pic_works_GCJ=no
15215 ac_outfile=conftest.$ac_objext
15216 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15217 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15218 # Insert the option either (1) after the last *FLAGS variable, or
15219 # (2) before a word containing "conftest.", or (3) at the end.
15220 # Note that $ac_compile itself does not contain backslashes and begins
15221 # with a dollar sign (not a hyphen), so the echo should work correctly.
15222 # The option is referenced via a variable to avoid confusing sed.
15223 lt_compile=`echo "$ac_compile" | $SED \
15224 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15225 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15226 -e 's:$: $lt_compiler_flag:'`
John Criswellffaaf3b2003-09-10 18:38:44 +000015227 (eval echo "\"\$as_me:15227: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015228 (eval "$lt_compile" 2>conftest.err)
15229 ac_status=$?
15230 cat conftest.err >&5
John Criswellffaaf3b2003-09-10 18:38:44 +000015231 echo "$as_me:15231: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015232 if (exit $ac_status) && test -s "$ac_outfile"; then
15233 # The compiler can only warn and ignore the option if not recognized
15234 # So say no if there are warnings
15235 if test ! -s conftest.err; then
15236 lt_prog_compiler_pic_works_GCJ=yes
15237 fi
15238 fi
15239 $rm conftest*
15240
15241fi
15242echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15243echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15244
15245if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15246 case $lt_prog_compiler_pic_GCJ in
15247 "" | " "*) ;;
15248 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15249 esac
15250else
15251 lt_prog_compiler_pic_GCJ=
15252 lt_prog_compiler_can_build_shared_GCJ=no
15253fi
15254
15255fi
15256case "$host_os" in
15257 # For platforms which do not support PIC, -DPIC is meaningless:
15258 *djgpp*)
15259 lt_prog_compiler_pic_GCJ=
15260 ;;
15261 *)
15262 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15263 ;;
15264esac
15265
15266echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15267echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15268if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15269 echo $ECHO_N "(cached) $ECHO_C" >&6
15270else
15271 lt_cv_prog_compiler_c_o_GCJ=no
15272 $rm -r conftest 2>/dev/null
15273 mkdir conftest
15274 cd conftest
15275 mkdir out
15276 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15277
15278 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15279 # that will create temporary files in the current directory regardless of
15280 # the output directory. Thus, making CWD read-only will cause this test
15281 # to fail, enabling locking or at least warning the user not to do parallel
15282 # builds.
15283 chmod -w .
15284
15285 lt_compiler_flag="-o out/conftest2.$ac_objext"
15286 # Insert the option either (1) after the last *FLAGS variable, or
15287 # (2) before a word containing "conftest.", or (3) at the end.
15288 # Note that $ac_compile itself does not contain backslashes and begins
15289 # with a dollar sign (not a hyphen), so the echo should work correctly.
15290 lt_compile=`echo "$ac_compile" | $SED \
15291 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15292 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15293 -e 's:$: $lt_compiler_flag:'`
John Criswellffaaf3b2003-09-10 18:38:44 +000015294 (eval echo "\"\$as_me:15294: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015295 (eval "$lt_compile" 2>out/conftest.err)
15296 ac_status=$?
15297 cat out/conftest.err >&5
John Criswellffaaf3b2003-09-10 18:38:44 +000015298 echo "$as_me:15298: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015299 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15300 then
15301 # The compiler can only warn and ignore the option if not recognized
15302 # So say no if there are warnings
15303 if test ! -s out/conftest.err; then
15304 lt_cv_prog_compiler_c_o_GCJ=yes
15305 fi
15306 fi
15307 chmod u+w .
15308 $rm conftest* out/*
15309 rmdir out
15310 cd ..
15311 rmdir conftest
15312 $rm conftest*
15313
15314fi
15315echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15316echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15317
15318
15319hard_links="nottested"
15320if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15321 # do not overwrite the value of need_locks provided by the user
15322 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15323echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15324 hard_links=yes
15325 $rm conftest*
15326 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15327 touch conftest.a
15328 ln conftest.a conftest.b 2>&5 || hard_links=no
15329 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15330 echo "$as_me:$LINENO: result: $hard_links" >&5
15331echo "${ECHO_T}$hard_links" >&6
15332 if test "$hard_links" = no; then
15333 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15334echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15335 need_locks=warn
15336 fi
15337else
15338 need_locks=no
15339fi
15340
15341echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15342echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15343
15344 runpath_var=
15345 allow_undefined_flag_GCJ=
15346 enable_shared_with_static_runtimes_GCJ=no
15347 archive_cmds_GCJ=
15348 archive_expsym_cmds_GCJ=
15349 old_archive_From_new_cmds_GCJ=
15350 old_archive_from_expsyms_cmds_GCJ=
15351 export_dynamic_flag_spec_GCJ=
15352 whole_archive_flag_spec_GCJ=
15353 thread_safe_flag_spec_GCJ=
15354 hardcode_libdir_flag_spec_GCJ=
15355 hardcode_libdir_flag_spec_ld_GCJ=
15356 hardcode_libdir_separator_GCJ=
15357 hardcode_direct_GCJ=no
15358 hardcode_minus_L_GCJ=no
15359 hardcode_shlibpath_var_GCJ=unsupported
15360 link_all_deplibs_GCJ=unknown
15361 hardcode_automatic_GCJ=no
15362 module_cmds_GCJ=
15363 module_expsym_cmds_GCJ=
15364 always_export_symbols_GCJ=no
15365 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15366 # include_expsyms should be a list of space-separated symbols to be *always*
15367 # included in the symbol list
15368 include_expsyms_GCJ=
15369 # exclude_expsyms can be an extended regexp of symbols to exclude
15370 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15371 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15372 # as well as any symbol that contains `d'.
15373 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15374 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15375 # platforms (ab)use it in PIC code, but their linkers get confused if
15376 # the symbol is explicitly referenced. Since portable code cannot
15377 # rely on this symbol name, it's probably fine to never include it in
15378 # preloaded symbol tables.
15379 extract_expsyms_cmds=
15380
15381 case $host_os in
15382 cygwin* | mingw* | pw32*)
15383 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15384 # When not using gcc, we currently assume that we are using
15385 # Microsoft Visual C++.
15386 if test "$GCC" != yes; then
15387 with_gnu_ld=no
15388 fi
15389 ;;
15390 openbsd*)
15391 with_gnu_ld=no
15392 ;;
15393 esac
15394
15395 ld_shlibs_GCJ=yes
15396 if test "$with_gnu_ld" = yes; then
15397 # If archive_cmds runs LD, not CC, wlarc should be empty
15398 wlarc='${wl}'
15399
15400 # See if GNU ld supports shared libraries.
15401 case $host_os in
15402 aix3* | aix4* | aix5*)
15403 # On AIX/PPC, the GNU linker is very broken
15404 if test "$host_cpu" != ia64; then
15405 ld_shlibs_GCJ=no
15406 cat <<EOF 1>&2
15407
15408*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15409*** to be unable to reliably create shared libraries on AIX.
15410*** Therefore, libtool is disabling shared libraries support. If you
15411*** really care for shared libraries, you may want to modify your PATH
15412*** so that a non-GNU linker is found, and then restart.
15413
15414EOF
15415 fi
15416 ;;
15417
15418 amigaos*)
15419 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15420 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15421 hardcode_minus_L_GCJ=yes
15422
15423 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15424 # that the semantics of dynamic libraries on AmigaOS, at least up
15425 # to version 4, is to share data among multiple programs linked
15426 # with the same dynamic library. Since this doesn't match the
15427 # behavior of shared libraries on other platforms, we can't use
15428 # them.
15429 ld_shlibs_GCJ=no
15430 ;;
15431
15432 beos*)
15433 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15434 allow_undefined_flag_GCJ=unsupported
15435 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15436 # support --undefined. This deserves some investigation. FIXME
15437 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15438 else
15439 ld_shlibs_GCJ=no
15440 fi
15441 ;;
15442
15443 cygwin* | mingw* | pw32*)
15444 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15445 # as there is no search path for DLLs.
15446 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15447 allow_undefined_flag_GCJ=unsupported
15448 always_export_symbols_GCJ=no
15449 enable_shared_with_static_runtimes_GCJ=yes
15450 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15451
15452 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15453 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15454 # If the export-symbols file already is a .def file (1st line
15455 # is EXPORTS), use it as is; otherwise, prepend...
15456 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15457 cp $export_symbols $output_objdir/$soname.def;
15458 else
15459 echo EXPORTS > $output_objdir/$soname.def;
15460 cat $export_symbols >> $output_objdir/$soname.def;
15461 fi~
15462 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15463 else
15464 ld_shlibs=no
15465 fi
15466 ;;
15467
15468 netbsd*)
15469 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15470 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15471 wlarc=
15472 else
15473 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15474 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15475 fi
15476 ;;
15477
15478 solaris* | sysv5*)
15479 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15480 ld_shlibs_GCJ=no
15481 cat <<EOF 1>&2
15482
15483*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15484*** create shared libraries on Solaris systems. Therefore, libtool
15485*** is disabling shared libraries support. We urge you to upgrade GNU
15486*** binutils to release 2.9.1 or newer. Another option is to modify
15487*** your PATH or compiler configuration so that the native linker is
15488*** used, and then restart.
15489
15490EOF
15491 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15492 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15493 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15494 else
15495 ld_shlibs_GCJ=no
15496 fi
15497 ;;
15498
15499 sunos4*)
15500 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15501 wlarc=
15502 hardcode_direct_GCJ=yes
15503 hardcode_shlibpath_var_GCJ=no
15504 ;;
15505
15506 *)
15507 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15508 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15509 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15510 else
15511 ld_shlibs_GCJ=no
15512 fi
15513 ;;
15514 esac
15515
15516 if test "$ld_shlibs_GCJ" = yes; then
15517 runpath_var=LD_RUN_PATH
15518 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15519 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15520 # ancient GNU ld didn't support --whole-archive et. al.
15521 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15522 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15523 else
15524 whole_archive_flag_spec_GCJ=
15525 fi
15526 fi
15527 else
15528 # PORTME fill in a description of your system's linker (not GNU ld)
15529 case $host_os in
15530 aix3*)
15531 allow_undefined_flag_GCJ=unsupported
15532 always_export_symbols_GCJ=yes
15533 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15534 # Note: this linker hardcodes the directories in LIBPATH if there
15535 # are no directories specified by -L.
15536 hardcode_minus_L_GCJ=yes
15537 if test "$GCC" = yes && test -z "$link_static_flag"; then
15538 # Neither direct hardcoding nor static linking is supported with a
15539 # broken collect2.
15540 hardcode_direct_GCJ=unsupported
15541 fi
15542 ;;
15543
15544 aix4* | aix5*)
15545 if test "$host_cpu" = ia64; then
15546 # On IA64, the linker does run time linking by default, so we don't
15547 # have to do anything special.
15548 aix_use_runtimelinking=no
15549 exp_sym_flag='-Bexport'
15550 no_entry_flag=""
15551 else
15552 # If we're using GNU nm, then we don't want the "-C" option.
15553 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15554 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15555 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15556 else
15557 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15558 fi
15559 aix_use_runtimelinking=no
15560
15561 # Test if we are trying to use run time linking or normal
15562 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15563 # need to do runtime linking.
15564 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15565 for ld_flag in $LDFLAGS; do
15566 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15567 aix_use_runtimelinking=yes
15568 break
15569 fi
15570 done
15571 esac
15572
15573 exp_sym_flag='-bexport'
15574 no_entry_flag='-bnoentry'
15575 fi
15576
15577 # When large executables or shared objects are built, AIX ld can
15578 # have problems creating the table of contents. If linking a library
15579 # or program results in "error TOC overflow" add -mminimal-toc to
15580 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15581 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15582
15583 archive_cmds_GCJ=''
15584 hardcode_direct_GCJ=yes
15585 hardcode_libdir_separator_GCJ=':'
15586 link_all_deplibs_GCJ=yes
15587
15588 if test "$GCC" = yes; then
15589 case $host_os in aix4.012|aix4.012.*)
15590 # We only want to do this on AIX 4.2 and lower, the check
15591 # below for broken collect2 doesn't work under 4.3+
15592 collect2name=`${CC} -print-prog-name=collect2`
15593 if test -f "$collect2name" && \
15594 strings "$collect2name" | grep resolve_lib_name >/dev/null
15595 then
15596 # We have reworked collect2
15597 hardcode_direct_GCJ=yes
15598 else
15599 # We have old collect2
15600 hardcode_direct_GCJ=unsupported
15601 # It fails to find uninstalled libraries when the uninstalled
15602 # path is not listed in the libpath. Setting hardcode_minus_L
15603 # to unsupported forces relinking
15604 hardcode_minus_L_GCJ=yes
15605 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15606 hardcode_libdir_separator_GCJ=
15607 fi
15608 esac
15609 shared_flag='-shared'
15610 else
15611 # not using gcc
15612 if test "$host_cpu" = ia64; then
15613 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15614 # chokes on -Wl,-G. The following line is correct:
15615 shared_flag='-G'
15616 else
15617 if test "$aix_use_runtimelinking" = yes; then
15618 shared_flag='${wl}-G'
15619 else
15620 shared_flag='${wl}-bM:SRE'
15621 fi
15622 fi
15623 fi
15624
15625 # It seems that -bexpall does not export symbols beginning with
15626 # underscore (_), so it is better to generate a list of symbols to export.
15627 always_export_symbols_GCJ=yes
15628 if test "$aix_use_runtimelinking" = yes; then
15629 # Warning - without using the other runtime loading flags (-brtl),
15630 # -berok will link without error, but may produce a broken library.
15631 allow_undefined_flag_GCJ='-berok'
15632 # Determine the default libpath from the value encoded in an empty executable.
15633 cat >conftest.$ac_ext <<_ACEOF
15634#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015635/* confdefs.h. */
15636_ACEOF
15637cat confdefs.h >>conftest.$ac_ext
15638cat >>conftest.$ac_ext <<_ACEOF
15639/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015640
John Criswell47fdd832003-07-14 16:52:07 +000015641int
15642main ()
15643{
15644
15645 ;
15646 return 0;
15647}
15648_ACEOF
15649rm -f conftest.$ac_objext conftest$ac_exeext
15650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15651 (eval $ac_link) 2>&5
15652 ac_status=$?
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); } &&
15655 { ac_try='test -s conftest$ac_exeext'
15656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15657 (eval $ac_try) 2>&5
15658 ac_status=$?
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); }; }; then
15661
15662aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15663}'`
15664# Check for a 64-bit object if we didn't find anything.
15665if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15666}'`; fi
15667else
15668 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015669sed 's/^/| /' conftest.$ac_ext >&5
15670
John Criswell47fdd832003-07-14 16:52:07 +000015671fi
15672rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15673if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15674
15675 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15676 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15677 else
15678 if test "$host_cpu" = ia64; then
15679 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15680 allow_undefined_flag_GCJ="-z nodefs"
15681 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15682 else
15683 # Determine the default libpath from the value encoded in an empty executable.
15684 cat >conftest.$ac_ext <<_ACEOF
15685#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015686/* confdefs.h. */
15687_ACEOF
15688cat confdefs.h >>conftest.$ac_ext
15689cat >>conftest.$ac_ext <<_ACEOF
15690/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015691
John Criswell47fdd832003-07-14 16:52:07 +000015692int
15693main ()
15694{
15695
15696 ;
15697 return 0;
15698}
15699_ACEOF
15700rm -f conftest.$ac_objext conftest$ac_exeext
15701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15702 (eval $ac_link) 2>&5
15703 ac_status=$?
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); } &&
15706 { ac_try='test -s conftest$ac_exeext'
15707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15708 (eval $ac_try) 2>&5
15709 ac_status=$?
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); }; }; then
15712
15713aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15714}'`
15715# Check for a 64-bit object if we didn't find anything.
15716if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15717}'`; fi
15718else
15719 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015720sed 's/^/| /' conftest.$ac_ext >&5
15721
John Criswell47fdd832003-07-14 16:52:07 +000015722fi
15723rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15724if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15725
15726 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15727 # Warning - without using the other run time loading flags,
15728 # -berok will link without error, but may produce a broken library.
15729 no_undefined_flag_GCJ=' ${wl}-bernotok'
15730 allow_undefined_flag_GCJ=' ${wl}-berok'
15731 # -bexpall does not export symbols beginning with underscore (_)
15732 always_export_symbols_GCJ=yes
15733 # Exported symbols can be pulled into shared objects from archives
15734 whole_archive_flag_spec_GCJ=' '
15735 archive_cmds_need_lc_GCJ=yes
15736 # This is similar to how AIX traditionally builds it's shared libraries.
15737 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15738 fi
15739 fi
15740 ;;
15741
15742 amigaos*)
15743 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15744 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15745 hardcode_minus_L_GCJ=yes
15746 # see comment about different semantics on the GNU ld section
15747 ld_shlibs_GCJ=no
15748 ;;
15749
15750 bsdi4*)
15751 export_dynamic_flag_spec_GCJ=-rdynamic
15752 ;;
15753
15754 cygwin* | mingw* | pw32*)
15755 # When not using gcc, we currently assume that we are using
15756 # Microsoft Visual C++.
15757 # hardcode_libdir_flag_spec is actually meaningless, as there is
15758 # no search path for DLLs.
15759 hardcode_libdir_flag_spec_GCJ=' '
15760 allow_undefined_flag_GCJ=unsupported
15761 # Tell ltmain to make .lib files, not .a files.
15762 libext=lib
15763 # Tell ltmain to make .dll files, not .so files.
15764 shrext=".dll"
15765 # FIXME: Setting linknames here is a bad hack.
15766 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15767 # The linker will automatically build a .lib file if we build a DLL.
15768 old_archive_From_new_cmds_GCJ='true'
15769 # FIXME: Should let the user specify the lib program.
15770 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15771 fix_srcfile_path='`cygpath -w "$srcfile"`'
15772 enable_shared_with_static_runtimes_GCJ=yes
15773 ;;
15774
15775 darwin* | rhapsody*)
15776 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15777 archive_cmds_need_lc_GCJ=no
15778 case "$host_os" in
15779 rhapsody* | darwin1.[012])
15780 allow_undefined_flag_GCJ='-undefined suppress'
15781 ;;
15782 *) # Darwin 1.3 on
15783 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15784 ;;
15785 esac
15786 # FIXME: Relying on posixy $() will cause problems for
15787 # cross-compilation, but unfortunately the echo tests do not
15788 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15789 # `"' quotes if we put them in here... so don't!
15790 lt_int_apple_cc_single_mod=no
15791 output_verbose_link_cmd='echo'
15792 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15793 lt_int_apple_cc_single_mod=yes
15794 fi
15795 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15796 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15797 else
15798 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15799 fi
15800 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15801 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15802 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15803 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15804 else
15805 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15806 fi
15807 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15808 hardcode_direct_GCJ=no
15809 hardcode_automatic_GCJ=yes
15810 hardcode_shlibpath_var_GCJ=unsupported
15811 whole_archive_flag_spec_GCJ='-all_load $convenience'
15812 link_all_deplibs_GCJ=yes
15813 fi
15814 ;;
15815
15816 dgux*)
15817 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15818 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15819 hardcode_shlibpath_var_GCJ=no
15820 ;;
15821
15822 freebsd1*)
15823 ld_shlibs_GCJ=no
15824 ;;
15825
15826 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15827 # support. Future versions do this automatically, but an explicit c++rt0.o
15828 # does not break anything, and helps significantly (at the cost of a little
15829 # extra space).
15830 freebsd2.2*)
15831 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15832 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15833 hardcode_direct_GCJ=yes
15834 hardcode_shlibpath_var_GCJ=no
15835 ;;
15836
15837 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15838 freebsd2*)
15839 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15840 hardcode_direct_GCJ=yes
15841 hardcode_minus_L_GCJ=yes
15842 hardcode_shlibpath_var_GCJ=no
15843 ;;
15844
15845 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15846 freebsd*)
15847 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15848 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15849 hardcode_direct_GCJ=yes
15850 hardcode_shlibpath_var_GCJ=no
15851 ;;
15852
15853 hpux9*)
15854 if test "$GCC" = yes; then
15855 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15856 else
15857 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15858 fi
15859 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15860 hardcode_libdir_separator_GCJ=:
15861 hardcode_direct_GCJ=yes
15862
15863 # hardcode_minus_L: Not really in the search PATH,
15864 # but as the default location of the library.
15865 hardcode_minus_L_GCJ=yes
15866 export_dynamic_flag_spec_GCJ='${wl}-E'
15867 ;;
15868
15869 hpux10* | hpux11*)
15870 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15871 case "$host_cpu" in
15872 hppa*64*|ia64*)
15873 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15874 ;;
15875 *)
15876 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15877 ;;
15878 esac
15879 else
15880 case "$host_cpu" in
15881 hppa*64*|ia64*)
15882 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15883 ;;
15884 *)
15885 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15886 ;;
15887 esac
15888 fi
15889 if test "$with_gnu_ld" = no; then
15890 case "$host_cpu" in
15891 hppa*64*)
15892 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15893 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15894 hardcode_libdir_separator_GCJ=:
15895 hardcode_direct_GCJ=no
15896 hardcode_shlibpath_var_GCJ=no
15897 ;;
15898 ia64*)
15899 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15900 hardcode_direct_GCJ=no
15901 hardcode_shlibpath_var_GCJ=no
15902
15903 # hardcode_minus_L: Not really in the search PATH,
15904 # but as the default location of the library.
15905 hardcode_minus_L_GCJ=yes
15906 ;;
15907 *)
15908 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15909 hardcode_libdir_separator_GCJ=:
15910 hardcode_direct_GCJ=yes
15911 export_dynamic_flag_spec_GCJ='${wl}-E'
15912
15913 # hardcode_minus_L: Not really in the search PATH,
15914 # but as the default location of the library.
15915 hardcode_minus_L_GCJ=yes
15916 ;;
15917 esac
15918 fi
15919 ;;
15920
15921 irix5* | irix6* | nonstopux*)
15922 if test "$GCC" = yes; then
15923 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15924 else
15925 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15926 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15927 fi
15928 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15929 hardcode_libdir_separator_GCJ=:
15930 link_all_deplibs_GCJ=yes
15931 ;;
15932
15933 netbsd*)
15934 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15935 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15936 else
15937 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15938 fi
15939 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15940 hardcode_direct_GCJ=yes
15941 hardcode_shlibpath_var_GCJ=no
15942 ;;
15943
15944 newsos6)
15945 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15946 hardcode_direct_GCJ=yes
15947 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15948 hardcode_libdir_separator_GCJ=:
15949 hardcode_shlibpath_var_GCJ=no
15950 ;;
15951
15952 openbsd*)
15953 hardcode_direct_GCJ=yes
15954 hardcode_shlibpath_var_GCJ=no
15955 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15956 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15957 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15958 export_dynamic_flag_spec_GCJ='${wl}-E'
15959 else
15960 case $host_os in
15961 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15962 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15963 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15964 ;;
15965 *)
15966 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15967 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15968 ;;
15969 esac
15970 fi
15971 ;;
15972
15973 os2*)
15974 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15975 hardcode_minus_L_GCJ=yes
15976 allow_undefined_flag_GCJ=unsupported
15977 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15978 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15979 ;;
15980
15981 osf3*)
15982 if test "$GCC" = yes; then
15983 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15984 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15985 else
15986 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15987 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15988 fi
15989 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15990 hardcode_libdir_separator_GCJ=:
15991 ;;
15992
15993 osf4* | osf5*) # as osf3* with the addition of -msym flag
15994 if test "$GCC" = yes; then
15995 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15996 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15997 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15998 else
15999 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16000 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16001 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16002 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16003
16004 # Both c and cxx compiler support -rpath directly
16005 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16006 fi
16007 hardcode_libdir_separator_GCJ=:
16008 ;;
16009
16010 sco3.2v5*)
16011 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16012 hardcode_shlibpath_var_GCJ=no
16013 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16014 runpath_var=LD_RUN_PATH
16015 hardcode_runpath_var=yes
16016 ;;
16017
16018 solaris*)
16019 no_undefined_flag_GCJ=' -z text'
16020 if test "$GCC" = yes; then
16021 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16022 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16023 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16024 else
16025 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16026 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16027 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16028 fi
16029 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16030 hardcode_shlibpath_var_GCJ=no
16031 case $host_os in
16032 solaris2.[0-5] | solaris2.[0-5].*) ;;
16033 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16034 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16035 esac
16036 link_all_deplibs_GCJ=yes
16037 ;;
16038
16039 sunos4*)
16040 if test "x$host_vendor" = xsequent; then
16041 # Use $CC to link under sequent, because it throws in some extra .o
16042 # files that make .init and .fini sections work.
16043 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16044 else
16045 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16046 fi
16047 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16048 hardcode_direct_GCJ=yes
16049 hardcode_minus_L_GCJ=yes
16050 hardcode_shlibpath_var_GCJ=no
16051 ;;
16052
16053 sysv4)
16054 case $host_vendor in
16055 sni)
16056 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16057 hardcode_direct_GCJ=yes # is this really true???
16058 ;;
16059 siemens)
16060 ## LD is ld it makes a PLAMLIB
16061 ## CC just makes a GrossModule.
16062 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16063 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16064 hardcode_direct_GCJ=no
16065 ;;
16066 motorola)
16067 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16068 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16069 ;;
16070 esac
16071 runpath_var='LD_RUN_PATH'
16072 hardcode_shlibpath_var_GCJ=no
16073 ;;
16074
16075 sysv4.3*)
16076 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16077 hardcode_shlibpath_var_GCJ=no
16078 export_dynamic_flag_spec_GCJ='-Bexport'
16079 ;;
16080
16081 sysv4*MP*)
16082 if test -d /usr/nec; then
16083 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16084 hardcode_shlibpath_var_GCJ=no
16085 runpath_var=LD_RUN_PATH
16086 hardcode_runpath_var=yes
16087 ld_shlibs_GCJ=yes
16088 fi
16089 ;;
16090
16091 sysv4.2uw2*)
16092 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16093 hardcode_direct_GCJ=yes
16094 hardcode_minus_L_GCJ=no
16095 hardcode_shlibpath_var_GCJ=no
16096 hardcode_runpath_var=yes
16097 runpath_var=LD_RUN_PATH
16098 ;;
16099
16100 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16101 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16102 if test "$GCC" = yes; then
16103 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16104 else
16105 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16106 fi
16107 runpath_var='LD_RUN_PATH'
16108 hardcode_shlibpath_var_GCJ=no
16109 ;;
16110
16111 sysv5*)
16112 no_undefined_flag_GCJ=' -z text'
16113 # $CC -shared without GNU ld will not create a library from C++
16114 # object files and a static libstdc++, better avoid it by now
16115 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16116 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16117 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16118 hardcode_libdir_flag_spec_GCJ=
16119 hardcode_shlibpath_var_GCJ=no
16120 runpath_var='LD_RUN_PATH'
16121 ;;
16122
16123 uts4*)
16124 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16125 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16126 hardcode_shlibpath_var_GCJ=no
16127 ;;
16128
16129 *)
16130 ld_shlibs_GCJ=no
16131 ;;
16132 esac
16133 fi
16134
16135echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16136echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16137test "$ld_shlibs_GCJ" = no && can_build_shared=no
16138
16139variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16140if test "$GCC" = yes; then
16141 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16142fi
16143
16144#
16145# Do we need to explicitly link libc?
16146#
16147case "x$archive_cmds_need_lc_GCJ" in
16148x|xyes)
16149 # Assume -lc should be added
16150 archive_cmds_need_lc_GCJ=yes
16151
16152 if test "$enable_shared" = yes && test "$GCC" = yes; then
16153 case $archive_cmds_GCJ in
16154 *'~'*)
16155 # FIXME: we may have to deal with multi-command sequences.
16156 ;;
16157 '$CC '*)
16158 # Test whether the compiler implicitly links with -lc since on some
16159 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16160 # to ld, don't add -lc before -lgcc.
16161 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16162echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16163 $rm conftest*
16164 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16165
16166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16167 (eval $ac_compile) 2>&5
16168 ac_status=$?
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); } 2>conftest.err; then
16171 soname=conftest
16172 lib=conftest
16173 libobjs=conftest.$ac_objext
16174 deplibs=
16175 wl=$lt_prog_compiler_wl_GCJ
16176 compiler_flags=-v
16177 linker_flags=-v
16178 verstring=
16179 output_objdir=.
16180 libname=conftest
16181 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16182 allow_undefined_flag_GCJ=
16183 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16184 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16185 ac_status=$?
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); }
16188 then
16189 archive_cmds_need_lc_GCJ=no
16190 else
16191 archive_cmds_need_lc_GCJ=yes
16192 fi
16193 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16194 else
16195 cat conftest.err 1>&5
16196 fi
16197 $rm conftest*
16198 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16199echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16200 ;;
16201 esac
16202 fi
16203 ;;
16204esac
16205
16206echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16207echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16208hardcode_action_GCJ=
16209if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16210 test -n "$runpath_var GCJ" || \
16211 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16212
16213 # We can hardcode non-existant directories.
16214 if test "$hardcode_direct_GCJ" != no &&
16215 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16216 # have to relink, otherwise we might link with an installed library
16217 # when we should be linking with a yet-to-be-installed one
16218 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16219 test "$hardcode_minus_L_GCJ" != no; then
16220 # Linking always hardcodes the temporary library directory.
16221 hardcode_action_GCJ=relink
16222 else
16223 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16224 hardcode_action_GCJ=immediate
16225 fi
16226else
16227 # We cannot hardcode anything, or else we can only hardcode existing
16228 # directories.
16229 hardcode_action_GCJ=unsupported
16230fi
16231echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16232echo "${ECHO_T}$hardcode_action_GCJ" >&6
16233
16234if test "$hardcode_action_GCJ" = relink; then
16235 # Fast installation is not supported
16236 enable_fast_install=no
16237elif test "$shlibpath_overrides_runpath" = yes ||
16238 test "$enable_shared" = no; then
16239 # Fast installation is not necessary
16240 enable_fast_install=needless
16241fi
16242
16243striplib=
16244old_striplib=
16245echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16246echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16247if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16248 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16249 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16250 echo "$as_me:$LINENO: result: yes" >&5
16251echo "${ECHO_T}yes" >&6
16252else
16253# FIXME - insert some real tests, host_os isn't really good enough
16254 case $host_os in
16255 darwin*)
16256 if test -n "$STRIP" ; then
16257 striplib="$STRIP -x"
16258 echo "$as_me:$LINENO: result: yes" >&5
16259echo "${ECHO_T}yes" >&6
16260 else
16261 echo "$as_me:$LINENO: result: no" >&5
16262echo "${ECHO_T}no" >&6
16263fi
16264 ;;
16265 *)
16266 echo "$as_me:$LINENO: result: no" >&5
16267echo "${ECHO_T}no" >&6
16268 ;;
16269 esac
16270fi
16271
16272echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16273echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16274library_names_spec=
16275libname_spec='lib$name'
16276soname_spec=
16277shrext=".so"
16278postinstall_cmds=
16279postuninstall_cmds=
16280finish_cmds=
16281finish_eval=
16282shlibpath_var=
16283shlibpath_overrides_runpath=unknown
16284version_type=none
16285dynamic_linker="$host_os ld.so"
16286sys_lib_dlsearch_path_spec="/lib /usr/lib"
16287if test "$GCC" = yes; then
16288 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16289 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16290 # if the path contains ";" then we assume it to be the separator
16291 # otherwise default to the standard path separator (i.e. ":") - it is
16292 # assumed that no part of a normal pathname contains ";" but that should
16293 # okay in the real world where ";" in dirpaths is itself problematic.
16294 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16295 else
16296 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16297 fi
16298else
16299 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16300fi
16301need_lib_prefix=unknown
16302hardcode_into_libs=no
16303
16304# when you set need_version to no, make sure it does not cause -set_version
16305# flags to be left without arguments
16306need_version=unknown
16307
16308case $host_os in
16309aix3*)
16310 version_type=linux
16311 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16312 shlibpath_var=LIBPATH
16313
16314 # AIX 3 has no versioning support, so we append a major version to the name.
16315 soname_spec='${libname}${release}${shared_ext}$major'
16316 ;;
16317
16318aix4* | aix5*)
16319 version_type=linux
16320 need_lib_prefix=no
16321 need_version=no
16322 hardcode_into_libs=yes
16323 if test "$host_cpu" = ia64; then
16324 # AIX 5 supports IA64
16325 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16326 shlibpath_var=LD_LIBRARY_PATH
16327 else
16328 # With GCC up to 2.95.x, collect2 would create an import file
16329 # for dependence libraries. The import file would start with
16330 # the line `#! .'. This would cause the generated library to
16331 # depend on `.', always an invalid library. This was fixed in
16332 # development snapshots of GCC prior to 3.0.
16333 case $host_os in
16334 aix4 | aix4.[01] | aix4.[01].*)
16335 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16336 echo ' yes '
16337 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16338 :
16339 else
16340 can_build_shared=no
16341 fi
16342 ;;
16343 esac
16344 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16345 # soname into executable. Probably we can add versioning support to
16346 # collect2, so additional links can be useful in future.
16347 if test "$aix_use_runtimelinking" = yes; then
16348 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16349 # instead of lib<name>.a to let people know that these are not
16350 # typical AIX shared libraries.
16351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16352 else
16353 # We preserve .a as extension for shared libraries through AIX4.2
16354 # and later when we are not doing run time linking.
16355 library_names_spec='${libname}${release}.a $libname.a'
16356 soname_spec='${libname}${release}${shared_ext}$major'
16357 fi
16358 shlibpath_var=LIBPATH
16359 fi
16360 ;;
16361
16362amigaos*)
16363 library_names_spec='$libname.ixlibrary $libname.a'
16364 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16365 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
16366 ;;
16367
16368beos*)
16369 library_names_spec='${libname}${shared_ext}'
16370 dynamic_linker="$host_os ld.so"
16371 shlibpath_var=LIBRARY_PATH
16372 ;;
16373
16374bsdi4*)
16375 version_type=linux
16376 need_version=no
16377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16378 soname_spec='${libname}${release}${shared_ext}$major'
16379 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16380 shlibpath_var=LD_LIBRARY_PATH
16381 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16382 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16383 # the default ld.so.conf also contains /usr/contrib/lib and
16384 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16385 # libtool to hard-code these into programs
16386 ;;
16387
16388cygwin* | mingw* | pw32*)
16389 version_type=windows
16390 shrext=".dll"
16391 need_version=no
16392 need_lib_prefix=no
16393
16394 case $GCC,$host_os in
16395 yes,cygwin* | yes,mingw* | yes,pw32*)
16396 library_names_spec='$libname.dll.a'
16397 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16398 postinstall_cmds='base_file=`basename \${file}`~
16399 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16400 dldir=$destdir/`dirname \$dlpath`~
16401 test -d \$dldir || mkdir -p \$dldir~
16402 $install_prog $dir/$dlname \$dldir/$dlname'
16403 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16404 dlpath=$dir/\$dldll~
16405 $rm \$dlpath'
16406 shlibpath_overrides_runpath=yes
16407
16408 case $host_os in
16409 cygwin*)
16410 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16411 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16412 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16413 ;;
16414 mingw*)
16415 # MinGW DLLs use traditional 'lib' prefix
16416 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16417 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16418 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16419 # It is most probably a Windows format PATH printed by
16420 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16421 # path with ; separators, and with drive letters. We can handle the
16422 # drive letters (cygwin fileutils understands them), so leave them,
16423 # especially as we might pass files found there to a mingw objdump,
16424 # which wouldn't understand a cygwinified path. Ahh.
16425 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16426 else
16427 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16428 fi
16429 ;;
16430 pw32*)
16431 # pw32 DLLs use 'pw' prefix rather than 'lib'
16432 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16433 ;;
16434 esac
16435 ;;
16436
16437 *)
16438 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16439 ;;
16440 esac
16441 dynamic_linker='Win32 ld.exe'
16442 # FIXME: first we should search . and the directory the executable is in
16443 shlibpath_var=PATH
16444 ;;
16445
16446darwin* | rhapsody*)
16447 dynamic_linker="$host_os dyld"
16448 version_type=darwin
16449 need_lib_prefix=no
16450 need_version=no
16451 # FIXME: Relying on posixy $() will cause problems for
16452 # cross-compilation, but unfortunately the echo tests do not
16453 # yet detect zsh echo's removal of \ escapes.
16454 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16455 soname_spec='${libname}${release}${major}$shared_ext'
16456 shlibpath_overrides_runpath=yes
16457 shlibpath_var=DYLD_LIBRARY_PATH
16458 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16459 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16460 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16461 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16462 fi
16463 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16464 ;;
16465
16466dgux*)
16467 version_type=linux
16468 need_lib_prefix=no
16469 need_version=no
16470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16471 soname_spec='${libname}${release}${shared_ext}$major'
16472 shlibpath_var=LD_LIBRARY_PATH
16473 ;;
16474
16475freebsd1*)
16476 dynamic_linker=no
16477 ;;
16478
16479freebsd*)
16480 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16481 version_type=freebsd-$objformat
16482 case $version_type in
16483 freebsd-elf*)
16484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16485 need_version=no
16486 need_lib_prefix=no
16487 ;;
16488 freebsd-*)
16489 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16490 need_version=yes
16491 ;;
16492 esac
16493 shlibpath_var=LD_LIBRARY_PATH
16494 case $host_os in
16495 freebsd2*)
16496 shlibpath_overrides_runpath=yes
16497 ;;
16498 freebsd3.01* | freebsdelf3.01*)
16499 shlibpath_overrides_runpath=yes
16500 hardcode_into_libs=yes
16501 ;;
16502 *) # from 3.2 on
16503 shlibpath_overrides_runpath=no
16504 hardcode_into_libs=yes
16505 ;;
16506 esac
16507 ;;
16508
16509gnu*)
16510 version_type=linux
16511 need_lib_prefix=no
16512 need_version=no
16513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16514 soname_spec='${libname}${release}${shared_ext}$major'
16515 shlibpath_var=LD_LIBRARY_PATH
16516 hardcode_into_libs=yes
16517 ;;
16518
16519hpux9* | hpux10* | hpux11*)
16520 # Give a soname corresponding to the major version so that dld.sl refuses to
16521 # link against other versions.
16522 version_type=sunos
16523 need_lib_prefix=no
16524 need_version=no
16525 case "$host_cpu" in
16526 ia64*)
16527 shrext='.so'
16528 hardcode_into_libs=yes
16529 dynamic_linker="$host_os dld.so"
16530 shlibpath_var=LD_LIBRARY_PATH
16531 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16533 soname_spec='${libname}${release}${shared_ext}$major'
16534 if test "X$HPUX_IA64_MODE" = X32; then
16535 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16536 else
16537 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16538 fi
16539 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16540 ;;
16541 hppa*64*)
16542 shrext='.sl'
16543 hardcode_into_libs=yes
16544 dynamic_linker="$host_os dld.sl"
16545 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16546 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16548 soname_spec='${libname}${release}${shared_ext}$major'
16549 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16550 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16551 ;;
16552 *)
16553 shrext='.sl'
16554 dynamic_linker="$host_os dld.sl"
16555 shlibpath_var=SHLIB_PATH
16556 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16558 soname_spec='${libname}${release}${shared_ext}$major'
16559 ;;
16560 esac
16561 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16562 postinstall_cmds='chmod 555 $lib'
16563 ;;
16564
16565irix5* | irix6* | nonstopux*)
16566 case $host_os in
16567 nonstopux*) version_type=nonstopux ;;
16568 *)
16569 if test "$lt_cv_prog_gnu_ld" = yes; then
16570 version_type=linux
16571 else
16572 version_type=irix
16573 fi ;;
16574 esac
16575 need_lib_prefix=no
16576 need_version=no
16577 soname_spec='${libname}${release}${shared_ext}$major'
16578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16579 case $host_os in
16580 irix5* | nonstopux*)
16581 libsuff= shlibsuff=
16582 ;;
16583 *)
16584 case $LD in # libtool.m4 will add one of these switches to LD
16585 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16586 libsuff= shlibsuff= libmagic=32-bit;;
16587 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16588 libsuff=32 shlibsuff=N32 libmagic=N32;;
16589 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16590 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16591 *) libsuff= shlibsuff= libmagic=never-match;;
16592 esac
16593 ;;
16594 esac
16595 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16596 shlibpath_overrides_runpath=no
16597 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16598 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16599 hardcode_into_libs=yes
16600 ;;
16601
16602# No shared lib support for Linux oldld, aout, or coff.
16603linux*oldld* | linux*aout* | linux*coff*)
16604 dynamic_linker=no
16605 ;;
16606
16607# This must be Linux ELF.
16608linux*)
16609 version_type=linux
16610 need_lib_prefix=no
16611 need_version=no
16612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16613 soname_spec='${libname}${release}${shared_ext}$major'
16614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16615 shlibpath_var=LD_LIBRARY_PATH
16616 shlibpath_overrides_runpath=no
16617 # This implies no fast_install, which is unacceptable.
16618 # Some rework will be needed to allow for fast_install
16619 # before this can be enabled.
16620 hardcode_into_libs=yes
16621
16622 # We used to test for /lib/ld.so.1 and disable shared libraries on
16623 # powerpc, because MkLinux only supported shared libraries with the
16624 # GNU dynamic linker. Since this was broken with cross compilers,
16625 # most powerpc-linux boxes support dynamic linking these days and
16626 # people can always --disable-shared, the test was removed, and we
16627 # assume the GNU/Linux dynamic linker is in use.
16628 dynamic_linker='GNU/Linux ld.so'
16629 ;;
16630
16631netbsd*)
16632 version_type=sunos
16633 need_lib_prefix=no
16634 need_version=no
16635 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16637 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16638 dynamic_linker='NetBSD (a.out) ld.so'
16639 else
16640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16641 soname_spec='${libname}${release}${shared_ext}$major'
16642 dynamic_linker='NetBSD ld.elf_so'
16643 fi
16644 shlibpath_var=LD_LIBRARY_PATH
16645 shlibpath_overrides_runpath=yes
16646 hardcode_into_libs=yes
16647 ;;
16648
16649newsos6)
16650 version_type=linux
16651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16652 shlibpath_var=LD_LIBRARY_PATH
16653 shlibpath_overrides_runpath=yes
16654 ;;
16655
16656nto-qnx)
16657 version_type=linux
16658 need_lib_prefix=no
16659 need_version=no
16660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16661 soname_spec='${libname}${release}${shared_ext}$major'
16662 shlibpath_var=LD_LIBRARY_PATH
16663 shlibpath_overrides_runpath=yes
16664 ;;
16665
16666openbsd*)
16667 version_type=sunos
16668 need_lib_prefix=no
16669 need_version=no
16670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16671 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16672 shlibpath_var=LD_LIBRARY_PATH
16673 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16674 case $host_os in
16675 openbsd2.[89] | openbsd2.[89].*)
16676 shlibpath_overrides_runpath=no
16677 ;;
16678 *)
16679 shlibpath_overrides_runpath=yes
16680 ;;
16681 esac
16682 else
16683 shlibpath_overrides_runpath=yes
16684 fi
16685 ;;
16686
16687os2*)
16688 libname_spec='$name'
16689 shrext=".dll"
16690 need_lib_prefix=no
16691 library_names_spec='$libname${shared_ext} $libname.a'
16692 dynamic_linker='OS/2 ld.exe'
16693 shlibpath_var=LIBPATH
16694 ;;
16695
16696osf3* | osf4* | osf5*)
16697 version_type=osf
16698 need_lib_prefix=no
16699 need_version=no
16700 soname_spec='${libname}${release}${shared_ext}$major'
16701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16702 shlibpath_var=LD_LIBRARY_PATH
16703 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16704 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16705 ;;
16706
16707sco3.2v5*)
16708 version_type=osf
16709 soname_spec='${libname}${release}${shared_ext}$major'
16710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16711 shlibpath_var=LD_LIBRARY_PATH
16712 ;;
16713
16714solaris*)
16715 version_type=linux
16716 need_lib_prefix=no
16717 need_version=no
16718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16719 soname_spec='${libname}${release}${shared_ext}$major'
16720 shlibpath_var=LD_LIBRARY_PATH
16721 shlibpath_overrides_runpath=yes
16722 hardcode_into_libs=yes
16723 # ldd complains unless libraries are executable
16724 postinstall_cmds='chmod +x $lib'
16725 ;;
16726
16727sunos4*)
16728 version_type=sunos
16729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16730 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16731 shlibpath_var=LD_LIBRARY_PATH
16732 shlibpath_overrides_runpath=yes
16733 if test "$with_gnu_ld" = yes; then
16734 need_lib_prefix=no
16735 fi
16736 need_version=yes
16737 ;;
16738
16739sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16740 version_type=linux
16741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16742 soname_spec='${libname}${release}${shared_ext}$major'
16743 shlibpath_var=LD_LIBRARY_PATH
16744 case $host_vendor in
16745 sni)
16746 shlibpath_overrides_runpath=no
16747 need_lib_prefix=no
16748 export_dynamic_flag_spec='${wl}-Blargedynsym'
16749 runpath_var=LD_RUN_PATH
16750 ;;
16751 siemens)
16752 need_lib_prefix=no
16753 ;;
16754 motorola)
16755 need_lib_prefix=no
16756 need_version=no
16757 shlibpath_overrides_runpath=no
16758 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16759 ;;
16760 esac
16761 ;;
16762
16763sysv4*MP*)
16764 if test -d /usr/nec ;then
16765 version_type=linux
16766 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16767 soname_spec='$libname${shared_ext}.$major'
16768 shlibpath_var=LD_LIBRARY_PATH
16769 fi
16770 ;;
16771
16772uts4*)
16773 version_type=linux
16774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16775 soname_spec='${libname}${release}${shared_ext}$major'
16776 shlibpath_var=LD_LIBRARY_PATH
16777 ;;
16778
16779*)
16780 dynamic_linker=no
16781 ;;
16782esac
16783echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16784echo "${ECHO_T}$dynamic_linker" >&6
16785test "$dynamic_linker" = no && can_build_shared=no
16786
16787if test "x$enable_dlopen" != xyes; then
16788 enable_dlopen=unknown
16789 enable_dlopen_self=unknown
16790 enable_dlopen_self_static=unknown
16791else
16792 lt_cv_dlopen=no
16793 lt_cv_dlopen_libs=
16794
16795 case $host_os in
16796 beos*)
16797 lt_cv_dlopen="load_add_on"
16798 lt_cv_dlopen_libs=
16799 lt_cv_dlopen_self=yes
16800 ;;
16801
16802 mingw* | pw32*)
16803 lt_cv_dlopen="LoadLibrary"
16804 lt_cv_dlopen_libs=
16805 ;;
16806
16807 cygwin*)
16808 lt_cv_dlopen="dlopen"
16809 lt_cv_dlopen_libs=
16810 ;;
16811
16812 darwin*)
16813 # if libdl is installed we need to link against it
16814 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16815echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16816if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16817 echo $ECHO_N "(cached) $ECHO_C" >&6
16818else
16819 ac_check_lib_save_LIBS=$LIBS
16820LIBS="-ldl $LIBS"
16821cat >conftest.$ac_ext <<_ACEOF
16822#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016823/* confdefs.h. */
16824_ACEOF
16825cat confdefs.h >>conftest.$ac_ext
16826cat >>conftest.$ac_ext <<_ACEOF
16827/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016828
16829/* Override any gcc2 internal prototype to avoid an error. */
16830#ifdef __cplusplus
16831extern "C"
16832#endif
16833/* We use char because int might match the return type of a gcc2
16834 builtin and then its argument prototype would still apply. */
16835char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016836int
16837main ()
16838{
16839dlopen ();
16840 ;
16841 return 0;
16842}
16843_ACEOF
16844rm -f conftest.$ac_objext conftest$ac_exeext
16845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16846 (eval $ac_link) 2>&5
16847 ac_status=$?
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); } &&
16850 { ac_try='test -s conftest$ac_exeext'
16851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16852 (eval $ac_try) 2>&5
16853 ac_status=$?
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); }; }; then
16856 ac_cv_lib_dl_dlopen=yes
16857else
16858 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016859sed 's/^/| /' conftest.$ac_ext >&5
16860
John Criswell47fdd832003-07-14 16:52:07 +000016861ac_cv_lib_dl_dlopen=no
16862fi
16863rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16864LIBS=$ac_check_lib_save_LIBS
16865fi
16866echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16867echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16868if test $ac_cv_lib_dl_dlopen = yes; then
16869 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16870else
16871
16872 lt_cv_dlopen="dyld"
16873 lt_cv_dlopen_libs=
16874 lt_cv_dlopen_self=yes
16875
16876fi
16877
16878 ;;
16879
16880 *)
16881 echo "$as_me:$LINENO: checking for shl_load" >&5
16882echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16883if test "${ac_cv_func_shl_load+set}" = set; then
16884 echo $ECHO_N "(cached) $ECHO_C" >&6
16885else
16886 cat >conftest.$ac_ext <<_ACEOF
16887#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016888/* confdefs.h. */
16889_ACEOF
16890cat confdefs.h >>conftest.$ac_ext
16891cat >>conftest.$ac_ext <<_ACEOF
16892/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016893/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016894 which can conflict with char shl_load (); below.
16895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16896 <limits.h> exists even on freestanding compilers. */
16897#ifdef __STDC__
16898# include <limits.h>
16899#else
16900# include <assert.h>
16901#endif
John Criswell47fdd832003-07-14 16:52:07 +000016902/* Override any gcc2 internal prototype to avoid an error. */
16903#ifdef __cplusplus
16904extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016905{
John Criswell47fdd832003-07-14 16:52:07 +000016906#endif
16907/* We use char because int might match the return type of a gcc2
16908 builtin and then its argument prototype would still apply. */
16909char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016910/* The GNU C library defines this for functions which it implements
16911 to always fail with ENOSYS. Some functions are actually named
16912 something starting with __ and the normal name is an alias. */
16913#if defined (__stub_shl_load) || defined (__stub___shl_load)
16914choke me
16915#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016916char (*f) () = shl_load;
16917#endif
16918#ifdef __cplusplus
16919}
John Criswell47fdd832003-07-14 16:52:07 +000016920#endif
16921
John Criswell0c38eaf2003-09-10 15:17:25 +000016922int
16923main ()
16924{
16925return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016926 ;
16927 return 0;
16928}
16929_ACEOF
16930rm -f conftest.$ac_objext conftest$ac_exeext
16931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16932 (eval $ac_link) 2>&5
16933 ac_status=$?
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); } &&
16936 { ac_try='test -s conftest$ac_exeext'
16937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16938 (eval $ac_try) 2>&5
16939 ac_status=$?
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); }; }; then
16942 ac_cv_func_shl_load=yes
16943else
16944 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016945sed 's/^/| /' conftest.$ac_ext >&5
16946
John Criswell47fdd832003-07-14 16:52:07 +000016947ac_cv_func_shl_load=no
16948fi
16949rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16950fi
16951echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16952echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16953if test $ac_cv_func_shl_load = yes; then
16954 lt_cv_dlopen="shl_load"
16955else
16956 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16957echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16958if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16959 echo $ECHO_N "(cached) $ECHO_C" >&6
16960else
16961 ac_check_lib_save_LIBS=$LIBS
16962LIBS="-ldld $LIBS"
16963cat >conftest.$ac_ext <<_ACEOF
16964#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016965/* confdefs.h. */
16966_ACEOF
16967cat confdefs.h >>conftest.$ac_ext
16968cat >>conftest.$ac_ext <<_ACEOF
16969/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016970
16971/* Override any gcc2 internal prototype to avoid an error. */
16972#ifdef __cplusplus
16973extern "C"
16974#endif
16975/* We use char because int might match the return type of a gcc2
16976 builtin and then its argument prototype would still apply. */
16977char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016978int
16979main ()
16980{
16981shl_load ();
16982 ;
16983 return 0;
16984}
16985_ACEOF
16986rm -f conftest.$ac_objext conftest$ac_exeext
16987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16988 (eval $ac_link) 2>&5
16989 ac_status=$?
16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); } &&
16992 { ac_try='test -s conftest$ac_exeext'
16993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16994 (eval $ac_try) 2>&5
16995 ac_status=$?
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); }; }; then
16998 ac_cv_lib_dld_shl_load=yes
16999else
17000 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017001sed 's/^/| /' conftest.$ac_ext >&5
17002
John Criswell47fdd832003-07-14 16:52:07 +000017003ac_cv_lib_dld_shl_load=no
17004fi
17005rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17006LIBS=$ac_check_lib_save_LIBS
17007fi
17008echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17009echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17010if test $ac_cv_lib_dld_shl_load = yes; then
17011 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17012else
17013 echo "$as_me:$LINENO: checking for dlopen" >&5
17014echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17015if test "${ac_cv_func_dlopen+set}" = set; then
17016 echo $ECHO_N "(cached) $ECHO_C" >&6
17017else
17018 cat >conftest.$ac_ext <<_ACEOF
17019#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017020/* confdefs.h. */
17021_ACEOF
17022cat confdefs.h >>conftest.$ac_ext
17023cat >>conftest.$ac_ext <<_ACEOF
17024/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017025/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017026 which can conflict with char dlopen (); below.
17027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17028 <limits.h> exists even on freestanding compilers. */
17029#ifdef __STDC__
17030# include <limits.h>
17031#else
17032# include <assert.h>
17033#endif
John Criswell47fdd832003-07-14 16:52:07 +000017034/* Override any gcc2 internal prototype to avoid an error. */
17035#ifdef __cplusplus
17036extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017037{
John Criswell47fdd832003-07-14 16:52:07 +000017038#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 dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017042/* The GNU C library defines this for functions which it implements
17043 to always fail with ENOSYS. Some functions are actually named
17044 something starting with __ and the normal name is an alias. */
17045#if defined (__stub_dlopen) || defined (__stub___dlopen)
17046choke me
17047#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017048char (*f) () = dlopen;
17049#endif
17050#ifdef __cplusplus
17051}
John Criswell47fdd832003-07-14 16:52:07 +000017052#endif
17053
John Criswell0c38eaf2003-09-10 15:17:25 +000017054int
17055main ()
17056{
17057return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017058 ;
17059 return 0;
17060}
17061_ACEOF
17062rm -f conftest.$ac_objext conftest$ac_exeext
17063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17064 (eval $ac_link) 2>&5
17065 ac_status=$?
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); } &&
17068 { ac_try='test -s conftest$ac_exeext'
17069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17070 (eval $ac_try) 2>&5
17071 ac_status=$?
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); }; }; then
17074 ac_cv_func_dlopen=yes
17075else
17076 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017077sed 's/^/| /' conftest.$ac_ext >&5
17078
John Criswell47fdd832003-07-14 16:52:07 +000017079ac_cv_func_dlopen=no
17080fi
17081rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17082fi
17083echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17084echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17085if test $ac_cv_func_dlopen = yes; then
17086 lt_cv_dlopen="dlopen"
17087else
17088 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17089echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17090if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17091 echo $ECHO_N "(cached) $ECHO_C" >&6
17092else
17093 ac_check_lib_save_LIBS=$LIBS
17094LIBS="-ldl $LIBS"
17095cat >conftest.$ac_ext <<_ACEOF
17096#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017097/* confdefs.h. */
17098_ACEOF
17099cat confdefs.h >>conftest.$ac_ext
17100cat >>conftest.$ac_ext <<_ACEOF
17101/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017102
17103/* Override any gcc2 internal prototype to avoid an error. */
17104#ifdef __cplusplus
17105extern "C"
17106#endif
17107/* We use char because int might match the return type of a gcc2
17108 builtin and then its argument prototype would still apply. */
17109char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017110int
17111main ()
17112{
17113dlopen ();
17114 ;
17115 return 0;
17116}
17117_ACEOF
17118rm -f conftest.$ac_objext conftest$ac_exeext
17119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17120 (eval $ac_link) 2>&5
17121 ac_status=$?
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); } &&
17124 { ac_try='test -s conftest$ac_exeext'
17125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17126 (eval $ac_try) 2>&5
17127 ac_status=$?
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); }; }; then
17130 ac_cv_lib_dl_dlopen=yes
17131else
17132 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017133sed 's/^/| /' conftest.$ac_ext >&5
17134
John Criswell47fdd832003-07-14 16:52:07 +000017135ac_cv_lib_dl_dlopen=no
17136fi
17137rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17138LIBS=$ac_check_lib_save_LIBS
17139fi
17140echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17141echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17142if test $ac_cv_lib_dl_dlopen = yes; then
17143 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17144else
17145 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17146echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17147if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17148 echo $ECHO_N "(cached) $ECHO_C" >&6
17149else
17150 ac_check_lib_save_LIBS=$LIBS
17151LIBS="-lsvld $LIBS"
17152cat >conftest.$ac_ext <<_ACEOF
17153#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017154/* confdefs.h. */
17155_ACEOF
17156cat confdefs.h >>conftest.$ac_ext
17157cat >>conftest.$ac_ext <<_ACEOF
17158/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017159
17160/* Override any gcc2 internal prototype to avoid an error. */
17161#ifdef __cplusplus
17162extern "C"
17163#endif
17164/* We use char because int might match the return type of a gcc2
17165 builtin and then its argument prototype would still apply. */
17166char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017167int
17168main ()
17169{
17170dlopen ();
17171 ;
17172 return 0;
17173}
17174_ACEOF
17175rm -f conftest.$ac_objext conftest$ac_exeext
17176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17177 (eval $ac_link) 2>&5
17178 ac_status=$?
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); } &&
17181 { ac_try='test -s conftest$ac_exeext'
17182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17183 (eval $ac_try) 2>&5
17184 ac_status=$?
17185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186 (exit $ac_status); }; }; then
17187 ac_cv_lib_svld_dlopen=yes
17188else
17189 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017190sed 's/^/| /' conftest.$ac_ext >&5
17191
John Criswell47fdd832003-07-14 16:52:07 +000017192ac_cv_lib_svld_dlopen=no
17193fi
17194rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17195LIBS=$ac_check_lib_save_LIBS
17196fi
17197echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17198echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17199if test $ac_cv_lib_svld_dlopen = yes; then
17200 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17201else
17202 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17203echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17204if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17205 echo $ECHO_N "(cached) $ECHO_C" >&6
17206else
17207 ac_check_lib_save_LIBS=$LIBS
17208LIBS="-ldld $LIBS"
17209cat >conftest.$ac_ext <<_ACEOF
17210#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017211/* confdefs.h. */
17212_ACEOF
17213cat confdefs.h >>conftest.$ac_ext
17214cat >>conftest.$ac_ext <<_ACEOF
17215/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017216
17217/* Override any gcc2 internal prototype to avoid an error. */
17218#ifdef __cplusplus
17219extern "C"
17220#endif
17221/* We use char because int might match the return type of a gcc2
17222 builtin and then its argument prototype would still apply. */
17223char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017224int
17225main ()
17226{
17227dld_link ();
17228 ;
17229 return 0;
17230}
17231_ACEOF
17232rm -f conftest.$ac_objext conftest$ac_exeext
17233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17234 (eval $ac_link) 2>&5
17235 ac_status=$?
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); } &&
17238 { ac_try='test -s conftest$ac_exeext'
17239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17240 (eval $ac_try) 2>&5
17241 ac_status=$?
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); }; }; then
17244 ac_cv_lib_dld_dld_link=yes
17245else
17246 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017247sed 's/^/| /' conftest.$ac_ext >&5
17248
John Criswell47fdd832003-07-14 16:52:07 +000017249ac_cv_lib_dld_dld_link=no
17250fi
17251rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17252LIBS=$ac_check_lib_save_LIBS
17253fi
17254echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17255echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17256if test $ac_cv_lib_dld_dld_link = yes; then
17257 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17258fi
17259
17260
17261fi
17262
17263
17264fi
17265
17266
17267fi
17268
17269
17270fi
17271
17272
17273fi
17274
17275 ;;
17276 esac
17277
17278 if test "x$lt_cv_dlopen" != xno; then
17279 enable_dlopen=yes
17280 else
17281 enable_dlopen=no
17282 fi
17283
17284 case $lt_cv_dlopen in
17285 dlopen)
17286 save_CPPFLAGS="$CPPFLAGS"
17287 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17288
17289 save_LDFLAGS="$LDFLAGS"
17290 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17291
17292 save_LIBS="$LIBS"
17293 LIBS="$lt_cv_dlopen_libs $LIBS"
17294
17295 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17296echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17297if test "${lt_cv_dlopen_self+set}" = set; then
17298 echo $ECHO_N "(cached) $ECHO_C" >&6
17299else
17300 if test "$cross_compiling" = yes; then :
17301 lt_cv_dlopen_self=cross
17302else
17303 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17304 lt_status=$lt_dlunknown
17305 cat > conftest.$ac_ext <<EOF
John Criswellffaaf3b2003-09-10 18:38:44 +000017306#line 17306 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017307#include "confdefs.h"
17308
17309#if HAVE_DLFCN_H
17310#include <dlfcn.h>
17311#endif
17312
17313#include <stdio.h>
17314
17315#ifdef RTLD_GLOBAL
17316# define LT_DLGLOBAL RTLD_GLOBAL
17317#else
17318# ifdef DL_GLOBAL
17319# define LT_DLGLOBAL DL_GLOBAL
17320# else
17321# define LT_DLGLOBAL 0
17322# endif
17323#endif
17324
17325/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17326 find out it does not work in some platform. */
17327#ifndef LT_DLLAZY_OR_NOW
17328# ifdef RTLD_LAZY
17329# define LT_DLLAZY_OR_NOW RTLD_LAZY
17330# else
17331# ifdef DL_LAZY
17332# define LT_DLLAZY_OR_NOW DL_LAZY
17333# else
17334# ifdef RTLD_NOW
17335# define LT_DLLAZY_OR_NOW RTLD_NOW
17336# else
17337# ifdef DL_NOW
17338# define LT_DLLAZY_OR_NOW DL_NOW
17339# else
17340# define LT_DLLAZY_OR_NOW 0
17341# endif
17342# endif
17343# endif
17344# endif
17345#endif
17346
17347#ifdef __cplusplus
17348extern "C" void exit (int);
17349#endif
17350
17351void fnord() { int i=42;}
17352int main ()
17353{
17354 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17355 int status = $lt_dlunknown;
17356
17357 if (self)
17358 {
17359 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17360 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17361 /* dlclose (self); */
17362 }
17363
17364 exit (status);
17365}
17366EOF
17367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17368 (eval $ac_link) 2>&5
17369 ac_status=$?
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17372 (./conftest; exit; ) 2>/dev/null
17373 lt_status=$?
17374 case x$lt_status in
17375 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17376 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17377 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17378 esac
17379 else :
17380 # compilation failed
17381 lt_cv_dlopen_self=no
17382 fi
17383fi
17384rm -fr conftest*
17385
17386
17387fi
17388echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17389echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17390
17391 if test "x$lt_cv_dlopen_self" = xyes; then
17392 LDFLAGS="$LDFLAGS $link_static_flag"
17393 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17394echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17395if test "${lt_cv_dlopen_self_static+set}" = set; then
17396 echo $ECHO_N "(cached) $ECHO_C" >&6
17397else
17398 if test "$cross_compiling" = yes; then :
17399 lt_cv_dlopen_self_static=cross
17400else
17401 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17402 lt_status=$lt_dlunknown
17403 cat > conftest.$ac_ext <<EOF
John Criswellffaaf3b2003-09-10 18:38:44 +000017404#line 17404 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017405#include "confdefs.h"
17406
17407#if HAVE_DLFCN_H
17408#include <dlfcn.h>
17409#endif
17410
17411#include <stdio.h>
17412
17413#ifdef RTLD_GLOBAL
17414# define LT_DLGLOBAL RTLD_GLOBAL
17415#else
17416# ifdef DL_GLOBAL
17417# define LT_DLGLOBAL DL_GLOBAL
17418# else
17419# define LT_DLGLOBAL 0
17420# endif
17421#endif
17422
17423/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17424 find out it does not work in some platform. */
17425#ifndef LT_DLLAZY_OR_NOW
17426# ifdef RTLD_LAZY
17427# define LT_DLLAZY_OR_NOW RTLD_LAZY
17428# else
17429# ifdef DL_LAZY
17430# define LT_DLLAZY_OR_NOW DL_LAZY
17431# else
17432# ifdef RTLD_NOW
17433# define LT_DLLAZY_OR_NOW RTLD_NOW
17434# else
17435# ifdef DL_NOW
17436# define LT_DLLAZY_OR_NOW DL_NOW
17437# else
17438# define LT_DLLAZY_OR_NOW 0
17439# endif
17440# endif
17441# endif
17442# endif
17443#endif
17444
17445#ifdef __cplusplus
17446extern "C" void exit (int);
17447#endif
17448
17449void fnord() { int i=42;}
17450int main ()
17451{
17452 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17453 int status = $lt_dlunknown;
17454
17455 if (self)
17456 {
17457 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17458 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17459 /* dlclose (self); */
17460 }
17461
17462 exit (status);
17463}
17464EOF
17465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17466 (eval $ac_link) 2>&5
17467 ac_status=$?
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17470 (./conftest; exit; ) 2>/dev/null
17471 lt_status=$?
17472 case x$lt_status in
17473 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17474 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17475 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17476 esac
17477 else :
17478 # compilation failed
17479 lt_cv_dlopen_self_static=no
17480 fi
17481fi
17482rm -fr conftest*
17483
17484
17485fi
17486echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17487echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17488 fi
17489
17490 CPPFLAGS="$save_CPPFLAGS"
17491 LDFLAGS="$save_LDFLAGS"
17492 LIBS="$save_LIBS"
17493 ;;
17494 esac
17495
17496 case $lt_cv_dlopen_self in
17497 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17498 *) enable_dlopen_self=unknown ;;
17499 esac
17500
17501 case $lt_cv_dlopen_self_static in
17502 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17503 *) enable_dlopen_self_static=unknown ;;
17504 esac
17505fi
17506
17507
17508# The else clause should only fire when bootstrapping the
17509# libtool distribution, otherwise you forgot to ship ltmain.sh
17510# with your package, and you will get complaints that there are
17511# no rules to generate ltmain.sh.
17512if test -f "$ltmain"; then
17513 # See if we are running on zsh, and set the options which allow our commands through
17514 # without removal of \ escapes.
17515 if test -n "${ZSH_VERSION+set}" ; then
17516 setopt NO_GLOB_SUBST
17517 fi
17518 # Now quote all the things that may contain metacharacters while being
17519 # careful not to overquote the AC_SUBSTed values. We take copies of the
17520 # variables and quote the copies for generation of the libtool script.
17521 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17522 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17523 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17524 deplibs_check_method reload_flag reload_cmds need_locks \
17525 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17526 lt_cv_sys_global_symbol_to_c_name_address \
17527 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17528 old_postinstall_cmds old_postuninstall_cmds \
17529 compiler_GCJ \
17530 CC_GCJ \
17531 LD_GCJ \
17532 lt_prog_compiler_wl_GCJ \
17533 lt_prog_compiler_pic_GCJ \
17534 lt_prog_compiler_static_GCJ \
17535 lt_prog_compiler_no_builtin_flag_GCJ \
17536 export_dynamic_flag_spec_GCJ \
17537 thread_safe_flag_spec_GCJ \
17538 whole_archive_flag_spec_GCJ \
17539 enable_shared_with_static_runtimes_GCJ \
17540 old_archive_cmds_GCJ \
17541 old_archive_from_new_cmds_GCJ \
17542 predep_objects_GCJ \
17543 postdep_objects_GCJ \
17544 predeps_GCJ \
17545 postdeps_GCJ \
17546 compiler_lib_search_path_GCJ \
17547 archive_cmds_GCJ \
17548 archive_expsym_cmds_GCJ \
17549 postinstall_cmds_GCJ \
17550 postuninstall_cmds_GCJ \
17551 old_archive_from_expsyms_cmds_GCJ \
17552 allow_undefined_flag_GCJ \
17553 no_undefined_flag_GCJ \
17554 export_symbols_cmds_GCJ \
17555 hardcode_libdir_flag_spec_GCJ \
17556 hardcode_libdir_flag_spec_ld_GCJ \
17557 hardcode_libdir_separator_GCJ \
17558 hardcode_automatic_GCJ \
17559 module_cmds_GCJ \
17560 module_expsym_cmds_GCJ \
17561 lt_cv_prog_compiler_c_o_GCJ \
17562 exclude_expsyms_GCJ \
17563 include_expsyms_GCJ; do
17564
17565 case $var in
17566 old_archive_cmds_GCJ | \
17567 old_archive_from_new_cmds_GCJ | \
17568 archive_cmds_GCJ | \
17569 archive_expsym_cmds_GCJ | \
17570 module_cmds_GCJ | \
17571 module_expsym_cmds_GCJ | \
17572 old_archive_from_expsyms_cmds_GCJ | \
17573 export_symbols_cmds_GCJ | \
17574 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17575 postinstall_cmds | postuninstall_cmds | \
17576 old_postinstall_cmds | old_postuninstall_cmds | \
17577 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17578 # Double-quote double-evaled strings.
17579 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17580 ;;
17581 *)
17582 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17583 ;;
17584 esac
17585 done
17586
17587 case $lt_echo in
17588 *'\$0 --fallback-echo"')
17589 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17590 ;;
17591 esac
17592
17593cfgfile="$ofile"
17594
17595 cat <<__EOF__ >> "$cfgfile"
17596# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17597
17598# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17599
17600# Shell to use when invoking shell scripts.
17601SHELL=$lt_SHELL
17602
17603# Whether or not to build shared libraries.
17604build_libtool_libs=$enable_shared
17605
17606# Whether or not to build static libraries.
17607build_old_libs=$enable_static
17608
17609# Whether or not to add -lc for building shared libraries.
17610build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17611
17612# Whether or not to disallow shared libs when runtime libs are static
17613allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17614
17615# Whether or not to optimize for fast installation.
17616fast_install=$enable_fast_install
17617
17618# The host system.
17619host_alias=$host_alias
17620host=$host
17621
17622# An echo program that does not interpret backslashes.
17623echo=$lt_echo
17624
17625# The archiver.
17626AR=$lt_AR
17627AR_FLAGS=$lt_AR_FLAGS
17628
17629# A C compiler.
17630LTCC=$lt_LTCC
17631
17632# A language-specific compiler.
17633CC=$lt_compiler_GCJ
17634
17635# Is the compiler the GNU C compiler?
17636with_gcc=$GCC_GCJ
17637
17638# An ERE matcher.
17639EGREP=$lt_EGREP
17640
17641# The linker used to build libraries.
17642LD=$lt_LD_GCJ
17643
17644# Whether we need hard or soft links.
17645LN_S=$lt_LN_S
17646
17647# A BSD-compatible nm program.
17648NM=$lt_NM
17649
17650# A symbol stripping program
17651STRIP=$STRIP
17652
17653# Used to examine libraries when file_magic_cmd begins "file"
17654MAGIC_CMD=$MAGIC_CMD
17655
17656# Used on cygwin: DLL creation program.
17657DLLTOOL="$DLLTOOL"
17658
17659# Used on cygwin: object dumper.
17660OBJDUMP="$OBJDUMP"
17661
17662# Used on cygwin: assembler.
17663AS="$AS"
17664
17665# The name of the directory that contains temporary libtool files.
17666objdir=$objdir
17667
17668# How to create reloadable object files.
17669reload_flag=$lt_reload_flag
17670reload_cmds=$lt_reload_cmds
17671
17672# How to pass a linker flag through the compiler.
17673wl=$lt_lt_prog_compiler_wl_GCJ
17674
17675# Object file suffix (normally "o").
17676objext="$ac_objext"
17677
17678# Old archive suffix (normally "a").
17679libext="$libext"
17680
17681# Shared library suffix (normally ".so").
17682shrext='$shrext'
17683
17684# Executable file suffix (normally "").
17685exeext="$exeext"
17686
17687# Additional compiler flags for building library objects.
17688pic_flag=$lt_lt_prog_compiler_pic_GCJ
17689pic_mode=$pic_mode
17690
17691# What is the maximum length of a command?
17692max_cmd_len=$lt_cv_sys_max_cmd_len
17693
17694# Does compiler simultaneously support -c and -o options?
17695compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17696
17697# Must we lock files when doing compilation ?
17698need_locks=$lt_need_locks
17699
17700# Do we need the lib prefix for modules?
17701need_lib_prefix=$need_lib_prefix
17702
17703# Do we need a version for libraries?
17704need_version=$need_version
17705
17706# Whether dlopen is supported.
17707dlopen_support=$enable_dlopen
17708
17709# Whether dlopen of programs is supported.
17710dlopen_self=$enable_dlopen_self
17711
17712# Whether dlopen of statically linked programs is supported.
17713dlopen_self_static=$enable_dlopen_self_static
17714
17715# Compiler flag to prevent dynamic linking.
17716link_static_flag=$lt_lt_prog_compiler_static_GCJ
17717
17718# Compiler flag to turn off builtin functions.
17719no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17720
17721# Compiler flag to allow reflexive dlopens.
17722export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17723
17724# Compiler flag to generate shared objects directly from archives.
17725whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17726
17727# Compiler flag to generate thread-safe objects.
17728thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17729
17730# Library versioning type.
17731version_type=$version_type
17732
17733# Format of library name prefix.
17734libname_spec=$lt_libname_spec
17735
17736# List of archive names. First name is the real one, the rest are links.
17737# The last name is the one that the linker finds with -lNAME.
17738library_names_spec=$lt_library_names_spec
17739
17740# The coded name of the library, if different from the real name.
17741soname_spec=$lt_soname_spec
17742
17743# Commands used to build and install an old-style archive.
17744RANLIB=$lt_RANLIB
17745old_archive_cmds=$lt_old_archive_cmds_GCJ
17746old_postinstall_cmds=$lt_old_postinstall_cmds
17747old_postuninstall_cmds=$lt_old_postuninstall_cmds
17748
17749# Create an old-style archive from a shared archive.
17750old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17751
17752# Create a temporary old-style archive to link instead of a shared archive.
17753old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17754
17755# Commands used to build and install a shared archive.
17756archive_cmds=$lt_archive_cmds_GCJ
17757archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17758postinstall_cmds=$lt_postinstall_cmds
17759postuninstall_cmds=$lt_postuninstall_cmds
17760
17761# Commands used to build a loadable module (assumed same as above if empty)
17762module_cmds=$lt_module_cmds_GCJ
17763module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17764
17765# Commands to strip libraries.
17766old_striplib=$lt_old_striplib
17767striplib=$lt_striplib
17768
17769# Dependencies to place before the objects being linked to create a
17770# shared library.
17771predep_objects=$lt_predep_objects_GCJ
17772
17773# Dependencies to place after the objects being linked to create a
17774# shared library.
17775postdep_objects=$lt_postdep_objects_GCJ
17776
17777# Dependencies to place before the objects being linked to create a
17778# shared library.
17779predeps=$lt_predeps_GCJ
17780
17781# Dependencies to place after the objects being linked to create a
17782# shared library.
17783postdeps=$lt_postdeps_GCJ
17784
17785# The library search path used internally by the compiler when linking
17786# a shared library.
17787compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17788
17789# Method to check whether dependent libraries are shared objects.
17790deplibs_check_method=$lt_deplibs_check_method
17791
17792# Command to use when deplibs_check_method == file_magic.
17793file_magic_cmd=$lt_file_magic_cmd
17794
17795# Flag that allows shared libraries with undefined symbols to be built.
17796allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17797
17798# Flag that forces no undefined symbols.
17799no_undefined_flag=$lt_no_undefined_flag_GCJ
17800
17801# Commands used to finish a libtool library installation in a directory.
17802finish_cmds=$lt_finish_cmds
17803
17804# Same as above, but a single script fragment to be evaled but not shown.
17805finish_eval=$lt_finish_eval
17806
17807# Take the output of nm and produce a listing of raw symbols and C names.
17808global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17809
17810# Transform the output of nm in a proper C declaration
17811global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17812
17813# Transform the output of nm in a C name address pair
17814global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17815
17816# This is the shared library runtime path variable.
17817runpath_var=$runpath_var
17818
17819# This is the shared library path variable.
17820shlibpath_var=$shlibpath_var
17821
17822# Is shlibpath searched before the hard-coded library search path?
17823shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17824
17825# How to hardcode a shared library path into an executable.
17826hardcode_action=$hardcode_action_GCJ
17827
17828# Whether we should hardcode library paths into libraries.
17829hardcode_into_libs=$hardcode_into_libs
17830
17831# Flag to hardcode \$libdir into a binary during linking.
17832# This must work even if \$libdir does not exist.
17833hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17834
17835# If ld is used when linking, flag to hardcode \$libdir into
17836# a binary during linking. This must work even if \$libdir does
17837# not exist.
17838hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17839
17840# Whether we need a single -rpath flag with a separated argument.
17841hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17842
17843# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17844# resulting binary.
17845hardcode_direct=$hardcode_direct_GCJ
17846
17847# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17848# resulting binary.
17849hardcode_minus_L=$hardcode_minus_L_GCJ
17850
17851# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17852# the resulting binary.
17853hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17854
17855# Set to yes if building a shared library automatically hardcodes DIR into the library
17856# and all subsequent libraries and executables linked against it.
17857hardcode_automatic=$hardcode_automatic_GCJ
17858
17859# Variables whose values should be saved in libtool wrapper scripts and
17860# restored at relink time.
17861variables_saved_for_relink="$variables_saved_for_relink"
17862
17863# Whether libtool must link a program against all its dependency libraries.
17864link_all_deplibs=$link_all_deplibs_GCJ
17865
17866# Compile-time system search path for libraries
17867sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17868
17869# Run-time system search path for libraries
17870sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17871
17872# Fix the shell variable \$srcfile for the compiler.
17873fix_srcfile_path="$fix_srcfile_path_GCJ"
17874
17875# Set to yes if exported symbols are required.
17876always_export_symbols=$always_export_symbols_GCJ
17877
17878# The commands to list exported symbols.
17879export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17880
17881# The commands to extract the exported symbol list from a shared archive.
17882extract_expsyms_cmds=$lt_extract_expsyms_cmds
17883
17884# Symbols that should not be listed in the preloaded symbols.
17885exclude_expsyms=$lt_exclude_expsyms_GCJ
17886
17887# Symbols that must always be exported.
17888include_expsyms=$lt_include_expsyms_GCJ
17889
17890# ### END LIBTOOL TAG CONFIG: $tagname
17891
17892__EOF__
17893
17894
17895else
17896 # If there is no Makefile yet, we rely on a make rule to execute
17897 # `config.status --recheck' to rerun these tests and create the
17898 # libtool script then.
17899 test -f Makefile && make "$ltmain"
17900fi
17901
17902
17903ac_ext=c
17904ac_cpp='$CPP $CPPFLAGS'
17905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17907ac_compiler_gnu=$ac_cv_c_compiler_gnu
17908
17909CC="$lt_save_CC"
17910
17911 else
17912 tagname=""
17913 fi
17914 ;;
17915
17916 RC)
17917
17918
17919
17920# Source file extension for RC test sources.
17921ac_ext=rc
17922
17923# Object file extension for compiled RC test sources.
17924objext=o
17925objext_RC=$objext
17926
17927# Code to be used in simple compile tests
17928lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17929
17930# Code to be used in simple link tests
17931lt_simple_link_test_code="$lt_simple_compile_test_code"
17932
17933# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17934
17935# If no C compiler was specified, use CC.
17936LTCC=${LTCC-"$CC"}
17937
17938# Allow CC to be a program name with arguments.
17939compiler=$CC
17940
17941
17942# Allow CC to be a program name with arguments.
17943lt_save_CC="$CC"
17944CC=${RC-"windres"}
17945compiler=$CC
17946compiler_RC=$CC
17947lt_cv_prog_compiler_c_o_RC=yes
17948
17949# The else clause should only fire when bootstrapping the
17950# libtool distribution, otherwise you forgot to ship ltmain.sh
17951# with your package, and you will get complaints that there are
17952# no rules to generate ltmain.sh.
17953if test -f "$ltmain"; then
17954 # See if we are running on zsh, and set the options which allow our commands through
17955 # without removal of \ escapes.
17956 if test -n "${ZSH_VERSION+set}" ; then
17957 setopt NO_GLOB_SUBST
17958 fi
17959 # Now quote all the things that may contain metacharacters while being
17960 # careful not to overquote the AC_SUBSTed values. We take copies of the
17961 # variables and quote the copies for generation of the libtool script.
17962 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17963 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17964 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17965 deplibs_check_method reload_flag reload_cmds need_locks \
17966 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17967 lt_cv_sys_global_symbol_to_c_name_address \
17968 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17969 old_postinstall_cmds old_postuninstall_cmds \
17970 compiler_RC \
17971 CC_RC \
17972 LD_RC \
17973 lt_prog_compiler_wl_RC \
17974 lt_prog_compiler_pic_RC \
17975 lt_prog_compiler_static_RC \
17976 lt_prog_compiler_no_builtin_flag_RC \
17977 export_dynamic_flag_spec_RC \
17978 thread_safe_flag_spec_RC \
17979 whole_archive_flag_spec_RC \
17980 enable_shared_with_static_runtimes_RC \
17981 old_archive_cmds_RC \
17982 old_archive_from_new_cmds_RC \
17983 predep_objects_RC \
17984 postdep_objects_RC \
17985 predeps_RC \
17986 postdeps_RC \
17987 compiler_lib_search_path_RC \
17988 archive_cmds_RC \
17989 archive_expsym_cmds_RC \
17990 postinstall_cmds_RC \
17991 postuninstall_cmds_RC \
17992 old_archive_from_expsyms_cmds_RC \
17993 allow_undefined_flag_RC \
17994 no_undefined_flag_RC \
17995 export_symbols_cmds_RC \
17996 hardcode_libdir_flag_spec_RC \
17997 hardcode_libdir_flag_spec_ld_RC \
17998 hardcode_libdir_separator_RC \
17999 hardcode_automatic_RC \
18000 module_cmds_RC \
18001 module_expsym_cmds_RC \
18002 lt_cv_prog_compiler_c_o_RC \
18003 exclude_expsyms_RC \
18004 include_expsyms_RC; do
18005
18006 case $var in
18007 old_archive_cmds_RC | \
18008 old_archive_from_new_cmds_RC | \
18009 archive_cmds_RC | \
18010 archive_expsym_cmds_RC | \
18011 module_cmds_RC | \
18012 module_expsym_cmds_RC | \
18013 old_archive_from_expsyms_cmds_RC | \
18014 export_symbols_cmds_RC | \
18015 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18016 postinstall_cmds | postuninstall_cmds | \
18017 old_postinstall_cmds | old_postuninstall_cmds | \
18018 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18019 # Double-quote double-evaled strings.
18020 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18021 ;;
18022 *)
18023 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18024 ;;
18025 esac
18026 done
18027
18028 case $lt_echo in
18029 *'\$0 --fallback-echo"')
18030 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18031 ;;
18032 esac
18033
18034cfgfile="$ofile"
18035
18036 cat <<__EOF__ >> "$cfgfile"
18037# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18038
18039# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18040
18041# Shell to use when invoking shell scripts.
18042SHELL=$lt_SHELL
18043
18044# Whether or not to build shared libraries.
18045build_libtool_libs=$enable_shared
18046
18047# Whether or not to build static libraries.
18048build_old_libs=$enable_static
18049
18050# Whether or not to add -lc for building shared libraries.
18051build_libtool_need_lc=$archive_cmds_need_lc_RC
18052
18053# Whether or not to disallow shared libs when runtime libs are static
18054allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18055
18056# Whether or not to optimize for fast installation.
18057fast_install=$enable_fast_install
18058
18059# The host system.
18060host_alias=$host_alias
18061host=$host
18062
18063# An echo program that does not interpret backslashes.
18064echo=$lt_echo
18065
18066# The archiver.
18067AR=$lt_AR
18068AR_FLAGS=$lt_AR_FLAGS
18069
18070# A C compiler.
18071LTCC=$lt_LTCC
18072
18073# A language-specific compiler.
18074CC=$lt_compiler_RC
18075
18076# Is the compiler the GNU C compiler?
18077with_gcc=$GCC_RC
18078
18079# An ERE matcher.
18080EGREP=$lt_EGREP
18081
18082# The linker used to build libraries.
18083LD=$lt_LD_RC
18084
18085# Whether we need hard or soft links.
18086LN_S=$lt_LN_S
18087
18088# A BSD-compatible nm program.
18089NM=$lt_NM
18090
18091# A symbol stripping program
18092STRIP=$STRIP
18093
18094# Used to examine libraries when file_magic_cmd begins "file"
18095MAGIC_CMD=$MAGIC_CMD
18096
18097# Used on cygwin: DLL creation program.
18098DLLTOOL="$DLLTOOL"
18099
18100# Used on cygwin: object dumper.
18101OBJDUMP="$OBJDUMP"
18102
18103# Used on cygwin: assembler.
18104AS="$AS"
18105
18106# The name of the directory that contains temporary libtool files.
18107objdir=$objdir
18108
18109# How to create reloadable object files.
18110reload_flag=$lt_reload_flag
18111reload_cmds=$lt_reload_cmds
18112
18113# How to pass a linker flag through the compiler.
18114wl=$lt_lt_prog_compiler_wl_RC
18115
18116# Object file suffix (normally "o").
18117objext="$ac_objext"
18118
18119# Old archive suffix (normally "a").
18120libext="$libext"
18121
18122# Shared library suffix (normally ".so").
18123shrext='$shrext'
18124
18125# Executable file suffix (normally "").
18126exeext="$exeext"
18127
18128# Additional compiler flags for building library objects.
18129pic_flag=$lt_lt_prog_compiler_pic_RC
18130pic_mode=$pic_mode
18131
18132# What is the maximum length of a command?
18133max_cmd_len=$lt_cv_sys_max_cmd_len
18134
18135# Does compiler simultaneously support -c and -o options?
18136compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18137
18138# Must we lock files when doing compilation ?
18139need_locks=$lt_need_locks
18140
18141# Do we need the lib prefix for modules?
18142need_lib_prefix=$need_lib_prefix
18143
18144# Do we need a version for libraries?
18145need_version=$need_version
18146
18147# Whether dlopen is supported.
18148dlopen_support=$enable_dlopen
18149
18150# Whether dlopen of programs is supported.
18151dlopen_self=$enable_dlopen_self
18152
18153# Whether dlopen of statically linked programs is supported.
18154dlopen_self_static=$enable_dlopen_self_static
18155
18156# Compiler flag to prevent dynamic linking.
18157link_static_flag=$lt_lt_prog_compiler_static_RC
18158
18159# Compiler flag to turn off builtin functions.
18160no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18161
18162# Compiler flag to allow reflexive dlopens.
18163export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18164
18165# Compiler flag to generate shared objects directly from archives.
18166whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18167
18168# Compiler flag to generate thread-safe objects.
18169thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18170
18171# Library versioning type.
18172version_type=$version_type
18173
18174# Format of library name prefix.
18175libname_spec=$lt_libname_spec
18176
18177# List of archive names. First name is the real one, the rest are links.
18178# The last name is the one that the linker finds with -lNAME.
18179library_names_spec=$lt_library_names_spec
18180
18181# The coded name of the library, if different from the real name.
18182soname_spec=$lt_soname_spec
18183
18184# Commands used to build and install an old-style archive.
18185RANLIB=$lt_RANLIB
18186old_archive_cmds=$lt_old_archive_cmds_RC
18187old_postinstall_cmds=$lt_old_postinstall_cmds
18188old_postuninstall_cmds=$lt_old_postuninstall_cmds
18189
18190# Create an old-style archive from a shared archive.
18191old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18192
18193# Create a temporary old-style archive to link instead of a shared archive.
18194old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18195
18196# Commands used to build and install a shared archive.
18197archive_cmds=$lt_archive_cmds_RC
18198archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18199postinstall_cmds=$lt_postinstall_cmds
18200postuninstall_cmds=$lt_postuninstall_cmds
18201
18202# Commands used to build a loadable module (assumed same as above if empty)
18203module_cmds=$lt_module_cmds_RC
18204module_expsym_cmds=$lt_module_expsym_cmds_RC
18205
18206# Commands to strip libraries.
18207old_striplib=$lt_old_striplib
18208striplib=$lt_striplib
18209
18210# Dependencies to place before the objects being linked to create a
18211# shared library.
18212predep_objects=$lt_predep_objects_RC
18213
18214# Dependencies to place after the objects being linked to create a
18215# shared library.
18216postdep_objects=$lt_postdep_objects_RC
18217
18218# Dependencies to place before the objects being linked to create a
18219# shared library.
18220predeps=$lt_predeps_RC
18221
18222# Dependencies to place after the objects being linked to create a
18223# shared library.
18224postdeps=$lt_postdeps_RC
18225
18226# The library search path used internally by the compiler when linking
18227# a shared library.
18228compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18229
18230# Method to check whether dependent libraries are shared objects.
18231deplibs_check_method=$lt_deplibs_check_method
18232
18233# Command to use when deplibs_check_method == file_magic.
18234file_magic_cmd=$lt_file_magic_cmd
18235
18236# Flag that allows shared libraries with undefined symbols to be built.
18237allow_undefined_flag=$lt_allow_undefined_flag_RC
18238
18239# Flag that forces no undefined symbols.
18240no_undefined_flag=$lt_no_undefined_flag_RC
18241
18242# Commands used to finish a libtool library installation in a directory.
18243finish_cmds=$lt_finish_cmds
18244
18245# Same as above, but a single script fragment to be evaled but not shown.
18246finish_eval=$lt_finish_eval
18247
18248# Take the output of nm and produce a listing of raw symbols and C names.
18249global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18250
18251# Transform the output of nm in a proper C declaration
18252global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18253
18254# Transform the output of nm in a C name address pair
18255global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18256
18257# This is the shared library runtime path variable.
18258runpath_var=$runpath_var
18259
18260# This is the shared library path variable.
18261shlibpath_var=$shlibpath_var
18262
18263# Is shlibpath searched before the hard-coded library search path?
18264shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18265
18266# How to hardcode a shared library path into an executable.
18267hardcode_action=$hardcode_action_RC
18268
18269# Whether we should hardcode library paths into libraries.
18270hardcode_into_libs=$hardcode_into_libs
18271
18272# Flag to hardcode \$libdir into a binary during linking.
18273# This must work even if \$libdir does not exist.
18274hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18275
18276# If ld is used when linking, flag to hardcode \$libdir into
18277# a binary during linking. This must work even if \$libdir does
18278# not exist.
18279hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18280
18281# Whether we need a single -rpath flag with a separated argument.
18282hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18283
18284# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18285# resulting binary.
18286hardcode_direct=$hardcode_direct_RC
18287
18288# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18289# resulting binary.
18290hardcode_minus_L=$hardcode_minus_L_RC
18291
18292# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18293# the resulting binary.
18294hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18295
18296# Set to yes if building a shared library automatically hardcodes DIR into the library
18297# and all subsequent libraries and executables linked against it.
18298hardcode_automatic=$hardcode_automatic_RC
18299
18300# Variables whose values should be saved in libtool wrapper scripts and
18301# restored at relink time.
18302variables_saved_for_relink="$variables_saved_for_relink"
18303
18304# Whether libtool must link a program against all its dependency libraries.
18305link_all_deplibs=$link_all_deplibs_RC
18306
18307# Compile-time system search path for libraries
18308sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18309
18310# Run-time system search path for libraries
18311sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18312
18313# Fix the shell variable \$srcfile for the compiler.
18314fix_srcfile_path="$fix_srcfile_path_RC"
18315
18316# Set to yes if exported symbols are required.
18317always_export_symbols=$always_export_symbols_RC
18318
18319# The commands to list exported symbols.
18320export_symbols_cmds=$lt_export_symbols_cmds_RC
18321
18322# The commands to extract the exported symbol list from a shared archive.
18323extract_expsyms_cmds=$lt_extract_expsyms_cmds
18324
18325# Symbols that should not be listed in the preloaded symbols.
18326exclude_expsyms=$lt_exclude_expsyms_RC
18327
18328# Symbols that must always be exported.
18329include_expsyms=$lt_include_expsyms_RC
18330
18331# ### END LIBTOOL TAG CONFIG: $tagname
18332
18333__EOF__
18334
18335
18336else
18337 # If there is no Makefile yet, we rely on a make rule to execute
18338 # `config.status --recheck' to rerun these tests and create the
18339 # libtool script then.
18340 test -f Makefile && make "$ltmain"
18341fi
18342
18343
18344ac_ext=c
18345ac_cpp='$CPP $CPPFLAGS'
18346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18348ac_compiler_gnu=$ac_cv_c_compiler_gnu
18349
18350CC="$lt_save_CC"
18351
18352 ;;
18353
18354 *)
18355 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18356echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18357 { (exit 1); exit 1; }; }
18358 ;;
18359 esac
18360
18361 # Append the new tag name to the list of available tags.
18362 if test -n "$tagname" ; then
18363 available_tags="$available_tags $tagname"
18364 fi
18365 fi
18366 done
18367 IFS="$lt_save_ifs"
18368
18369 # Now substitute the updated list of available tags.
18370 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18371 mv "${ofile}T" "$ofile"
18372 chmod +x "$ofile"
18373 else
18374 rm -f "${ofile}T"
18375 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18376echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18377 { (exit 1); exit 1; }; }
18378 fi
18379fi
John Criswell7a73b802003-06-30 21:59:07 +000018380
18381
18382
18383# This can be used to rebuild libtool when needed
18384LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18385
18386# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018387LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018388
18389# Prevent multiple expansion
18390
18391
18392
John Criswell47fdd832003-07-14 16:52:07 +000018393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
John Criswellde00db22003-08-25 16:49:54 +000018411# Extract the first word of "pwd", so it can be a program name with args.
18412set dummy pwd; ac_word=$2
18413echo "$as_me:$LINENO: checking for $ac_word" >&5
18414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18415if test "${ac_cv_path_RPWD+set}" = set; then
18416 echo $ECHO_N "(cached) $ECHO_C" >&6
18417else
18418 case $RPWD in
18419 [\\/]* | ?:[\\/]*)
18420 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18421 ;;
18422 *)
18423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18424for as_dir in $PATH
18425do
18426 IFS=$as_save_IFS
18427 test -z "$as_dir" && as_dir=.
18428 for ac_exec_ext in '' $ac_executable_extensions; do
18429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18430 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18432 break 2
18433 fi
18434done
18435done
18436
18437 ;;
18438esac
18439fi
18440RPWD=$ac_cv_path_RPWD
18441
18442if test -n "$RPWD"; then
18443 echo "$as_me:$LINENO: result: $RPWD" >&5
18444echo "${ECHO_T}$RPWD" >&6
18445else
18446 echo "$as_me:$LINENO: result: no" >&5
18447echo "${ECHO_T}no" >&6
18448fi
18449
John Criswell7a73b802003-06-30 21:59:07 +000018450# Extract the first word of "ar", so it can be a program name with args.
18451set dummy ar; ac_word=$2
18452echo "$as_me:$LINENO: checking for $ac_word" >&5
18453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18454if test "${ac_cv_path_AR+set}" = set; then
18455 echo $ECHO_N "(cached) $ECHO_C" >&6
18456else
18457 case $AR in
18458 [\\/]* | ?:[\\/]*)
18459 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18460 ;;
18461 *)
18462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18463for as_dir in $PATH
18464do
18465 IFS=$as_save_IFS
18466 test -z "$as_dir" && as_dir=.
18467 for ac_exec_ext in '' $ac_executable_extensions; do
18468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18469 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18471 break 2
18472 fi
18473done
18474done
18475
18476 ;;
18477esac
18478fi
18479AR=$ac_cv_path_AR
18480
18481if test -n "$AR"; then
18482 echo "$as_me:$LINENO: result: $AR" >&5
18483echo "${ECHO_T}$AR" >&6
18484else
18485 echo "$as_me:$LINENO: result: no" >&5
18486echo "${ECHO_T}no" >&6
18487fi
18488
18489# Extract the first word of "sed", so it can be a program name with args.
18490set dummy sed; ac_word=$2
18491echo "$as_me:$LINENO: checking for $ac_word" >&5
18492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18493if test "${ac_cv_path_SED+set}" = set; then
18494 echo $ECHO_N "(cached) $ECHO_C" >&6
18495else
18496 case $SED in
18497 [\\/]* | ?:[\\/]*)
18498 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18499 ;;
18500 *)
18501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18502for as_dir in $PATH
18503do
18504 IFS=$as_save_IFS
18505 test -z "$as_dir" && as_dir=.
18506 for ac_exec_ext in '' $ac_executable_extensions; do
18507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18508 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18510 break 2
18511 fi
18512done
18513done
18514
18515 ;;
18516esac
18517fi
18518SED=$ac_cv_path_SED
18519
18520if test -n "$SED"; then
18521 echo "$as_me:$LINENO: result: $SED" >&5
18522echo "${ECHO_T}$SED" >&6
18523else
18524 echo "$as_me:$LINENO: result: no" >&5
18525echo "${ECHO_T}no" >&6
18526fi
18527
18528# Extract the first word of "rm", so it can be a program name with args.
18529set dummy rm; ac_word=$2
18530echo "$as_me:$LINENO: checking for $ac_word" >&5
18531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18532if test "${ac_cv_path_RM+set}" = set; then
18533 echo $ECHO_N "(cached) $ECHO_C" >&6
18534else
18535 case $RM in
18536 [\\/]* | ?:[\\/]*)
18537 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18538 ;;
18539 *)
18540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18541for as_dir in $PATH
18542do
18543 IFS=$as_save_IFS
18544 test -z "$as_dir" && as_dir=.
18545 for ac_exec_ext in '' $ac_executable_extensions; do
18546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18547 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18549 break 2
18550 fi
18551done
18552done
18553
18554 ;;
18555esac
18556fi
18557RM=$ac_cv_path_RM
18558
18559if test -n "$RM"; then
18560 echo "$as_me:$LINENO: result: $RM" >&5
18561echo "${ECHO_T}$RM" >&6
18562else
18563 echo "$as_me:$LINENO: result: no" >&5
18564echo "${ECHO_T}no" >&6
18565fi
18566
18567# Extract the first word of "echo", so it can be a program name with args.
18568set dummy echo; ac_word=$2
18569echo "$as_me:$LINENO: checking for $ac_word" >&5
18570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18571if test "${ac_cv_path_ECHO+set}" = set; then
18572 echo $ECHO_N "(cached) $ECHO_C" >&6
18573else
18574 case $ECHO in
18575 [\\/]* | ?:[\\/]*)
18576 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18577 ;;
18578 *)
18579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18580for as_dir in $PATH
18581do
18582 IFS=$as_save_IFS
18583 test -z "$as_dir" && as_dir=.
18584 for ac_exec_ext in '' $ac_executable_extensions; do
18585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18586 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18588 break 2
18589 fi
18590done
18591done
18592
18593 ;;
18594esac
18595fi
18596ECHO=$ac_cv_path_ECHO
18597
18598if test -n "$ECHO"; then
18599 echo "$as_me:$LINENO: result: $ECHO" >&5
18600echo "${ECHO_T}$ECHO" >&6
18601else
18602 echo "$as_me:$LINENO: result: no" >&5
18603echo "${ECHO_T}no" >&6
18604fi
18605
18606# Extract the first word of "mkdir", so it can be a program name with args.
18607set dummy mkdir; ac_word=$2
18608echo "$as_me:$LINENO: checking for $ac_word" >&5
18609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18610if test "${ac_cv_path_MKDIR+set}" = set; then
18611 echo $ECHO_N "(cached) $ECHO_C" >&6
18612else
18613 case $MKDIR in
18614 [\\/]* | ?:[\\/]*)
18615 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18616 ;;
18617 *)
18618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18619for as_dir in $PATH
18620do
18621 IFS=$as_save_IFS
18622 test -z "$as_dir" && as_dir=.
18623 for ac_exec_ext in '' $ac_executable_extensions; do
18624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18625 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18627 break 2
18628 fi
18629done
18630done
18631
18632 ;;
18633esac
18634fi
18635MKDIR=$ac_cv_path_MKDIR
18636
18637if test -n "$MKDIR"; then
18638 echo "$as_me:$LINENO: result: $MKDIR" >&5
18639echo "${ECHO_T}$MKDIR" >&6
18640else
18641 echo "$as_me:$LINENO: result: no" >&5
18642echo "${ECHO_T}no" >&6
18643fi
18644
18645# Extract the first word of "date", so it can be a program name with args.
18646set dummy date; ac_word=$2
18647echo "$as_me:$LINENO: checking for $ac_word" >&5
18648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18649if test "${ac_cv_path_DATE+set}" = set; then
18650 echo $ECHO_N "(cached) $ECHO_C" >&6
18651else
18652 case $DATE in
18653 [\\/]* | ?:[\\/]*)
18654 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18655 ;;
18656 *)
18657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18658for as_dir in $PATH
18659do
18660 IFS=$as_save_IFS
18661 test -z "$as_dir" && as_dir=.
18662 for ac_exec_ext in '' $ac_executable_extensions; do
18663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18664 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18666 break 2
18667 fi
18668done
18669done
18670
18671 ;;
18672esac
18673fi
18674DATE=$ac_cv_path_DATE
18675
18676if test -n "$DATE"; then
18677 echo "$as_me:$LINENO: result: $DATE" >&5
18678echo "${ECHO_T}$DATE" >&6
18679else
18680 echo "$as_me:$LINENO: result: no" >&5
18681echo "${ECHO_T}no" >&6
18682fi
18683
18684# Extract the first word of "mv", so it can be a program name with args.
18685set dummy mv; ac_word=$2
18686echo "$as_me:$LINENO: checking for $ac_word" >&5
18687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18688if test "${ac_cv_path_MV+set}" = set; then
18689 echo $ECHO_N "(cached) $ECHO_C" >&6
18690else
18691 case $MV in
18692 [\\/]* | ?:[\\/]*)
18693 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18694 ;;
18695 *)
18696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18697for as_dir in $PATH
18698do
18699 IFS=$as_save_IFS
18700 test -z "$as_dir" && as_dir=.
18701 for ac_exec_ext in '' $ac_executable_extensions; do
18702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18703 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18705 break 2
18706 fi
18707done
18708done
18709
18710 ;;
18711esac
18712fi
18713MV=$ac_cv_path_MV
18714
18715if test -n "$MV"; then
18716 echo "$as_me:$LINENO: result: $MV" >&5
18717echo "${ECHO_T}$MV" >&6
18718else
18719 echo "$as_me:$LINENO: result: no" >&5
18720echo "${ECHO_T}no" >&6
18721fi
18722
18723# Extract the first word of "dot", so it can be a program name with args.
18724set dummy dot; ac_word=$2
18725echo "$as_me:$LINENO: checking for $ac_word" >&5
18726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18727if test "${ac_cv_path_DOT+set}" = set; then
18728 echo $ECHO_N "(cached) $ECHO_C" >&6
18729else
18730 case $DOT in
18731 [\\/]* | ?:[\\/]*)
18732 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18733 ;;
18734 *)
18735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18736for as_dir in $PATH
18737do
18738 IFS=$as_save_IFS
18739 test -z "$as_dir" && as_dir=.
18740 for ac_exec_ext in '' $ac_executable_extensions; do
18741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18742 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18744 break 2
18745 fi
18746done
18747done
18748
18749 ;;
18750esac
18751fi
18752DOT=$ac_cv_path_DOT
18753
18754if test -n "$DOT"; then
18755 echo "$as_me:$LINENO: result: $DOT" >&5
18756echo "${ECHO_T}$DOT" >&6
18757else
18758 echo "$as_me:$LINENO: result: no" >&5
18759echo "${ECHO_T}no" >&6
18760fi
18761
18762# Extract the first word of "etags", so it can be a program name with args.
18763set dummy etags; ac_word=$2
18764echo "$as_me:$LINENO: checking for $ac_word" >&5
18765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18766if test "${ac_cv_path_ETAGS+set}" = set; then
18767 echo $ECHO_N "(cached) $ECHO_C" >&6
18768else
18769 case $ETAGS in
18770 [\\/]* | ?:[\\/]*)
18771 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18772 ;;
18773 *)
18774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18775for as_dir in $PATH
18776do
18777 IFS=$as_save_IFS
18778 test -z "$as_dir" && as_dir=.
18779 for ac_exec_ext in '' $ac_executable_extensions; do
18780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18781 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18783 break 2
18784 fi
18785done
18786done
18787
18788 ;;
18789esac
18790fi
18791ETAGS=$ac_cv_path_ETAGS
18792
18793if test -n "$ETAGS"; then
18794 echo "$as_me:$LINENO: result: $ETAGS" >&5
18795echo "${ECHO_T}$ETAGS" >&6
18796else
18797 echo "$as_me:$LINENO: result: no" >&5
18798echo "${ECHO_T}no" >&6
18799fi
18800
18801# Extract the first word of "purify", so it can be a program name with args.
18802set dummy purify; ac_word=$2
18803echo "$as_me:$LINENO: checking for $ac_word" >&5
18804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18805if test "${ac_cv_path_PURIFY+set}" = set; then
18806 echo $ECHO_N "(cached) $ECHO_C" >&6
18807else
18808 case $PURIFY in
18809 [\\/]* | ?:[\\/]*)
18810 ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18811 ;;
18812 *)
18813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18814for as_dir in $PATH
18815do
18816 IFS=$as_save_IFS
18817 test -z "$as_dir" && as_dir=.
18818 for ac_exec_ext in '' $ac_executable_extensions; do
18819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18820 ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18822 break 2
18823 fi
18824done
18825done
18826
18827 ;;
18828esac
18829fi
18830PURIFY=$ac_cv_path_PURIFY
18831
18832if test -n "$PURIFY"; then
18833 echo "$as_me:$LINENO: result: $PURIFY" >&5
18834echo "${ECHO_T}$PURIFY" >&6
18835else
18836 echo "$as_me:$LINENO: result: no" >&5
18837echo "${ECHO_T}no" >&6
18838fi
18839
John Criswellde00db22003-08-25 16:49:54 +000018840# Extract the first word of "python", so it can be a program name with args.
18841set dummy python; ac_word=$2
18842echo "$as_me:$LINENO: checking for $ac_word" >&5
18843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18844if test "${ac_cv_path_PYTHON+set}" = set; then
18845 echo $ECHO_N "(cached) $ECHO_C" >&6
18846else
18847 case $PYTHON in
18848 [\\/]* | ?:[\\/]*)
18849 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18850 ;;
18851 *)
18852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18853for as_dir in $PATH
18854do
18855 IFS=$as_save_IFS
18856 test -z "$as_dir" && as_dir=.
18857 for ac_exec_ext in '' $ac_executable_extensions; do
18858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18859 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18861 break 2
18862 fi
18863done
18864done
18865
18866 ;;
18867esac
18868fi
18869PYTHON=$ac_cv_path_PYTHON
18870
18871if test -n "$PYTHON"; then
18872 echo "$as_me:$LINENO: result: $PYTHON" >&5
18873echo "${ECHO_T}$PYTHON" >&6
18874else
18875 echo "$as_me:$LINENO: result: no" >&5
18876echo "${ECHO_T}no" >&6
18877fi
18878
18879# Extract the first word of "qmtest", so it can be a program name with args.
18880set dummy qmtest; ac_word=$2
18881echo "$as_me:$LINENO: checking for $ac_word" >&5
18882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18883if test "${ac_cv_path_QMTEST+set}" = set; then
18884 echo $ECHO_N "(cached) $ECHO_C" >&6
18885else
18886 case $QMTEST in
18887 [\\/]* | ?:[\\/]*)
18888 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18889 ;;
18890 *)
18891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18892for as_dir in $PATH
18893do
18894 IFS=$as_save_IFS
18895 test -z "$as_dir" && as_dir=.
18896 for ac_exec_ext in '' $ac_executable_extensions; do
18897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18898 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18900 break 2
18901 fi
18902done
18903done
18904
18905 ;;
18906esac
18907fi
18908QMTEST=$ac_cv_path_QMTEST
18909
18910if test -n "$QMTEST"; then
18911 echo "$as_me:$LINENO: result: $QMTEST" >&5
18912echo "${ECHO_T}$QMTEST" >&6
18913else
18914 echo "$as_me:$LINENO: result: no" >&5
18915echo "${ECHO_T}no" >&6
18916fi
18917
18918
18919pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18920pymajor=`echo $pyversion | cut -d. -f1`
18921pyminor=`echo $pyversion | cut -d. -f2`
18922
18923if test "$pymajor" -ge "2"
18924then
18925 if test "$pymajor" -eq "2"
18926 then
18927 if test "$pyminor" -lt "2"
18928 then
18929 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18930echo "$as_me: error: Python 2.2 or greater required" >&2;}
18931 { (exit 1); exit 1; }; }
18932 fi
18933 fi
18934else
18935 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18936echo "$as_me: error: Python 2.2 or greater required" >&2;}
18937 { (exit 1); exit 1; }; }
18938fi
John Criswell7a73b802003-06-30 21:59:07 +000018939
18940
18941
18942
18943
18944echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18945echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18946if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18947 echo $ECHO_N "(cached) $ECHO_C" >&6
18948else
18949 ac_check_lib_save_LIBS=$LIBS
18950LIBS="-lelf $LIBS"
18951cat >conftest.$ac_ext <<_ACEOF
18952#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018953/* confdefs.h. */
18954_ACEOF
18955cat confdefs.h >>conftest.$ac_ext
18956cat >>conftest.$ac_ext <<_ACEOF
18957/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018958
18959/* Override any gcc2 internal prototype to avoid an error. */
18960#ifdef __cplusplus
18961extern "C"
18962#endif
18963/* We use char because int might match the return type of a gcc2
18964 builtin and then its argument prototype would still apply. */
18965char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000018966int
18967main ()
18968{
18969elf_begin ();
18970 ;
18971 return 0;
18972}
18973_ACEOF
18974rm -f conftest.$ac_objext conftest$ac_exeext
18975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18976 (eval $ac_link) 2>&5
18977 ac_status=$?
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); } &&
18980 { ac_try='test -s conftest$ac_exeext'
18981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18982 (eval $ac_try) 2>&5
18983 ac_status=$?
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); }; }; then
18986 ac_cv_lib_elf_elf_begin=yes
18987else
18988 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018989sed 's/^/| /' conftest.$ac_ext >&5
18990
John Criswell7a73b802003-06-30 21:59:07 +000018991ac_cv_lib_elf_elf_begin=no
18992fi
18993rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18994LIBS=$ac_check_lib_save_LIBS
18995fi
18996echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18997echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18998if test $ac_cv_lib_elf_elf_begin = yes; then
18999 cat >>confdefs.h <<_ACEOF
19000#define HAVE_LIBELF 1
19001_ACEOF
19002
19003 LIBS="-lelf $LIBS"
19004
19005fi
19006
19007
19008echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19009echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19010if test "${ac_cv_search_dlopen+set}" = set; then
19011 echo $ECHO_N "(cached) $ECHO_C" >&6
19012else
19013 ac_func_search_save_LIBS=$LIBS
19014ac_cv_search_dlopen=no
19015cat >conftest.$ac_ext <<_ACEOF
19016#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019017/* confdefs.h. */
19018_ACEOF
19019cat confdefs.h >>conftest.$ac_ext
19020cat >>conftest.$ac_ext <<_ACEOF
19021/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019022
19023/* Override any gcc2 internal prototype to avoid an error. */
19024#ifdef __cplusplus
19025extern "C"
19026#endif
19027/* We use char because int might match the return type of a gcc2
19028 builtin and then its argument prototype would still apply. */
19029char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019030int
19031main ()
19032{
19033dlopen ();
19034 ;
19035 return 0;
19036}
19037_ACEOF
19038rm -f conftest.$ac_objext conftest$ac_exeext
19039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19040 (eval $ac_link) 2>&5
19041 ac_status=$?
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); } &&
19044 { ac_try='test -s conftest$ac_exeext'
19045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19046 (eval $ac_try) 2>&5
19047 ac_status=$?
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); }; }; then
19050 ac_cv_search_dlopen="none required"
19051else
19052 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019053sed 's/^/| /' conftest.$ac_ext >&5
19054
John Criswell7a73b802003-06-30 21:59:07 +000019055fi
19056rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19057if test "$ac_cv_search_dlopen" = no; then
19058 for ac_lib in dl; do
19059 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19060 cat >conftest.$ac_ext <<_ACEOF
19061#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019062/* confdefs.h. */
19063_ACEOF
19064cat confdefs.h >>conftest.$ac_ext
19065cat >>conftest.$ac_ext <<_ACEOF
19066/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019067
19068/* Override any gcc2 internal prototype to avoid an error. */
19069#ifdef __cplusplus
19070extern "C"
19071#endif
19072/* We use char because int might match the return type of a gcc2
19073 builtin and then its argument prototype would still apply. */
19074char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019075int
19076main ()
19077{
19078dlopen ();
19079 ;
19080 return 0;
19081}
19082_ACEOF
19083rm -f conftest.$ac_objext conftest$ac_exeext
19084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19085 (eval $ac_link) 2>&5
19086 ac_status=$?
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); } &&
19089 { ac_try='test -s conftest$ac_exeext'
19090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19091 (eval $ac_try) 2>&5
19092 ac_status=$?
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); }; }; then
19095 ac_cv_search_dlopen="-l$ac_lib"
19096break
19097else
19098 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019099sed 's/^/| /' conftest.$ac_ext >&5
19100
John Criswell7a73b802003-06-30 21:59:07 +000019101fi
19102rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19103 done
19104fi
19105LIBS=$ac_func_search_save_LIBS
19106fi
19107echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19108echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19109if test "$ac_cv_search_dlopen" != no; then
19110 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19111
19112else
19113 { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19114echo "$as_me: error: dlopen() required but not found" >&2;}
19115 { (exit 1); exit 1; }; }
19116fi
19117
19118
19119echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19120echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19121if test "${ac_cv_search_mallinfo+set}" = set; then
19122 echo $ECHO_N "(cached) $ECHO_C" >&6
19123else
19124 ac_func_search_save_LIBS=$LIBS
19125ac_cv_search_mallinfo=no
19126cat >conftest.$ac_ext <<_ACEOF
19127#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019128/* confdefs.h. */
19129_ACEOF
19130cat confdefs.h >>conftest.$ac_ext
19131cat >>conftest.$ac_ext <<_ACEOF
19132/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019133
19134/* Override any gcc2 internal prototype to avoid an error. */
19135#ifdef __cplusplus
19136extern "C"
19137#endif
19138/* We use char because int might match the return type of a gcc2
19139 builtin and then its argument prototype would still apply. */
19140char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019141int
19142main ()
19143{
19144mallinfo ();
19145 ;
19146 return 0;
19147}
19148_ACEOF
19149rm -f conftest.$ac_objext conftest$ac_exeext
19150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19151 (eval $ac_link) 2>&5
19152 ac_status=$?
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); } &&
19155 { ac_try='test -s conftest$ac_exeext'
19156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157 (eval $ac_try) 2>&5
19158 ac_status=$?
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); }; }; then
19161 ac_cv_search_mallinfo="none required"
19162else
19163 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019164sed 's/^/| /' conftest.$ac_ext >&5
19165
John Criswell7a73b802003-06-30 21:59:07 +000019166fi
19167rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19168if test "$ac_cv_search_mallinfo" = no; then
19169 for ac_lib in malloc; do
19170 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19171 cat >conftest.$ac_ext <<_ACEOF
19172#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019173/* confdefs.h. */
19174_ACEOF
19175cat confdefs.h >>conftest.$ac_ext
19176cat >>conftest.$ac_ext <<_ACEOF
19177/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019178
19179/* Override any gcc2 internal prototype to avoid an error. */
19180#ifdef __cplusplus
19181extern "C"
19182#endif
19183/* We use char because int might match the return type of a gcc2
19184 builtin and then its argument prototype would still apply. */
19185char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019186int
19187main ()
19188{
19189mallinfo ();
19190 ;
19191 return 0;
19192}
19193_ACEOF
19194rm -f conftest.$ac_objext conftest$ac_exeext
19195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19196 (eval $ac_link) 2>&5
19197 ac_status=$?
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); } &&
19200 { ac_try='test -s conftest$ac_exeext'
19201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202 (eval $ac_try) 2>&5
19203 ac_status=$?
19204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); }; }; then
19206 ac_cv_search_mallinfo="-l$ac_lib"
19207break
19208else
19209 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019210sed 's/^/| /' conftest.$ac_ext >&5
19211
John Criswell7a73b802003-06-30 21:59:07 +000019212fi
19213rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19214 done
19215fi
19216LIBS=$ac_func_search_save_LIBS
19217fi
19218echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19219echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19220if test "$ac_cv_search_mallinfo" != no; then
19221 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19222 cat >>confdefs.h <<\_ACEOF
19223#define HAVE_MALLINFO 1
19224_ACEOF
19225
19226fi
19227
19228
19229
19230echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19231echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19232if test "${ac_cv_header_stdc+set}" = set; then
19233 echo $ECHO_N "(cached) $ECHO_C" >&6
19234else
19235 cat >conftest.$ac_ext <<_ACEOF
19236#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019237/* confdefs.h. */
19238_ACEOF
19239cat confdefs.h >>conftest.$ac_ext
19240cat >>conftest.$ac_ext <<_ACEOF
19241/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019242#include <stdlib.h>
19243#include <stdarg.h>
19244#include <string.h>
19245#include <float.h>
19246
John Criswell0c38eaf2003-09-10 15:17:25 +000019247int
19248main ()
19249{
19250
19251 ;
19252 return 0;
19253}
John Criswell7a73b802003-06-30 21:59:07 +000019254_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019255rm -f conftest.$ac_objext
19256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19257 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019258 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000019259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019260 (exit $ac_status); } &&
19261 { ac_try='test -s conftest.$ac_objext'
19262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19263 (eval $ac_try) 2>&5
19264 ac_status=$?
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019267 ac_cv_header_stdc=yes
19268else
19269 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019270sed 's/^/| /' conftest.$ac_ext >&5
19271
19272ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019273fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019274rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019275
19276if test $ac_cv_header_stdc = yes; then
19277 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19278 cat >conftest.$ac_ext <<_ACEOF
19279#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019280/* confdefs.h. */
19281_ACEOF
19282cat confdefs.h >>conftest.$ac_ext
19283cat >>conftest.$ac_ext <<_ACEOF
19284/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019285#include <string.h>
19286
19287_ACEOF
19288if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019289 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019290 :
19291else
19292 ac_cv_header_stdc=no
19293fi
19294rm -f conftest*
19295
19296fi
19297
19298if test $ac_cv_header_stdc = yes; then
19299 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19300 cat >conftest.$ac_ext <<_ACEOF
19301#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019302/* confdefs.h. */
19303_ACEOF
19304cat confdefs.h >>conftest.$ac_ext
19305cat >>conftest.$ac_ext <<_ACEOF
19306/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019307#include <stdlib.h>
19308
19309_ACEOF
19310if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019311 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019312 :
19313else
19314 ac_cv_header_stdc=no
19315fi
19316rm -f conftest*
19317
19318fi
19319
19320if test $ac_cv_header_stdc = yes; then
19321 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19322 if test "$cross_compiling" = yes; then
19323 :
19324else
19325 cat >conftest.$ac_ext <<_ACEOF
19326#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019327/* confdefs.h. */
19328_ACEOF
19329cat confdefs.h >>conftest.$ac_ext
19330cat >>conftest.$ac_ext <<_ACEOF
19331/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019332#include <ctype.h>
19333#if ((' ' & 0x0FF) == 0x020)
19334# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19335# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19336#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019337# define ISLOWER(c) \
19338 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000019339 || ('j' <= (c) && (c) <= 'r') \
19340 || ('s' <= (c) && (c) <= 'z'))
19341# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19342#endif
19343
19344#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19345int
19346main ()
19347{
19348 int i;
19349 for (i = 0; i < 256; i++)
19350 if (XOR (islower (i), ISLOWER (i))
19351 || toupper (i) != TOUPPER (i))
19352 exit(2);
19353 exit (0);
19354}
19355_ACEOF
19356rm -f conftest$ac_exeext
19357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19358 (eval $ac_link) 2>&5
19359 ac_status=$?
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19363 (eval $ac_try) 2>&5
19364 ac_status=$?
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); }; }; then
19367 :
19368else
19369 echo "$as_me: program exited with status $ac_status" >&5
19370echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019371sed 's/^/| /' conftest.$ac_ext >&5
19372
John Criswell7a73b802003-06-30 21:59:07 +000019373( exit $ac_status )
19374ac_cv_header_stdc=no
19375fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019376rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019377fi
19378fi
19379fi
19380echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19381echo "${ECHO_T}$ac_cv_header_stdc" >&6
19382if test $ac_cv_header_stdc = yes; then
19383
19384cat >>confdefs.h <<\_ACEOF
19385#define STDC_HEADERS 1
19386_ACEOF
19387
19388fi
19389
19390echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19391echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19392if test "${ac_cv_header_sys_wait_h+set}" = set; then
19393 echo $ECHO_N "(cached) $ECHO_C" >&6
19394else
19395 cat >conftest.$ac_ext <<_ACEOF
19396#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019397/* confdefs.h. */
19398_ACEOF
19399cat confdefs.h >>conftest.$ac_ext
19400cat >>conftest.$ac_ext <<_ACEOF
19401/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019402#include <sys/types.h>
19403#include <sys/wait.h>
19404#ifndef WEXITSTATUS
19405# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19406#endif
19407#ifndef WIFEXITED
19408# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19409#endif
19410
John Criswell7a73b802003-06-30 21:59:07 +000019411int
19412main ()
19413{
19414 int s;
19415 wait (&s);
19416 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19417 ;
19418 return 0;
19419}
19420_ACEOF
19421rm -f conftest.$ac_objext
19422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19423 (eval $ac_compile) 2>&5
19424 ac_status=$?
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); } &&
19427 { ac_try='test -s conftest.$ac_objext'
19428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19429 (eval $ac_try) 2>&5
19430 ac_status=$?
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); }; }; then
19433 ac_cv_header_sys_wait_h=yes
19434else
19435 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019436sed 's/^/| /' conftest.$ac_ext >&5
19437
John Criswell7a73b802003-06-30 21:59:07 +000019438ac_cv_header_sys_wait_h=no
19439fi
19440rm -f conftest.$ac_objext conftest.$ac_ext
19441fi
19442echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19443echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19444if test $ac_cv_header_sys_wait_h = yes; then
19445
19446cat >>confdefs.h <<\_ACEOF
19447#define HAVE_SYS_WAIT_H 1
19448_ACEOF
19449
19450fi
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19462do
19463as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19464if eval "test \"\${$as_ac_Header+set}\" = set"; then
19465 echo "$as_me:$LINENO: checking for $ac_header" >&5
19466echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19467if eval "test \"\${$as_ac_Header+set}\" = set"; then
19468 echo $ECHO_N "(cached) $ECHO_C" >&6
19469fi
19470echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19471echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19472else
19473 # Is the header compilable?
19474echo "$as_me:$LINENO: checking $ac_header usability" >&5
19475echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19476cat >conftest.$ac_ext <<_ACEOF
19477#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019478/* confdefs.h. */
19479_ACEOF
19480cat confdefs.h >>conftest.$ac_ext
19481cat >>conftest.$ac_ext <<_ACEOF
19482/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019483$ac_includes_default
19484#include <$ac_header>
19485_ACEOF
19486rm -f conftest.$ac_objext
19487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19488 (eval $ac_compile) 2>&5
19489 ac_status=$?
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); } &&
19492 { ac_try='test -s conftest.$ac_objext'
19493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19494 (eval $ac_try) 2>&5
19495 ac_status=$?
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); }; }; then
19498 ac_header_compiler=yes
19499else
19500 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019501sed 's/^/| /' conftest.$ac_ext >&5
19502
John Criswell7a73b802003-06-30 21:59:07 +000019503ac_header_compiler=no
19504fi
19505rm -f conftest.$ac_objext conftest.$ac_ext
19506echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19507echo "${ECHO_T}$ac_header_compiler" >&6
19508
19509# Is the header present?
19510echo "$as_me:$LINENO: checking $ac_header presence" >&5
19511echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19512cat >conftest.$ac_ext <<_ACEOF
19513#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019514/* confdefs.h. */
19515_ACEOF
19516cat confdefs.h >>conftest.$ac_ext
19517cat >>conftest.$ac_ext <<_ACEOF
19518/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019519#include <$ac_header>
19520_ACEOF
19521if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19523 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019524 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019525 rm -f conftest.er1
19526 cat conftest.err >&5
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); } >/dev/null; then
19529 if test -s conftest.err; then
19530 ac_cpp_err=$ac_c_preproc_warn_flag
19531 else
19532 ac_cpp_err=
19533 fi
19534else
19535 ac_cpp_err=yes
19536fi
19537if test -z "$ac_cpp_err"; then
19538 ac_header_preproc=yes
19539else
19540 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019541sed 's/^/| /' conftest.$ac_ext >&5
19542
John Criswell7a73b802003-06-30 21:59:07 +000019543 ac_header_preproc=no
19544fi
19545rm -f conftest.err conftest.$ac_ext
19546echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19547echo "${ECHO_T}$ac_header_preproc" >&6
19548
19549# So? What about this header?
19550case $ac_header_compiler:$ac_header_preproc in
19551 yes:no )
19552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19553echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019555echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19556 (
19557 cat <<\_ASBOX
19558## ------------------------------------ ##
19559## Report this to bug-autoconf@gnu.org. ##
19560## ------------------------------------ ##
19561_ASBOX
19562 ) |
19563 sed "s/^/$as_me: WARNING: /" >&2
19564 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019565 no:yes )
19566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19567echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19569echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019571echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19572 (
19573 cat <<\_ASBOX
19574## ------------------------------------ ##
19575## Report this to bug-autoconf@gnu.org. ##
19576## ------------------------------------ ##
19577_ASBOX
19578 ) |
19579 sed "s/^/$as_me: WARNING: /" >&2
19580 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019581esac
19582echo "$as_me:$LINENO: checking for $ac_header" >&5
19583echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19584if eval "test \"\${$as_ac_Header+set}\" = set"; then
19585 echo $ECHO_N "(cached) $ECHO_C" >&6
19586else
19587 eval "$as_ac_Header=$ac_header_preproc"
19588fi
19589echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19590echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19591
19592fi
19593if test `eval echo '${'$as_ac_Header'}'` = yes; then
19594 cat >>confdefs.h <<_ACEOF
19595#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19596_ACEOF
19597
19598fi
19599
19600done
19601
19602
19603
19604
19605
19606
19607for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19608do
19609as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19610if eval "test \"\${$as_ac_Header+set}\" = set"; then
19611 echo "$as_me:$LINENO: checking for $ac_header" >&5
19612echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19613if eval "test \"\${$as_ac_Header+set}\" = set"; then
19614 echo $ECHO_N "(cached) $ECHO_C" >&6
19615fi
19616echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19617echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19618else
19619 # Is the header compilable?
19620echo "$as_me:$LINENO: checking $ac_header usability" >&5
19621echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19622cat >conftest.$ac_ext <<_ACEOF
19623#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019624/* confdefs.h. */
19625_ACEOF
19626cat confdefs.h >>conftest.$ac_ext
19627cat >>conftest.$ac_ext <<_ACEOF
19628/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019629$ac_includes_default
19630#include <$ac_header>
19631_ACEOF
19632rm -f conftest.$ac_objext
19633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19634 (eval $ac_compile) 2>&5
19635 ac_status=$?
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } &&
19638 { ac_try='test -s conftest.$ac_objext'
19639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640 (eval $ac_try) 2>&5
19641 ac_status=$?
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; }; then
19644 ac_header_compiler=yes
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 +000019649ac_header_compiler=no
19650fi
19651rm -f conftest.$ac_objext conftest.$ac_ext
19652echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19653echo "${ECHO_T}$ac_header_compiler" >&6
19654
19655# Is the header present?
19656echo "$as_me:$LINENO: checking $ac_header presence" >&5
19657echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19658cat >conftest.$ac_ext <<_ACEOF
19659#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019660/* confdefs.h. */
19661_ACEOF
19662cat confdefs.h >>conftest.$ac_ext
19663cat >>conftest.$ac_ext <<_ACEOF
19664/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019665#include <$ac_header>
19666_ACEOF
19667if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19669 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019670 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019671 rm -f conftest.er1
19672 cat conftest.err >&5
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); } >/dev/null; then
19675 if test -s conftest.err; then
19676 ac_cpp_err=$ac_c_preproc_warn_flag
19677 else
19678 ac_cpp_err=
19679 fi
19680else
19681 ac_cpp_err=yes
19682fi
19683if test -z "$ac_cpp_err"; then
19684 ac_header_preproc=yes
19685else
19686 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019687sed 's/^/| /' conftest.$ac_ext >&5
19688
John Criswell7a73b802003-06-30 21:59:07 +000019689 ac_header_preproc=no
19690fi
19691rm -f conftest.err conftest.$ac_ext
19692echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19693echo "${ECHO_T}$ac_header_preproc" >&6
19694
19695# So? What about this header?
19696case $ac_header_compiler:$ac_header_preproc in
19697 yes:no )
19698 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19699echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019701echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19702 (
19703 cat <<\_ASBOX
19704## ------------------------------------ ##
19705## Report this to bug-autoconf@gnu.org. ##
19706## ------------------------------------ ##
19707_ASBOX
19708 ) |
19709 sed "s/^/$as_me: WARNING: /" >&2
19710 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019711 no:yes )
19712 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19713echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19714 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19715echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019717echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19718 (
19719 cat <<\_ASBOX
19720## ------------------------------------ ##
19721## Report this to bug-autoconf@gnu.org. ##
19722## ------------------------------------ ##
19723_ASBOX
19724 ) |
19725 sed "s/^/$as_me: WARNING: /" >&2
19726 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019727esac
19728echo "$as_me:$LINENO: checking for $ac_header" >&5
19729echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19730if eval "test \"\${$as_ac_Header+set}\" = set"; then
19731 echo $ECHO_N "(cached) $ECHO_C" >&6
19732else
19733 eval "$as_ac_Header=$ac_header_preproc"
19734fi
19735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19736echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19737
19738fi
19739if test `eval echo '${'$as_ac_Header'}'` = yes; then
19740 cat >>confdefs.h <<_ACEOF
19741#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19742_ACEOF
19743
19744fi
19745
19746done
19747
19748
19749
19750
19751for ac_header in dlfcn.h link.h
19752do
19753as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19754if eval "test \"\${$as_ac_Header+set}\" = set"; then
19755 echo "$as_me:$LINENO: checking for $ac_header" >&5
19756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19757if eval "test \"\${$as_ac_Header+set}\" = set"; then
19758 echo $ECHO_N "(cached) $ECHO_C" >&6
19759fi
19760echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19761echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19762else
19763 # Is the header compilable?
19764echo "$as_me:$LINENO: checking $ac_header usability" >&5
19765echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19766cat >conftest.$ac_ext <<_ACEOF
19767#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019768/* confdefs.h. */
19769_ACEOF
19770cat confdefs.h >>conftest.$ac_ext
19771cat >>conftest.$ac_ext <<_ACEOF
19772/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019773$ac_includes_default
19774#include <$ac_header>
19775_ACEOF
19776rm -f conftest.$ac_objext
19777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19778 (eval $ac_compile) 2>&5
19779 ac_status=$?
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); } &&
19782 { ac_try='test -s conftest.$ac_objext'
19783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19784 (eval $ac_try) 2>&5
19785 ac_status=$?
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); }; }; then
19788 ac_header_compiler=yes
19789else
19790 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019791sed 's/^/| /' conftest.$ac_ext >&5
19792
John Criswell7a73b802003-06-30 21:59:07 +000019793ac_header_compiler=no
19794fi
19795rm -f conftest.$ac_objext conftest.$ac_ext
19796echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19797echo "${ECHO_T}$ac_header_compiler" >&6
19798
19799# Is the header present?
19800echo "$as_me:$LINENO: checking $ac_header presence" >&5
19801echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19802cat >conftest.$ac_ext <<_ACEOF
19803#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019804/* confdefs.h. */
19805_ACEOF
19806cat confdefs.h >>conftest.$ac_ext
19807cat >>conftest.$ac_ext <<_ACEOF
19808/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019809#include <$ac_header>
19810_ACEOF
19811if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19813 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019814 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019815 rm -f conftest.er1
19816 cat conftest.err >&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); } >/dev/null; then
19819 if test -s conftest.err; then
19820 ac_cpp_err=$ac_c_preproc_warn_flag
19821 else
19822 ac_cpp_err=
19823 fi
19824else
19825 ac_cpp_err=yes
19826fi
19827if test -z "$ac_cpp_err"; then
19828 ac_header_preproc=yes
19829else
19830 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019831sed 's/^/| /' conftest.$ac_ext >&5
19832
John Criswell7a73b802003-06-30 21:59:07 +000019833 ac_header_preproc=no
19834fi
19835rm -f conftest.err conftest.$ac_ext
19836echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19837echo "${ECHO_T}$ac_header_preproc" >&6
19838
19839# So? What about this header?
19840case $ac_header_compiler:$ac_header_preproc in
19841 yes:no )
19842 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19843echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019845echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19846 (
19847 cat <<\_ASBOX
19848## ------------------------------------ ##
19849## Report this to bug-autoconf@gnu.org. ##
19850## ------------------------------------ ##
19851_ASBOX
19852 ) |
19853 sed "s/^/$as_me: WARNING: /" >&2
19854 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019855 no:yes )
19856 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19857echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19858 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19859echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019861echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19862 (
19863 cat <<\_ASBOX
19864## ------------------------------------ ##
19865## Report this to bug-autoconf@gnu.org. ##
19866## ------------------------------------ ##
19867_ASBOX
19868 ) |
19869 sed "s/^/$as_me: WARNING: /" >&2
19870 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019871esac
19872echo "$as_me:$LINENO: checking for $ac_header" >&5
19873echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19874if eval "test \"\${$as_ac_Header+set}\" = set"; then
19875 echo $ECHO_N "(cached) $ECHO_C" >&6
19876else
19877 eval "$as_ac_Header=$ac_header_preproc"
19878fi
19879echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19880echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19881
19882fi
19883if test `eval echo '${'$as_ac_Header'}'` = yes; then
19884 cat >>confdefs.h <<_ACEOF
19885#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19886_ACEOF
19887
19888fi
19889
19890done
19891
19892
19893
John Criswell7a73b802003-06-30 21:59:07 +000019894echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19895echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19896if test "${ac_cv_c_const+set}" = set; then
19897 echo $ECHO_N "(cached) $ECHO_C" >&6
19898else
19899 cat >conftest.$ac_ext <<_ACEOF
19900#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019901/* confdefs.h. */
19902_ACEOF
19903cat confdefs.h >>conftest.$ac_ext
19904cat >>conftest.$ac_ext <<_ACEOF
19905/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019906
John Criswell7a73b802003-06-30 21:59:07 +000019907int
19908main ()
19909{
19910/* FIXME: Include the comments suggested by Paul. */
19911#ifndef __cplusplus
19912 /* Ultrix mips cc rejects this. */
19913 typedef int charset[2];
19914 const charset x;
19915 /* SunOS 4.1.1 cc rejects this. */
19916 char const *const *ccp;
19917 char **p;
19918 /* NEC SVR4.0.2 mips cc rejects this. */
19919 struct point {int x, y;};
19920 static struct point const zero = {0,0};
19921 /* AIX XL C 1.02.0.0 rejects this.
19922 It does not let you subtract one const X* pointer from another in
19923 an arm of an if-expression whose if-part is not a constant
19924 expression */
19925 const char *g = "string";
19926 ccp = &g + (g ? g-g : 0);
19927 /* HPUX 7.0 cc rejects these. */
19928 ++ccp;
19929 p = (char**) ccp;
19930 ccp = (char const *const *) p;
19931 { /* SCO 3.2v4 cc rejects this. */
19932 char *t;
19933 char const *s = 0 ? (char *) 0 : (char const *) 0;
19934
19935 *t++ = 0;
19936 }
19937 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19938 int x[] = {25, 17};
19939 const int *foo = &x[0];
19940 ++foo;
19941 }
19942 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19943 typedef const int *iptr;
19944 iptr p = 0;
19945 ++p;
19946 }
19947 { /* AIX XL C 1.02.0.0 rejects this saying
19948 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19949 struct s { int j; const int *ap[3]; };
19950 struct s *b; b->j = 5;
19951 }
19952 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19953 const int foo = 10;
19954 }
19955#endif
19956
19957 ;
19958 return 0;
19959}
19960_ACEOF
19961rm -f conftest.$ac_objext
19962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19963 (eval $ac_compile) 2>&5
19964 ac_status=$?
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); } &&
19967 { ac_try='test -s conftest.$ac_objext'
19968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19969 (eval $ac_try) 2>&5
19970 ac_status=$?
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); }; }; then
19973 ac_cv_c_const=yes
19974else
19975 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019976sed 's/^/| /' conftest.$ac_ext >&5
19977
John Criswell7a73b802003-06-30 21:59:07 +000019978ac_cv_c_const=no
19979fi
19980rm -f conftest.$ac_objext conftest.$ac_ext
19981fi
19982echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19983echo "${ECHO_T}$ac_cv_c_const" >&6
19984if test $ac_cv_c_const = no; then
19985
19986cat >>confdefs.h <<\_ACEOF
19987#define const
19988_ACEOF
19989
19990fi
19991
19992echo "$as_me:$LINENO: checking for inline" >&5
19993echo $ECHO_N "checking for inline... $ECHO_C" >&6
19994if test "${ac_cv_c_inline+set}" = set; then
19995 echo $ECHO_N "(cached) $ECHO_C" >&6
19996else
19997 ac_cv_c_inline=no
19998for ac_kw in inline __inline__ __inline; do
19999 cat >conftest.$ac_ext <<_ACEOF
20000#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020001/* confdefs.h. */
20002_ACEOF
20003cat confdefs.h >>conftest.$ac_ext
20004cat >>conftest.$ac_ext <<_ACEOF
20005/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020006#ifndef __cplusplus
John Criswell0c38eaf2003-09-10 15:17:25 +000020007typedef int foo_t;
20008static $ac_kw foo_t static_foo () {return 0; }
20009$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000020010#endif
20011
20012_ACEOF
20013rm -f conftest.$ac_objext
20014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20015 (eval $ac_compile) 2>&5
20016 ac_status=$?
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); } &&
20019 { ac_try='test -s conftest.$ac_objext'
20020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20021 (eval $ac_try) 2>&5
20022 ac_status=$?
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); }; }; then
20025 ac_cv_c_inline=$ac_kw; break
20026else
20027 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020028sed 's/^/| /' conftest.$ac_ext >&5
20029
John Criswell7a73b802003-06-30 21:59:07 +000020030fi
20031rm -f conftest.$ac_objext conftest.$ac_ext
20032done
20033
20034fi
20035echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20036echo "${ECHO_T}$ac_cv_c_inline" >&6
20037case $ac_cv_c_inline in
20038 inline | yes) ;;
20039 no)
20040cat >>confdefs.h <<\_ACEOF
20041#define inline
20042_ACEOF
20043 ;;
20044 *) cat >>confdefs.h <<_ACEOF
20045#define inline $ac_cv_c_inline
20046_ACEOF
20047 ;;
20048esac
20049
20050
20051echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20052echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20053if test "${ac_cv_c_bigendian+set}" = set; then
20054 echo $ECHO_N "(cached) $ECHO_C" >&6
20055else
20056 # See if sys/param.h defines the BYTE_ORDER macro.
20057cat >conftest.$ac_ext <<_ACEOF
20058#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020059/* confdefs.h. */
20060_ACEOF
20061cat confdefs.h >>conftest.$ac_ext
20062cat >>conftest.$ac_ext <<_ACEOF
20063/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020064#include <sys/types.h>
20065#include <sys/param.h>
20066
John Criswell7a73b802003-06-30 21:59:07 +000020067int
20068main ()
20069{
20070#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20071 bogus endian macros
20072#endif
20073
20074 ;
20075 return 0;
20076}
20077_ACEOF
20078rm -f conftest.$ac_objext
20079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20080 (eval $ac_compile) 2>&5
20081 ac_status=$?
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); } &&
20084 { ac_try='test -s conftest.$ac_objext'
20085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20086 (eval $ac_try) 2>&5
20087 ac_status=$?
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); }; }; then
20090 # It does; now see whether it defined to BIG_ENDIAN or not.
20091cat >conftest.$ac_ext <<_ACEOF
20092#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020093/* confdefs.h. */
20094_ACEOF
20095cat confdefs.h >>conftest.$ac_ext
20096cat >>conftest.$ac_ext <<_ACEOF
20097/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020098#include <sys/types.h>
20099#include <sys/param.h>
20100
John Criswell7a73b802003-06-30 21:59:07 +000020101int
20102main ()
20103{
20104#if BYTE_ORDER != BIG_ENDIAN
20105 not big endian
20106#endif
20107
20108 ;
20109 return 0;
20110}
20111_ACEOF
20112rm -f conftest.$ac_objext
20113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20114 (eval $ac_compile) 2>&5
20115 ac_status=$?
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); } &&
20118 { ac_try='test -s conftest.$ac_objext'
20119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20120 (eval $ac_try) 2>&5
20121 ac_status=$?
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); }; }; then
20124 ac_cv_c_bigendian=yes
20125else
20126 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020127sed 's/^/| /' conftest.$ac_ext >&5
20128
John Criswell7a73b802003-06-30 21:59:07 +000020129ac_cv_c_bigendian=no
20130fi
20131rm -f conftest.$ac_objext conftest.$ac_ext
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 +000020136# It does not; compile a test program.
20137if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020138 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000020139 ac_cv_c_bigendian=unknown
20140 cat >conftest.$ac_ext <<_ACEOF
20141#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020142/* confdefs.h. */
20143_ACEOF
20144cat confdefs.h >>conftest.$ac_ext
20145cat >>conftest.$ac_ext <<_ACEOF
20146/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020147short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20148short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20149void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20150short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20151short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20152void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000020153int
20154main ()
20155{
20156 _ascii (); _ebcdic ();
20157 ;
20158 return 0;
20159}
20160_ACEOF
20161rm -f conftest.$ac_objext
20162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20163 (eval $ac_compile) 2>&5
20164 ac_status=$?
20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 (exit $ac_status); } &&
20167 { ac_try='test -s conftest.$ac_objext'
20168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20169 (eval $ac_try) 2>&5
20170 ac_status=$?
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); }; }; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020173 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020174 ac_cv_c_bigendian=yes
20175fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020176if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020177 if test "$ac_cv_c_bigendian" = unknown; then
20178 ac_cv_c_bigendian=no
20179 else
20180 # finding both strings is unlikely to happen, but who knows?
20181 ac_cv_c_bigendian=unknown
20182 fi
20183fi
20184else
20185 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020186sed 's/^/| /' conftest.$ac_ext >&5
20187
John Criswell7a73b802003-06-30 21:59:07 +000020188fi
20189rm -f conftest.$ac_objext conftest.$ac_ext
20190else
20191 cat >conftest.$ac_ext <<_ACEOF
20192#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020193/* confdefs.h. */
20194_ACEOF
20195cat confdefs.h >>conftest.$ac_ext
20196cat >>conftest.$ac_ext <<_ACEOF
20197/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020198int
20199main ()
20200{
20201 /* Are we little or big endian? From Harbison&Steele. */
20202 union
20203 {
20204 long l;
20205 char c[sizeof (long)];
20206 } u;
20207 u.l = 1;
20208 exit (u.c[sizeof (long) - 1] == 1);
20209}
20210_ACEOF
20211rm -f conftest$ac_exeext
20212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20213 (eval $ac_link) 2>&5
20214 ac_status=$?
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20218 (eval $ac_try) 2>&5
20219 ac_status=$?
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); }; }; then
20222 ac_cv_c_bigendian=no
20223else
20224 echo "$as_me: program exited with status $ac_status" >&5
20225echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020226sed 's/^/| /' conftest.$ac_ext >&5
20227
John Criswell7a73b802003-06-30 21:59:07 +000020228( exit $ac_status )
20229ac_cv_c_bigendian=yes
20230fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020231rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020232fi
20233fi
20234rm -f conftest.$ac_objext conftest.$ac_ext
20235fi
20236echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20237echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20238case $ac_cv_c_bigendian in
20239 yes)
20240 cat >>confdefs.h <<\_ACEOF
20241#define ENDIAN_BIG 1
20242_ACEOF
20243 ;;
20244 no)
20245 cat >>confdefs.h <<\_ACEOF
20246#define ENDIAN_LITTLE 1
20247_ACEOF
20248 ;;
20249 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020250 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020251presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020252echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020253presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20254 { (exit 1); exit 1; }; } ;;
20255esac
20256
20257
20258echo "$as_me:$LINENO: checking for pid_t" >&5
20259echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20260if test "${ac_cv_type_pid_t+set}" = set; then
20261 echo $ECHO_N "(cached) $ECHO_C" >&6
20262else
20263 cat >conftest.$ac_ext <<_ACEOF
20264#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020265/* confdefs.h. */
20266_ACEOF
20267cat confdefs.h >>conftest.$ac_ext
20268cat >>conftest.$ac_ext <<_ACEOF
20269/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020270$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020271int
20272main ()
20273{
20274if ((pid_t *) 0)
20275 return 0;
20276if (sizeof (pid_t))
20277 return 0;
20278 ;
20279 return 0;
20280}
20281_ACEOF
20282rm -f conftest.$ac_objext
20283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20284 (eval $ac_compile) 2>&5
20285 ac_status=$?
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); } &&
20288 { ac_try='test -s conftest.$ac_objext'
20289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20290 (eval $ac_try) 2>&5
20291 ac_status=$?
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); }; }; then
20294 ac_cv_type_pid_t=yes
20295else
20296 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020297sed 's/^/| /' conftest.$ac_ext >&5
20298
John Criswell7a73b802003-06-30 21:59:07 +000020299ac_cv_type_pid_t=no
20300fi
20301rm -f conftest.$ac_objext conftest.$ac_ext
20302fi
20303echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20304echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20305if test $ac_cv_type_pid_t = yes; then
20306 :
20307else
20308
20309cat >>confdefs.h <<_ACEOF
20310#define pid_t int
20311_ACEOF
20312
20313fi
20314
20315echo "$as_me:$LINENO: checking for size_t" >&5
20316echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20317if test "${ac_cv_type_size_t+set}" = set; then
20318 echo $ECHO_N "(cached) $ECHO_C" >&6
20319else
20320 cat >conftest.$ac_ext <<_ACEOF
20321#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020322/* confdefs.h. */
20323_ACEOF
20324cat confdefs.h >>conftest.$ac_ext
20325cat >>conftest.$ac_ext <<_ACEOF
20326/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020327$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020328int
20329main ()
20330{
20331if ((size_t *) 0)
20332 return 0;
20333if (sizeof (size_t))
20334 return 0;
20335 ;
20336 return 0;
20337}
20338_ACEOF
20339rm -f conftest.$ac_objext
20340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20341 (eval $ac_compile) 2>&5
20342 ac_status=$?
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); } &&
20345 { ac_try='test -s conftest.$ac_objext'
20346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20347 (eval $ac_try) 2>&5
20348 ac_status=$?
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); }; }; then
20351 ac_cv_type_size_t=yes
20352else
20353 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020354sed 's/^/| /' conftest.$ac_ext >&5
20355
John Criswell7a73b802003-06-30 21:59:07 +000020356ac_cv_type_size_t=no
20357fi
20358rm -f conftest.$ac_objext conftest.$ac_ext
20359fi
20360echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20361echo "${ECHO_T}$ac_cv_type_size_t" >&6
20362if test $ac_cv_type_size_t = yes; then
20363 :
20364else
20365
20366cat >>confdefs.h <<_ACEOF
20367#define size_t unsigned
20368_ACEOF
20369
20370fi
20371
20372echo "$as_me:$LINENO: checking for int64_t" >&5
20373echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20374if test "${ac_cv_type_int64_t+set}" = set; then
20375 echo $ECHO_N "(cached) $ECHO_C" >&6
20376else
20377 cat >conftest.$ac_ext <<_ACEOF
20378#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020379/* confdefs.h. */
20380_ACEOF
20381cat confdefs.h >>conftest.$ac_ext
20382cat >>conftest.$ac_ext <<_ACEOF
20383/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020384$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020385int
20386main ()
20387{
20388if ((int64_t *) 0)
20389 return 0;
20390if (sizeof (int64_t))
20391 return 0;
20392 ;
20393 return 0;
20394}
20395_ACEOF
20396rm -f conftest.$ac_objext
20397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20398 (eval $ac_compile) 2>&5
20399 ac_status=$?
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); } &&
20402 { ac_try='test -s conftest.$ac_objext'
20403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20404 (eval $ac_try) 2>&5
20405 ac_status=$?
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); }; }; then
20408 ac_cv_type_int64_t=yes
20409else
20410 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020411sed 's/^/| /' conftest.$ac_ext >&5
20412
John Criswell7a73b802003-06-30 21:59:07 +000020413ac_cv_type_int64_t=no
20414fi
20415rm -f conftest.$ac_objext conftest.$ac_ext
20416fi
20417echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20418echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20419if test $ac_cv_type_int64_t = yes; then
20420
20421cat >>confdefs.h <<_ACEOF
20422#define HAVE_INT64_T 1
20423_ACEOF
20424
20425
20426else
20427 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20428echo "$as_me: error: Type int64_t required but not found" >&2;}
20429 { (exit 1); exit 1; }; }
20430fi
20431
20432echo "$as_me:$LINENO: checking for uint64_t" >&5
20433echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20434if test "${ac_cv_type_uint64_t+set}" = set; then
20435 echo $ECHO_N "(cached) $ECHO_C" >&6
20436else
20437 cat >conftest.$ac_ext <<_ACEOF
20438#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020439/* confdefs.h. */
20440_ACEOF
20441cat confdefs.h >>conftest.$ac_ext
20442cat >>conftest.$ac_ext <<_ACEOF
20443/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020444$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020445int
20446main ()
20447{
20448if ((uint64_t *) 0)
20449 return 0;
20450if (sizeof (uint64_t))
20451 return 0;
20452 ;
20453 return 0;
20454}
20455_ACEOF
20456rm -f conftest.$ac_objext
20457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20458 (eval $ac_compile) 2>&5
20459 ac_status=$?
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); } &&
20462 { ac_try='test -s conftest.$ac_objext'
20463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20464 (eval $ac_try) 2>&5
20465 ac_status=$?
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); }; }; then
20468 ac_cv_type_uint64_t=yes
20469else
20470 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020471sed 's/^/| /' conftest.$ac_ext >&5
20472
John Criswell7a73b802003-06-30 21:59:07 +000020473ac_cv_type_uint64_t=no
20474fi
20475rm -f conftest.$ac_objext conftest.$ac_ext
20476fi
20477echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20478echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20479if test $ac_cv_type_uint64_t = yes; then
20480
20481cat >>confdefs.h <<_ACEOF
20482#define HAVE_UINT64_T 1
20483_ACEOF
20484
20485
20486else
20487 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20488echo "$as_me: error: Type uint64_t required but not found" >&2;}
20489 { (exit 1); exit 1; }; }
20490fi
20491
20492echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20493echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20494if test "${ac_cv_header_time+set}" = set; then
20495 echo $ECHO_N "(cached) $ECHO_C" >&6
20496else
20497 cat >conftest.$ac_ext <<_ACEOF
20498#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020499/* confdefs.h. */
20500_ACEOF
20501cat confdefs.h >>conftest.$ac_ext
20502cat >>conftest.$ac_ext <<_ACEOF
20503/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020504#include <sys/types.h>
20505#include <sys/time.h>
20506#include <time.h>
20507
John Criswell7a73b802003-06-30 21:59:07 +000020508int
20509main ()
20510{
20511if ((struct tm *) 0)
20512return 0;
20513 ;
20514 return 0;
20515}
20516_ACEOF
20517rm -f conftest.$ac_objext
20518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20519 (eval $ac_compile) 2>&5
20520 ac_status=$?
20521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522 (exit $ac_status); } &&
20523 { ac_try='test -s conftest.$ac_objext'
20524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20525 (eval $ac_try) 2>&5
20526 ac_status=$?
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); }; }; then
20529 ac_cv_header_time=yes
20530else
20531 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020532sed 's/^/| /' conftest.$ac_ext >&5
20533
John Criswell7a73b802003-06-30 21:59:07 +000020534ac_cv_header_time=no
20535fi
20536rm -f conftest.$ac_objext conftest.$ac_ext
20537fi
20538echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20539echo "${ECHO_T}$ac_cv_header_time" >&6
20540if test $ac_cv_header_time = yes; then
20541
20542cat >>confdefs.h <<\_ACEOF
20543#define TIME_WITH_SYS_TIME 1
20544_ACEOF
20545
20546fi
20547
20548echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20549echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20550if test "${ac_cv_struct_tm+set}" = set; then
20551 echo $ECHO_N "(cached) $ECHO_C" >&6
20552else
20553 cat >conftest.$ac_ext <<_ACEOF
20554#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020555/* confdefs.h. */
20556_ACEOF
20557cat confdefs.h >>conftest.$ac_ext
20558cat >>conftest.$ac_ext <<_ACEOF
20559/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020560#include <sys/types.h>
20561#include <time.h>
20562
John Criswell7a73b802003-06-30 21:59:07 +000020563int
20564main ()
20565{
20566struct tm *tp; tp->tm_sec;
20567 ;
20568 return 0;
20569}
20570_ACEOF
20571rm -f conftest.$ac_objext
20572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20573 (eval $ac_compile) 2>&5
20574 ac_status=$?
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); } &&
20577 { ac_try='test -s conftest.$ac_objext'
20578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20579 (eval $ac_try) 2>&5
20580 ac_status=$?
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); }; }; then
20583 ac_cv_struct_tm=time.h
20584else
20585 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020586sed 's/^/| /' conftest.$ac_ext >&5
20587
John Criswell7a73b802003-06-30 21:59:07 +000020588ac_cv_struct_tm=sys/time.h
20589fi
20590rm -f conftest.$ac_objext conftest.$ac_ext
20591fi
20592echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20593echo "${ECHO_T}$ac_cv_struct_tm" >&6
20594if test $ac_cv_struct_tm = sys/time.h; then
20595
20596cat >>confdefs.h <<\_ACEOF
20597#define TM_IN_SYS_TIME 1
20598_ACEOF
20599
20600fi
20601
20602
John Criswell7a73b802003-06-30 21:59:07 +000020603echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20604echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20605if test "${ac_cv_cxx_namespaces+set}" = set; then
20606 echo $ECHO_N "(cached) $ECHO_C" >&6
20607else
20608
20609
20610 ac_ext=cc
20611ac_cpp='$CXXCPP $CPPFLAGS'
20612ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20613ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20614ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20615
20616 cat >conftest.$ac_ext <<_ACEOF
20617#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020618/* confdefs.h. */
20619_ACEOF
20620cat confdefs.h >>conftest.$ac_ext
20621cat >>conftest.$ac_ext <<_ACEOF
20622/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020623namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020624int
20625main ()
20626{
20627using namespace Outer::Inner; return i;
20628 ;
20629 return 0;
20630}
20631_ACEOF
20632rm -f conftest.$ac_objext
20633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20634 (eval $ac_compile) 2>&5
20635 ac_status=$?
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); } &&
20638 { ac_try='test -s conftest.$ac_objext'
20639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20640 (eval $ac_try) 2>&5
20641 ac_status=$?
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); }; }; then
20644 ac_cv_cxx_namespaces=yes
20645else
20646 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020647sed 's/^/| /' conftest.$ac_ext >&5
20648
John Criswell7a73b802003-06-30 21:59:07 +000020649ac_cv_cxx_namespaces=no
20650fi
20651rm -f conftest.$ac_objext conftest.$ac_ext
20652 ac_ext=c
20653ac_cpp='$CPP $CPPFLAGS'
20654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20656ac_compiler_gnu=$ac_cv_c_compiler_gnu
20657
20658
20659fi
20660echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20661echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20662if test "$ac_cv_cxx_namespaces" = yes; then
20663
20664cat >>confdefs.h <<\_ACEOF
20665#define HAVE_NAMESPACES
20666_ACEOF
20667
20668fi
20669
20670echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20671echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20672if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20673 echo $ECHO_N "(cached) $ECHO_C" >&6
20674else
20675
20676
20677
20678 ac_ext=cc
20679ac_cpp='$CXXCPP $CPPFLAGS'
20680ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20681ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20682ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20683
20684 cat >conftest.$ac_ext <<_ACEOF
20685#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020686/* confdefs.h. */
20687_ACEOF
20688cat confdefs.h >>conftest.$ac_ext
20689cat >>conftest.$ac_ext <<_ACEOF
20690/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020691#include <ext/hash_map>
20692#ifdef HAVE_NAMESPACES
20693using namespace std;
20694#endif
John Criswell7a73b802003-06-30 21:59:07 +000020695int
20696main ()
20697{
20698hash_map<int, int> t; return 0;
20699 ;
20700 return 0;
20701}
20702_ACEOF
20703rm -f conftest.$ac_objext
20704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20705 (eval $ac_compile) 2>&5
20706 ac_status=$?
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); } &&
20709 { ac_try='test -s conftest.$ac_objext'
20710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20711 (eval $ac_try) 2>&5
20712 ac_status=$?
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); }; }; then
20715 ac_cv_cxx_have_ext_hash_map=std
20716else
20717 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020718sed 's/^/| /' conftest.$ac_ext >&5
20719
John Criswell7a73b802003-06-30 21:59:07 +000020720ac_cv_cxx_have_ext_hash_map=no
20721fi
20722rm -f conftest.$ac_objext conftest.$ac_ext
20723 cat >conftest.$ac_ext <<_ACEOF
20724#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020725/* confdefs.h. */
20726_ACEOF
20727cat confdefs.h >>conftest.$ac_ext
20728cat >>conftest.$ac_ext <<_ACEOF
20729/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020730#include <ext/hash_map>
20731#ifdef HAVE_NAMESPACES
20732using namespace __gnu_cxx;
20733#endif
John Criswell7a73b802003-06-30 21:59:07 +000020734int
20735main ()
20736{
20737hash_map<int, int> t; return 0;
20738 ;
20739 return 0;
20740}
20741_ACEOF
20742rm -f conftest.$ac_objext
20743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20744 (eval $ac_compile) 2>&5
20745 ac_status=$?
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); } &&
20748 { ac_try='test -s conftest.$ac_objext'
20749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750 (eval $ac_try) 2>&5
20751 ac_status=$?
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); }; }; then
20754 ac_cv_cxx_have_ext_hash_map=gnu
20755else
20756 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020757sed 's/^/| /' conftest.$ac_ext >&5
20758
John Criswell7a73b802003-06-30 21:59:07 +000020759ac_cv_cxx_have_ext_hash_map=no
20760fi
20761rm -f conftest.$ac_objext conftest.$ac_ext
20762 ac_ext=c
20763ac_cpp='$CPP $CPPFLAGS'
20764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20766ac_compiler_gnu=$ac_cv_c_compiler_gnu
20767
20768
20769fi
20770echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20771echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20772if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20773
20774cat >>confdefs.h <<\_ACEOF
20775#define HAVE_STD_EXT_HASH_MAP
20776_ACEOF
20777
20778fi
20779if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20780
20781cat >>confdefs.h <<\_ACEOF
20782#define HAVE_GNU_EXT_HASH_MAP
20783_ACEOF
20784
20785fi
20786
20787echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20788echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20789if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20790 echo $ECHO_N "(cached) $ECHO_C" >&6
20791else
20792
20793
20794
20795 ac_ext=cc
20796ac_cpp='$CXXCPP $CPPFLAGS'
20797ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20798ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20799ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20800
20801 cat >conftest.$ac_ext <<_ACEOF
20802#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020803/* confdefs.h. */
20804_ACEOF
20805cat confdefs.h >>conftest.$ac_ext
20806cat >>conftest.$ac_ext <<_ACEOF
20807/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020808#include <ext/hash_set>
20809#ifdef HAVE_NAMESPACES
20810using namespace std;
20811#endif
John Criswell7a73b802003-06-30 21:59:07 +000020812int
20813main ()
20814{
20815hash_set<int> t; return 0;
20816 ;
20817 return 0;
20818}
20819_ACEOF
20820rm -f conftest.$ac_objext
20821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20822 (eval $ac_compile) 2>&5
20823 ac_status=$?
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); } &&
20826 { ac_try='test -s conftest.$ac_objext'
20827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20828 (eval $ac_try) 2>&5
20829 ac_status=$?
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); }; }; then
20832 ac_cv_cxx_have_ext_hash_set=std
20833else
20834 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020835sed 's/^/| /' conftest.$ac_ext >&5
20836
John Criswell7a73b802003-06-30 21:59:07 +000020837ac_cv_cxx_have_ext_hash_set=no
20838fi
20839rm -f conftest.$ac_objext conftest.$ac_ext
20840 cat >conftest.$ac_ext <<_ACEOF
20841#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020842/* confdefs.h. */
20843_ACEOF
20844cat confdefs.h >>conftest.$ac_ext
20845cat >>conftest.$ac_ext <<_ACEOF
20846/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020847#include <ext/hash_set>
20848#ifdef HAVE_NAMESPACES
20849using namespace __gnu_cxx;
20850#endif
John Criswell7a73b802003-06-30 21:59:07 +000020851int
20852main ()
20853{
20854hash_set<int> t; return 0;
20855 ;
20856 return 0;
20857}
20858_ACEOF
20859rm -f conftest.$ac_objext
20860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20861 (eval $ac_compile) 2>&5
20862 ac_status=$?
20863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864 (exit $ac_status); } &&
20865 { ac_try='test -s conftest.$ac_objext'
20866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20867 (eval $ac_try) 2>&5
20868 ac_status=$?
20869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870 (exit $ac_status); }; }; then
20871 ac_cv_cxx_have_ext_hash_set=gnu
20872else
20873 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020874sed 's/^/| /' conftest.$ac_ext >&5
20875
John Criswell7a73b802003-06-30 21:59:07 +000020876ac_cv_cxx_have_ext_hash_set=no
20877fi
20878rm -f conftest.$ac_objext conftest.$ac_ext
20879 ac_ext=c
20880ac_cpp='$CPP $CPPFLAGS'
20881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20883ac_compiler_gnu=$ac_cv_c_compiler_gnu
20884
20885
20886fi
20887echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20888echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20889if test "$ac_cv_cxx_have_ext_hash_set" = std; then
20890
20891cat >>confdefs.h <<\_ACEOF
20892#define HAVE_STD_EXT_HASH_SET
20893_ACEOF
20894
20895fi
20896if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
20897
20898cat >>confdefs.h <<\_ACEOF
20899#define HAVE_GNU_EXT_HASH_SET
20900_ACEOF
20901
20902fi
20903
20904echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20905echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20906if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20907 echo $ECHO_N "(cached) $ECHO_C" >&6
20908else
20909
20910
20911
20912 ac_ext=cc
20913ac_cpp='$CXXCPP $CPPFLAGS'
20914ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20915ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20916ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20917
20918 cat >conftest.$ac_ext <<_ACEOF
20919#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020920/* confdefs.h. */
20921_ACEOF
20922cat confdefs.h >>conftest.$ac_ext
20923cat >>conftest.$ac_ext <<_ACEOF
20924/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020925#include <ext/slist>
20926#ifdef HAVE_NAMESPACES
20927using namespace std;
20928#endif
John Criswell7a73b802003-06-30 21:59:07 +000020929int
20930main ()
20931{
20932slist<int> s; return 0;
20933 ;
20934 return 0;
20935}
20936_ACEOF
20937rm -f conftest.$ac_objext
20938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20939 (eval $ac_compile) 2>&5
20940 ac_status=$?
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); } &&
20943 { ac_try='test -s conftest.$ac_objext'
20944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20945 (eval $ac_try) 2>&5
20946 ac_status=$?
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); }; }; then
20949 ac_cv_cxx_have_ext_slist=std
20950else
20951 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020952sed 's/^/| /' conftest.$ac_ext >&5
20953
John Criswell7a73b802003-06-30 21:59:07 +000020954ac_cv_cxx_have_ext_slist=no
20955fi
20956rm -f conftest.$ac_objext conftest.$ac_ext
20957 cat >conftest.$ac_ext <<_ACEOF
20958#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020959/* confdefs.h. */
20960_ACEOF
20961cat confdefs.h >>conftest.$ac_ext
20962cat >>conftest.$ac_ext <<_ACEOF
20963/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020964#include <ext/slist>
20965#ifdef HAVE_NAMESPACES
20966using namespace __gnu_cxx;
20967#endif
John Criswell7a73b802003-06-30 21:59:07 +000020968int
20969main ()
20970{
20971slist<int> s; return 0;
20972 ;
20973 return 0;
20974}
20975_ACEOF
20976rm -f conftest.$ac_objext
20977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20978 (eval $ac_compile) 2>&5
20979 ac_status=$?
20980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); } &&
20982 { ac_try='test -s conftest.$ac_objext'
20983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20984 (eval $ac_try) 2>&5
20985 ac_status=$?
20986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987 (exit $ac_status); }; }; then
20988 ac_cv_cxx_have_ext_slist=gnu
20989else
20990 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020991sed 's/^/| /' conftest.$ac_ext >&5
20992
John Criswell7a73b802003-06-30 21:59:07 +000020993ac_cv_cxx_have_ext_slist=no
20994fi
20995rm -f conftest.$ac_objext conftest.$ac_ext
20996
20997 ac_ext=c
20998ac_cpp='$CPP $CPPFLAGS'
20999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21001ac_compiler_gnu=$ac_cv_c_compiler_gnu
21002
21003
21004fi
21005echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21006echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21007if test "$ac_cv_cxx_have_ext_slist" = std; then
21008
21009cat >>confdefs.h <<\_ACEOF
21010#define HAVE_EXT_SLIST std
21011_ACEOF
21012
21013fi
21014if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21015
21016cat >>confdefs.h <<\_ACEOF
21017#define HAVE_EXT_SLIST gnu
21018_ACEOF
21019
21020fi
21021
21022echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21023echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21024if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21025 echo $ECHO_N "(cached) $ECHO_C" >&6
21026else
21027
21028
21029
21030 ac_ext=cc
21031ac_cpp='$CXXCPP $CPPFLAGS'
21032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21035
21036 cat >conftest.$ac_ext <<_ACEOF
21037#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021038/* confdefs.h. */
21039_ACEOF
21040cat confdefs.h >>conftest.$ac_ext
21041cat >>conftest.$ac_ext <<_ACEOF
21042/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021043#include <iterator>
21044#ifdef HAVE_NAMESPACES
21045using namespace std;
21046#endif
John Criswell7a73b802003-06-30 21:59:07 +000021047int
21048main ()
21049{
21050iterator<int,int,int> t; return 0;
21051 ;
21052 return 0;
21053}
21054_ACEOF
21055rm -f conftest.$ac_objext
21056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21057 (eval $ac_compile) 2>&5
21058 ac_status=$?
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); } &&
21061 { ac_try='test -s conftest.$ac_objext'
21062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21063 (eval $ac_try) 2>&5
21064 ac_status=$?
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); }; }; then
21067 ac_cv_cxx_have_std_iterator=yes
21068else
21069 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021070sed 's/^/| /' conftest.$ac_ext >&5
21071
John Criswell7a73b802003-06-30 21:59:07 +000021072ac_cv_cxx_have_std_iterator=no
21073fi
21074rm -f conftest.$ac_objext conftest.$ac_ext
21075 ac_ext=c
21076ac_cpp='$CPP $CPPFLAGS'
21077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21079ac_compiler_gnu=$ac_cv_c_compiler_gnu
21080
21081
21082fi
21083echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21084echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21085if test "$ac_cv_cxx_have_std_iterator" = yes; then
21086
21087cat >>confdefs.h <<\_ACEOF
21088#define HAVE_STD_ITERATOR
21089_ACEOF
21090
21091fi
21092
21093echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21094echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21095if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21096 echo $ECHO_N "(cached) $ECHO_C" >&6
21097else
21098
21099
21100
21101 ac_ext=cc
21102ac_cpp='$CXXCPP $CPPFLAGS'
21103ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21104ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21105ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21106
21107 cat >conftest.$ac_ext <<_ACEOF
21108#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021109/* confdefs.h. */
21110_ACEOF
21111cat confdefs.h >>conftest.$ac_ext
21112cat >>conftest.$ac_ext <<_ACEOF
21113/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021114#include <iterator>
21115#ifdef HAVE_NAMESPACES
21116using namespace std;
21117#endif
John Criswell7a73b802003-06-30 21:59:07 +000021118int
21119main ()
21120{
John Criswellc78022e2003-07-29 19:11:58 +000021121bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021122 ;
21123 return 0;
21124}
21125_ACEOF
21126rm -f conftest.$ac_objext
21127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21128 (eval $ac_compile) 2>&5
21129 ac_status=$?
21130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); } &&
21132 { ac_try='test -s conftest.$ac_objext'
21133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21134 (eval $ac_try) 2>&5
21135 ac_status=$?
21136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); }; }; then
21138 ac_cv_cxx_have_bi_iterator=yes
21139else
21140 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021141sed 's/^/| /' conftest.$ac_ext >&5
21142
John Criswell7a73b802003-06-30 21:59:07 +000021143ac_cv_cxx_have_bi_iterator=no
21144fi
21145rm -f conftest.$ac_objext conftest.$ac_ext
21146 ac_ext=c
21147ac_cpp='$CPP $CPPFLAGS'
21148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21150ac_compiler_gnu=$ac_cv_c_compiler_gnu
21151
21152
21153fi
21154echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21155echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21156if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21157
21158cat >>confdefs.h <<\_ACEOF
21159#define HAVE_BI_ITERATOR
21160_ACEOF
21161
21162fi
21163
21164echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21165echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21166if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21167 echo $ECHO_N "(cached) $ECHO_C" >&6
21168else
21169
21170
21171
21172 ac_ext=cc
21173ac_cpp='$CXXCPP $CPPFLAGS'
21174ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21175ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21176ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21177
21178 cat >conftest.$ac_ext <<_ACEOF
21179#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021180/* confdefs.h. */
21181_ACEOF
21182cat confdefs.h >>conftest.$ac_ext
21183cat >>conftest.$ac_ext <<_ACEOF
21184/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021185#include <iterator>
21186#ifdef HAVE_NAMESPACES
21187using namespace std;
21188#endif
John Criswell7a73b802003-06-30 21:59:07 +000021189int
21190main ()
21191{
John Criswellc78022e2003-07-29 19:11:58 +000021192forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021193 ;
21194 return 0;
21195}
21196_ACEOF
21197rm -f conftest.$ac_objext
21198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21199 (eval $ac_compile) 2>&5
21200 ac_status=$?
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); } &&
21203 { ac_try='test -s conftest.$ac_objext'
21204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21205 (eval $ac_try) 2>&5
21206 ac_status=$?
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); }; }; then
21209 ac_cv_cxx_have_fwd_iterator=yes
21210else
21211 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021212sed 's/^/| /' conftest.$ac_ext >&5
21213
John Criswell7a73b802003-06-30 21:59:07 +000021214ac_cv_cxx_have_fwd_iterator=no
21215fi
21216rm -f conftest.$ac_objext conftest.$ac_ext
21217 ac_ext=c
21218ac_cpp='$CPP $CPPFLAGS'
21219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21221ac_compiler_gnu=$ac_cv_c_compiler_gnu
21222
21223
21224fi
21225echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21226echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21227if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21228
21229cat >>confdefs.h <<\_ACEOF
21230#define HAVE_FWD_ITERATOR
21231_ACEOF
21232
21233fi
21234
21235
21236# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21237# for constant arguments. Useless!
21238echo "$as_me:$LINENO: checking for working alloca.h" >&5
21239echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21240if test "${ac_cv_working_alloca_h+set}" = set; then
21241 echo $ECHO_N "(cached) $ECHO_C" >&6
21242else
21243 cat >conftest.$ac_ext <<_ACEOF
21244#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021245/* confdefs.h. */
21246_ACEOF
21247cat confdefs.h >>conftest.$ac_ext
21248cat >>conftest.$ac_ext <<_ACEOF
21249/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021250#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021251int
21252main ()
21253{
21254char *p = (char *) alloca (2 * sizeof (int));
21255 ;
21256 return 0;
21257}
21258_ACEOF
21259rm -f conftest.$ac_objext conftest$ac_exeext
21260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21261 (eval $ac_link) 2>&5
21262 ac_status=$?
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); } &&
21265 { ac_try='test -s conftest$ac_exeext'
21266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267 (eval $ac_try) 2>&5
21268 ac_status=$?
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); }; }; then
21271 ac_cv_working_alloca_h=yes
21272else
21273 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021274sed 's/^/| /' conftest.$ac_ext >&5
21275
John Criswell7a73b802003-06-30 21:59:07 +000021276ac_cv_working_alloca_h=no
21277fi
21278rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21279fi
21280echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21281echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21282if test $ac_cv_working_alloca_h = yes; then
21283
21284cat >>confdefs.h <<\_ACEOF
21285#define HAVE_ALLOCA_H 1
21286_ACEOF
21287
21288fi
21289
21290echo "$as_me:$LINENO: checking for alloca" >&5
21291echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21292if test "${ac_cv_func_alloca_works+set}" = set; then
21293 echo $ECHO_N "(cached) $ECHO_C" >&6
21294else
21295 cat >conftest.$ac_ext <<_ACEOF
21296#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021297/* confdefs.h. */
21298_ACEOF
21299cat confdefs.h >>conftest.$ac_ext
21300cat >>conftest.$ac_ext <<_ACEOF
21301/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021302#ifdef __GNUC__
21303# define alloca __builtin_alloca
21304#else
21305# ifdef _MSC_VER
21306# include <malloc.h>
21307# define alloca _alloca
21308# else
21309# if HAVE_ALLOCA_H
21310# include <alloca.h>
21311# else
21312# ifdef _AIX
21313 #pragma alloca
21314# else
21315# ifndef alloca /* predefined by HP cc +Olibcalls */
21316char *alloca ();
21317# endif
21318# endif
21319# endif
21320# endif
21321#endif
21322
John Criswell7a73b802003-06-30 21:59:07 +000021323int
21324main ()
21325{
21326char *p = (char *) alloca (1);
21327 ;
21328 return 0;
21329}
21330_ACEOF
21331rm -f conftest.$ac_objext conftest$ac_exeext
21332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21333 (eval $ac_link) 2>&5
21334 ac_status=$?
21335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336 (exit $ac_status); } &&
21337 { ac_try='test -s conftest$ac_exeext'
21338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21339 (eval $ac_try) 2>&5
21340 ac_status=$?
21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); }; }; then
21343 ac_cv_func_alloca_works=yes
21344else
21345 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021346sed 's/^/| /' conftest.$ac_ext >&5
21347
John Criswell7a73b802003-06-30 21:59:07 +000021348ac_cv_func_alloca_works=no
21349fi
21350rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21351fi
21352echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21353echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21354
21355if test $ac_cv_func_alloca_works = yes; then
21356
21357cat >>confdefs.h <<\_ACEOF
21358#define HAVE_ALLOCA 1
21359_ACEOF
21360
21361else
21362 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21363# that cause trouble. Some versions do not even contain alloca or
21364# contain a buggy version. If you still want to use their alloca,
21365# use ar to extract alloca.o from them instead of compiling alloca.c.
21366
21367ALLOCA=alloca.$ac_objext
21368
21369cat >>confdefs.h <<\_ACEOF
21370#define C_ALLOCA 1
21371_ACEOF
21372
21373
21374echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21375echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21376if test "${ac_cv_os_cray+set}" = set; then
21377 echo $ECHO_N "(cached) $ECHO_C" >&6
21378else
21379 cat >conftest.$ac_ext <<_ACEOF
21380#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021381/* confdefs.h. */
21382_ACEOF
21383cat confdefs.h >>conftest.$ac_ext
21384cat >>conftest.$ac_ext <<_ACEOF
21385/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021386#if defined(CRAY) && ! defined(CRAY2)
21387webecray
21388#else
21389wenotbecray
21390#endif
21391
21392_ACEOF
21393if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021394 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021395 ac_cv_os_cray=yes
21396else
21397 ac_cv_os_cray=no
21398fi
21399rm -f conftest*
21400
21401fi
21402echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21403echo "${ECHO_T}$ac_cv_os_cray" >&6
21404if test $ac_cv_os_cray = yes; then
21405 for ac_func in _getb67 GETB67 getb67; do
21406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21407echo "$as_me:$LINENO: checking for $ac_func" >&5
21408echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21409if eval "test \"\${$as_ac_var+set}\" = set"; then
21410 echo $ECHO_N "(cached) $ECHO_C" >&6
21411else
21412 cat >conftest.$ac_ext <<_ACEOF
21413#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021414/* confdefs.h. */
21415_ACEOF
21416cat confdefs.h >>conftest.$ac_ext
21417cat >>conftest.$ac_ext <<_ACEOF
21418/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021419/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021420 which can conflict with char $ac_func (); below.
21421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21422 <limits.h> exists even on freestanding compilers. */
21423#ifdef __STDC__
21424# include <limits.h>
21425#else
21426# include <assert.h>
21427#endif
John Criswell7a73b802003-06-30 21:59:07 +000021428/* Override any gcc2 internal prototype to avoid an error. */
21429#ifdef __cplusplus
21430extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021431{
John Criswell7a73b802003-06-30 21:59:07 +000021432#endif
21433/* We use char because int might match the return type of a gcc2
21434 builtin and then its argument prototype would still apply. */
21435char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021436/* The GNU C library defines this for functions which it implements
21437 to always fail with ENOSYS. Some functions are actually named
21438 something starting with __ and the normal name is an alias. */
21439#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21440choke me
21441#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021442char (*f) () = $ac_func;
21443#endif
21444#ifdef __cplusplus
21445}
John Criswell7a73b802003-06-30 21:59:07 +000021446#endif
21447
John Criswell0c38eaf2003-09-10 15:17:25 +000021448int
21449main ()
21450{
21451return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021452 ;
21453 return 0;
21454}
21455_ACEOF
21456rm -f conftest.$ac_objext conftest$ac_exeext
21457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21458 (eval $ac_link) 2>&5
21459 ac_status=$?
21460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); } &&
21462 { ac_try='test -s conftest$ac_exeext'
21463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21464 (eval $ac_try) 2>&5
21465 ac_status=$?
21466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); }; }; then
21468 eval "$as_ac_var=yes"
21469else
21470 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021471sed 's/^/| /' conftest.$ac_ext >&5
21472
John Criswell7a73b802003-06-30 21:59:07 +000021473eval "$as_ac_var=no"
21474fi
21475rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21476fi
21477echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21478echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21479if test `eval echo '${'$as_ac_var'}'` = yes; then
21480
21481cat >>confdefs.h <<_ACEOF
21482#define CRAY_STACKSEG_END $ac_func
21483_ACEOF
21484
21485 break
21486fi
21487
21488 done
21489fi
21490
21491echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21492echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21493if test "${ac_cv_c_stack_direction+set}" = set; then
21494 echo $ECHO_N "(cached) $ECHO_C" >&6
21495else
21496 if test "$cross_compiling" = yes; then
21497 ac_cv_c_stack_direction=0
21498else
21499 cat >conftest.$ac_ext <<_ACEOF
21500#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021501/* confdefs.h. */
21502_ACEOF
21503cat confdefs.h >>conftest.$ac_ext
21504cat >>conftest.$ac_ext <<_ACEOF
21505/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021506int
21507find_stack_direction ()
21508{
21509 static char *addr = 0;
21510 auto char dummy;
21511 if (addr == 0)
21512 {
21513 addr = &dummy;
21514 return find_stack_direction ();
21515 }
21516 else
21517 return (&dummy > addr) ? 1 : -1;
21518}
21519
21520int
21521main ()
21522{
21523 exit (find_stack_direction () < 0);
21524}
21525_ACEOF
21526rm -f conftest$ac_exeext
21527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21528 (eval $ac_link) 2>&5
21529 ac_status=$?
21530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21533 (eval $ac_try) 2>&5
21534 ac_status=$?
21535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); }; }; then
21537 ac_cv_c_stack_direction=1
21538else
21539 echo "$as_me: program exited with status $ac_status" >&5
21540echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021541sed 's/^/| /' conftest.$ac_ext >&5
21542
John Criswell7a73b802003-06-30 21:59:07 +000021543( exit $ac_status )
21544ac_cv_c_stack_direction=-1
21545fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021546rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021547fi
21548fi
21549echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21550echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21551
21552cat >>confdefs.h <<_ACEOF
21553#define STACK_DIRECTION $ac_cv_c_stack_direction
21554_ACEOF
21555
21556
21557fi
21558
21559if test $ac_cv_c_compiler_gnu = yes; then
21560 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21561echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21562if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21563 echo $ECHO_N "(cached) $ECHO_C" >&6
21564else
21565 ac_pattern="Autoconf.*'x'"
21566 cat >conftest.$ac_ext <<_ACEOF
21567#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021568/* confdefs.h. */
21569_ACEOF
21570cat confdefs.h >>conftest.$ac_ext
21571cat >>conftest.$ac_ext <<_ACEOF
21572/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021573#include <sgtty.h>
21574Autoconf TIOCGETP
21575_ACEOF
21576if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021577 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021578 ac_cv_prog_gcc_traditional=yes
21579else
21580 ac_cv_prog_gcc_traditional=no
21581fi
21582rm -f conftest*
21583
21584
21585 if test $ac_cv_prog_gcc_traditional = no; then
21586 cat >conftest.$ac_ext <<_ACEOF
21587#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021588/* confdefs.h. */
21589_ACEOF
21590cat confdefs.h >>conftest.$ac_ext
21591cat >>conftest.$ac_ext <<_ACEOF
21592/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021593#include <termio.h>
21594Autoconf TCGETA
21595_ACEOF
21596if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021597 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021598 ac_cv_prog_gcc_traditional=yes
21599fi
21600rm -f conftest*
21601
21602 fi
21603fi
21604echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21605echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21606 if test $ac_cv_prog_gcc_traditional = yes; then
21607 CC="$CC -traditional"
21608 fi
21609fi
21610
21611echo "$as_me:$LINENO: checking for working memcmp" >&5
21612echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21613if test "${ac_cv_func_memcmp_working+set}" = set; then
21614 echo $ECHO_N "(cached) $ECHO_C" >&6
21615else
21616 if test "$cross_compiling" = yes; then
21617 ac_cv_func_memcmp_working=no
21618else
21619 cat >conftest.$ac_ext <<_ACEOF
21620#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021621/* confdefs.h. */
21622_ACEOF
21623cat confdefs.h >>conftest.$ac_ext
21624cat >>conftest.$ac_ext <<_ACEOF
21625/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021626
John Criswell7a73b802003-06-30 21:59:07 +000021627int
21628main ()
21629{
21630
21631 /* Some versions of memcmp are not 8-bit clean. */
21632 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21633 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21634 exit (1);
21635
21636 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21637 or more and with at least one buffer not starting on a 4-byte boundary.
21638 William Lewis provided this test program. */
21639 {
21640 char foo[21];
21641 char bar[21];
21642 int i;
21643 for (i = 0; i < 4; i++)
21644 {
21645 char *a = foo + i;
21646 char *b = bar + i;
21647 strcpy (a, "--------01111111");
21648 strcpy (b, "--------10000000");
21649 if (memcmp (a, b, 16) >= 0)
21650 exit (1);
21651 }
21652 exit (0);
21653 }
21654
21655 ;
21656 return 0;
21657}
21658_ACEOF
21659rm -f conftest$ac_exeext
21660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21661 (eval $ac_link) 2>&5
21662 ac_status=$?
21663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21666 (eval $ac_try) 2>&5
21667 ac_status=$?
21668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669 (exit $ac_status); }; }; then
21670 ac_cv_func_memcmp_working=yes
21671else
21672 echo "$as_me: program exited with status $ac_status" >&5
21673echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021674sed 's/^/| /' conftest.$ac_ext >&5
21675
John Criswell7a73b802003-06-30 21:59:07 +000021676( exit $ac_status )
21677ac_cv_func_memcmp_working=no
21678fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021679rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021680fi
21681fi
21682echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21683echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21684test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21685
21686
21687
21688for ac_header in stdlib.h unistd.h
21689do
21690as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21691if eval "test \"\${$as_ac_Header+set}\" = set"; then
21692 echo "$as_me:$LINENO: checking for $ac_header" >&5
21693echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21694if eval "test \"\${$as_ac_Header+set}\" = set"; then
21695 echo $ECHO_N "(cached) $ECHO_C" >&6
21696fi
21697echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21698echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21699else
21700 # Is the header compilable?
21701echo "$as_me:$LINENO: checking $ac_header usability" >&5
21702echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21703cat >conftest.$ac_ext <<_ACEOF
21704#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021705/* confdefs.h. */
21706_ACEOF
21707cat confdefs.h >>conftest.$ac_ext
21708cat >>conftest.$ac_ext <<_ACEOF
21709/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021710$ac_includes_default
21711#include <$ac_header>
21712_ACEOF
21713rm -f conftest.$ac_objext
21714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21715 (eval $ac_compile) 2>&5
21716 ac_status=$?
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); } &&
21719 { ac_try='test -s conftest.$ac_objext'
21720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21721 (eval $ac_try) 2>&5
21722 ac_status=$?
21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); }; }; then
21725 ac_header_compiler=yes
21726else
21727 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021728sed 's/^/| /' conftest.$ac_ext >&5
21729
John Criswell7a73b802003-06-30 21:59:07 +000021730ac_header_compiler=no
21731fi
21732rm -f conftest.$ac_objext conftest.$ac_ext
21733echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21734echo "${ECHO_T}$ac_header_compiler" >&6
21735
21736# Is the header present?
21737echo "$as_me:$LINENO: checking $ac_header presence" >&5
21738echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21739cat >conftest.$ac_ext <<_ACEOF
21740#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021741/* confdefs.h. */
21742_ACEOF
21743cat confdefs.h >>conftest.$ac_ext
21744cat >>conftest.$ac_ext <<_ACEOF
21745/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021746#include <$ac_header>
21747_ACEOF
21748if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21750 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021751 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021752 rm -f conftest.er1
21753 cat conftest.err >&5
21754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755 (exit $ac_status); } >/dev/null; then
21756 if test -s conftest.err; then
21757 ac_cpp_err=$ac_c_preproc_warn_flag
21758 else
21759 ac_cpp_err=
21760 fi
21761else
21762 ac_cpp_err=yes
21763fi
21764if test -z "$ac_cpp_err"; then
21765 ac_header_preproc=yes
21766else
21767 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021768sed 's/^/| /' conftest.$ac_ext >&5
21769
John Criswell7a73b802003-06-30 21:59:07 +000021770 ac_header_preproc=no
21771fi
21772rm -f conftest.err conftest.$ac_ext
21773echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21774echo "${ECHO_T}$ac_header_preproc" >&6
21775
21776# So? What about this header?
21777case $ac_header_compiler:$ac_header_preproc in
21778 yes:no )
21779 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21780echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021782echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21783 (
21784 cat <<\_ASBOX
21785## ------------------------------------ ##
21786## Report this to bug-autoconf@gnu.org. ##
21787## ------------------------------------ ##
21788_ASBOX
21789 ) |
21790 sed "s/^/$as_me: WARNING: /" >&2
21791 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021792 no:yes )
21793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21794echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21796echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021798echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21799 (
21800 cat <<\_ASBOX
21801## ------------------------------------ ##
21802## Report this to bug-autoconf@gnu.org. ##
21803## ------------------------------------ ##
21804_ASBOX
21805 ) |
21806 sed "s/^/$as_me: WARNING: /" >&2
21807 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021808esac
21809echo "$as_me:$LINENO: checking for $ac_header" >&5
21810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21811if eval "test \"\${$as_ac_Header+set}\" = set"; then
21812 echo $ECHO_N "(cached) $ECHO_C" >&6
21813else
21814 eval "$as_ac_Header=$ac_header_preproc"
21815fi
21816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21817echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21818
21819fi
21820if test `eval echo '${'$as_ac_Header'}'` = yes; then
21821 cat >>confdefs.h <<_ACEOF
21822#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21823_ACEOF
21824
21825fi
21826
21827done
21828
21829
21830for ac_func in getpagesize
21831do
21832as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21833echo "$as_me:$LINENO: checking for $ac_func" >&5
21834echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21835if eval "test \"\${$as_ac_var+set}\" = set"; then
21836 echo $ECHO_N "(cached) $ECHO_C" >&6
21837else
21838 cat >conftest.$ac_ext <<_ACEOF
21839#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021840/* confdefs.h. */
21841_ACEOF
21842cat confdefs.h >>conftest.$ac_ext
21843cat >>conftest.$ac_ext <<_ACEOF
21844/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021845/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021846 which can conflict with char $ac_func (); below.
21847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21848 <limits.h> exists even on freestanding compilers. */
21849#ifdef __STDC__
21850# include <limits.h>
21851#else
21852# include <assert.h>
21853#endif
John Criswell7a73b802003-06-30 21:59:07 +000021854/* Override any gcc2 internal prototype to avoid an error. */
21855#ifdef __cplusplus
21856extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021857{
John Criswell7a73b802003-06-30 21:59:07 +000021858#endif
21859/* We use char because int might match the return type of a gcc2
21860 builtin and then its argument prototype would still apply. */
21861char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021862/* The GNU C library defines this for functions which it implements
21863 to always fail with ENOSYS. Some functions are actually named
21864 something starting with __ and the normal name is an alias. */
21865#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21866choke me
21867#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021868char (*f) () = $ac_func;
21869#endif
21870#ifdef __cplusplus
21871}
John Criswell7a73b802003-06-30 21:59:07 +000021872#endif
21873
John Criswell0c38eaf2003-09-10 15:17:25 +000021874int
21875main ()
21876{
21877return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021878 ;
21879 return 0;
21880}
21881_ACEOF
21882rm -f conftest.$ac_objext conftest$ac_exeext
21883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21884 (eval $ac_link) 2>&5
21885 ac_status=$?
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); } &&
21888 { ac_try='test -s conftest$ac_exeext'
21889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21890 (eval $ac_try) 2>&5
21891 ac_status=$?
21892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893 (exit $ac_status); }; }; then
21894 eval "$as_ac_var=yes"
21895else
21896 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021897sed 's/^/| /' conftest.$ac_ext >&5
21898
John Criswell7a73b802003-06-30 21:59:07 +000021899eval "$as_ac_var=no"
21900fi
21901rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21902fi
21903echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21904echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21905if test `eval echo '${'$as_ac_var'}'` = yes; then
21906 cat >>confdefs.h <<_ACEOF
21907#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21908_ACEOF
21909
21910fi
21911done
21912
21913echo "$as_me:$LINENO: checking for working mmap" >&5
21914echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21915if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21916 echo $ECHO_N "(cached) $ECHO_C" >&6
21917else
21918 if test "$cross_compiling" = yes; then
21919 ac_cv_func_mmap_fixed_mapped=no
21920else
21921 cat >conftest.$ac_ext <<_ACEOF
21922#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021923/* confdefs.h. */
21924_ACEOF
21925cat confdefs.h >>conftest.$ac_ext
21926cat >>conftest.$ac_ext <<_ACEOF
21927/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021928$ac_includes_default
21929/* malloc might have been renamed as rpl_malloc. */
21930#undef malloc
21931
21932/* Thanks to Mike Haertel and Jim Avera for this test.
21933 Here is a matrix of mmap possibilities:
21934 mmap private not fixed
21935 mmap private fixed at somewhere currently unmapped
21936 mmap private fixed at somewhere already mapped
21937 mmap shared not fixed
21938 mmap shared fixed at somewhere currently unmapped
21939 mmap shared fixed at somewhere already mapped
21940 For private mappings, we should verify that changes cannot be read()
21941 back from the file, nor mmap's back from the file at a different
21942 address. (There have been systems where private was not correctly
21943 implemented like the infamous i386 svr4.0, and systems where the
21944 VM page cache was not coherent with the file system buffer cache
21945 like early versions of FreeBSD and possibly contemporary NetBSD.)
21946 For shared mappings, we should conversely verify that changes get
21947 propagated back to all the places they're supposed to be.
21948
21949 Grep wants private fixed already mapped.
21950 The main things grep needs to know about mmap are:
21951 * does it exist and is it safe to write into the mmap'd area
21952 * how to use it (BSD variants) */
21953
21954#include <fcntl.h>
21955#include <sys/mman.h>
21956
21957#if !STDC_HEADERS && !HAVE_STDLIB_H
21958char *malloc ();
21959#endif
21960
21961/* This mess was copied from the GNU getpagesize.h. */
21962#if !HAVE_GETPAGESIZE
21963/* Assume that all systems that can run configure have sys/param.h. */
21964# if !HAVE_SYS_PARAM_H
21965# define HAVE_SYS_PARAM_H 1
21966# endif
21967
21968# ifdef _SC_PAGESIZE
21969# define getpagesize() sysconf(_SC_PAGESIZE)
21970# else /* no _SC_PAGESIZE */
21971# if HAVE_SYS_PARAM_H
21972# include <sys/param.h>
21973# ifdef EXEC_PAGESIZE
21974# define getpagesize() EXEC_PAGESIZE
21975# else /* no EXEC_PAGESIZE */
21976# ifdef NBPG
21977# define getpagesize() NBPG * CLSIZE
21978# ifndef CLSIZE
21979# define CLSIZE 1
21980# endif /* no CLSIZE */
21981# else /* no NBPG */
21982# ifdef NBPC
21983# define getpagesize() NBPC
21984# else /* no NBPC */
21985# ifdef PAGESIZE
21986# define getpagesize() PAGESIZE
21987# endif /* PAGESIZE */
21988# endif /* no NBPC */
21989# endif /* no NBPG */
21990# endif /* no EXEC_PAGESIZE */
21991# else /* no HAVE_SYS_PARAM_H */
21992# define getpagesize() 8192 /* punt totally */
21993# endif /* no HAVE_SYS_PARAM_H */
21994# endif /* no _SC_PAGESIZE */
21995
21996#endif /* no HAVE_GETPAGESIZE */
21997
21998int
21999main ()
22000{
22001 char *data, *data2, *data3;
22002 int i, pagesize;
22003 int fd;
22004
22005 pagesize = getpagesize ();
22006
22007 /* First, make a file with some known garbage in it. */
22008 data = (char *) malloc (pagesize);
22009 if (!data)
22010 exit (1);
22011 for (i = 0; i < pagesize; ++i)
22012 *(data + i) = rand ();
22013 umask (0);
22014 fd = creat ("conftest.mmap", 0600);
22015 if (fd < 0)
22016 exit (1);
22017 if (write (fd, data, pagesize) != pagesize)
22018 exit (1);
22019 close (fd);
22020
22021 /* Next, try to mmap the file at a fixed address which already has
22022 something else allocated at it. If we can, also make sure that
22023 we see the same garbage. */
22024 fd = open ("conftest.mmap", O_RDWR);
22025 if (fd < 0)
22026 exit (1);
22027 data2 = (char *) malloc (2 * pagesize);
22028 if (!data2)
22029 exit (1);
22030 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22031 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22032 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22033 exit (1);
22034 for (i = 0; i < pagesize; ++i)
22035 if (*(data + i) != *(data2 + i))
22036 exit (1);
22037
22038 /* Finally, make sure that changes to the mapped area do not
22039 percolate back to the file as seen by read(). (This is a bug on
22040 some variants of i386 svr4.0.) */
22041 for (i = 0; i < pagesize; ++i)
22042 *(data2 + i) = *(data2 + i) + 1;
22043 data3 = (char *) malloc (pagesize);
22044 if (!data3)
22045 exit (1);
22046 if (read (fd, data3, pagesize) != pagesize)
22047 exit (1);
22048 for (i = 0; i < pagesize; ++i)
22049 if (*(data + i) != *(data3 + i))
22050 exit (1);
22051 close (fd);
22052 exit (0);
22053}
22054_ACEOF
22055rm -f conftest$ac_exeext
22056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22057 (eval $ac_link) 2>&5
22058 ac_status=$?
22059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22062 (eval $ac_try) 2>&5
22063 ac_status=$?
22064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065 (exit $ac_status); }; }; then
22066 ac_cv_func_mmap_fixed_mapped=yes
22067else
22068 echo "$as_me: program exited with status $ac_status" >&5
22069echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022070sed 's/^/| /' conftest.$ac_ext >&5
22071
John Criswell7a73b802003-06-30 21:59:07 +000022072( exit $ac_status )
22073ac_cv_func_mmap_fixed_mapped=no
22074fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022075rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022076fi
22077fi
22078echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22079echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22080if test $ac_cv_func_mmap_fixed_mapped = yes; then
22081
22082cat >>confdefs.h <<\_ACEOF
22083#define HAVE_MMAP 1
22084_ACEOF
22085
22086fi
22087rm -f conftest.mmap
22088
22089echo "$as_me:$LINENO: checking for mmap of files" >&5
22090echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22091if test "${ac_cv_func_mmap_file+set}" = set; then
22092 echo $ECHO_N "(cached) $ECHO_C" >&6
22093else
22094
22095
22096 ac_ext=c
22097ac_cpp='$CPP $CPPFLAGS'
22098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22100ac_compiler_gnu=$ac_cv_c_compiler_gnu
22101
22102 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022103 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22104See \`config.log' for more details." >&5
22105echo "$as_me: error: cannot run test program while cross compiling
22106See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022107 { (exit 1); exit 1; }; }
22108else
22109 cat >conftest.$ac_ext <<_ACEOF
22110#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022111/* confdefs.h. */
22112_ACEOF
22113cat confdefs.h >>conftest.$ac_ext
22114cat >>conftest.$ac_ext <<_ACEOF
22115/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022116
22117#ifdef HAVE_SYS_MMAN_H
22118#include <sys/mman.h>
22119#endif
22120
22121#ifdef HAVE_SYS_TYPES_H
22122#include <sys/types.h>
22123#endif
22124
22125#ifdef HAVE_FCNTL_H
22126#include <fcntl.h>
22127#endif
22128
22129 int fd;
22130 int main () {
22131 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22132_ACEOF
22133rm -f conftest$ac_exeext
22134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22135 (eval $ac_link) 2>&5
22136 ac_status=$?
22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22140 (eval $ac_try) 2>&5
22141 ac_status=$?
22142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143 (exit $ac_status); }; }; then
22144 ac_cv_func_mmap_file=yes
22145else
22146 echo "$as_me: program exited with status $ac_status" >&5
22147echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022148sed 's/^/| /' conftest.$ac_ext >&5
22149
John Criswell7a73b802003-06-30 21:59:07 +000022150( exit $ac_status )
22151ac_cv_func_mmap_file=no
22152fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022153rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022154fi
22155 ac_ext=c
22156ac_cpp='$CPP $CPPFLAGS'
22157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22159ac_compiler_gnu=$ac_cv_c_compiler_gnu
22160
22161
22162fi
22163echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22164echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22165if test "$ac_cv_func_mmap_file" = yes; then
22166 cat >>confdefs.h <<\_ACEOF
22167#define HAVE_MMAP_FILE 1
22168_ACEOF
22169
22170 MMAP_FILE=yes
22171
22172fi
22173
22174if test ${ac_cv_func_mmap_file} = "no"
22175then
22176 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22177echo "$as_me: error: mmap() of files required but not found" >&2;}
22178 { (exit 1); exit 1; }; }
22179fi
22180echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22181echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22182if test "${ac_cv_header_mmap_anon+set}" = set; then
22183 echo $ECHO_N "(cached) $ECHO_C" >&6
22184else
22185
22186
22187 ac_ext=c
22188ac_cpp='$CPP $CPPFLAGS'
22189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22191ac_compiler_gnu=$ac_cv_c_compiler_gnu
22192
22193 cat >conftest.$ac_ext <<_ACEOF
22194#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022195/* confdefs.h. */
22196_ACEOF
22197cat confdefs.h >>conftest.$ac_ext
22198cat >>conftest.$ac_ext <<_ACEOF
22199/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022200#include <sys/mman.h>
22201 #include <unistd.h>
22202 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022203int
22204main ()
22205{
22206mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22207 ;
22208 return 0;
22209}
22210_ACEOF
22211rm -f conftest.$ac_objext
22212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22213 (eval $ac_compile) 2>&5
22214 ac_status=$?
22215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216 (exit $ac_status); } &&
22217 { ac_try='test -s conftest.$ac_objext'
22218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22219 (eval $ac_try) 2>&5
22220 ac_status=$?
22221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222 (exit $ac_status); }; }; then
22223 ac_cv_header_mmap_anon=yes
22224else
22225 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022226sed 's/^/| /' conftest.$ac_ext >&5
22227
John Criswell7a73b802003-06-30 21:59:07 +000022228ac_cv_header_mmap_anon=no
22229fi
22230rm -f conftest.$ac_objext conftest.$ac_ext
22231 ac_ext=c
22232ac_cpp='$CPP $CPPFLAGS'
22233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22235ac_compiler_gnu=$ac_cv_c_compiler_gnu
22236
22237
22238fi
22239echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22240echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22241if test "$ac_cv_header_mmap_anon" = yes; then
22242 cat >>confdefs.h <<\_ACEOF
22243#define HAVE_MMAP_ANONYMOUS 1
22244_ACEOF
22245
22246fi
22247
22248echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22249echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22250if test "${ac_cv_type_signal+set}" = set; then
22251 echo $ECHO_N "(cached) $ECHO_C" >&6
22252else
22253 cat >conftest.$ac_ext <<_ACEOF
22254#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022255/* confdefs.h. */
22256_ACEOF
22257cat confdefs.h >>conftest.$ac_ext
22258cat >>conftest.$ac_ext <<_ACEOF
22259/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022260#include <sys/types.h>
22261#include <signal.h>
22262#ifdef signal
22263# undef signal
22264#endif
22265#ifdef __cplusplus
22266extern "C" void (*signal (int, void (*)(int)))(int);
22267#else
22268void (*signal ()) ();
22269#endif
22270
John Criswell7a73b802003-06-30 21:59:07 +000022271int
22272main ()
22273{
22274int i;
22275 ;
22276 return 0;
22277}
22278_ACEOF
22279rm -f conftest.$ac_objext
22280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22281 (eval $ac_compile) 2>&5
22282 ac_status=$?
22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 (exit $ac_status); } &&
22285 { ac_try='test -s conftest.$ac_objext'
22286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22287 (eval $ac_try) 2>&5
22288 ac_status=$?
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); }; }; then
22291 ac_cv_type_signal=void
22292else
22293 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022294sed 's/^/| /' conftest.$ac_ext >&5
22295
John Criswell7a73b802003-06-30 21:59:07 +000022296ac_cv_type_signal=int
22297fi
22298rm -f conftest.$ac_objext conftest.$ac_ext
22299fi
22300echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22301echo "${ECHO_T}$ac_cv_type_signal" >&6
22302
22303cat >>confdefs.h <<_ACEOF
22304#define RETSIGTYPE $ac_cv_type_signal
22305_ACEOF
22306
22307
22308
22309
22310
22311
22312
22313
22314
22315
22316
22317for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22318do
22319as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22320echo "$as_me:$LINENO: checking for $ac_func" >&5
22321echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22322if eval "test \"\${$as_ac_var+set}\" = set"; then
22323 echo $ECHO_N "(cached) $ECHO_C" >&6
22324else
22325 cat >conftest.$ac_ext <<_ACEOF
22326#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022327/* confdefs.h. */
22328_ACEOF
22329cat confdefs.h >>conftest.$ac_ext
22330cat >>conftest.$ac_ext <<_ACEOF
22331/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022332/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022333 which can conflict with char $ac_func (); below.
22334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22335 <limits.h> exists even on freestanding compilers. */
22336#ifdef __STDC__
22337# include <limits.h>
22338#else
22339# include <assert.h>
22340#endif
John Criswell7a73b802003-06-30 21:59:07 +000022341/* Override any gcc2 internal prototype to avoid an error. */
22342#ifdef __cplusplus
22343extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022344{
John Criswell7a73b802003-06-30 21:59:07 +000022345#endif
22346/* We use char because int might match the return type of a gcc2
22347 builtin and then its argument prototype would still apply. */
22348char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022349/* The GNU C library defines this for functions which it implements
22350 to always fail with ENOSYS. Some functions are actually named
22351 something starting with __ and the normal name is an alias. */
22352#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22353choke me
22354#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022355char (*f) () = $ac_func;
22356#endif
22357#ifdef __cplusplus
22358}
John Criswell7a73b802003-06-30 21:59:07 +000022359#endif
22360
John Criswell0c38eaf2003-09-10 15:17:25 +000022361int
22362main ()
22363{
22364return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022365 ;
22366 return 0;
22367}
22368_ACEOF
22369rm -f conftest.$ac_objext conftest$ac_exeext
22370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22371 (eval $ac_link) 2>&5
22372 ac_status=$?
22373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374 (exit $ac_status); } &&
22375 { ac_try='test -s conftest$ac_exeext'
22376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22377 (eval $ac_try) 2>&5
22378 ac_status=$?
22379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380 (exit $ac_status); }; }; then
22381 eval "$as_ac_var=yes"
22382else
22383 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022384sed 's/^/| /' conftest.$ac_ext >&5
22385
John Criswell7a73b802003-06-30 21:59:07 +000022386eval "$as_ac_var=no"
22387fi
22388rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22389fi
22390echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22391echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22392if test `eval echo '${'$as_ac_var'}'` = yes; then
22393 cat >>confdefs.h <<_ACEOF
22394#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22395_ACEOF
22396
22397fi
22398done
22399
22400
22401
22402echo "$as_me:$LINENO: checking for mmap" >&5
22403echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22404if test "${ac_cv_func_mmap+set}" = set; then
22405 echo $ECHO_N "(cached) $ECHO_C" >&6
22406else
22407 cat >conftest.$ac_ext <<_ACEOF
22408#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022409/* confdefs.h. */
22410_ACEOF
22411cat confdefs.h >>conftest.$ac_ext
22412cat >>conftest.$ac_ext <<_ACEOF
22413/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022414/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022415 which can conflict with char mmap (); below.
22416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22417 <limits.h> exists even on freestanding compilers. */
22418#ifdef __STDC__
22419# include <limits.h>
22420#else
22421# include <assert.h>
22422#endif
John Criswell7a73b802003-06-30 21:59:07 +000022423/* Override any gcc2 internal prototype to avoid an error. */
22424#ifdef __cplusplus
22425extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022426{
John Criswell7a73b802003-06-30 21:59:07 +000022427#endif
22428/* We use char because int might match the return type of a gcc2
22429 builtin and then its argument prototype would still apply. */
22430char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000022431/* The GNU C library defines this for functions which it implements
22432 to always fail with ENOSYS. Some functions are actually named
22433 something starting with __ and the normal name is an alias. */
22434#if defined (__stub_mmap) || defined (__stub___mmap)
22435choke me
22436#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022437char (*f) () = mmap;
22438#endif
22439#ifdef __cplusplus
22440}
John Criswell7a73b802003-06-30 21:59:07 +000022441#endif
22442
John Criswell0c38eaf2003-09-10 15:17:25 +000022443int
22444main ()
22445{
22446return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000022447 ;
22448 return 0;
22449}
22450_ACEOF
22451rm -f conftest.$ac_objext conftest$ac_exeext
22452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22453 (eval $ac_link) 2>&5
22454 ac_status=$?
22455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456 (exit $ac_status); } &&
22457 { ac_try='test -s conftest$ac_exeext'
22458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22459 (eval $ac_try) 2>&5
22460 ac_status=$?
22461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462 (exit $ac_status); }; }; then
22463 ac_cv_func_mmap=yes
22464else
22465 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022466sed 's/^/| /' conftest.$ac_ext >&5
22467
John Criswell7a73b802003-06-30 21:59:07 +000022468ac_cv_func_mmap=no
22469fi
22470rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22471fi
22472echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22473echo "${ECHO_T}$ac_cv_func_mmap" >&6
22474if test $ac_cv_func_mmap = yes; then
22475 :
22476else
22477 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22478echo "$as_me: error: Function mmap() required but not found" >&2;}
22479 { (exit 1); exit 1; }; }
22480fi
22481
22482echo "$as_me:$LINENO: checking for mprotect" >&5
22483echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22484if test "${ac_cv_func_mprotect+set}" = set; then
22485 echo $ECHO_N "(cached) $ECHO_C" >&6
22486else
22487 cat >conftest.$ac_ext <<_ACEOF
22488#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022489/* confdefs.h. */
22490_ACEOF
22491cat confdefs.h >>conftest.$ac_ext
22492cat >>conftest.$ac_ext <<_ACEOF
22493/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022494/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022495 which can conflict with char mprotect (); below.
22496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22497 <limits.h> exists even on freestanding compilers. */
22498#ifdef __STDC__
22499# include <limits.h>
22500#else
22501# include <assert.h>
22502#endif
John Criswell7a73b802003-06-30 21:59:07 +000022503/* Override any gcc2 internal prototype to avoid an error. */
22504#ifdef __cplusplus
22505extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022506{
John Criswell7a73b802003-06-30 21:59:07 +000022507#endif
22508/* We use char because int might match the return type of a gcc2
22509 builtin and then its argument prototype would still apply. */
22510char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022511/* The GNU C library defines this for functions which it implements
22512 to always fail with ENOSYS. Some functions are actually named
22513 something starting with __ and the normal name is an alias. */
22514#if defined (__stub_mprotect) || defined (__stub___mprotect)
22515choke me
22516#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022517char (*f) () = mprotect;
22518#endif
22519#ifdef __cplusplus
22520}
John Criswell7a73b802003-06-30 21:59:07 +000022521#endif
22522
John Criswell0c38eaf2003-09-10 15:17:25 +000022523int
22524main ()
22525{
22526return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022527 ;
22528 return 0;
22529}
22530_ACEOF
22531rm -f conftest.$ac_objext conftest$ac_exeext
22532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22533 (eval $ac_link) 2>&5
22534 ac_status=$?
22535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); } &&
22537 { ac_try='test -s conftest$ac_exeext'
22538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22539 (eval $ac_try) 2>&5
22540 ac_status=$?
22541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542 (exit $ac_status); }; }; then
22543 ac_cv_func_mprotect=yes
22544else
22545 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022546sed 's/^/| /' conftest.$ac_ext >&5
22547
John Criswell7a73b802003-06-30 21:59:07 +000022548ac_cv_func_mprotect=no
22549fi
22550rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22551fi
22552echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22553echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22554if test $ac_cv_func_mprotect = yes; then
22555 :
22556else
22557 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22558echo "$as_me: error: Function mprotect() required but not found" >&2;}
22559 { (exit 1); exit 1; }; }
22560fi
22561
22562
John Criswellb13092b2003-07-22 21:00:24 +000022563
John Criswell7a73b802003-06-30 21:59:07 +000022564# Check whether --enable-purify or --disable-purify was given.
22565if test "${enable_purify+set}" = set; then
22566 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000022567
22568else
John Criswellb13092b2003-07-22 21:00:24 +000022569 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000022570fi;
John Criswellb13092b2003-07-22 21:00:24 +000022571if test ${enableval} = "no"
22572then
22573 ENABLE_PURIFY=
22574
22575else
22576 ENABLE_PURIFY=ENABLE_PURIFY=1
22577
22578fi
22579
John Criswell7a73b802003-06-30 21:59:07 +000022580# Check whether --enable-optimized or --disable-optimized was given.
22581if test "${enable_optimized+set}" = set; then
22582 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022583
22584else
John Criswellb13092b2003-07-22 21:00:24 +000022585 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022586fi;
John Criswellb13092b2003-07-22 21:00:24 +000022587if test ${enableval} = "no"
22588then
22589 ENABLE_OPTIMIZED=
22590
22591else
22592 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22593
22594fi
22595
John Criswell7a73b802003-06-30 21:59:07 +000022596# Check whether --enable-spec or --disable-spec was given.
22597if test "${enable_spec+set}" = set; then
22598 enableval="$enable_spec"
John Criswell7a73b802003-06-30 21:59:07 +000022599
22600else
John Criswellb13092b2003-07-22 21:00:24 +000022601 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022602fi;
John Criswellb13092b2003-07-22 21:00:24 +000022603if test ${enableval} = "no"
22604then
22605 USE_SPEC=
22606
22607else
22608 USE_SPEC=USE_SPEC=1
22609
22610fi
22611
John Criswell7a73b802003-06-30 21:59:07 +000022612# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22613if test "${enable_precompiled_bytecode+set}" = set; then
22614 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000022615
22616else
John Criswellb13092b2003-07-22 21:00:24 +000022617 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022618fi;
John Criswellb13092b2003-07-22 21:00:24 +000022619if test ${enableval} = "no"
22620then
22621 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000022622
John Criswellb13092b2003-07-22 21:00:24 +000022623else
22624 UPB=USE_PRECOMPILED_BYTECODE=1
22625
22626fi
John Criswellf02dbf02003-07-22 20:07:49 +000022627
22628
22629# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22630if test "${enable_llc_diffs+set}" = set; then
22631 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022632
22633else
John Criswellb13092b2003-07-22 21:00:24 +000022634 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022635fi;
John Criswellb13092b2003-07-22 21:00:24 +000022636if test ${enableval} = "no"
22637then
22638 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022639
John Criswellb13092b2003-07-22 21:00:24 +000022640else
22641 DISABLE_LLC_DIFFS=
22642
22643fi
22644
22645# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022646if test "${enable_jit+set}" = set; then
22647 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022648
22649else
John Criswellc78022e2003-07-29 19:11:58 +000022650 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022651fi;
John Criswellb13092b2003-07-22 21:00:24 +000022652
22653if test ${enableval} = "no"
22654then
22655 JIT=
22656
22657else
John Criswellc78022e2003-07-29 19:11:58 +000022658 case $target in
22659 *i*86*)
22660 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022661
John Criswellc78022e2003-07-29 19:11:58 +000022662 ;;
22663 *sparc*)
22664 JIT=TARGET_HAS_JIT=1
22665
22666 ;;
22667 *)
22668 JIT=
22669
22670 ;;
22671 esac
John Criswellb13092b2003-07-22 21:00:24 +000022672fi
John Criswell7a73b802003-06-30 21:59:07 +000022673
22674
John Criswellc78022e2003-07-29 19:11:58 +000022675
John Criswell7a73b802003-06-30 21:59:07 +000022676# Check whether --with-spec or --without-spec was given.
22677if test "${with_spec+set}" = set; then
22678 withval="$with_spec"
22679 SPEC_ROOT=$withval
22680
22681else
22682 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22683
22684fi;
22685
John Criswellc78022e2003-07-29 19:11:58 +000022686
John Criswell7a73b802003-06-30 21:59:07 +000022687# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22688if test "${with_llvmgccdir+set}" = set; then
22689 withval="$with_llvmgccdir"
22690 LLVMGCCDIR=$withval
22691
22692fi;
22693
John Criswellc78022e2003-07-29 19:11:58 +000022694
John Criswell7a73b802003-06-30 21:59:07 +000022695# Check whether --with-bcrepos or --without-bcrepos was given.
22696if test "${with_bcrepos+set}" = set; then
22697 withval="$with_bcrepos"
22698 BCR=$withval
22699
22700else
22701 BCR=/home/vadve/lattner/LLVMPrograms
22702
22703fi;
22704
John Criswellc78022e2003-07-29 19:11:58 +000022705
John Criswell7a73b802003-06-30 21:59:07 +000022706# Check whether --with-papi or --without-papi was given.
22707if test "${with_papi+set}" = set; then
22708 withval="$with_papi"
22709 PAPIDIR=$withval
22710
22711else
John Criswellde00db22003-08-25 16:49:54 +000022712 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022713
22714fi;
22715
John Criswell7a73b802003-06-30 21:59:07 +000022716
22717# Check whether --with-purify or --without-purify was given.
22718if test "${with_purify+set}" = set; then
22719 withval="$with_purify"
22720 PURIFY=$withval
22721
22722fi;
22723
John Criswellde00db22003-08-25 16:49:54 +000022724
John Criswell0c38eaf2003-09-10 15:17:25 +000022725 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000022726cat >confcache <<\_ACEOF
22727# This file is a shell script that caches the results of configure
22728# tests run on this system so they can be shared between configure
22729# scripts and configure runs, see configure's option --config-cache.
22730# It is not useful on other systems. If it contains results you don't
22731# want to keep, you may remove or edit it.
22732#
22733# config.status only pays attention to the cache file if you give it
22734# the --recheck option to rerun configure.
22735#
John Criswell0c38eaf2003-09-10 15:17:25 +000022736# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022737# loading this file, other *unset* `ac_cv_foo' will be assigned the
22738# following values.
22739
22740_ACEOF
22741
22742# The following way of writing the cache mishandles newlines in values,
22743# but we know of no workaround that is simple, portable, and efficient.
22744# So, don't put newlines in cache variables' values.
22745# Ultrix sh set writes to stderr and can't be redirected directly,
22746# and sets the high bit in the cache file unless we assign to the vars.
22747{
22748 (set) 2>&1 |
22749 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22750 *ac_space=\ *)
22751 # `set' does not quote correctly, so add quotes (double-quote
22752 # substitution turns \\\\ into \\, and sed turns \\ into \).
22753 sed -n \
22754 "s/'/'\\\\''/g;
22755 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22756 ;;
22757 *)
22758 # `set' quotes correctly as required by POSIX, so do not add quotes.
22759 sed -n \
22760 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22761 ;;
22762 esac;
22763} |
22764 sed '
22765 t clear
22766 : clear
22767 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22768 t end
22769 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22770 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000022771if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022772 if test -w $cache_file; then
22773 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22774 cat confcache >$cache_file
22775 else
22776 echo "not updating unwritable cache $cache_file"
22777 fi
22778fi
22779rm -f confcache
22780
22781test "x$prefix" = xNONE && prefix=$ac_default_prefix
22782# Let make expand exec_prefix.
22783test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22784
22785# VPATH may cause trouble with some makes, so we remove $(srcdir),
22786# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22787# trailing colons and then remove the whole line if VPATH becomes empty
22788# (actually we leave an empty line to preserve line numbers).
22789if test "x$srcdir" = x.; then
22790 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22791s/:*\$(srcdir):*/:/;
22792s/:*\${srcdir}:*/:/;
22793s/:*@srcdir@:*/:/;
22794s/^\([^=]*=[ ]*\):*/\1/;
22795s/:*$//;
22796s/^[^=]*=[ ]*$//;
22797}'
22798fi
22799
22800DEFS=-DHAVE_CONFIG_H
22801
John Criswell0c38eaf2003-09-10 15:17:25 +000022802ac_libobjs=
22803ac_ltlibobjs=
22804for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22805 # 1. Remove the extension, and $U if already installed.
22806 ac_i=`echo "$ac_i" |
22807 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22808 # 2. Add them.
22809 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22810 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22811done
22812LIBOBJS=$ac_libobjs
22813
22814LTLIBOBJS=$ac_ltlibobjs
22815
22816
John Criswell7a73b802003-06-30 21:59:07 +000022817
22818: ${CONFIG_STATUS=./config.status}
22819ac_clean_files_save=$ac_clean_files
22820ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22821{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22822echo "$as_me: creating $CONFIG_STATUS" >&6;}
22823cat >$CONFIG_STATUS <<_ACEOF
22824#! $SHELL
22825# Generated by $as_me.
22826# Run this file to recreate the current configuration.
22827# Compiler output produced by configure, useful for debugging
22828# configure, is in config.log if it exists.
22829
22830debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022831ac_cs_recheck=false
22832ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022833SHELL=\${CONFIG_SHELL-$SHELL}
22834_ACEOF
22835
22836cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022837## --------------------- ##
22838## M4sh Initialization. ##
22839## --------------------- ##
22840
22841# Be Bourne compatible
22842if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22843 emulate sh
22844 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022845 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22846 # is contrary to our usage. Disable this feature.
22847 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000022848elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22849 set -o posix
22850fi
22851
John Criswell7a73b802003-06-30 21:59:07 +000022852# Support unset when possible.
22853if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22854 as_unset=unset
22855else
22856 as_unset=false
22857fi
22858
John Criswell0c38eaf2003-09-10 15:17:25 +000022859
22860# Work around bugs in pre-3.0 UWIN ksh.
22861$as_unset ENV MAIL MAILPATH
22862PS1='$ '
22863PS2='> '
22864PS4='+ '
22865
22866# NLS nuisances.
22867for as_var in \
22868 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22869 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22870 LC_TELEPHONE LC_TIME
22871do
22872 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22873 eval $as_var=C; export $as_var
22874 else
22875 $as_unset $as_var
22876 fi
22877done
22878
22879# Required to use basename.
22880if expr a : '\(a\)' >/dev/null 2>&1; then
22881 as_expr=expr
22882else
22883 as_expr=false
22884fi
22885
22886if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22887 as_basename=basename
22888else
22889 as_basename=false
22890fi
John Criswell7a73b802003-06-30 21:59:07 +000022891
22892
22893# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000022894as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000022895$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22896 X"$0" : 'X\(//\)$' \| \
22897 X"$0" : 'X\(/\)$' \| \
22898 . : '\(.\)' 2>/dev/null ||
22899echo X/"$0" |
22900 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22901 /^X\/\(\/\/\)$/{ s//\1/; q; }
22902 /^X\/\(\/\).*/{ s//\1/; q; }
22903 s/.*/./; q'`
22904
John Criswell0c38eaf2003-09-10 15:17:25 +000022905
John Criswell7a73b802003-06-30 21:59:07 +000022906# PATH needs CR, and LINENO needs CR and PATH.
22907# Avoid depending upon Character Ranges.
22908as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22909as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22910as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22911as_cr_digits='0123456789'
22912as_cr_alnum=$as_cr_Letters$as_cr_digits
22913
22914# The user is always right.
22915if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022916 echo "#! /bin/sh" >conf$$.sh
22917 echo "exit 0" >>conf$$.sh
22918 chmod +x conf$$.sh
22919 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022920 PATH_SEPARATOR=';'
22921 else
22922 PATH_SEPARATOR=:
22923 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022924 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000022925fi
22926
22927
22928 as_lineno_1=$LINENO
22929 as_lineno_2=$LINENO
22930 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22931 test "x$as_lineno_1" != "x$as_lineno_2" &&
22932 test "x$as_lineno_3" = "x$as_lineno_2" || {
22933 # Find who we are. Look in the path if we contain no path at all
22934 # relative or not.
22935 case $0 in
22936 *[\\/]* ) as_myself=$0 ;;
22937 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22938for as_dir in $PATH
22939do
22940 IFS=$as_save_IFS
22941 test -z "$as_dir" && as_dir=.
22942 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22943done
22944
22945 ;;
22946 esac
22947 # We did not find ourselves, most probably we were run as `sh COMMAND'
22948 # in which case we are not to be found in the path.
22949 if test "x$as_myself" = x; then
22950 as_myself=$0
22951 fi
22952 if test ! -f "$as_myself"; then
22953 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22954echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22955 { (exit 1); exit 1; }; }
22956 fi
22957 case $CONFIG_SHELL in
22958 '')
22959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22960for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22961do
22962 IFS=$as_save_IFS
22963 test -z "$as_dir" && as_dir=.
22964 for as_base in sh bash ksh sh5; do
22965 case $as_dir in
22966 /*)
22967 if ("$as_dir/$as_base" -c '
22968 as_lineno_1=$LINENO
22969 as_lineno_2=$LINENO
22970 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22971 test "x$as_lineno_1" != "x$as_lineno_2" &&
22972 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022973 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22974 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000022975 CONFIG_SHELL=$as_dir/$as_base
22976 export CONFIG_SHELL
22977 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22978 fi;;
22979 esac
22980 done
22981done
22982;;
22983 esac
22984
22985 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22986 # uniformly replaced by the line number. The first 'sed' inserts a
22987 # line-number line before each line; the second 'sed' does the real
22988 # work. The second script uses 'N' to pair each line-number line
22989 # with the numbered line, and appends trailing '-' during
22990 # substitution so that $LINENO is not a special case at line end.
22991 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22992 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22993 sed '=' <$as_myself |
22994 sed '
22995 N
22996 s,$,-,
22997 : loop
22998 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22999 t loop
23000 s,-$,,
23001 s,^['$as_cr_digits']*\n,,
23002 ' >$as_me.lineno &&
23003 chmod +x $as_me.lineno ||
23004 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23005echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23006 { (exit 1); exit 1; }; }
23007
23008 # Don't try to exec as it changes $[0], causing all sort of problems
23009 # (the dirname of $[0] is not the place where we might find the
23010 # original and so on. Autoconf is especially sensible to this).
23011 . ./$as_me.lineno
23012 # Exit status is that of the last command.
23013 exit
23014}
23015
23016
23017case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23018 *c*,-n*) ECHO_N= ECHO_C='
23019' ECHO_T=' ' ;;
23020 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23021 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23022esac
23023
23024if expr a : '\(a\)' >/dev/null 2>&1; then
23025 as_expr=expr
23026else
23027 as_expr=false
23028fi
23029
23030rm -f conf$$ conf$$.exe conf$$.file
23031echo >conf$$.file
23032if ln -s conf$$.file conf$$ 2>/dev/null; then
23033 # We could just check for DJGPP; but this test a) works b) is more generic
23034 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23035 if test -f conf$$.exe; then
23036 # Don't use ln at all; we don't have any links
23037 as_ln_s='cp -p'
23038 else
23039 as_ln_s='ln -s'
23040 fi
23041elif ln conf$$.file conf$$ 2>/dev/null; then
23042 as_ln_s=ln
23043else
23044 as_ln_s='cp -p'
23045fi
23046rm -f conf$$ conf$$.exe conf$$.file
23047
John Criswell0c38eaf2003-09-10 15:17:25 +000023048if mkdir -p . 2>/dev/null; then
23049 as_mkdir_p=:
23050else
23051 as_mkdir_p=false
23052fi
23053
John Criswell7a73b802003-06-30 21:59:07 +000023054as_executable_p="test -f"
23055
23056# Sed expression to map a string onto a valid CPP name.
23057as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23058
23059# Sed expression to map a string onto a valid variable name.
23060as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23061
23062
23063# IFS
23064# We need space, tab and new line, in precisely that order.
23065as_nl='
23066'
23067IFS=" $as_nl"
23068
23069# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000023070$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023071
23072exec 6>&1
23073
23074# Open the log real soon, to keep \$[0] and so on meaningful, and to
23075# report actual input values of CONFIG_FILES etc. instead of their
23076# values after options handling. Logging --version etc. is OK.
23077exec 5>>config.log
23078{
23079 echo
23080 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23081## Running $as_me. ##
23082_ASBOX
23083} >&5
23084cat >&5 <<_CSEOF
23085
23086This file was extended by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000023087generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023088
23089 CONFIG_FILES = $CONFIG_FILES
23090 CONFIG_HEADERS = $CONFIG_HEADERS
23091 CONFIG_LINKS = $CONFIG_LINKS
23092 CONFIG_COMMANDS = $CONFIG_COMMANDS
23093 $ $0 $@
23094
23095_CSEOF
23096echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23097echo >&5
23098_ACEOF
23099
23100# Files that config.status was made for.
23101if test -n "$ac_config_files"; then
23102 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23103fi
23104
23105if test -n "$ac_config_headers"; then
23106 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23107fi
23108
23109if test -n "$ac_config_links"; then
23110 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23111fi
23112
23113if test -n "$ac_config_commands"; then
23114 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23115fi
23116
23117cat >>$CONFIG_STATUS <<\_ACEOF
23118
23119ac_cs_usage="\
23120\`$as_me' instantiates files from templates according to the
23121current configuration.
23122
23123Usage: $0 [OPTIONS] [FILE]...
23124
23125 -h, --help print this help, then exit
23126 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000023127 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023128 -d, --debug don't remove temporary files
23129 --recheck update $as_me by reconfiguring in the same conditions
23130 --file=FILE[:TEMPLATE]
23131 instantiate the configuration file FILE
23132 --header=FILE[:TEMPLATE]
23133 instantiate the configuration header FILE
23134
23135Configuration files:
23136$config_files
23137
23138Configuration headers:
23139$config_headers
23140
John Criswellc764fbc2003-09-06 15:17:13 +000023141Configuration commands:
23142$config_commands
23143
John Criswell7a73b802003-06-30 21:59:07 +000023144Report bugs to <bug-autoconf@gnu.org>."
23145_ACEOF
23146
23147cat >>$CONFIG_STATUS <<_ACEOF
23148ac_cs_version="\\
23149[LLVM] config.status [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +000023150configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023151 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23152
23153Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23154Free Software Foundation, Inc.
23155This config.status script is free software; the Free Software Foundation
23156gives unlimited permission to copy, distribute and modify it."
23157srcdir=$srcdir
23158INSTALL="$INSTALL"
23159_ACEOF
23160
23161cat >>$CONFIG_STATUS <<\_ACEOF
23162# If no file are specified by the user, then we need to provide default
23163# value. By we need to know if files were specified by the user.
23164ac_need_defaults=:
23165while test $# != 0
23166do
23167 case $1 in
23168 --*=*)
23169 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23170 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023171 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023172 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023173 -*)
23174 ac_option=$1
23175 ac_optarg=$2
23176 ac_shift=shift
23177 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023178 *) # This is not an option, so the user has probably given explicit
23179 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000023180 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023181 ac_need_defaults=false;;
23182 esac
23183
John Criswell0c38eaf2003-09-10 15:17:25 +000023184 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023185 # Handling of the options.
23186_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000023187cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023188 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23189 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023190 --version | --vers* | -V )
23191 echo "$ac_cs_version"; exit 0 ;;
23192 --he | --h)
23193 # Conflict between --help and --header
23194 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23195Try \`$0 --help' for more information." >&5
23196echo "$as_me: error: ambiguous option: $1
23197Try \`$0 --help' for more information." >&2;}
23198 { (exit 1); exit 1; }; };;
23199 --help | --hel | -h )
23200 echo "$ac_cs_usage"; exit 0 ;;
23201 --debug | --d* | -d )
23202 debug=: ;;
23203 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023204 $ac_shift
23205 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023206 ac_need_defaults=false;;
23207 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023208 $ac_shift
23209 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023210 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23212 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23213 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023214
23215 # This is an error.
23216 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23217Try \`$0 --help' for more information." >&5
23218echo "$as_me: error: unrecognized option: $1
23219Try \`$0 --help' for more information." >&2;}
23220 { (exit 1); exit 1; }; } ;;
23221
23222 *) ac_config_targets="$ac_config_targets $1" ;;
23223
23224 esac
23225 shift
23226done
23227
John Criswell0c38eaf2003-09-10 15:17:25 +000023228ac_configure_extra_args=
23229
23230if $ac_cs_silent; then
23231 exec 6>/dev/null
23232 ac_configure_extra_args="$ac_configure_extra_args --silent"
23233fi
23234
23235_ACEOF
23236cat >>$CONFIG_STATUS <<_ACEOF
23237if \$ac_cs_recheck; then
23238 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23239 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23240fi
23241
John Criswell7a73b802003-06-30 21:59:07 +000023242_ACEOF
23243
John Criswellc764fbc2003-09-06 15:17:13 +000023244cat >>$CONFIG_STATUS <<_ACEOF
23245#
23246# INIT-COMMANDS section.
23247#
John Criswell7a73b802003-06-30 21:59:07 +000023248
John Criswellc764fbc2003-09-06 15:17:13 +000023249${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23250${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23251${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23252${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23253${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23254${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23255${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23256${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23257${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23258${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23259${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23260${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23261${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23262${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23263${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23264${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23265${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023266${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23267${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23268${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23269${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23270${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23271${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23272${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23273${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23274${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23275${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23276${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23277${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23278${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23279${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23280${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23281${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23282${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23283${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23284${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23285${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23286${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
23287${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23288${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23289${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23290${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
23291${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
23292${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23293${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23294${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23295${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23296${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23297${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23298${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23299${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23300${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23301${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23302${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23303${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23304${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23305${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23306${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23307${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23308${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23309${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23310${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23311${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23312${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23313${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23314${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23315${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23316${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23317${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23318${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23319${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23320${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23321${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23322${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23323${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23324${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23325${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23326${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23327${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23328${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23329${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23330${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23331${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23332${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Burg/Makefile`
23333${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Fhourstones/Makefile`
23334${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/Makefile`
23335${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/01-qbsort/Makefile`
23336${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/03-testtrie/Makefile`
23337${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/04-bisect/Makefile`
23338${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/05-eks/Makefile`
23339${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/08-main/Makefile`
23340${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/09-vor/Makefile`
23341${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/12-IOtest/Makefile`
23342${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/15-trie/Makefile`
23343${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/17-bintr/Makefile`
23344${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/18-imp/Makefile`
23345${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/Makefile`
23346${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/bh/Makefile`
23347${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/bisort/Makefile`
23348${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/em3d/Makefile`
23349${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/health/Makefile`
23350${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/mst/Makefile`
23351${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/perimeter/Makefile`
23352${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/power/Makefile`
23353${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/treeadd/Makefile`
23354${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/tsp/Makefile`
23355${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/voronoi/Makefile`
23356${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/OptimizerEval/Makefile`
23357${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/Makefile`
23358${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/anagram/Makefile`
23359${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/bc/Makefile`
23360${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/ft/Makefile`
23361${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/ks/Makefile`
23362${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/yacr2/Makefile`
23363${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/aha/Makefile`
23364${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/llubenchmark/Makefile`
23365${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/sgefa/Makefile`
23366${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/sim/Makefile`
23367${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23368${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23369${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23370${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23371${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023372${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23373${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23374${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
John Criswellffaaf3b2003-09-10 18:38:44 +000023375${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23376${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23377${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23378${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23379${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23380${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023381${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023382${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
23383${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23384${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23385${srcdir}/autoconf/mkinstalldirs `dirname tools/as/Makefile`
23386${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23387${srcdir}/autoconf/mkinstalldirs `dirname tools/dis/Makefile`
23388${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23389${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23390${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23391${srcdir}/autoconf/mkinstalldirs `dirname tools/link/Makefile`
23392${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23393${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23394${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23395${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23396${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
23397${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23398${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23399${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23400${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23401${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23402${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23403${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23404${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23405${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23406${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23407${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23408${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23409${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23410${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23411${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23412${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23413${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23414${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23415
23416_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023417
23418
23419
23420cat >>$CONFIG_STATUS <<\_ACEOF
23421for ac_config_target in $ac_config_targets
23422do
23423 case "$ac_config_target" in
23424 # Handling of arguments.
23425 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023426 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23427 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23428 "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23429 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23430 "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23431 "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23432 "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23433 "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23434 "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23435 "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23436 "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23437 "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23438 "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23439 "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23440 "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23441 "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23442 "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023443 "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23444 "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23445 "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23446 "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23447 "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23448 "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23449 "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23450 "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23451 "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23452 "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23453 "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23454 "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23455 "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23456 "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23457 "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23458 "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23459 "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23460 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23461 "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23462 "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23463 "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
23464 "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23465 "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23466 "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23467 "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
23468 "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
23469 "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23470 "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23471 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23472 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23473 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23474 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23475 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23476 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23477 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23478 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23479 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23480 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23481 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23482 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23483 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23484 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23485 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23486 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23487 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23488 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23489 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23490 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23491 "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23492 "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23493 "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23494 "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23495 "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23496 "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23497 "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23498 "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23499 "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23500 "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23501 "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23502 "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23503 "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23504 "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23505 "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23506 "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23507 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23508 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23509 "test/Programs/MultiSource/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Burg/Makefile" ;;
23510 "test/Programs/MultiSource/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Fhourstones/Makefile" ;;
23511 "test/Programs/MultiSource/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/Makefile" ;;
23512 "test/Programs/MultiSource/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/01-qbsort/Makefile" ;;
23513 "test/Programs/MultiSource/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/03-testtrie/Makefile" ;;
23514 "test/Programs/MultiSource/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/04-bisect/Makefile" ;;
23515 "test/Programs/MultiSource/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/05-eks/Makefile" ;;
23516 "test/Programs/MultiSource/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/08-main/Makefile" ;;
23517 "test/Programs/MultiSource/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/09-vor/Makefile" ;;
23518 "test/Programs/MultiSource/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/12-IOtest/Makefile" ;;
23519 "test/Programs/MultiSource/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/15-trie/Makefile" ;;
23520 "test/Programs/MultiSource/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/17-bintr/Makefile" ;;
23521 "test/Programs/MultiSource/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/18-imp/Makefile" ;;
23522 "test/Programs/MultiSource/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/Makefile" ;;
23523 "test/Programs/MultiSource/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/bh/Makefile" ;;
23524 "test/Programs/MultiSource/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/bisort/Makefile" ;;
23525 "test/Programs/MultiSource/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/em3d/Makefile" ;;
23526 "test/Programs/MultiSource/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/health/Makefile" ;;
23527 "test/Programs/MultiSource/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/mst/Makefile" ;;
23528 "test/Programs/MultiSource/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/perimeter/Makefile" ;;
23529 "test/Programs/MultiSource/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/power/Makefile" ;;
23530 "test/Programs/MultiSource/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/treeadd/Makefile" ;;
23531 "test/Programs/MultiSource/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/tsp/Makefile" ;;
23532 "test/Programs/MultiSource/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/voronoi/Makefile" ;;
23533 "test/Programs/MultiSource/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/OptimizerEval/Makefile" ;;
23534 "test/Programs/MultiSource/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/Makefile" ;;
23535 "test/Programs/MultiSource/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/anagram/Makefile" ;;
23536 "test/Programs/MultiSource/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/bc/Makefile" ;;
23537 "test/Programs/MultiSource/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/ft/Makefile" ;;
23538 "test/Programs/MultiSource/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/ks/Makefile" ;;
23539 "test/Programs/MultiSource/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/yacr2/Makefile" ;;
23540 "test/Programs/MultiSource/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/aha/Makefile" ;;
23541 "test/Programs/MultiSource/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/llubenchmark/Makefile" ;;
23542 "test/Programs/MultiSource/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/sgefa/Makefile" ;;
23543 "test/Programs/MultiSource/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/sim/Makefile" ;;
23544 "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23545 "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23546 "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23547 "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23548 "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023549 "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23550 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23551 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000023552 "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23553 "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23554 "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23555 "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23556 "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23557 "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023558 "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023559 "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
23560 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23561 "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23562 "tools/as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/as/Makefile" ;;
23563 "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23564 "tools/dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/dis/Makefile" ;;
23565 "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23566 "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23567 "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23568 "tools/link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/link/Makefile" ;;
23569 "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23570 "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23571 "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23572 "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
23573 "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
23574 "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23575 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23576 "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23577 "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23578 "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
23579 "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23580 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23581 "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23582 "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23583 "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23584 "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23585 "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23586 "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23587 "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23588 "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23589 "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23590 "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23591 "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000023592 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23593 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23594echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23595 { (exit 1); exit 1; }; };;
23596 esac
23597done
23598
23599# If the user did not use the arguments to specify the items to instantiate,
23600# then the envvar interface is used. Set only those that are not.
23601# We use the long form for the default assignment because of an extremely
23602# bizarre bug on SunOS 4.1.3.
23603if $ac_need_defaults; then
23604 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23605 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023606 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023607fi
23608
John Criswell0c38eaf2003-09-10 15:17:25 +000023609# Have a temporary directory for convenience. Make it in the build tree
23610# simply because there is no reason to put it here, and in addition,
23611# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000023612# Create a temporary directory, and hook for its removal unless debugging.
23613$debug ||
23614{
23615 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23616 trap '{ (exit 1); exit 1; }' 1 2 13 15
23617}
23618
23619# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023620
John Criswell7a73b802003-06-30 21:59:07 +000023621{
John Criswell0c38eaf2003-09-10 15:17:25 +000023622 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023623 test -n "$tmp" && test -d "$tmp"
23624} ||
23625{
John Criswell0c38eaf2003-09-10 15:17:25 +000023626 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000023627 (umask 077 && mkdir $tmp)
23628} ||
23629{
John Criswell0c38eaf2003-09-10 15:17:25 +000023630 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000023631 { (exit 1); exit 1; }
23632}
23633
23634_ACEOF
23635
23636cat >>$CONFIG_STATUS <<_ACEOF
23637
23638#
23639# CONFIG_FILES section.
23640#
23641
23642# No need to generate the scripts if there are no CONFIG_FILES.
23643# This happens for instance when ./config.status config.h
23644if test -n "\$CONFIG_FILES"; then
23645 # Protect against being on the right side of a sed subst in config.status.
23646 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23647 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23648s,@SHELL@,$SHELL,;t t
23649s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23650s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23651s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23652s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23653s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23654s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23655s,@exec_prefix@,$exec_prefix,;t t
23656s,@prefix@,$prefix,;t t
23657s,@program_transform_name@,$program_transform_name,;t t
23658s,@bindir@,$bindir,;t t
23659s,@sbindir@,$sbindir,;t t
23660s,@libexecdir@,$libexecdir,;t t
23661s,@datadir@,$datadir,;t t
23662s,@sysconfdir@,$sysconfdir,;t t
23663s,@sharedstatedir@,$sharedstatedir,;t t
23664s,@localstatedir@,$localstatedir,;t t
23665s,@libdir@,$libdir,;t t
23666s,@includedir@,$includedir,;t t
23667s,@oldincludedir@,$oldincludedir,;t t
23668s,@infodir@,$infodir,;t t
23669s,@mandir@,$mandir,;t t
23670s,@build_alias@,$build_alias,;t t
23671s,@host_alias@,$host_alias,;t t
23672s,@target_alias@,$target_alias,;t t
23673s,@DEFS@,$DEFS,;t t
23674s,@ECHO_C@,$ECHO_C,;t t
23675s,@ECHO_N@,$ECHO_N,;t t
23676s,@ECHO_T@,$ECHO_T,;t t
23677s,@LIBS@,$LIBS,;t t
23678s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23679s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23680s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23681s,@build@,$build,;t t
23682s,@build_cpu@,$build_cpu,;t t
23683s,@build_vendor@,$build_vendor,;t t
23684s,@build_os@,$build_os,;t t
23685s,@host@,$host,;t t
23686s,@host_cpu@,$host_cpu,;t t
23687s,@host_vendor@,$host_vendor,;t t
23688s,@host_os@,$host_os,;t t
23689s,@target@,$target,;t t
23690s,@target_cpu@,$target_cpu,;t t
23691s,@target_vendor@,$target_vendor,;t t
23692s,@target_os@,$target_os,;t t
23693s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023694s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000023695s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023696s,@CXX@,$CXX,;t t
23697s,@CXXFLAGS@,$CXXFLAGS,;t t
23698s,@LDFLAGS@,$LDFLAGS,;t t
23699s,@CPPFLAGS@,$CPPFLAGS,;t t
23700s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23701s,@EXEEXT@,$EXEEXT,;t t
23702s,@OBJEXT@,$OBJEXT,;t t
23703s,@CC@,$CC,;t t
23704s,@CFLAGS@,$CFLAGS,;t t
23705s,@ac_ct_CC@,$ac_ct_CC,;t t
23706s,@CPP@,$CPP,;t t
23707s,@ifGNUmake@,$ifGNUmake,;t t
23708s,@LEX@,$LEX,;t t
23709s,@LEXLIB@,$LEXLIB,;t t
23710s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23711s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023712s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023713s,@LN_S@,$LN_S,;t t
23714s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023715s,@AR@,$AR,;t t
23716s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023717s,@RANLIB@,$RANLIB,;t t
23718s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23719s,@STRIP@,$STRIP,;t t
23720s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023721s,@CXXCPP@,$CXXCPP,;t t
23722s,@F77@,$F77,;t t
23723s,@FFLAGS@,$FFLAGS,;t t
23724s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023725s,@LIBTOOL@,$LIBTOOL,;t t
John Criswellde00db22003-08-25 16:49:54 +000023726s,@RPWD@,$RPWD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023727s,@SED@,$SED,;t t
23728s,@RM@,$RM,;t t
23729s,@MKDIR@,$MKDIR,;t t
23730s,@DATE@,$DATE,;t t
23731s,@MV@,$MV,;t t
23732s,@DOT@,$DOT,;t t
23733s,@ETAGS@,$ETAGS,;t t
23734s,@PURIFY@,$PURIFY,;t t
John Criswellde00db22003-08-25 16:49:54 +000023735s,@PYTHON@,$PYTHON,;t t
23736s,@QMTEST@,$QMTEST,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023737s,@ALLOCA@,$ALLOCA,;t t
23738s,@LIBOBJS@,$LIBOBJS,;t t
23739s,@MMAP_FILE@,$MMAP_FILE,;t t
23740s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023741s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23742s,@USE_SPEC@,$USE_SPEC,;t t
23743s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000023744s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023745s,@JIT@,$JIT,;t t
23746s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23747s,@BCR@,$BCR,;t t
23748s,@PAPIDIR@,$PAPIDIR,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000023749s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023750CEOF
23751
23752_ACEOF
23753
23754 cat >>$CONFIG_STATUS <<\_ACEOF
23755 # Split the substitutions into bite-sized pieces for seds with
23756 # small command number limits, like on Digital OSF/1 and HP-UX.
23757 ac_max_sed_lines=48
23758 ac_sed_frag=1 # Number of current file.
23759 ac_beg=1 # First line for current file.
23760 ac_end=$ac_max_sed_lines # Line after last line for current file.
23761 ac_more_lines=:
23762 ac_sed_cmds=
23763 while $ac_more_lines; do
23764 if test $ac_beg -gt 1; then
23765 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23766 else
23767 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23768 fi
23769 if test ! -s $tmp/subs.frag; then
23770 ac_more_lines=false
23771 else
23772 # The purpose of the label and of the branching condition is to
23773 # speed up the sed processing (if there are no `@' at all, there
23774 # is no need to browse any of the substitutions).
23775 # These are the two extra sed commands mentioned above.
23776 (echo ':t
23777 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23778 if test -z "$ac_sed_cmds"; then
23779 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23780 else
23781 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23782 fi
23783 ac_sed_frag=`expr $ac_sed_frag + 1`
23784 ac_beg=$ac_end
23785 ac_end=`expr $ac_end + $ac_max_sed_lines`
23786 fi
23787 done
23788 if test -z "$ac_sed_cmds"; then
23789 ac_sed_cmds=cat
23790 fi
23791fi # test -n "$CONFIG_FILES"
23792
23793_ACEOF
23794cat >>$CONFIG_STATUS <<\_ACEOF
23795for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23796 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23797 case $ac_file in
23798 - | *:- | *:-:* ) # input from stdin
23799 cat >$tmp/stdin
23800 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23801 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23802 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23803 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23804 * ) ac_file_in=$ac_file.in ;;
23805 esac
23806
23807 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23808 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23809$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23810 X"$ac_file" : 'X\(//\)[^/]' \| \
23811 X"$ac_file" : 'X\(//\)$' \| \
23812 X"$ac_file" : 'X\(/\)' \| \
23813 . : '\(.\)' 2>/dev/null ||
23814echo X"$ac_file" |
23815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23816 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23817 /^X\(\/\/\)$/{ s//\1/; q; }
23818 /^X\(\/\).*/{ s//\1/; q; }
23819 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023820 { if $as_mkdir_p; then
23821 mkdir -p "$ac_dir"
23822 else
23823 as_dir="$ac_dir"
23824 as_dirs=
23825 while test ! -d "$as_dir"; do
23826 as_dirs="$as_dir $as_dirs"
23827 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23828$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23829 X"$as_dir" : 'X\(//\)[^/]' \| \
23830 X"$as_dir" : 'X\(//\)$' \| \
23831 X"$as_dir" : 'X\(/\)' \| \
23832 . : '\(.\)' 2>/dev/null ||
23833echo X"$as_dir" |
23834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23835 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23836 /^X\(\/\/\)$/{ s//\1/; q; }
23837 /^X\(\/\).*/{ s//\1/; q; }
23838 s/.*/./; q'`
23839 done
23840 test ! -n "$as_dirs" || mkdir $as_dirs
23841 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23842echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23843 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023844
23845 ac_builddir=.
23846
23847if test "$ac_dir" != .; then
23848 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23849 # A "../" for each directory in $ac_dir_suffix.
23850 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23851else
23852 ac_dir_suffix= ac_top_builddir=
23853fi
23854
23855case $srcdir in
23856 .) # No --srcdir option. We are building in place.
23857 ac_srcdir=.
23858 if test -z "$ac_top_builddir"; then
23859 ac_top_srcdir=.
23860 else
23861 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23862 fi ;;
23863 [\\/]* | ?:[\\/]* ) # Absolute path.
23864 ac_srcdir=$srcdir$ac_dir_suffix;
23865 ac_top_srcdir=$srcdir ;;
23866 *) # Relative path.
23867 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23868 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23869esac
23870# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23871# absolute.
23872ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000023873ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000023874ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23875ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23876
23877
23878 case $INSTALL in
23879 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23880 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23881 esac
23882
23883 if test x"$ac_file" != x-; then
23884 { echo "$as_me:$LINENO: creating $ac_file" >&5
23885echo "$as_me: creating $ac_file" >&6;}
23886 rm -f "$ac_file"
23887 fi
23888 # Let's still pretend it is `configure' which instantiates (i.e., don't
23889 # use $as_me), people would be surprised to read:
23890 # /* config.h. Generated by config.status. */
23891 if test x"$ac_file" = x-; then
23892 configure_input=
23893 else
23894 configure_input="$ac_file. "
23895 fi
23896 configure_input=$configure_input"Generated from `echo $ac_file_in |
23897 sed 's,.*/,,'` by configure."
23898
23899 # First look for the input files in the build tree, otherwise in the
23900 # src tree.
23901 ac_file_inputs=`IFS=:
23902 for f in $ac_file_in; do
23903 case $f in
23904 -) echo $tmp/stdin ;;
23905 [\\/$]*)
23906 # Absolute (can't be DOS-style, as IFS=:)
23907 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23908echo "$as_me: error: cannot find input file: $f" >&2;}
23909 { (exit 1); exit 1; }; }
23910 echo $f;;
23911 *) # Relative
23912 if test -f "$f"; then
23913 # Build tree
23914 echo $f
23915 elif test -f "$srcdir/$f"; then
23916 # Source tree
23917 echo $srcdir/$f
23918 else
23919 # /dev/null tree
23920 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23921echo "$as_me: error: cannot find input file: $f" >&2;}
23922 { (exit 1); exit 1; }; }
23923 fi;;
23924 esac
23925 done` || { (exit 1); exit 1; }
23926_ACEOF
23927cat >>$CONFIG_STATUS <<_ACEOF
23928 sed "$ac_vpsub
23929$extrasub
23930_ACEOF
23931cat >>$CONFIG_STATUS <<\_ACEOF
23932:t
23933/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23934s,@configure_input@,$configure_input,;t t
23935s,@srcdir@,$ac_srcdir,;t t
23936s,@abs_srcdir@,$ac_abs_srcdir,;t t
23937s,@top_srcdir@,$ac_top_srcdir,;t t
23938s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23939s,@builddir@,$ac_builddir,;t t
23940s,@abs_builddir@,$ac_abs_builddir,;t t
23941s,@top_builddir@,$ac_top_builddir,;t t
23942s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23943s,@INSTALL@,$ac_INSTALL,;t t
23944" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23945 rm -f $tmp/stdin
23946 if test x"$ac_file" != x-; then
23947 mv $tmp/out $ac_file
23948 else
23949 cat $tmp/out
23950 rm -f $tmp/out
23951 fi
23952
23953done
23954_ACEOF
23955cat >>$CONFIG_STATUS <<\_ACEOF
23956
23957#
23958# CONFIG_HEADER section.
23959#
23960
23961# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23962# NAME is the cpp macro being defined and VALUE is the value it is being given.
23963#
23964# ac_d sets the value in "#define NAME VALUE" lines.
23965ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23966ac_dB='[ ].*$,\1#\2'
23967ac_dC=' '
23968ac_dD=',;t'
23969# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23970ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23971ac_uB='$,\1#\2define\3'
23972ac_uC=' '
23973ac_uD=',;t'
23974
23975for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23976 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23977 case $ac_file in
23978 - | *:- | *:-:* ) # input from stdin
23979 cat >$tmp/stdin
23980 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23981 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23982 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23983 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23984 * ) ac_file_in=$ac_file.in ;;
23985 esac
23986
23987 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23988echo "$as_me: creating $ac_file" >&6;}
23989
23990 # First look for the input files in the build tree, otherwise in the
23991 # src tree.
23992 ac_file_inputs=`IFS=:
23993 for f in $ac_file_in; do
23994 case $f in
23995 -) echo $tmp/stdin ;;
23996 [\\/$]*)
23997 # Absolute (can't be DOS-style, as IFS=:)
23998 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23999echo "$as_me: error: cannot find input file: $f" >&2;}
24000 { (exit 1); exit 1; }; }
24001 echo $f;;
24002 *) # Relative
24003 if test -f "$f"; then
24004 # Build tree
24005 echo $f
24006 elif test -f "$srcdir/$f"; then
24007 # Source tree
24008 echo $srcdir/$f
24009 else
24010 # /dev/null tree
24011 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24012echo "$as_me: error: cannot find input file: $f" >&2;}
24013 { (exit 1); exit 1; }; }
24014 fi;;
24015 esac
24016 done` || { (exit 1); exit 1; }
24017 # Remove the trailing spaces.
24018 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24019
24020_ACEOF
24021
24022# Transform confdefs.h into two sed scripts, `conftest.defines' and
24023# `conftest.undefs', that substitutes the proper values into
24024# config.h.in to produce config.h. The first handles `#define'
24025# templates, and the second `#undef' templates.
24026# And first: Protect against being on the right side of a sed subst in
24027# config.status. Protect against being in an unquoted here document
24028# in config.status.
24029rm -f conftest.defines conftest.undefs
24030# Using a here document instead of a string reduces the quoting nightmare.
24031# Putting comments in sed scripts is not portable.
24032#
24033# `end' is used to avoid that the second main sed command (meant for
24034# 0-ary CPP macros) applies to n-ary macro definitions.
24035# See the Autoconf documentation for `clear'.
24036cat >confdef2sed.sed <<\_ACEOF
24037s/[\\&,]/\\&/g
24038s,[\\$`],\\&,g
24039t clear
24040: clear
24041s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24042t end
24043s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24044: end
24045_ACEOF
24046# If some macros were called several times there might be several times
24047# the same #defines, which is useless. Nevertheless, we may not want to
24048# sort them, since we want the *last* AC-DEFINE to be honored.
24049uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24050sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24051rm -f confdef2sed.sed
24052
24053# This sed command replaces #undef with comments. This is necessary, for
24054# example, in the case of _POSIX_SOURCE, which is predefined and required
24055# on some systems where configure will not decide to define it.
24056cat >>conftest.undefs <<\_ACEOF
24057s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24058_ACEOF
24059
24060# Break up conftest.defines because some shells have a limit on the size
24061# of here documents, and old seds have small limits too (100 cmds).
24062echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000024063echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024064echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24065echo ' :' >>$CONFIG_STATUS
24066rm -f conftest.tail
24067while grep . conftest.defines >/dev/null
24068do
24069 # Write a limited-size here document to $tmp/defines.sed.
24070 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24071 # Speed up: don't consider the non `#define' lines.
24072 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24073 # Work around the forget-to-reset-the-flag bug.
24074 echo 't clr' >>$CONFIG_STATUS
24075 echo ': clr' >>$CONFIG_STATUS
24076 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24077 echo 'CEOF
24078 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24079 rm -f $tmp/in
24080 mv $tmp/out $tmp/in
24081' >>$CONFIG_STATUS
24082 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24083 rm -f conftest.defines
24084 mv conftest.tail conftest.defines
24085done
24086rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000024087echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024088echo >>$CONFIG_STATUS
24089
24090# Break up conftest.undefs because some shells have a limit on the size
24091# of here documents, and old seds have small limits too (100 cmds).
24092echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24093rm -f conftest.tail
24094while grep . conftest.undefs >/dev/null
24095do
24096 # Write a limited-size here document to $tmp/undefs.sed.
24097 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24098 # Speed up: don't consider the non `#undef'
24099 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24100 # Work around the forget-to-reset-the-flag bug.
24101 echo 't clr' >>$CONFIG_STATUS
24102 echo ': clr' >>$CONFIG_STATUS
24103 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24104 echo 'CEOF
24105 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24106 rm -f $tmp/in
24107 mv $tmp/out $tmp/in
24108' >>$CONFIG_STATUS
24109 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24110 rm -f conftest.undefs
24111 mv conftest.tail conftest.undefs
24112done
24113rm -f conftest.undefs
24114
24115cat >>$CONFIG_STATUS <<\_ACEOF
24116 # Let's still pretend it is `configure' which instantiates (i.e., don't
24117 # use $as_me), people would be surprised to read:
24118 # /* config.h. Generated by config.status. */
24119 if test x"$ac_file" = x-; then
24120 echo "/* Generated by configure. */" >$tmp/config.h
24121 else
24122 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24123 fi
24124 cat $tmp/in >>$tmp/config.h
24125 rm -f $tmp/in
24126 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024127 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024128 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24129echo "$as_me: $ac_file is unchanged" >&6;}
24130 else
24131 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24132$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24133 X"$ac_file" : 'X\(//\)[^/]' \| \
24134 X"$ac_file" : 'X\(//\)$' \| \
24135 X"$ac_file" : 'X\(/\)' \| \
24136 . : '\(.\)' 2>/dev/null ||
24137echo X"$ac_file" |
24138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24139 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24140 /^X\(\/\/\)$/{ s//\1/; q; }
24141 /^X\(\/\).*/{ s//\1/; q; }
24142 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024143 { if $as_mkdir_p; then
24144 mkdir -p "$ac_dir"
24145 else
24146 as_dir="$ac_dir"
24147 as_dirs=
24148 while test ! -d "$as_dir"; do
24149 as_dirs="$as_dir $as_dirs"
24150 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24151$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24152 X"$as_dir" : 'X\(//\)[^/]' \| \
24153 X"$as_dir" : 'X\(//\)$' \| \
24154 X"$as_dir" : 'X\(/\)' \| \
24155 . : '\(.\)' 2>/dev/null ||
24156echo X"$as_dir" |
24157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24158 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24159 /^X\(\/\/\)$/{ s//\1/; q; }
24160 /^X\(\/\).*/{ s//\1/; q; }
24161 s/.*/./; q'`
24162 done
24163 test ! -n "$as_dirs" || mkdir $as_dirs
24164 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24165echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24166 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024167
24168 rm -f $ac_file
24169 mv $tmp/config.h $ac_file
24170 fi
24171 else
24172 cat $tmp/config.h
24173 rm -f $tmp/config.h
24174 fi
24175done
24176_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000024177cat >>$CONFIG_STATUS <<\_ACEOF
24178
24179#
24180# CONFIG_COMMANDS section.
24181#
24182for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24183 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24184 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24185 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24186$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24187 X"$ac_dest" : 'X\(//\)[^/]' \| \
24188 X"$ac_dest" : 'X\(//\)$' \| \
24189 X"$ac_dest" : 'X\(/\)' \| \
24190 . : '\(.\)' 2>/dev/null ||
24191echo X"$ac_dest" |
24192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24193 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24194 /^X\(\/\/\)$/{ s//\1/; q; }
24195 /^X\(\/\).*/{ s//\1/; q; }
24196 s/.*/./; q'`
24197 ac_builddir=.
24198
24199if test "$ac_dir" != .; then
24200 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24201 # A "../" for each directory in $ac_dir_suffix.
24202 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24203else
24204 ac_dir_suffix= ac_top_builddir=
24205fi
24206
24207case $srcdir in
24208 .) # No --srcdir option. We are building in place.
24209 ac_srcdir=.
24210 if test -z "$ac_top_builddir"; then
24211 ac_top_srcdir=.
24212 else
24213 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24214 fi ;;
24215 [\\/]* | ?:[\\/]* ) # Absolute path.
24216 ac_srcdir=$srcdir$ac_dir_suffix;
24217 ac_top_srcdir=$srcdir ;;
24218 *) # Relative path.
24219 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24220 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24221esac
24222# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24223# absolute.
24224ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024225ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000024226ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24227ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24228
24229
24230 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24231echo "$as_me: executing $ac_dest commands" >&6;}
24232 case $ac_dest in
24233 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24234 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24235 Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24236 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24237 lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24238 lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24239 lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24240 lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24241 lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24242 lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24243 lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24244 lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24245 lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24246 lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24247 lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24248 lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24249 lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024250 lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24251 lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24252 lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24253 lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24254 lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24255 lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24256 lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24257 lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24258 lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24259 lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24260 lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24261 lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24262 lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24263 lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24264 lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24265 lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24266 lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24267 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24268 runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24269 runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24270 runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
24271 runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24272 runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24273 runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24274 runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
24275 runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
24276 runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24277 runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24278 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24279 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24280 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24281 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24282 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24283 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24284 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24285 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24286 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24287 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24288 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24289 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24290 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24291 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24292 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24293 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24294 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24295 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24296 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24297 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24298 test/Programs/External/SPEC/CFP2000/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/Makefile test/Programs/External/SPEC/CFP2000/Makefile ;;
24299 test/Programs/External/SPEC/CFP2000/179.art/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/179.art/Makefile test/Programs/External/SPEC/CFP2000/179.art/Makefile ;;
24300 test/Programs/External/SPEC/CFP2000/183.equake/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/183.equake/Makefile test/Programs/External/SPEC/CFP2000/183.equake/Makefile ;;
24301 test/Programs/External/SPEC/CFP2000/188.ammp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/188.ammp/Makefile test/Programs/External/SPEC/CFP2000/188.ammp/Makefile ;;
24302 test/Programs/External/SPEC/CINT2000/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/Makefile test/Programs/External/SPEC/CINT2000/Makefile ;;
24303 test/Programs/External/SPEC/CINT2000/164.gzip/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/164.gzip/Makefile test/Programs/External/SPEC/CINT2000/164.gzip/Makefile ;;
24304 test/Programs/External/SPEC/CINT2000/175.vpr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/175.vpr/Makefile test/Programs/External/SPEC/CINT2000/175.vpr/Makefile ;;
24305 test/Programs/External/SPEC/CINT2000/176.gcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/176.gcc/Makefile test/Programs/External/SPEC/CINT2000/176.gcc/Makefile ;;
24306 test/Programs/External/SPEC/CINT2000/181.mcf/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/181.mcf/Makefile test/Programs/External/SPEC/CINT2000/181.mcf/Makefile ;;
24307 test/Programs/External/SPEC/CINT2000/186.crafty/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/186.crafty/Makefile test/Programs/External/SPEC/CINT2000/186.crafty/Makefile ;;
24308 test/Programs/External/SPEC/CINT2000/197.parser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/197.parser/Makefile test/Programs/External/SPEC/CINT2000/197.parser/Makefile ;;
24309 test/Programs/External/SPEC/CINT2000/254.gap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/254.gap/Makefile test/Programs/External/SPEC/CINT2000/254.gap/Makefile ;;
24310 test/Programs/External/SPEC/CINT2000/255.vortex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/255.vortex/Makefile test/Programs/External/SPEC/CINT2000/255.vortex/Makefile ;;
24311 test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile ;;
24312 test/Programs/External/SPEC/CINT2000/300.twolf/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/300.twolf/Makefile test/Programs/External/SPEC/CINT2000/300.twolf/Makefile ;;
24313 test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24314 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24315 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24316 test/Programs/MultiSource/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Burg/Makefile test/Programs/MultiSource/Burg/Makefile ;;
24317 test/Programs/MultiSource/Fhourstones/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Fhourstones/Makefile test/Programs/MultiSource/Fhourstones/Makefile ;;
24318 test/Programs/MultiSource/McCat/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/Makefile test/Programs/MultiSource/McCat/Makefile ;;
24319 test/Programs/MultiSource/McCat/01-qbsort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/01-qbsort/Makefile test/Programs/MultiSource/McCat/01-qbsort/Makefile ;;
24320 test/Programs/MultiSource/McCat/03-testtrie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/03-testtrie/Makefile test/Programs/MultiSource/McCat/03-testtrie/Makefile ;;
24321 test/Programs/MultiSource/McCat/04-bisect/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/04-bisect/Makefile test/Programs/MultiSource/McCat/04-bisect/Makefile ;;
24322 test/Programs/MultiSource/McCat/05-eks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/05-eks/Makefile test/Programs/MultiSource/McCat/05-eks/Makefile ;;
24323 test/Programs/MultiSource/McCat/08-main/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/08-main/Makefile test/Programs/MultiSource/McCat/08-main/Makefile ;;
24324 test/Programs/MultiSource/McCat/09-vor/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/09-vor/Makefile test/Programs/MultiSource/McCat/09-vor/Makefile ;;
24325 test/Programs/MultiSource/McCat/12-IOtest/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/12-IOtest/Makefile test/Programs/MultiSource/McCat/12-IOtest/Makefile ;;
24326 test/Programs/MultiSource/McCat/15-trie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/15-trie/Makefile test/Programs/MultiSource/McCat/15-trie/Makefile ;;
24327 test/Programs/MultiSource/McCat/17-bintr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/17-bintr/Makefile test/Programs/MultiSource/McCat/17-bintr/Makefile ;;
24328 test/Programs/MultiSource/McCat/18-imp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/18-imp/Makefile test/Programs/MultiSource/McCat/18-imp/Makefile ;;
24329 test/Programs/MultiSource/Olden/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/Makefile test/Programs/MultiSource/Olden/Makefile ;;
24330 test/Programs/MultiSource/Olden/bh/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/bh/Makefile test/Programs/MultiSource/Olden/bh/Makefile ;;
24331 test/Programs/MultiSource/Olden/bisort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/bisort/Makefile test/Programs/MultiSource/Olden/bisort/Makefile ;;
24332 test/Programs/MultiSource/Olden/em3d/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/em3d/Makefile test/Programs/MultiSource/Olden/em3d/Makefile ;;
24333 test/Programs/MultiSource/Olden/health/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/health/Makefile test/Programs/MultiSource/Olden/health/Makefile ;;
24334 test/Programs/MultiSource/Olden/mst/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/mst/Makefile test/Programs/MultiSource/Olden/mst/Makefile ;;
24335 test/Programs/MultiSource/Olden/perimeter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/perimeter/Makefile test/Programs/MultiSource/Olden/perimeter/Makefile ;;
24336 test/Programs/MultiSource/Olden/power/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/power/Makefile test/Programs/MultiSource/Olden/power/Makefile ;;
24337 test/Programs/MultiSource/Olden/treeadd/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/treeadd/Makefile test/Programs/MultiSource/Olden/treeadd/Makefile ;;
24338 test/Programs/MultiSource/Olden/tsp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/tsp/Makefile test/Programs/MultiSource/Olden/tsp/Makefile ;;
24339 test/Programs/MultiSource/Olden/voronoi/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/voronoi/Makefile test/Programs/MultiSource/Olden/voronoi/Makefile ;;
24340 test/Programs/MultiSource/OptimizerEval/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/OptimizerEval/Makefile test/Programs/MultiSource/OptimizerEval/Makefile ;;
24341 test/Programs/MultiSource/Ptrdist/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/Makefile test/Programs/MultiSource/Ptrdist/Makefile ;;
24342 test/Programs/MultiSource/Ptrdist/anagram/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/anagram/Makefile test/Programs/MultiSource/Ptrdist/anagram/Makefile ;;
24343 test/Programs/MultiSource/Ptrdist/bc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/bc/Makefile test/Programs/MultiSource/Ptrdist/bc/Makefile ;;
24344 test/Programs/MultiSource/Ptrdist/ft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/ft/Makefile test/Programs/MultiSource/Ptrdist/ft/Makefile ;;
24345 test/Programs/MultiSource/Ptrdist/ks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/ks/Makefile test/Programs/MultiSource/Ptrdist/ks/Makefile ;;
24346 test/Programs/MultiSource/Ptrdist/yacr2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/yacr2/Makefile test/Programs/MultiSource/Ptrdist/yacr2/Makefile ;;
24347 test/Programs/MultiSource/aha/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/aha/Makefile test/Programs/MultiSource/aha/Makefile ;;
24348 test/Programs/MultiSource/llubenchmark/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/llubenchmark/Makefile test/Programs/MultiSource/llubenchmark/Makefile ;;
24349 test/Programs/MultiSource/sgefa/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/sgefa/Makefile test/Programs/MultiSource/sgefa/Makefile ;;
24350 test/Programs/MultiSource/sim/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/sim/Makefile test/Programs/MultiSource/sim/Makefile ;;
24351 test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24352 test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24353 test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24354 test/Programs/NoSource/Moria-5.5.2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Moria-5.5.2/Makefile test/Programs/NoSource/Moria-5.5.2/Makefile ;;
24355 test/Programs/NoSource/Povray31/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Povray31/Makefile test/Programs/NoSource/Povray31/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024356 test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24357 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24358 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000024359 test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24360 test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24361 test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile ;;
24362 test/Programs/SingleSource/Benchmarks/Shootout/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Shootout/Makefile test/Programs/SingleSource/Benchmarks/Shootout/Makefile ;;
24363 test/Programs/SingleSource/Benchmarks/Stanford/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Stanford/Makefile test/Programs/SingleSource/Benchmarks/Stanford/Makefile ;;
24364 test/Programs/SingleSource/Benchmarks/Misc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Misc/Makefile test/Programs/SingleSource/Benchmarks/Misc/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024365 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 +000024366 test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
24367 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24368 tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24369 tools/as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/as/Makefile tools/as/Makefile ;;
24370 tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24371 tools/dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/dis/Makefile tools/dis/Makefile ;;
24372 tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24373 tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24374 tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24375 tools/link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/link/Makefile tools/link/Makefile ;;
24376 tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24377 tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24378 tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24379 tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24380 tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
24381 tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24382 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24383 utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24384 utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24385 utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
24386 www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24387 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24388 projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24389 projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24390 projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24391 projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24392 projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24393 projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24394 projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24395 projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24396 projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24397 projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24398 projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24399 esac
24400done
24401_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024402
24403cat >>$CONFIG_STATUS <<\_ACEOF
24404
24405{ (exit 0); exit 0; }
24406_ACEOF
24407chmod +x $CONFIG_STATUS
24408ac_clean_files=$ac_clean_files_save
24409
24410
24411# configure is writing to config.log, and then calls config.status.
24412# config.status does its own redirection, appending to config.log.
24413# Unfortunately, on DOS this fails, as config.log is still kept open
24414# by configure, so config.status won't be able to write to it; its
24415# output is simply discarded. So we exec the FD to /dev/null,
24416# effectively closing config.log, so it can be properly (re)opened and
24417# appended to by config.status. When coming back to configure, we
24418# need to make the FD available again.
24419if test "$no_create" != yes; then
24420 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024421 ac_config_status_args=
24422 test "$silent" = yes &&
24423 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024424 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024425 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024426 exec 5>>config.log
24427 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24428 # would make configure fail if this is the last instruction.
24429 $ac_cs_success || { (exit 1); exit 1; }
24430fi
24431