blob: 96feba0d8d74264dfdff6ea254a616ac822fd1ac [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 Criswell1b824322003-09-15 17:19:42 +00001512if test ${srcdir} != "."
John Criswell93e1c722003-09-15 17:04:06 +00001513then
John Criswell1b824322003-09-15 17:19:42 +00001514 if test -f ${srcdir}/include/Config/config.h
1515 then
1516 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001517echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1518 { (exit 1); exit 1; }; }
John Criswell1b824322003-09-15 17:19:42 +00001519 fi
John Criswell93e1c722003-09-15 17:04:06 +00001520fi
1521
John Criswell0c38eaf2003-09-10 15:17:25 +00001522 ac_config_headers="$ac_config_headers include/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001523
John Criswell0c38eaf2003-09-10 15:17:25 +00001524 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001525
1526
John Criswell0c38eaf2003-09-10 15:17:25 +00001527 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001528
1529
John Criswell0c38eaf2003-09-10 15:17:25 +00001530 ac_config_commands="$ac_config_commands Makefile.rules"
John Criswellc764fbc2003-09-06 15:17:13 +00001531
1532
John Criswell0c38eaf2003-09-10 15:17:25 +00001533 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001534
1535
John Criswell0c38eaf2003-09-10 15:17:25 +00001536 ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001537
1538
John Criswell0c38eaf2003-09-10 15:17:25 +00001539 ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001540
1541
John Criswell0c38eaf2003-09-10 15:17:25 +00001542 ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001543
1544
John Criswell0c38eaf2003-09-10 15:17:25 +00001545 ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001546
1547
John Criswell0c38eaf2003-09-10 15:17:25 +00001548 ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001549
1550
John Criswell0c38eaf2003-09-10 15:17:25 +00001551 ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001552
1553
John Criswell0c38eaf2003-09-10 15:17:25 +00001554 ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001555
1556
John Criswell0c38eaf2003-09-10 15:17:25 +00001557 ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001558
1559
John Criswell0c38eaf2003-09-10 15:17:25 +00001560 ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001561
1562
John Criswell0c38eaf2003-09-10 15:17:25 +00001563 ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001564
1565
John Criswell0c38eaf2003-09-10 15:17:25 +00001566 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001567
1568
John Criswell0c38eaf2003-09-10 15:17:25 +00001569 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001570
1571
John Criswell0c38eaf2003-09-10 15:17:25 +00001572 ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001573
1574
John Criswell0c38eaf2003-09-10 15:17:25 +00001575 ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001576
1577
John Criswell0c38eaf2003-09-10 15:17:25 +00001578 ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001579
1580
John Criswell0c38eaf2003-09-10 15:17:25 +00001581 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001582
1583
John Criswell0c38eaf2003-09-10 15:17:25 +00001584 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001585
1586
John Criswell0c38eaf2003-09-10 15:17:25 +00001587 ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001588
1589
John Criswell0c38eaf2003-09-10 15:17:25 +00001590 ac_config_commands="$ac_config_commands lib/Support/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001591
1592
John Criswell0c38eaf2003-09-10 15:17:25 +00001593 ac_config_commands="$ac_config_commands lib/Target/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001594
1595
John Criswell0c38eaf2003-09-10 15:17:25 +00001596 ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001597
1598
John Criswell0c38eaf2003-09-10 15:17:25 +00001599 ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001600
1601
John Criswell0c38eaf2003-09-10 15:17:25 +00001602 ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001603
1604
John Criswell0c38eaf2003-09-10 15:17:25 +00001605 ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001606
1607
John Criswell0c38eaf2003-09-10 15:17:25 +00001608 ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001609
1610
John Criswell0c38eaf2003-09-10 15:17:25 +00001611 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001612
1613
John Criswell0c38eaf2003-09-10 15:17:25 +00001614 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001615
1616
John Criswell0c38eaf2003-09-10 15:17:25 +00001617 ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001618
1619
John Criswell0c38eaf2003-09-10 15:17:25 +00001620 ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001621
1622
John Criswell0c38eaf2003-09-10 15:17:25 +00001623 ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001624
1625
John Criswell0c38eaf2003-09-10 15:17:25 +00001626 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001627
1628
John Criswell0c38eaf2003-09-10 15:17:25 +00001629 ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001630
1631
John Criswell0c38eaf2003-09-10 15:17:25 +00001632 ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001633
1634
John Criswell0c38eaf2003-09-10 15:17:25 +00001635 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001636
1637
John Criswell613758d2003-09-11 18:03:50 +00001638 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1639
1640
John Criswell0c38eaf2003-09-10 15:17:25 +00001641 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001642
1643
John Criswell0c38eaf2003-09-10 15:17:25 +00001644 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001645
1646
John Criswell0c38eaf2003-09-10 15:17:25 +00001647 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001648
1649
John Criswell0c38eaf2003-09-10 15:17:25 +00001650 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001651
1652
John Criswell613758d2003-09-11 18:03:50 +00001653 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1654
1655
John Criswell0c38eaf2003-09-10 15:17:25 +00001656 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001657
1658
John Criswell613758d2003-09-11 18:03:50 +00001659 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1660
1661
1662 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1663
1664
John Criswell0c38eaf2003-09-10 15:17:25 +00001665 ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001666
1667
John Criswell0c38eaf2003-09-10 15:17:25 +00001668 ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001669
1670
John Criswell0c38eaf2003-09-10 15:17:25 +00001671 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001672
1673
John Criswell0c38eaf2003-09-10 15:17:25 +00001674 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001675
1676
John Criswell08acb9b2003-09-16 02:12:45 +00001677 ac_config_commands="$ac_config_commands test/QMTestDB/QMTest/llvm.py"
1678
1679
John Criswell0c38eaf2003-09-10 15:17:25 +00001680 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001681
1682
John Criswell0c38eaf2003-09-10 15:17:25 +00001683 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
John Criswellc764fbc2003-09-06 15:17:13 +00001684
1685
John Criswell0c38eaf2003-09-10 15:17:25 +00001686 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001687
1688
John Criswell0c38eaf2003-09-10 15:17:25 +00001689 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001690
1691
John Criswell0c38eaf2003-09-10 15:17:25 +00001692 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001693
1694
John Criswell0c38eaf2003-09-10 15:17:25 +00001695 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001696
1697
John Criswell0c38eaf2003-09-10 15:17:25 +00001698 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001699
1700
John Criswell0c38eaf2003-09-10 15:17:25 +00001701 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001702
1703
John Criswell0c38eaf2003-09-10 15:17:25 +00001704 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001705
1706
John Criswell0c38eaf2003-09-10 15:17:25 +00001707 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001708
1709
John Criswell0c38eaf2003-09-10 15:17:25 +00001710 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001711
1712
John Criswell0c38eaf2003-09-10 15:17:25 +00001713 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001714
1715
John Criswell0c38eaf2003-09-10 15:17:25 +00001716 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001717
1718
John Criswell0c38eaf2003-09-10 15:17:25 +00001719 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001720
1721
John Criswell0c38eaf2003-09-10 15:17:25 +00001722 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
John Criswellc764fbc2003-09-06 15:17:13 +00001723
1724
John Criswell0c38eaf2003-09-10 15:17:25 +00001725 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001726
1727
John Criswell0c38eaf2003-09-10 15:17:25 +00001728 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001729
1730
John Criswell0c38eaf2003-09-10 15:17:25 +00001731 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001732
1733
John Criswell613758d2003-09-11 18:03:50 +00001734 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1735
1736
John Criswell0c38eaf2003-09-10 15:17:25 +00001737 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001738
1739
John Criswell0c38eaf2003-09-10 15:17:25 +00001740 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001741
1742
John Criswell0c38eaf2003-09-10 15:17:25 +00001743 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001744
1745
John Criswell0c38eaf2003-09-10 15:17:25 +00001746 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001747
1748
John Criswell0c38eaf2003-09-10 15:17:25 +00001749 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001750
1751
John Criswell0c38eaf2003-09-10 15:17:25 +00001752 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001753
1754
John Criswell0c38eaf2003-09-10 15:17:25 +00001755 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001756
1757
John Criswell0c38eaf2003-09-10 15:17:25 +00001758 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001759
1760
John Criswell0c38eaf2003-09-10 15:17:25 +00001761 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001762
1763
John Criswell0c38eaf2003-09-10 15:17:25 +00001764 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001765
1766
John Criswell0c38eaf2003-09-10 15:17:25 +00001767 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001768
1769
John Criswell0c38eaf2003-09-10 15:17:25 +00001770 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001771
1772
John Criswell0c38eaf2003-09-10 15:17:25 +00001773 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001774
1775
John Criswell0c38eaf2003-09-10 15:17:25 +00001776 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001777
1778
John Criswell0c38eaf2003-09-10 15:17:25 +00001779 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001780
1781
John Criswell0c38eaf2003-09-10 15:17:25 +00001782 ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001783
1784
John Criswell0c38eaf2003-09-10 15:17:25 +00001785 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001786
1787
John Criswell0c38eaf2003-09-10 15:17:25 +00001788 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001789
1790
John Criswell48e3cb92003-09-12 16:31:43 +00001791 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001792
1793
John Criswell48e3cb92003-09-12 16:31:43 +00001794 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001795
1796
John Criswell39e83892003-09-12 16:36:17 +00001797 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1798
1799
1800 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1801
1802
John Criswell48e3cb92003-09-12 16:31:43 +00001803 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001804
1805
John Criswell48e3cb92003-09-12 16:31:43 +00001806 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001807
1808
John Criswell48e3cb92003-09-12 16:31:43 +00001809 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001810
1811
John Criswell48e3cb92003-09-12 16:31:43 +00001812 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001813
1814
John Criswell48e3cb92003-09-12 16:31:43 +00001815 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001816
1817
John Criswell48e3cb92003-09-12 16:31:43 +00001818 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001819
1820
John Criswell48e3cb92003-09-12 16:31:43 +00001821 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001822
1823
John Criswell48e3cb92003-09-12 16:31:43 +00001824 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001825
1826
John Criswell48e3cb92003-09-12 16:31:43 +00001827 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001828
1829
John Criswell48e3cb92003-09-12 16:31:43 +00001830 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001831
1832
John Criswell48e3cb92003-09-12 16:31:43 +00001833 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001834
1835
John Criswell48e3cb92003-09-12 16:31:43 +00001836 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001837
1838
John Criswell48e3cb92003-09-12 16:31:43 +00001839 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001840
1841
John Criswell48e3cb92003-09-12 16:31:43 +00001842 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001843
1844
John Criswell48e3cb92003-09-12 16:31:43 +00001845 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001846
1847
John Criswell48e3cb92003-09-12 16:31:43 +00001848 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001849
1850
John Criswell48e3cb92003-09-12 16:31:43 +00001851 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001852
1853
John Criswell48e3cb92003-09-12 16:31:43 +00001854 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001855
1856
John Criswell48e3cb92003-09-12 16:31:43 +00001857 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001858
1859
John Criswell48e3cb92003-09-12 16:31:43 +00001860 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001861
1862
John Criswell48e3cb92003-09-12 16:31:43 +00001863 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001864
1865
John Criswell48e3cb92003-09-12 16:31:43 +00001866 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1867
1868
1869 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1870
1871
1872 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001873
1874
John Criswell39e83892003-09-12 16:36:17 +00001875 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001876
1877
John Criswell48e3cb92003-09-12 16:31:43 +00001878 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001879
1880
John Criswell48e3cb92003-09-12 16:31:43 +00001881 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001882
1883
John Criswell48e3cb92003-09-12 16:31:43 +00001884 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001885
1886
John Criswell48e3cb92003-09-12 16:31:43 +00001887 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001888
1889
John Criswell48e3cb92003-09-12 16:31:43 +00001890 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001891
1892
John Criswell48e3cb92003-09-12 16:31:43 +00001893 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001894
1895
John Criswell48e3cb92003-09-12 16:31:43 +00001896 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001897
1898
John Criswell48e3cb92003-09-12 16:31:43 +00001899 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001900
1901
John Criswell0c38eaf2003-09-10 15:17:25 +00001902 ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001903
1904
John Criswell0c38eaf2003-09-10 15:17:25 +00001905 ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001906
1907
John Criswell0c38eaf2003-09-10 15:17:25 +00001908 ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001909
1910
John Criswell0c38eaf2003-09-10 15:17:25 +00001911 ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001912
1913
John Criswell0c38eaf2003-09-10 15:17:25 +00001914 ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001915
1916
John Criswell0c38eaf2003-09-10 15:17:25 +00001917 ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001918
1919
John Criswell0c38eaf2003-09-10 15:17:25 +00001920 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001921
1922
John Criswell0c38eaf2003-09-10 15:17:25 +00001923 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001924
1925
John Criswellffaaf3b2003-09-10 18:38:44 +00001926 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1927
1928
1929 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1930
1931
1932 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1933
1934
1935 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1936
1937
1938 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1939
1940
1941 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1942
1943
John Criswell0c38eaf2003-09-10 15:17:25 +00001944 ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001945
1946
John Criswell0c38eaf2003-09-10 15:17:25 +00001947 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001948
1949
John Criswell0afe8252003-09-11 20:53:48 +00001950 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1951
1952
John Criswell67181ca2003-09-26 14:53:17 +00001953 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
1954
1955
John Criswell0c38eaf2003-09-10 15:17:25 +00001956 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001957
1958
John Criswell0c38eaf2003-09-10 15:17:25 +00001959 ac_config_commands="$ac_config_commands tools/analyze/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001960
1961
John Criswell0c38eaf2003-09-10 15:17:25 +00001962 ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001963
1964
John Criswell0c38eaf2003-09-10 15:17:25 +00001965 ac_config_commands="$ac_config_commands tools/extract/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001966
1967
John Criswell0c38eaf2003-09-10 15:17:25 +00001968 ac_config_commands="$ac_config_commands tools/gccas/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001969
1970
John Criswell0c38eaf2003-09-10 15:17:25 +00001971 ac_config_commands="$ac_config_commands tools/gccld/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001972
1973
John Criswell0c38eaf2003-09-10 15:17:25 +00001974 ac_config_commands="$ac_config_commands tools/llc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001975
1976
John Criswell0c38eaf2003-09-10 15:17:25 +00001977 ac_config_commands="$ac_config_commands tools/llee/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001978
1979
John Criswellddb7b4e2003-09-16 15:54:19 +00001980 ac_config_commands="$ac_config_commands tools/lli/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001981
1982
Chris Lattnerebd70302003-09-13 03:29:53 +00001983 ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
1984
1985
John Criswellddb7b4e2003-09-16 15:54:19 +00001986 ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
1987
1988
John Criswell0c38eaf2003-09-10 15:17:25 +00001989 ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001990
1991
John Criswellddb7b4e2003-09-16 15:54:19 +00001992 ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
1993
1994
1995 ac_config_commands="$ac_config_commands tools/opt/Makefile"
1996
1997
John Criswell0c38eaf2003-09-10 15:17:25 +00001998 ac_config_commands="$ac_config_commands utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001999
2000
John Criswell0c38eaf2003-09-10 15:17:25 +00002001 ac_config_commands="$ac_config_commands utils/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002002
2003
John Criswell0c38eaf2003-09-10 15:17:25 +00002004 ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002005
2006
John Criswell0c38eaf2003-09-10 15:17:25 +00002007 ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002008
2009
John Criswell0c38eaf2003-09-10 15:17:25 +00002010 ac_config_commands="$ac_config_commands www/docs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002011
2012
John Criswell0c38eaf2003-09-10 15:17:25 +00002013 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002014
2015
John Criswell0c38eaf2003-09-10 15:17:25 +00002016 ac_config_commands="$ac_config_commands projects/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002017
2018
John Criswell0c38eaf2003-09-10 15:17:25 +00002019 ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002020
2021
John Criswell0c38eaf2003-09-10 15:17:25 +00002022 ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
John Criswellc764fbc2003-09-06 15:17:13 +00002023
2024
John Criswell0c38eaf2003-09-10 15:17:25 +00002025 ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002026
2027
John Criswell0c38eaf2003-09-10 15:17:25 +00002028 ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002029
2030
John Criswell0c38eaf2003-09-10 15:17:25 +00002031 ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002032
2033
John Criswell0c38eaf2003-09-10 15:17:25 +00002034 ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002035
2036
John Criswell0c38eaf2003-09-10 15:17:25 +00002037 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002038
2039
John Criswell0c38eaf2003-09-10 15:17:25 +00002040 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002041
2042
John Criswell0c38eaf2003-09-10 15:17:25 +00002043 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002044
2045
John Criswell0c38eaf2003-09-10 15:17:25 +00002046 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002047
2048
John Criswell392aaa32003-07-22 19:18:09 +00002049
2050
John Criswell7a73b802003-06-30 21:59:07 +00002051# Find a good install program. We prefer a C program (faster),
2052# so one script is as good as another. But avoid the broken or
2053# incompatible versions:
2054# SysV /etc/install, /usr/sbin/install
2055# SunOS /usr/etc/install
2056# IRIX /sbin/install
2057# AIX /bin/install
2058# AmigaOS /C/install, which installs bootblocks on floppy discs
2059# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2060# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2061# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2062# ./install, which can be erroneously created by make from ./install.sh.
2063echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2064echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2065if test -z "$INSTALL"; then
2066if test "${ac_cv_path_install+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2068else
2069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070for as_dir in $PATH
2071do
2072 IFS=$as_save_IFS
2073 test -z "$as_dir" && as_dir=.
2074 # Account for people who put trailing slashes in PATH elements.
2075case $as_dir/ in
2076 ./ | .// | /cC/* | \
2077 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2078 /usr/ucb/* ) ;;
2079 *)
2080 # OSF1 and SCO ODT 3.0 have their own names for install.
2081 # Don't use installbsd from OSF since it installs stuff as root
2082 # by default.
2083 for ac_prog in ginstall scoinst install; do
2084 for ac_exec_ext in '' $ac_executable_extensions; do
2085 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2086 if test $ac_prog = install &&
2087 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2088 # AIX install. It has an incompatible calling convention.
2089 :
2090 elif test $ac_prog = install &&
2091 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2092 # program-specific install script used by HP pwplus--don't use.
2093 :
2094 else
2095 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2096 break 3
2097 fi
2098 fi
2099 done
2100 done
2101 ;;
2102esac
2103done
2104
2105
2106fi
2107 if test "${ac_cv_path_install+set}" = set; then
2108 INSTALL=$ac_cv_path_install
2109 else
2110 # As a last resort, use the slow shell script. We don't cache a
2111 # path for INSTALL within a source directory, because that will
2112 # break other packages using the cache if that directory is
2113 # removed, or if the path is relative.
2114 INSTALL=$ac_install_sh
2115 fi
2116fi
2117echo "$as_me:$LINENO: result: $INSTALL" >&5
2118echo "${ECHO_T}$INSTALL" >&6
2119
2120# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2121# It thinks the first close brace ends the variable substitution.
2122test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2123
2124test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2125
2126test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2127
2128
2129# Make sure we can run config.sub.
2130$ac_config_sub sun4 >/dev/null 2>&1 ||
2131 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2132echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2133 { (exit 1); exit 1; }; }
2134
2135echo "$as_me:$LINENO: checking build system type" >&5
2136echo $ECHO_N "checking build system type... $ECHO_C" >&6
2137if test "${ac_cv_build+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2139else
2140 ac_cv_build_alias=$build_alias
2141test -z "$ac_cv_build_alias" &&
2142 ac_cv_build_alias=`$ac_config_guess`
2143test -z "$ac_cv_build_alias" &&
2144 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2145echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2146 { (exit 1); exit 1; }; }
2147ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2148 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2149echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2150 { (exit 1); exit 1; }; }
2151
2152fi
2153echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2154echo "${ECHO_T}$ac_cv_build" >&6
2155build=$ac_cv_build
2156build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2157build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2158build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2159
2160
2161echo "$as_me:$LINENO: checking host system type" >&5
2162echo $ECHO_N "checking host system type... $ECHO_C" >&6
2163if test "${ac_cv_host+set}" = set; then
2164 echo $ECHO_N "(cached) $ECHO_C" >&6
2165else
2166 ac_cv_host_alias=$host_alias
2167test -z "$ac_cv_host_alias" &&
2168 ac_cv_host_alias=$ac_cv_build_alias
2169ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2170 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2171echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2172 { (exit 1); exit 1; }; }
2173
2174fi
2175echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2176echo "${ECHO_T}$ac_cv_host" >&6
2177host=$ac_cv_host
2178host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2179host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2180host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2181
2182
2183echo "$as_me:$LINENO: checking target system type" >&5
2184echo $ECHO_N "checking target system type... $ECHO_C" >&6
2185if test "${ac_cv_target+set}" = set; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2187else
2188 ac_cv_target_alias=$target_alias
2189test "x$ac_cv_target_alias" = "x" &&
2190 ac_cv_target_alias=$ac_cv_host_alias
2191ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2192 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2193echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2194 { (exit 1); exit 1; }; }
2195
2196fi
2197echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2198echo "${ECHO_T}$ac_cv_target" >&6
2199target=$ac_cv_target
2200target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2201target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2202target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2203
2204
2205# The aliases save the names the user supplied, while $host etc.
2206# will get canonicalized.
2207test -n "$target_alias" &&
2208 test "$program_prefix$program_suffix$program_transform_name" = \
2209 NONENONEs,x,x, &&
2210 program_prefix=${target_alias}-
2211
2212case $build in
2213 *i*86*) OS=Linux
2214
John Criswellf02dbf02003-07-22 20:07:49 +00002215 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00002216
2217 ;;
2218
2219 *sparc*) OS=SunOS
2220
2221 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2222
2223 ;;
2224
2225 *) OS=Unknown
2226
2227 ;;
2228esac
2229
2230case $target in
2231 *sparc*solaris*) target=sparcv9-sun-solaris2.8
2232
2233 ;;
2234esac
2235
John Criswell76595452003-07-01 22:07:39 +00002236case $target in
2237 *i*86*) ARCH=x86
2238
2239 ;;
2240 *sparc*solaris*) ARCH=Sparc
2241
2242 ;;
2243esac
2244
John Criswell7a73b802003-06-30 21:59:07 +00002245
2246ac_ext=cc
2247ac_cpp='$CXXCPP $CPPFLAGS'
2248ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2249ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2250ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2251if test -n "$ac_tool_prefix"; then
2252 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2253 do
2254 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2255set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2256echo "$as_me:$LINENO: checking for $ac_word" >&5
2257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2258if test "${ac_cv_prog_CXX+set}" = set; then
2259 echo $ECHO_N "(cached) $ECHO_C" >&6
2260else
2261 if test -n "$CXX"; then
2262 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2263else
2264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265for as_dir in $PATH
2266do
2267 IFS=$as_save_IFS
2268 test -z "$as_dir" && as_dir=.
2269 for ac_exec_ext in '' $ac_executable_extensions; do
2270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2271 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2273 break 2
2274 fi
2275done
2276done
2277
2278fi
2279fi
2280CXX=$ac_cv_prog_CXX
2281if test -n "$CXX"; then
2282 echo "$as_me:$LINENO: result: $CXX" >&5
2283echo "${ECHO_T}$CXX" >&6
2284else
2285 echo "$as_me:$LINENO: result: no" >&5
2286echo "${ECHO_T}no" >&6
2287fi
2288
2289 test -n "$CXX" && break
2290 done
2291fi
2292if test -z "$CXX"; then
2293 ac_ct_CXX=$CXX
2294 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2295do
2296 # Extract the first word of "$ac_prog", so it can be a program name with args.
2297set dummy $ac_prog; ac_word=$2
2298echo "$as_me:$LINENO: checking for $ac_word" >&5
2299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2300if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2302else
2303 if test -n "$ac_ct_CXX"; then
2304 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2305else
2306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307for as_dir in $PATH
2308do
2309 IFS=$as_save_IFS
2310 test -z "$as_dir" && as_dir=.
2311 for ac_exec_ext in '' $ac_executable_extensions; do
2312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2313 ac_cv_prog_ac_ct_CXX="$ac_prog"
2314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2315 break 2
2316 fi
2317done
2318done
2319
2320fi
2321fi
2322ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2323if test -n "$ac_ct_CXX"; then
2324 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2325echo "${ECHO_T}$ac_ct_CXX" >&6
2326else
2327 echo "$as_me:$LINENO: result: no" >&5
2328echo "${ECHO_T}no" >&6
2329fi
2330
2331 test -n "$ac_ct_CXX" && break
2332done
2333test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2334
2335 CXX=$ac_ct_CXX
2336fi
2337
2338
2339# Provide some information about the compiler.
2340echo "$as_me:$LINENO:" \
2341 "checking for C++ compiler version" >&5
2342ac_compiler=`set X $ac_compile; echo $2`
2343{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2344 (eval $ac_compiler --version </dev/null >&5) 2>&5
2345 ac_status=$?
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); }
2348{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2349 (eval $ac_compiler -v </dev/null >&5) 2>&5
2350 ac_status=$?
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }
2353{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2354 (eval $ac_compiler -V </dev/null >&5) 2>&5
2355 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }
2358
2359cat >conftest.$ac_ext <<_ACEOF
2360#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002361/* confdefs.h. */
2362_ACEOF
2363cat confdefs.h >>conftest.$ac_ext
2364cat >>conftest.$ac_ext <<_ACEOF
2365/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002366
John Criswell7a73b802003-06-30 21:59:07 +00002367int
2368main ()
2369{
2370
2371 ;
2372 return 0;
2373}
2374_ACEOF
2375ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002376ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002377# Try to create an executable without -o first, disregard a.out.
2378# It will help us diagnose broken compilers, and finding out an intuition
2379# of exeext.
2380echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2381echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2382ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2383if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2384 (eval $ac_link_default) 2>&5
2385 ac_status=$?
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; then
2388 # Find the output, starting from the most likely. This scheme is
2389# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2390# resort.
2391
2392# Be careful to initialize this variable, since it used to be cached.
2393# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2394ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002395# b.out is created by i960 compilers.
2396for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2397do
2398 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002399 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002400 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2401 ;;
2402 conftest.$ac_ext )
2403 # This is the source file.
2404 ;;
2405 [ab].out )
2406 # We found the default executable, but exeext='' is most
2407 # certainly right.
2408 break;;
2409 *.* )
2410 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2411 # FIXME: I believe we export ac_cv_exeext for Libtool,
2412 # but it would be cool to find out if it's true. Does anybody
2413 # maintain Libtool? --akim.
2414 export ac_cv_exeext
2415 break;;
2416 * )
2417 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002418 esac
2419done
2420else
2421 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002422sed 's/^/| /' conftest.$ac_ext >&5
2423
2424{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2425See \`config.log' for more details." >&5
2426echo "$as_me: error: C++ compiler cannot create executables
2427See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002428 { (exit 77); exit 77; }; }
2429fi
2430
2431ac_exeext=$ac_cv_exeext
2432echo "$as_me:$LINENO: result: $ac_file" >&5
2433echo "${ECHO_T}$ac_file" >&6
2434
2435# Check the compiler produces executables we can run. If not, either
2436# the compiler is broken, or we cross compile.
2437echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2438echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2439# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2440# If not cross compiling, check that we can run a simple program.
2441if test "$cross_compiling" != yes; then
2442 if { ac_try='./$ac_file'
2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444 (eval $ac_try) 2>&5
2445 ac_status=$?
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; }; then
2448 cross_compiling=no
2449 else
2450 if test "$cross_compiling" = maybe; then
2451 cross_compiling=yes
2452 else
2453 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002454If you meant to cross compile, use \`--host'.
2455See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002456echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002457If you meant to cross compile, use \`--host'.
2458See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002459 { (exit 1); exit 1; }; }
2460 fi
2461 fi
2462fi
2463echo "$as_me:$LINENO: result: yes" >&5
2464echo "${ECHO_T}yes" >&6
2465
John Criswell0c38eaf2003-09-10 15:17:25 +00002466rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002467ac_clean_files=$ac_clean_files_save
2468# Check the compiler produces executables we can run. If not, either
2469# the compiler is broken, or we cross compile.
2470echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2471echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2472echo "$as_me:$LINENO: result: $cross_compiling" >&5
2473echo "${ECHO_T}$cross_compiling" >&6
2474
2475echo "$as_me:$LINENO: checking for suffix of executables" >&5
2476echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2478 (eval $ac_link) 2>&5
2479 ac_status=$?
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; then
2482 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2483# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2484# work properly (i.e., refer to `conftest.exe'), while it won't with
2485# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002486for ac_file in conftest.exe conftest conftest.*; do
2487 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002488 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002490 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2491 export ac_cv_exeext
2492 break;;
2493 * ) break;;
2494 esac
2495done
2496else
John Criswell0c38eaf2003-09-10 15:17:25 +00002497 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2498See \`config.log' for more details." >&5
2499echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2500See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002501 { (exit 1); exit 1; }; }
2502fi
2503
2504rm -f conftest$ac_cv_exeext
2505echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2506echo "${ECHO_T}$ac_cv_exeext" >&6
2507
2508rm -f conftest.$ac_ext
2509EXEEXT=$ac_cv_exeext
2510ac_exeext=$EXEEXT
2511echo "$as_me:$LINENO: checking for suffix of object files" >&5
2512echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2513if test "${ac_cv_objext+set}" = set; then
2514 echo $ECHO_N "(cached) $ECHO_C" >&6
2515else
2516 cat >conftest.$ac_ext <<_ACEOF
2517#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002518/* confdefs.h. */
2519_ACEOF
2520cat confdefs.h >>conftest.$ac_ext
2521cat >>conftest.$ac_ext <<_ACEOF
2522/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002523
John Criswell7a73b802003-06-30 21:59:07 +00002524int
2525main ()
2526{
2527
2528 ;
2529 return 0;
2530}
2531_ACEOF
2532rm -f conftest.o conftest.obj
2533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2534 (eval $ac_compile) 2>&5
2535 ac_status=$?
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }; then
2538 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2539 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002540 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002541 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2542 break;;
2543 esac
2544done
2545else
2546 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002547sed 's/^/| /' conftest.$ac_ext >&5
2548
2549{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2550See \`config.log' for more details." >&5
2551echo "$as_me: error: cannot compute suffix of object files: cannot compile
2552See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002553 { (exit 1); exit 1; }; }
2554fi
2555
2556rm -f conftest.$ac_cv_objext conftest.$ac_ext
2557fi
2558echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2559echo "${ECHO_T}$ac_cv_objext" >&6
2560OBJEXT=$ac_cv_objext
2561ac_objext=$OBJEXT
2562echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2563echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2564if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2566else
2567 cat >conftest.$ac_ext <<_ACEOF
2568#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002569/* confdefs.h. */
2570_ACEOF
2571cat confdefs.h >>conftest.$ac_ext
2572cat >>conftest.$ac_ext <<_ACEOF
2573/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002574
John Criswell7a73b802003-06-30 21:59:07 +00002575int
2576main ()
2577{
2578#ifndef __GNUC__
2579 choke me
2580#endif
2581
2582 ;
2583 return 0;
2584}
2585_ACEOF
2586rm -f conftest.$ac_objext
2587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2588 (eval $ac_compile) 2>&5
2589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); } &&
2592 { ac_try='test -s conftest.$ac_objext'
2593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594 (eval $ac_try) 2>&5
2595 ac_status=$?
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; }; then
2598 ac_compiler_gnu=yes
2599else
2600 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002601sed 's/^/| /' conftest.$ac_ext >&5
2602
John Criswell7a73b802003-06-30 21:59:07 +00002603ac_compiler_gnu=no
2604fi
2605rm -f conftest.$ac_objext conftest.$ac_ext
2606ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2607
2608fi
2609echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2610echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2611GXX=`test $ac_compiler_gnu = yes && echo yes`
2612ac_test_CXXFLAGS=${CXXFLAGS+set}
2613ac_save_CXXFLAGS=$CXXFLAGS
2614CXXFLAGS="-g"
2615echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2616echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2617if test "${ac_cv_prog_cxx_g+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2619else
2620 cat >conftest.$ac_ext <<_ACEOF
2621#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002622/* confdefs.h. */
2623_ACEOF
2624cat confdefs.h >>conftest.$ac_ext
2625cat >>conftest.$ac_ext <<_ACEOF
2626/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002627
John Criswell7a73b802003-06-30 21:59:07 +00002628int
2629main ()
2630{
2631
2632 ;
2633 return 0;
2634}
2635_ACEOF
2636rm -f conftest.$ac_objext
2637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2638 (eval $ac_compile) 2>&5
2639 ac_status=$?
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); } &&
2642 { ac_try='test -s conftest.$ac_objext'
2643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644 (eval $ac_try) 2>&5
2645 ac_status=$?
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }; }; then
2648 ac_cv_prog_cxx_g=yes
2649else
2650 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002651sed 's/^/| /' conftest.$ac_ext >&5
2652
John Criswell7a73b802003-06-30 21:59:07 +00002653ac_cv_prog_cxx_g=no
2654fi
2655rm -f conftest.$ac_objext conftest.$ac_ext
2656fi
2657echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2658echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2659if test "$ac_test_CXXFLAGS" = set; then
2660 CXXFLAGS=$ac_save_CXXFLAGS
2661elif test $ac_cv_prog_cxx_g = yes; then
2662 if test "$GXX" = yes; then
2663 CXXFLAGS="-g -O2"
2664 else
2665 CXXFLAGS="-g"
2666 fi
2667else
2668 if test "$GXX" = yes; then
2669 CXXFLAGS="-O2"
2670 else
2671 CXXFLAGS=
2672 fi
2673fi
2674for ac_declaration in \
2675 ''\
2676 '#include <stdlib.h>' \
2677 'extern "C" void std::exit (int) throw (); using std::exit;' \
2678 'extern "C" void std::exit (int); using std::exit;' \
2679 'extern "C" void exit (int) throw ();' \
2680 'extern "C" void exit (int);' \
2681 'void exit (int);'
2682do
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#include <stdlib.h>
2691$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002692int
2693main ()
2694{
2695exit (42);
2696 ;
2697 return 0;
2698}
2699_ACEOF
2700rm -f conftest.$ac_objext
2701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702 (eval $ac_compile) 2>&5
2703 ac_status=$?
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); } &&
2706 { ac_try='test -s conftest.$ac_objext'
2707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708 (eval $ac_try) 2>&5
2709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; }; then
2712 :
2713else
2714 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002715sed 's/^/| /' conftest.$ac_ext >&5
2716
John Criswell7a73b802003-06-30 21:59:07 +00002717continue
2718fi
2719rm -f conftest.$ac_objext conftest.$ac_ext
2720 cat >conftest.$ac_ext <<_ACEOF
2721#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002722/* confdefs.h. */
2723_ACEOF
2724cat confdefs.h >>conftest.$ac_ext
2725cat >>conftest.$ac_ext <<_ACEOF
2726/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002727$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002728int
2729main ()
2730{
2731exit (42);
2732 ;
2733 return 0;
2734}
2735_ACEOF
2736rm -f conftest.$ac_objext
2737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2738 (eval $ac_compile) 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); } &&
2742 { ac_try='test -s conftest.$ac_objext'
2743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 (eval $ac_try) 2>&5
2745 ac_status=$?
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }; }; then
2748 break
2749else
2750 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002751sed 's/^/| /' conftest.$ac_ext >&5
2752
John Criswell7a73b802003-06-30 21:59:07 +00002753fi
2754rm -f conftest.$ac_objext conftest.$ac_ext
2755done
2756rm -f conftest*
2757if test -n "$ac_declaration"; then
2758 echo '#ifdef __cplusplus' >>confdefs.h
2759 echo $ac_declaration >>confdefs.h
2760 echo '#endif' >>confdefs.h
2761fi
2762
2763ac_ext=c
2764ac_cpp='$CPP $CPPFLAGS'
2765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767ac_compiler_gnu=$ac_cv_c_compiler_gnu
2768
2769ac_ext=c
2770ac_cpp='$CPP $CPPFLAGS'
2771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2773ac_compiler_gnu=$ac_cv_c_compiler_gnu
2774if test -n "$ac_tool_prefix"; then
2775 for ac_prog in gcc
2776 do
2777 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2778set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2779echo "$as_me:$LINENO: checking for $ac_word" >&5
2780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2781if test "${ac_cv_prog_CC+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2783else
2784 if test -n "$CC"; then
2785 ac_cv_prog_CC="$CC" # Let the user override the test.
2786else
2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788for as_dir in $PATH
2789do
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2794 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 break 2
2797 fi
2798done
2799done
2800
2801fi
2802fi
2803CC=$ac_cv_prog_CC
2804if test -n "$CC"; then
2805 echo "$as_me:$LINENO: result: $CC" >&5
2806echo "${ECHO_T}$CC" >&6
2807else
2808 echo "$as_me:$LINENO: result: no" >&5
2809echo "${ECHO_T}no" >&6
2810fi
2811
2812 test -n "$CC" && break
2813 done
2814fi
2815if test -z "$CC"; then
2816 ac_ct_CC=$CC
2817 for ac_prog in gcc
2818do
2819 # Extract the first word of "$ac_prog", so it can be a program name with args.
2820set dummy $ac_prog; ac_word=$2
2821echo "$as_me:$LINENO: checking for $ac_word" >&5
2822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2823if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2824 echo $ECHO_N "(cached) $ECHO_C" >&6
2825else
2826 if test -n "$ac_ct_CC"; then
2827 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2828else
2829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830for as_dir in $PATH
2831do
2832 IFS=$as_save_IFS
2833 test -z "$as_dir" && as_dir=.
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2836 ac_cv_prog_ac_ct_CC="$ac_prog"
2837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 break 2
2839 fi
2840done
2841done
2842
2843fi
2844fi
2845ac_ct_CC=$ac_cv_prog_ac_ct_CC
2846if test -n "$ac_ct_CC"; then
2847 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2848echo "${ECHO_T}$ac_ct_CC" >&6
2849else
2850 echo "$as_me:$LINENO: result: no" >&5
2851echo "${ECHO_T}no" >&6
2852fi
2853
2854 test -n "$ac_ct_CC" && break
2855done
2856
2857 CC=$ac_ct_CC
2858fi
2859
2860
John Criswell0c38eaf2003-09-10 15:17:25 +00002861test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2862See \`config.log' for more details." >&5
2863echo "$as_me: error: no acceptable C compiler found in \$PATH
2864See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002865 { (exit 1); exit 1; }; }
2866
2867# Provide some information about the compiler.
2868echo "$as_me:$LINENO:" \
2869 "checking for C compiler version" >&5
2870ac_compiler=`set X $ac_compile; echo $2`
2871{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2872 (eval $ac_compiler --version </dev/null >&5) 2>&5
2873 ac_status=$?
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }
2876{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2877 (eval $ac_compiler -v </dev/null >&5) 2>&5
2878 ac_status=$?
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }
2881{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2882 (eval $ac_compiler -V </dev/null >&5) 2>&5
2883 ac_status=$?
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }
2886
2887echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2888echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2889if test "${ac_cv_c_compiler_gnu+set}" = set; then
2890 echo $ECHO_N "(cached) $ECHO_C" >&6
2891else
2892 cat >conftest.$ac_ext <<_ACEOF
2893#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002894/* confdefs.h. */
2895_ACEOF
2896cat confdefs.h >>conftest.$ac_ext
2897cat >>conftest.$ac_ext <<_ACEOF
2898/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002899
John Criswell7a73b802003-06-30 21:59:07 +00002900int
2901main ()
2902{
2903#ifndef __GNUC__
2904 choke me
2905#endif
2906
2907 ;
2908 return 0;
2909}
2910_ACEOF
2911rm -f conftest.$ac_objext
2912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2913 (eval $ac_compile) 2>&5
2914 ac_status=$?
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); } &&
2917 { ac_try='test -s conftest.$ac_objext'
2918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919 (eval $ac_try) 2>&5
2920 ac_status=$?
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }; }; then
2923 ac_compiler_gnu=yes
2924else
2925 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002926sed 's/^/| /' conftest.$ac_ext >&5
2927
John Criswell7a73b802003-06-30 21:59:07 +00002928ac_compiler_gnu=no
2929fi
2930rm -f conftest.$ac_objext conftest.$ac_ext
2931ac_cv_c_compiler_gnu=$ac_compiler_gnu
2932
2933fi
2934echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2935echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2936GCC=`test $ac_compiler_gnu = yes && echo yes`
2937ac_test_CFLAGS=${CFLAGS+set}
2938ac_save_CFLAGS=$CFLAGS
2939CFLAGS="-g"
2940echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2941echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2942if test "${ac_cv_prog_cc_g+set}" = set; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2944else
2945 cat >conftest.$ac_ext <<_ACEOF
2946#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002947/* confdefs.h. */
2948_ACEOF
2949cat confdefs.h >>conftest.$ac_ext
2950cat >>conftest.$ac_ext <<_ACEOF
2951/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002952
John Criswell7a73b802003-06-30 21:59:07 +00002953int
2954main ()
2955{
2956
2957 ;
2958 return 0;
2959}
2960_ACEOF
2961rm -f conftest.$ac_objext
2962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2963 (eval $ac_compile) 2>&5
2964 ac_status=$?
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); } &&
2967 { ac_try='test -s conftest.$ac_objext'
2968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969 (eval $ac_try) 2>&5
2970 ac_status=$?
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }; }; then
2973 ac_cv_prog_cc_g=yes
2974else
2975 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002976sed 's/^/| /' conftest.$ac_ext >&5
2977
John Criswell7a73b802003-06-30 21:59:07 +00002978ac_cv_prog_cc_g=no
2979fi
2980rm -f conftest.$ac_objext conftest.$ac_ext
2981fi
2982echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2983echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2984if test "$ac_test_CFLAGS" = set; then
2985 CFLAGS=$ac_save_CFLAGS
2986elif test $ac_cv_prog_cc_g = yes; then
2987 if test "$GCC" = yes; then
2988 CFLAGS="-g -O2"
2989 else
2990 CFLAGS="-g"
2991 fi
2992else
2993 if test "$GCC" = yes; then
2994 CFLAGS="-O2"
2995 else
2996 CFLAGS=
2997 fi
2998fi
John Criswell0c38eaf2003-09-10 15:17:25 +00002999echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3000echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3001if test "${ac_cv_prog_cc_stdc+set}" = set; then
3002 echo $ECHO_N "(cached) $ECHO_C" >&6
3003else
3004 ac_cv_prog_cc_stdc=no
3005ac_save_CC=$CC
3006cat >conftest.$ac_ext <<_ACEOF
3007#line $LINENO "configure"
3008/* confdefs.h. */
3009_ACEOF
3010cat confdefs.h >>conftest.$ac_ext
3011cat >>conftest.$ac_ext <<_ACEOF
3012/* end confdefs.h. */
3013#include <stdarg.h>
3014#include <stdio.h>
3015#include <sys/types.h>
3016#include <sys/stat.h>
3017/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3018struct buf { int x; };
3019FILE * (*rcsopen) (struct buf *, struct stat *, int);
3020static char *e (p, i)
3021 char **p;
3022 int i;
3023{
3024 return p[i];
3025}
3026static char *f (char * (*g) (char **, int), char **p, ...)
3027{
3028 char *s;
3029 va_list v;
3030 va_start (v,p);
3031 s = g (p, va_arg (v,int));
3032 va_end (v);
3033 return s;
3034}
3035int test (int i, double x);
3036struct s1 {int (*f) (int a);};
3037struct s2 {int (*f) (double a);};
3038int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3039int argc;
3040char **argv;
3041int
3042main ()
3043{
3044return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3045 ;
3046 return 0;
3047}
3048_ACEOF
3049# Don't try gcc -ansi; that turns off useful extensions and
3050# breaks some systems' header files.
3051# AIX -qlanglvl=ansi
3052# Ultrix and OSF/1 -std1
3053# HP-UX 10.20 and later -Ae
3054# HP-UX older versions -Aa -D_HPUX_SOURCE
3055# SVR4 -Xc -D__EXTENSIONS__
3056for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3057do
3058 CC="$ac_save_CC $ac_arg"
3059 rm -f conftest.$ac_objext
3060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3061 (eval $ac_compile) 2>&5
3062 ac_status=$?
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); } &&
3065 { ac_try='test -s conftest.$ac_objext'
3066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3067 (eval $ac_try) 2>&5
3068 ac_status=$?
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); }; }; then
3071 ac_cv_prog_cc_stdc=$ac_arg
3072break
3073else
3074 echo "$as_me: failed program was:" >&5
3075sed 's/^/| /' conftest.$ac_ext >&5
3076
3077fi
3078rm -f conftest.$ac_objext
3079done
3080rm -f conftest.$ac_ext conftest.$ac_objext
3081CC=$ac_save_CC
3082
3083fi
3084
3085case "x$ac_cv_prog_cc_stdc" in
3086 x|xno)
3087 echo "$as_me:$LINENO: result: none needed" >&5
3088echo "${ECHO_T}none needed" >&6 ;;
3089 *)
3090 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3091echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3092 CC="$CC $ac_cv_prog_cc_stdc" ;;
3093esac
3094
John Criswell7a73b802003-06-30 21:59:07 +00003095# Some people use a C++ compiler to compile C. Since we use `exit',
3096# in C++ we need to declare it. In case someone uses the same compiler
3097# for both compiling C and C++ we need to have the C++ compiler decide
3098# the declaration of exit, since it's the most demanding environment.
3099cat >conftest.$ac_ext <<_ACEOF
3100#ifndef __cplusplus
3101 choke me
3102#endif
3103_ACEOF
3104rm -f conftest.$ac_objext
3105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3106 (eval $ac_compile) 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); } &&
3110 { ac_try='test -s conftest.$ac_objext'
3111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3112 (eval $ac_try) 2>&5
3113 ac_status=$?
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; }; then
3116 for ac_declaration in \
3117 ''\
3118 '#include <stdlib.h>' \
3119 'extern "C" void std::exit (int) throw (); using std::exit;' \
3120 'extern "C" void std::exit (int); using std::exit;' \
3121 'extern "C" void exit (int) throw ();' \
3122 'extern "C" void exit (int);' \
3123 'void exit (int);'
3124do
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#include <stdlib.h>
3133$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003134int
3135main ()
3136{
3137exit (42);
3138 ;
3139 return 0;
3140}
3141_ACEOF
3142rm -f conftest.$ac_objext
3143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3144 (eval $ac_compile) 2>&5
3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); } &&
3148 { ac_try='test -s conftest.$ac_objext'
3149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3150 (eval $ac_try) 2>&5
3151 ac_status=$?
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; }; then
3154 :
3155else
3156 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003157sed 's/^/| /' conftest.$ac_ext >&5
3158
John Criswell7a73b802003-06-30 21:59:07 +00003159continue
3160fi
3161rm -f conftest.$ac_objext conftest.$ac_ext
3162 cat >conftest.$ac_ext <<_ACEOF
3163#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003164/* confdefs.h. */
3165_ACEOF
3166cat confdefs.h >>conftest.$ac_ext
3167cat >>conftest.$ac_ext <<_ACEOF
3168/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003169$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003170int
3171main ()
3172{
3173exit (42);
3174 ;
3175 return 0;
3176}
3177_ACEOF
3178rm -f conftest.$ac_objext
3179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3180 (eval $ac_compile) 2>&5
3181 ac_status=$?
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); } &&
3184 { ac_try='test -s conftest.$ac_objext'
3185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3186 (eval $ac_try) 2>&5
3187 ac_status=$?
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }; }; then
3190 break
3191else
3192 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003193sed 's/^/| /' conftest.$ac_ext >&5
3194
John Criswell7a73b802003-06-30 21:59:07 +00003195fi
3196rm -f conftest.$ac_objext conftest.$ac_ext
3197done
3198rm -f conftest*
3199if test -n "$ac_declaration"; then
3200 echo '#ifdef __cplusplus' >>confdefs.h
3201 echo $ac_declaration >>confdefs.h
3202 echo '#endif' >>confdefs.h
3203fi
3204
3205else
3206 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003207sed 's/^/| /' conftest.$ac_ext >&5
3208
John Criswell7a73b802003-06-30 21:59:07 +00003209fi
3210rm -f conftest.$ac_objext conftest.$ac_ext
3211ac_ext=c
3212ac_cpp='$CPP $CPPFLAGS'
3213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3215ac_compiler_gnu=$ac_cv_c_compiler_gnu
3216
3217ac_ext=c
3218ac_cpp='$CPP $CPPFLAGS'
3219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221ac_compiler_gnu=$ac_cv_c_compiler_gnu
3222echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3223echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3224# On Suns, sometimes $CPP names a directory.
3225if test -n "$CPP" && test -d "$CPP"; then
3226 CPP=
3227fi
3228if test -z "$CPP"; then
3229 if test "${ac_cv_prog_CPP+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3231else
3232 # Double quotes because CPP needs to be expanded
3233 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3234 do
3235 ac_preproc_ok=false
3236for ac_c_preproc_warn_flag in '' yes
3237do
3238 # Use a header file that comes with gcc, so configuring glibc
3239 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003240 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3241 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003242 # On the NeXT, cc -E runs the code through the compiler's parser,
3243 # not just through cpp. "Syntax error" is here to catch this case.
3244 cat >conftest.$ac_ext <<_ACEOF
3245#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003246/* confdefs.h. */
3247_ACEOF
3248cat confdefs.h >>conftest.$ac_ext
3249cat >>conftest.$ac_ext <<_ACEOF
3250/* end confdefs.h. */
3251#ifdef __STDC__
3252# include <limits.h>
3253#else
3254# include <assert.h>
3255#endif
John Criswell7a73b802003-06-30 21:59:07 +00003256 Syntax error
3257_ACEOF
3258if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3260 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003261 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003262 rm -f conftest.er1
3263 cat conftest.err >&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); } >/dev/null; then
3266 if test -s conftest.err; then
3267 ac_cpp_err=$ac_c_preproc_warn_flag
3268 else
3269 ac_cpp_err=
3270 fi
3271else
3272 ac_cpp_err=yes
3273fi
3274if test -z "$ac_cpp_err"; then
3275 :
3276else
3277 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003278sed 's/^/| /' conftest.$ac_ext >&5
3279
John Criswell7a73b802003-06-30 21:59:07 +00003280 # Broken: fails on valid input.
3281continue
3282fi
3283rm -f conftest.err conftest.$ac_ext
3284
3285 # OK, works on sane cases. Now check whether non-existent headers
3286 # can be detected and how.
3287 cat >conftest.$ac_ext <<_ACEOF
3288#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003289/* confdefs.h. */
3290_ACEOF
3291cat confdefs.h >>conftest.$ac_ext
3292cat >>conftest.$ac_ext <<_ACEOF
3293/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003294#include <ac_nonexistent.h>
3295_ACEOF
3296if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3298 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003299 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003300 rm -f conftest.er1
3301 cat conftest.err >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); } >/dev/null; then
3304 if test -s conftest.err; then
3305 ac_cpp_err=$ac_c_preproc_warn_flag
3306 else
3307 ac_cpp_err=
3308 fi
3309else
3310 ac_cpp_err=yes
3311fi
3312if test -z "$ac_cpp_err"; then
3313 # Broken: success on invalid input.
3314continue
3315else
3316 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003317sed 's/^/| /' conftest.$ac_ext >&5
3318
John Criswell7a73b802003-06-30 21:59:07 +00003319 # Passes both tests.
3320ac_preproc_ok=:
3321break
3322fi
3323rm -f conftest.err conftest.$ac_ext
3324
3325done
3326# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3327rm -f conftest.err conftest.$ac_ext
3328if $ac_preproc_ok; then
3329 break
3330fi
3331
3332 done
3333 ac_cv_prog_CPP=$CPP
3334
3335fi
3336 CPP=$ac_cv_prog_CPP
3337else
3338 ac_cv_prog_CPP=$CPP
3339fi
3340echo "$as_me:$LINENO: result: $CPP" >&5
3341echo "${ECHO_T}$CPP" >&6
3342ac_preproc_ok=false
3343for ac_c_preproc_warn_flag in '' yes
3344do
3345 # Use a header file that comes with gcc, so configuring glibc
3346 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003347 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3348 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003349 # On the NeXT, cc -E runs the code through the compiler's parser,
3350 # not just through cpp. "Syntax error" is here to catch this case.
3351 cat >conftest.$ac_ext <<_ACEOF
3352#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003353/* confdefs.h. */
3354_ACEOF
3355cat confdefs.h >>conftest.$ac_ext
3356cat >>conftest.$ac_ext <<_ACEOF
3357/* end confdefs.h. */
3358#ifdef __STDC__
3359# include <limits.h>
3360#else
3361# include <assert.h>
3362#endif
John Criswell7a73b802003-06-30 21:59:07 +00003363 Syntax error
3364_ACEOF
3365if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3367 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003368 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003369 rm -f conftest.er1
3370 cat conftest.err >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); } >/dev/null; then
3373 if test -s conftest.err; then
3374 ac_cpp_err=$ac_c_preproc_warn_flag
3375 else
3376 ac_cpp_err=
3377 fi
3378else
3379 ac_cpp_err=yes
3380fi
3381if test -z "$ac_cpp_err"; then
3382 :
3383else
3384 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003385sed 's/^/| /' conftest.$ac_ext >&5
3386
John Criswell7a73b802003-06-30 21:59:07 +00003387 # Broken: fails on valid input.
3388continue
3389fi
3390rm -f conftest.err conftest.$ac_ext
3391
3392 # OK, works on sane cases. Now check whether non-existent headers
3393 # can be detected and how.
3394 cat >conftest.$ac_ext <<_ACEOF
3395#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003396/* confdefs.h. */
3397_ACEOF
3398cat confdefs.h >>conftest.$ac_ext
3399cat >>conftest.$ac_ext <<_ACEOF
3400/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003401#include <ac_nonexistent.h>
3402_ACEOF
3403if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3405 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003406 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003407 rm -f conftest.er1
3408 cat conftest.err >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } >/dev/null; then
3411 if test -s conftest.err; then
3412 ac_cpp_err=$ac_c_preproc_warn_flag
3413 else
3414 ac_cpp_err=
3415 fi
3416else
3417 ac_cpp_err=yes
3418fi
3419if test -z "$ac_cpp_err"; then
3420 # Broken: success on invalid input.
3421continue
3422else
3423 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003424sed 's/^/| /' conftest.$ac_ext >&5
3425
John Criswell7a73b802003-06-30 21:59:07 +00003426 # Passes both tests.
3427ac_preproc_ok=:
3428break
3429fi
3430rm -f conftest.err conftest.$ac_ext
3431
3432done
3433# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3434rm -f conftest.err conftest.$ac_ext
3435if $ac_preproc_ok; then
3436 :
3437else
John Criswell0c38eaf2003-09-10 15:17:25 +00003438 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3439See \`config.log' for more details." >&5
3440echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3441See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003442 { (exit 1); exit 1; }; }
3443fi
3444
3445ac_ext=c
3446ac_cpp='$CPP $CPPFLAGS'
3447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3449ac_compiler_gnu=$ac_cv_c_compiler_gnu
3450
3451
3452if test "$GCC" != "yes"
3453then
3454 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3455echo "$as_me: error: gcc required but not found" >&2;}
3456 { (exit 1); exit 1; }; }
3457fi
3458
3459if test "$GXX" != "yes"
3460then
3461 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3462echo "$as_me: error: g++ required but not found" >&2;}
3463 { (exit 1); exit 1; }; }
3464fi
3465
John Criswellde00db22003-08-25 16:49:54 +00003466gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3467if test "$gccmajor" -lt "3"
3468then
3469 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3470echo "$as_me: error: gcc 3.x required" >&2;}
3471 { (exit 1); exit 1; }; }
3472fi
3473
John Criswell7a73b802003-06-30 21:59:07 +00003474 echo "$as_me:$LINENO: checking for GNU make" >&5
3475echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3476if test "${_cv_gnu_make_command+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
3478else
3479 _cv_gnu_make_command='' ;
3480 for a in "$MAKE" make gmake gnumake ; do
3481 if test -z "$a" ; then continue ; fi ;
3482 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3483 _cv_gnu_make_command=$a ;
3484 break;
3485 fi
3486 done ;
3487
3488fi
3489echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3490echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3491 if test "x$_cv_gnu_make_command" != "x" ; then
3492 ifGNUmake='' ;
3493 else
3494 ifGNUmake='#' ;
3495 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3496echo "${ECHO_T}\"Not found\"" >&6;
3497 fi
3498
3499
3500if test -z "$_cv_gnu_make_command"
3501then
3502 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3503echo "$as_me: error: GNU Make required but not found" >&2;}
3504 { (exit 1); exit 1; }; }
3505fi
3506
3507
3508echo "$as_me:$LINENO: checking " >&5
3509echo $ECHO_N "checking ... $ECHO_C" >&6
3510if test "${ac_cv_has_flex+set}" = set; then
3511 echo $ECHO_N "(cached) $ECHO_C" >&6
3512else
3513 for ac_prog in flex lex
3514do
3515 # Extract the first word of "$ac_prog", so it can be a program name with args.
3516set dummy $ac_prog; ac_word=$2
3517echo "$as_me:$LINENO: checking for $ac_word" >&5
3518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3519if test "${ac_cv_prog_LEX+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3521else
3522 if test -n "$LEX"; then
3523 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3524else
3525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526for as_dir in $PATH
3527do
3528 IFS=$as_save_IFS
3529 test -z "$as_dir" && as_dir=.
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3532 ac_cv_prog_LEX="$ac_prog"
3533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 break 2
3535 fi
3536done
3537done
3538
3539fi
3540fi
3541LEX=$ac_cv_prog_LEX
3542if test -n "$LEX"; then
3543 echo "$as_me:$LINENO: result: $LEX" >&5
3544echo "${ECHO_T}$LEX" >&6
3545else
3546 echo "$as_me:$LINENO: result: no" >&5
3547echo "${ECHO_T}no" >&6
3548fi
3549
3550 test -n "$LEX" && break
3551done
3552test -n "$LEX" || LEX=":"
3553
3554if test -z "$LEXLIB"
3555then
3556 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3557echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3558if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3560else
3561 ac_check_lib_save_LIBS=$LIBS
3562LIBS="-lfl $LIBS"
3563cat >conftest.$ac_ext <<_ACEOF
3564#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003565/* confdefs.h. */
3566_ACEOF
3567cat confdefs.h >>conftest.$ac_ext
3568cat >>conftest.$ac_ext <<_ACEOF
3569/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003570
3571/* Override any gcc2 internal prototype to avoid an error. */
3572#ifdef __cplusplus
3573extern "C"
3574#endif
3575/* We use char because int might match the return type of a gcc2
3576 builtin and then its argument prototype would still apply. */
3577char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003578int
3579main ()
3580{
3581yywrap ();
3582 ;
3583 return 0;
3584}
3585_ACEOF
3586rm -f conftest.$ac_objext conftest$ac_exeext
3587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3588 (eval $ac_link) 2>&5
3589 ac_status=$?
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); } &&
3592 { ac_try='test -s conftest$ac_exeext'
3593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3594 (eval $ac_try) 2>&5
3595 ac_status=$?
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); }; }; then
3598 ac_cv_lib_fl_yywrap=yes
3599else
3600 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003601sed 's/^/| /' conftest.$ac_ext >&5
3602
John Criswell7a73b802003-06-30 21:59:07 +00003603ac_cv_lib_fl_yywrap=no
3604fi
3605rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3606LIBS=$ac_check_lib_save_LIBS
3607fi
3608echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3609echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3610if test $ac_cv_lib_fl_yywrap = yes; then
3611 LEXLIB="-lfl"
3612else
3613 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3614echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3615if test "${ac_cv_lib_l_yywrap+set}" = set; then
3616 echo $ECHO_N "(cached) $ECHO_C" >&6
3617else
3618 ac_check_lib_save_LIBS=$LIBS
3619LIBS="-ll $LIBS"
3620cat >conftest.$ac_ext <<_ACEOF
3621#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003622/* confdefs.h. */
3623_ACEOF
3624cat confdefs.h >>conftest.$ac_ext
3625cat >>conftest.$ac_ext <<_ACEOF
3626/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003627
3628/* Override any gcc2 internal prototype to avoid an error. */
3629#ifdef __cplusplus
3630extern "C"
3631#endif
3632/* We use char because int might match the return type of a gcc2
3633 builtin and then its argument prototype would still apply. */
3634char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003635int
3636main ()
3637{
3638yywrap ();
3639 ;
3640 return 0;
3641}
3642_ACEOF
3643rm -f conftest.$ac_objext conftest$ac_exeext
3644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3645 (eval $ac_link) 2>&5
3646 ac_status=$?
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } &&
3649 { ac_try='test -s conftest$ac_exeext'
3650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3651 (eval $ac_try) 2>&5
3652 ac_status=$?
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); }; }; then
3655 ac_cv_lib_l_yywrap=yes
3656else
3657 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003658sed 's/^/| /' conftest.$ac_ext >&5
3659
John Criswell7a73b802003-06-30 21:59:07 +00003660ac_cv_lib_l_yywrap=no
3661fi
3662rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3663LIBS=$ac_check_lib_save_LIBS
3664fi
3665echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3666echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3667if test $ac_cv_lib_l_yywrap = yes; then
3668 LEXLIB="-ll"
3669fi
3670
3671fi
3672
3673fi
3674
3675if test "x$LEX" != "x:"; then
3676 echo "$as_me:$LINENO: checking lex output file root" >&5
3677echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3678if test "${ac_cv_prog_lex_root+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3680else
3681 # The minimal lex program is just a single line: %%. But some broken lexes
3682# (Solaris, I think it was) want two %% lines, so accommodate them.
3683cat >conftest.l <<_ACEOF
3684%%
3685%%
3686_ACEOF
3687{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3688 (eval $LEX conftest.l) 2>&5
3689 ac_status=$?
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); }
3692if test -f lex.yy.c; then
3693 ac_cv_prog_lex_root=lex.yy
3694elif test -f lexyy.c; then
3695 ac_cv_prog_lex_root=lexyy
3696else
3697 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3698echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3699 { (exit 1); exit 1; }; }
3700fi
3701fi
3702echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3703echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3704rm -f conftest.l
3705LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3706
3707echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3708echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3709if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3711else
3712 # POSIX says lex can declare yytext either as a pointer or an array; the
3713# default is implementation-dependent. Figure out which it is, since
3714# not all implementations provide the %pointer and %array declarations.
3715ac_cv_prog_lex_yytext_pointer=no
3716echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3717ac_save_LIBS=$LIBS
3718LIBS="$LIBS $LEXLIB"
3719cat >conftest.$ac_ext <<_ACEOF
3720`cat $LEX_OUTPUT_ROOT.c`
3721_ACEOF
3722rm -f conftest.$ac_objext conftest$ac_exeext
3723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3724 (eval $ac_link) 2>&5
3725 ac_status=$?
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); } &&
3728 { ac_try='test -s conftest$ac_exeext'
3729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730 (eval $ac_try) 2>&5
3731 ac_status=$?
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); }; }; then
3734 ac_cv_prog_lex_yytext_pointer=yes
3735else
3736 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003737sed 's/^/| /' conftest.$ac_ext >&5
3738
John Criswell7a73b802003-06-30 21:59:07 +00003739fi
3740rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3741LIBS=$ac_save_LIBS
3742rm -f "${LEX_OUTPUT_ROOT}.c"
3743
3744fi
3745echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3746echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3747if test $ac_cv_prog_lex_yytext_pointer = yes; then
3748
3749cat >>confdefs.h <<\_ACEOF
3750#define YYTEXT_POINTER 1
3751_ACEOF
3752
3753fi
3754
3755fi
3756
3757fi
3758echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3759echo "${ECHO_T}$ac_cv_has_flex" >&6
3760if test "$LEX" != "flex"; then
3761 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3762echo "$as_me: error: flex not found but required" >&2;}
3763 { (exit 1); exit 1; }; }
3764fi
3765
3766echo "$as_me:$LINENO: checking " >&5
3767echo $ECHO_N "checking ... $ECHO_C" >&6
3768if test "${ac_cv_has_bison+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3770else
3771 for ac_prog in 'bison -y' byacc
3772do
3773 # Extract the first word of "$ac_prog", so it can be a program name with args.
3774set dummy $ac_prog; ac_word=$2
3775echo "$as_me:$LINENO: checking for $ac_word" >&5
3776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3777if test "${ac_cv_prog_YACC+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3779else
3780 if test -n "$YACC"; then
3781 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3782else
3783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784for as_dir in $PATH
3785do
3786 IFS=$as_save_IFS
3787 test -z "$as_dir" && as_dir=.
3788 for ac_exec_ext in '' $ac_executable_extensions; do
3789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3790 ac_cv_prog_YACC="$ac_prog"
3791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3792 break 2
3793 fi
3794done
3795done
3796
3797fi
3798fi
3799YACC=$ac_cv_prog_YACC
3800if test -n "$YACC"; then
3801 echo "$as_me:$LINENO: result: $YACC" >&5
3802echo "${ECHO_T}$YACC" >&6
3803else
3804 echo "$as_me:$LINENO: result: no" >&5
3805echo "${ECHO_T}no" >&6
3806fi
3807
3808 test -n "$YACC" && break
3809done
3810test -n "$YACC" || YACC="yacc"
3811
3812
3813fi
3814echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3815echo "${ECHO_T}$ac_cv_has_bison" >&6
3816if test "$YACC" != "bison -y"; then
3817 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3818echo "$as_me: error: bison not found but required" >&2;}
3819 { (exit 1); exit 1; }; }
3820else
3821 YACC=bison
3822
3823fi
3824
3825
3826# Check whether --enable-shared or --disable-shared was given.
3827if test "${enable_shared+set}" = set; then
3828 enableval="$enable_shared"
3829 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003830 case $enableval in
3831 yes) enable_shared=yes ;;
3832 no) enable_shared=no ;;
3833 *)
3834 enable_shared=no
3835 # Look at the argument we got. We use all the common list separators.
3836 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3837 for pkg in $enableval; do
3838 IFS="$lt_save_ifs"
3839 if test "X$pkg" = "X$p"; then
3840 enable_shared=yes
3841 fi
3842 done
3843 IFS="$lt_save_ifs"
3844 ;;
3845 esac
John Criswell7a73b802003-06-30 21:59:07 +00003846else
3847 enable_shared=yes
3848fi;
John Criswell47fdd832003-07-14 16:52:07 +00003849
John Criswell7a73b802003-06-30 21:59:07 +00003850# Check whether --enable-static or --disable-static was given.
3851if test "${enable_static+set}" = set; then
3852 enableval="$enable_static"
3853 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003854 case $enableval in
3855 yes) enable_static=yes ;;
3856 no) enable_static=no ;;
3857 *)
3858 enable_static=no
3859 # Look at the argument we got. We use all the common list separators.
3860 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3861 for pkg in $enableval; do
3862 IFS="$lt_save_ifs"
3863 if test "X$pkg" = "X$p"; then
3864 enable_static=yes
3865 fi
3866 done
3867 IFS="$lt_save_ifs"
3868 ;;
3869 esac
John Criswell7a73b802003-06-30 21:59:07 +00003870else
3871 enable_static=yes
3872fi;
John Criswell47fdd832003-07-14 16:52:07 +00003873
John Criswell7a73b802003-06-30 21:59:07 +00003874# Check whether --enable-fast-install or --disable-fast-install was given.
3875if test "${enable_fast_install+set}" = set; then
3876 enableval="$enable_fast_install"
3877 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003878 case $enableval in
3879 yes) enable_fast_install=yes ;;
3880 no) enable_fast_install=no ;;
3881 *)
3882 enable_fast_install=no
3883 # Look at the argument we got. We use all the common list separators.
3884 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3885 for pkg in $enableval; do
3886 IFS="$lt_save_ifs"
3887 if test "X$pkg" = "X$p"; then
3888 enable_fast_install=yes
3889 fi
3890 done
3891 IFS="$lt_save_ifs"
3892 ;;
3893 esac
John Criswell7a73b802003-06-30 21:59:07 +00003894else
3895 enable_fast_install=yes
3896fi;
John Criswell47fdd832003-07-14 16:52:07 +00003897
3898echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3899echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3900if test "${lt_cv_path_SED+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3902else
3903 # Loop through the user's path and test for sed and gsed.
3904# Then use that list of sed's as ones to test for truncation.
3905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906for as_dir in $PATH
3907do
3908 IFS=$as_save_IFS
3909 test -z "$as_dir" && as_dir=.
3910 for lt_ac_prog in sed gsed; do
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3913 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3914 fi
3915 done
3916 done
3917done
3918lt_ac_max=0
3919lt_ac_count=0
3920# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3921# along with /bin/sed that truncates output.
3922for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3923 test ! -f $lt_ac_sed && break
3924 cat /dev/null > conftest.in
3925 lt_ac_count=0
3926 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3927 # Check for GNU sed and select it if it is found.
3928 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3929 lt_cv_path_SED=$lt_ac_sed
3930 break
3931 fi
3932 while true; do
3933 cat conftest.in conftest.in >conftest.tmp
3934 mv conftest.tmp conftest.in
3935 cp conftest.in conftest.nl
3936 echo >>conftest.nl
3937 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3938 cmp -s conftest.out conftest.nl || break
3939 # 10000 chars as input seems more than enough
3940 test $lt_ac_count -gt 10 && break
3941 lt_ac_count=`expr $lt_ac_count + 1`
3942 if test $lt_ac_count -gt $lt_ac_max; then
3943 lt_ac_max=$lt_ac_count
3944 lt_cv_path_SED=$lt_ac_sed
3945 fi
3946 done
3947done
3948SED=$lt_cv_path_SED
3949
John Criswell7a73b802003-06-30 21:59:07 +00003950fi
3951
John Criswell47fdd832003-07-14 16:52:07 +00003952echo "$as_me:$LINENO: result: $SED" >&5
3953echo "${ECHO_T}$SED" >&6
3954
3955echo "$as_me:$LINENO: checking for egrep" >&5
3956echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3957if test "${ac_cv_prog_egrep+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3959else
3960 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3961 then ac_cv_prog_egrep='grep -E'
3962 else ac_cv_prog_egrep='egrep'
3963 fi
3964fi
3965echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3966echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3967 EGREP=$ac_cv_prog_egrep
3968
3969
John Criswell7a73b802003-06-30 21:59:07 +00003970
3971# Check whether --with-gnu-ld or --without-gnu-ld was given.
3972if test "${with_gnu_ld+set}" = set; then
3973 withval="$with_gnu_ld"
3974 test "$withval" = no || with_gnu_ld=yes
3975else
3976 with_gnu_ld=no
3977fi;
3978ac_prog=ld
3979if test "$GCC" = yes; then
3980 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003981 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3982echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003983 case $host in
3984 *-*-mingw*)
3985 # gcc leaves a trailing carriage return which upsets mingw
3986 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3987 *)
3988 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3989 esac
3990 case $ac_prog in
3991 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003992 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003993 re_direlt='/[^/][^/]*/\.\./'
3994 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00003995 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003996 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003997 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003998 done
3999 test -z "$LD" && LD="$ac_prog"
4000 ;;
4001 "")
4002 # If it fails, then pretend we aren't using GCC.
4003 ac_prog=ld
4004 ;;
4005 *)
4006 # If it is relative, then search for the first ld in PATH.
4007 with_gnu_ld=unknown
4008 ;;
4009 esac
4010elif test "$with_gnu_ld" = yes; then
4011 echo "$as_me:$LINENO: checking for GNU ld" >&5
4012echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4013else
4014 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4015echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4016fi
4017if test "${lt_cv_path_LD+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4019else
4020 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00004021 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004022 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00004023 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004024 test -z "$ac_dir" && ac_dir=.
4025 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4026 lt_cv_path_LD="$ac_dir/$ac_prog"
4027 # Check to see if the program is GNU ld. I'd rather use --version,
4028 # but apparently some GNU ld's only accept -v.
4029 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00004030 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4031 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004032 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00004033 ;;
4034 *)
John Criswell7a73b802003-06-30 21:59:07 +00004035 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00004036 ;;
4037 esac
John Criswell7a73b802003-06-30 21:59:07 +00004038 fi
4039 done
John Criswell47fdd832003-07-14 16:52:07 +00004040 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004041else
4042 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4043fi
4044fi
4045
4046LD="$lt_cv_path_LD"
4047if test -n "$LD"; then
4048 echo "$as_me:$LINENO: result: $LD" >&5
4049echo "${ECHO_T}$LD" >&6
4050else
4051 echo "$as_me:$LINENO: result: no" >&5
4052echo "${ECHO_T}no" >&6
4053fi
4054test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4055echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4056 { (exit 1); exit 1; }; }
4057echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4058echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4059if test "${lt_cv_prog_gnu_ld+set}" = set; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4061else
4062 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00004063case `"$LD" -v 2>&1 </dev/null` in
4064*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004065 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00004066 ;;
4067*)
John Criswell7a73b802003-06-30 21:59:07 +00004068 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00004069 ;;
4070esac
John Criswell7a73b802003-06-30 21:59:07 +00004071fi
4072echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4073echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4074with_gnu_ld=$lt_cv_prog_gnu_ld
4075
4076
4077echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4078echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4079if test "${lt_cv_ld_reload_flag+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4081else
4082 lt_cv_ld_reload_flag='-r'
4083fi
4084echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4085echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4086reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00004087case $reload_flag in
4088"" | " "*) ;;
4089*) reload_flag=" $reload_flag" ;;
4090esac
4091reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00004092
4093echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4094echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4095if test "${lt_cv_path_NM+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4097else
4098 if test -n "$NM"; then
4099 # Let the user override the test.
4100 lt_cv_path_NM="$NM"
4101else
John Criswell47fdd832003-07-14 16:52:07 +00004102 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004103 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00004104 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004105 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00004106 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4107 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00004108 # Check to see if the nm accepts a BSD-compat flag.
4109 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4110 # nm: unknown option "B" ignored
4111 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00004112 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4113 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00004114 lt_cv_path_NM="$tmp_nm -B"
4115 break
John Criswell47fdd832003-07-14 16:52:07 +00004116 ;;
4117 *)
4118 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4119 */dev/null*)
4120 lt_cv_path_NM="$tmp_nm -p"
4121 break
4122 ;;
4123 *)
4124 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4125 continue # so that we can try to find one that supports BSD flags
4126 ;;
4127 esac
4128 esac
John Criswell7a73b802003-06-30 21:59:07 +00004129 fi
4130 done
John Criswell47fdd832003-07-14 16:52:07 +00004131 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004132 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4133fi
4134fi
John Criswell47fdd832003-07-14 16:52:07 +00004135echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4136echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004137NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00004138
4139echo "$as_me:$LINENO: checking whether ln -s works" >&5
4140echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4141LN_S=$as_ln_s
4142if test "$LN_S" = "ln -s"; then
4143 echo "$as_me:$LINENO: result: yes" >&5
4144echo "${ECHO_T}yes" >&6
4145else
4146 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4147echo "${ECHO_T}no, using $LN_S" >&6
4148fi
4149
John Criswell47fdd832003-07-14 16:52:07 +00004150echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4151echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004152if test "${lt_cv_deplibs_check_method+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4154else
4155 lt_cv_file_magic_cmd='$MAGIC_CMD'
4156lt_cv_file_magic_test_file=
4157lt_cv_deplibs_check_method='unknown'
4158# Need to set the preceding variable on all platforms that support
4159# interlibrary dependencies.
4160# 'none' -- dependencies not supported.
4161# `unknown' -- same as none, but documents that we really don't know.
4162# 'pass_all' -- all dependencies passed with no checks.
4163# 'test_compile' -- check by making test program.
4164# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004165# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004166# If you have `file' or equivalent on your system and you're not sure
4167# whether `pass_all' will *always* work, you probably want this one.
4168
4169case $host_os in
4170aix4* | aix5*)
4171 lt_cv_deplibs_check_method=pass_all
4172 ;;
4173
4174beos*)
4175 lt_cv_deplibs_check_method=pass_all
4176 ;;
4177
4178bsdi4*)
4179 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4180 lt_cv_file_magic_cmd='/usr/bin/file -L'
4181 lt_cv_file_magic_test_file=/shlib/libc.so
4182 ;;
4183
4184cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00004185 # win32_libid is a shell function defined in ltmain.sh
4186 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4187 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00004188 ;;
4189
4190darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004191 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00004192 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4193 lt_cv_file_magic_cmd='/usr/bin/file -L'
4194 case "$host_os" in
4195 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00004196 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00004197 ;;
4198 *) # Darwin 1.3 on
4199 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4200 ;;
4201 esac
John Criswell47fdd832003-07-14 16:52:07 +00004202 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004203 ;;
4204
4205freebsd*)
4206 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4207 case $host_cpu in
4208 i*86 )
4209 # Not sure whether the presence of OpenBSD here was a mistake.
4210 # Let's accept both of them until this is cleared up.
4211 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4212 lt_cv_file_magic_cmd=/usr/bin/file
4213 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4214 ;;
4215 esac
4216 else
4217 lt_cv_deplibs_check_method=pass_all
4218 fi
4219 ;;
4220
4221gnu*)
4222 lt_cv_deplibs_check_method=pass_all
4223 ;;
4224
John Criswell47fdd832003-07-14 16:52:07 +00004225hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004226 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004227 case "$host_cpu" in
4228 ia64*)
4229 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4230 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4231 ;;
4232 hppa*64*)
4233 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]'
4234 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4235 ;;
4236 *)
4237 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4238 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4239 ;;
4240 esac
John Criswell7a73b802003-06-30 21:59:07 +00004241 ;;
4242
John Criswell47fdd832003-07-14 16:52:07 +00004243irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004244 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004245 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004246 # this will be overridden with pass_all, but let us keep it just in case
4247 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4248 ;;
4249 *)
4250 case $LD in
4251 *-32|*"-32 ") libmagic=32-bit;;
4252 *-n32|*"-n32 ") libmagic=N32;;
4253 *-64|*"-64 ") libmagic=64-bit;;
4254 *) libmagic=never-match;;
4255 esac
4256 # this will be overridden with pass_all, but let us keep it just in case
4257 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4258 ;;
4259 esac
4260 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4261 lt_cv_deplibs_check_method=pass_all
4262 ;;
4263
4264# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004265linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004266 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004267 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004268 lt_cv_deplibs_check_method=pass_all ;;
4269 *)
4270 # glibc up to 2.1.1 does not perform some relocations on ARM
4271 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4272 esac
4273 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4274 ;;
4275
4276netbsd*)
4277 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004278 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004279 else
John Criswell47fdd832003-07-14 16:52:07 +00004280 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004281 fi
4282 ;;
4283
4284newos6*)
4285 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4286 lt_cv_file_magic_cmd=/usr/bin/file
4287 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4288 ;;
4289
John Criswell47fdd832003-07-14 16:52:07 +00004290nto-qnx)
4291 lt_cv_deplibs_check_method=unknown
4292 ;;
4293
John Criswell7a73b802003-06-30 21:59:07 +00004294openbsd*)
4295 lt_cv_file_magic_cmd=/usr/bin/file
4296 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4297 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4298 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4299 else
4300 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4301 fi
4302 ;;
4303
4304osf3* | osf4* | osf5*)
4305 # this will be overridden with pass_all, but let us keep it just in case
4306 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4307 lt_cv_file_magic_test_file=/shlib/libc.so
4308 lt_cv_deplibs_check_method=pass_all
4309 ;;
4310
4311sco3.2v5*)
4312 lt_cv_deplibs_check_method=pass_all
4313 ;;
4314
4315solaris*)
4316 lt_cv_deplibs_check_method=pass_all
4317 lt_cv_file_magic_test_file=/lib/libc.so
4318 ;;
4319
John Criswell7a73b802003-06-30 21:59:07 +00004320sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4321 case $host_vendor in
4322 motorola)
4323 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]'
4324 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4325 ;;
4326 ncr)
4327 lt_cv_deplibs_check_method=pass_all
4328 ;;
4329 sequent)
4330 lt_cv_file_magic_cmd='/bin/file'
4331 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4332 ;;
4333 sni)
4334 lt_cv_file_magic_cmd='/bin/file'
4335 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4336 lt_cv_file_magic_test_file=/lib/libc.so
4337 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004338 siemens)
4339 lt_cv_deplibs_check_method=pass_all
4340 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004341 esac
4342 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004343
4344sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4345 lt_cv_deplibs_check_method=pass_all
4346 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004347esac
4348
4349fi
4350echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4351echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4352file_magic_cmd=$lt_cv_file_magic_cmd
4353deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004354test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004355
4356
4357
4358
John Criswell47fdd832003-07-14 16:52:07 +00004359# If no C compiler was specified, use CC.
4360LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004361
John Criswell47fdd832003-07-14 16:52:07 +00004362# Allow CC to be a program name with arguments.
4363compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004364
John Criswell47fdd832003-07-14 16:52:07 +00004365# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4366if test "${enable_libtool_lock+set}" = set; then
4367 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004368
John Criswell47fdd832003-07-14 16:52:07 +00004369fi;
4370test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004371
John Criswell47fdd832003-07-14 16:52:07 +00004372# Some flags need to be propagated to the compiler or linker for good
4373# libtool support.
4374case $host in
4375ia64-*-hpux*)
4376 # Find out which ABI we are using.
4377 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4379 (eval $ac_compile) 2>&5
4380 ac_status=$?
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004383 case `/usr/bin/file conftest.$ac_objext` in
4384 *ELF-32*)
4385 HPUX_IA64_MODE="32"
4386 ;;
4387 *ELF-64*)
4388 HPUX_IA64_MODE="64"
4389 ;;
4390 esac
4391 fi
4392 rm -rf conftest*
4393 ;;
4394*-*-irix6*)
4395 # Find out which ABI we are using.
John Criswell67181ca2003-09-26 14:53:17 +00004396 echo '#line 4396 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4398 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004399 ac_status=$?
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004401 (exit $ac_status); }; then
4402 if test "$lt_cv_prog_gnu_ld" = yes; then
4403 case `/usr/bin/file conftest.$ac_objext` in
4404 *32-bit*)
4405 LD="${LD-ld} -melf32bsmip"
4406 ;;
4407 *N32*)
4408 LD="${LD-ld} -melf32bmipn32"
4409 ;;
4410 *64-bit*)
4411 LD="${LD-ld} -melf64bmip"
4412 ;;
4413 esac
4414 else
4415 case `/usr/bin/file conftest.$ac_objext` in
4416 *32-bit*)
4417 LD="${LD-ld} -32"
4418 ;;
4419 *N32*)
4420 LD="${LD-ld} -n32"
4421 ;;
4422 *64-bit*)
4423 LD="${LD-ld} -64"
4424 ;;
4425 esac
4426 fi
4427 fi
4428 rm -rf conftest*
4429 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004430
John Criswell47fdd832003-07-14 16:52:07 +00004431x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4432 # Find out which ABI we are using.
4433 echo 'int i;' > conftest.$ac_ext
4434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4435 (eval $ac_compile) 2>&5
4436 ac_status=$?
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); }; then
4439 case "`/usr/bin/file conftest.o`" in
4440 *32-bit*)
4441 case $host in
4442 x86_64-*linux*)
4443 LD="${LD-ld} -m elf_i386"
4444 ;;
4445 ppc64-*linux*)
4446 LD="${LD-ld} -m elf32ppclinux"
4447 ;;
4448 s390x-*linux*)
4449 LD="${LD-ld} -m elf_s390"
4450 ;;
4451 sparc64-*linux*)
4452 LD="${LD-ld} -m elf32_sparc"
4453 ;;
4454 esac
4455 ;;
4456 *64-bit*)
4457 case $host in
4458 x86_64-*linux*)
4459 LD="${LD-ld} -m elf_x86_64"
4460 ;;
4461 ppc*-*linux*|powerpc*-*linux*)
4462 LD="${LD-ld} -m elf64ppc"
4463 ;;
4464 s390*-*linux*)
4465 LD="${LD-ld} -m elf64_s390"
4466 ;;
4467 sparc*-*linux*)
4468 LD="${LD-ld} -m elf64_sparc"
4469 ;;
4470 esac
4471 ;;
4472 esac
4473 fi
4474 rm -rf conftest*
4475 ;;
4476
4477*-*-sco3.2v5*)
4478 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4479 SAVE_CFLAGS="$CFLAGS"
4480 CFLAGS="$CFLAGS -belf"
4481 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4482echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4483if test "${lt_cv_cc_needs_belf+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4485else
4486 ac_ext=c
4487ac_cpp='$CPP $CPPFLAGS'
4488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4490ac_compiler_gnu=$ac_cv_c_compiler_gnu
4491
4492 cat >conftest.$ac_ext <<_ACEOF
4493#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004494/* confdefs.h. */
4495_ACEOF
4496cat confdefs.h >>conftest.$ac_ext
4497cat >>conftest.$ac_ext <<_ACEOF
4498/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004499
John Criswell47fdd832003-07-14 16:52:07 +00004500int
4501main ()
John Criswell7a73b802003-06-30 21:59:07 +00004502{
John Criswell7a73b802003-06-30 21:59:07 +00004503
John Criswell47fdd832003-07-14 16:52:07 +00004504 ;
4505 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004506}
John Criswell47fdd832003-07-14 16:52:07 +00004507_ACEOF
4508rm -f conftest.$ac_objext conftest$ac_exeext
4509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004510 (eval $ac_link) 2>&5
4511 ac_status=$?
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004513 (exit $ac_status); } &&
4514 { ac_try='test -s conftest$ac_exeext'
4515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516 (eval $ac_try) 2>&5
4517 ac_status=$?
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }; }; then
4520 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004521else
John Criswell47fdd832003-07-14 16:52:07 +00004522 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004523sed 's/^/| /' conftest.$ac_ext >&5
4524
John Criswell47fdd832003-07-14 16:52:07 +00004525lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004526fi
John Criswell47fdd832003-07-14 16:52:07 +00004527rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4528 ac_ext=c
4529ac_cpp='$CPP $CPPFLAGS'
4530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532ac_compiler_gnu=$ac_cv_c_compiler_gnu
4533
John Criswell7a73b802003-06-30 21:59:07 +00004534fi
John Criswell47fdd832003-07-14 16:52:07 +00004535echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4536echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4537 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4538 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4539 CFLAGS="$SAVE_CFLAGS"
4540 fi
4541 ;;
4542
4543esac
4544
4545need_locks="$enable_libtool_lock"
4546
John Criswell7a73b802003-06-30 21:59:07 +00004547
4548
4549echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4550echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4551if test "${ac_cv_header_stdc+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4553else
4554 cat >conftest.$ac_ext <<_ACEOF
4555#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004556/* confdefs.h. */
4557_ACEOF
4558cat confdefs.h >>conftest.$ac_ext
4559cat >>conftest.$ac_ext <<_ACEOF
4560/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004561#include <stdlib.h>
4562#include <stdarg.h>
4563#include <string.h>
4564#include <float.h>
4565
John Criswell0c38eaf2003-09-10 15:17:25 +00004566int
4567main ()
4568{
4569
4570 ;
4571 return 0;
4572}
John Criswell7a73b802003-06-30 21:59:07 +00004573_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004574rm -f conftest.$ac_objext
4575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4576 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004577 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004579 (exit $ac_status); } &&
4580 { ac_try='test -s conftest.$ac_objext'
4581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 (eval $ac_try) 2>&5
4583 ac_status=$?
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004586 ac_cv_header_stdc=yes
4587else
4588 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004589sed 's/^/| /' conftest.$ac_ext >&5
4590
4591ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004592fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004593rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004594
4595if test $ac_cv_header_stdc = yes; then
4596 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4597 cat >conftest.$ac_ext <<_ACEOF
4598#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004599/* confdefs.h. */
4600_ACEOF
4601cat confdefs.h >>conftest.$ac_ext
4602cat >>conftest.$ac_ext <<_ACEOF
4603/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004604#include <string.h>
4605
4606_ACEOF
4607if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004608 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004609 :
4610else
4611 ac_cv_header_stdc=no
4612fi
4613rm -f conftest*
4614
4615fi
4616
4617if test $ac_cv_header_stdc = yes; then
4618 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4619 cat >conftest.$ac_ext <<_ACEOF
4620#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004621/* confdefs.h. */
4622_ACEOF
4623cat confdefs.h >>conftest.$ac_ext
4624cat >>conftest.$ac_ext <<_ACEOF
4625/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004626#include <stdlib.h>
4627
4628_ACEOF
4629if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004630 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004631 :
4632else
4633 ac_cv_header_stdc=no
4634fi
4635rm -f conftest*
4636
4637fi
4638
4639if test $ac_cv_header_stdc = yes; then
4640 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4641 if test "$cross_compiling" = yes; then
4642 :
4643else
4644 cat >conftest.$ac_ext <<_ACEOF
4645#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004646/* confdefs.h. */
4647_ACEOF
4648cat confdefs.h >>conftest.$ac_ext
4649cat >>conftest.$ac_ext <<_ACEOF
4650/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004651#include <ctype.h>
4652#if ((' ' & 0x0FF) == 0x020)
4653# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4654# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4655#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004656# define ISLOWER(c) \
4657 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004658 || ('j' <= (c) && (c) <= 'r') \
4659 || ('s' <= (c) && (c) <= 'z'))
4660# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4661#endif
4662
4663#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4664int
4665main ()
4666{
4667 int i;
4668 for (i = 0; i < 256; i++)
4669 if (XOR (islower (i), ISLOWER (i))
4670 || toupper (i) != TOUPPER (i))
4671 exit(2);
4672 exit (0);
4673}
4674_ACEOF
4675rm -f conftest$ac_exeext
4676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4677 (eval $ac_link) 2>&5
4678 ac_status=$?
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682 (eval $ac_try) 2>&5
4683 ac_status=$?
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; }; then
4686 :
4687else
4688 echo "$as_me: program exited with status $ac_status" >&5
4689echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004690sed 's/^/| /' conftest.$ac_ext >&5
4691
John Criswell7a73b802003-06-30 21:59:07 +00004692( exit $ac_status )
4693ac_cv_header_stdc=no
4694fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004695rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004696fi
4697fi
4698fi
4699echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4700echo "${ECHO_T}$ac_cv_header_stdc" >&6
4701if test $ac_cv_header_stdc = yes; then
4702
4703cat >>confdefs.h <<\_ACEOF
4704#define STDC_HEADERS 1
4705_ACEOF
4706
4707fi
4708
4709# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4720 inttypes.h stdint.h unistd.h
4721do
4722as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4723echo "$as_me:$LINENO: checking for $ac_header" >&5
4724echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4725if eval "test \"\${$as_ac_Header+set}\" = set"; then
4726 echo $ECHO_N "(cached) $ECHO_C" >&6
4727else
4728 cat >conftest.$ac_ext <<_ACEOF
4729#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004730/* confdefs.h. */
4731_ACEOF
4732cat confdefs.h >>conftest.$ac_ext
4733cat >>conftest.$ac_ext <<_ACEOF
4734/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004735$ac_includes_default
4736
4737#include <$ac_header>
4738_ACEOF
4739rm -f conftest.$ac_objext
4740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4741 (eval $ac_compile) 2>&5
4742 ac_status=$?
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); } &&
4745 { ac_try='test -s conftest.$ac_objext'
4746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4747 (eval $ac_try) 2>&5
4748 ac_status=$?
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); }; }; then
4751 eval "$as_ac_Header=yes"
4752else
4753 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004754sed 's/^/| /' conftest.$ac_ext >&5
4755
John Criswell7a73b802003-06-30 21:59:07 +00004756eval "$as_ac_Header=no"
4757fi
4758rm -f conftest.$ac_objext conftest.$ac_ext
4759fi
4760echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4761echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4762if test `eval echo '${'$as_ac_Header'}'` = yes; then
4763 cat >>confdefs.h <<_ACEOF
4764#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4765_ACEOF
4766
4767fi
4768
4769done
4770
4771
4772
4773for ac_header in dlfcn.h
4774do
4775as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4776if eval "test \"\${$as_ac_Header+set}\" = set"; then
4777 echo "$as_me:$LINENO: checking for $ac_header" >&5
4778echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4779if eval "test \"\${$as_ac_Header+set}\" = set"; then
4780 echo $ECHO_N "(cached) $ECHO_C" >&6
4781fi
4782echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4783echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4784else
4785 # Is the header compilable?
4786echo "$as_me:$LINENO: checking $ac_header usability" >&5
4787echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4788cat >conftest.$ac_ext <<_ACEOF
4789#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004790/* confdefs.h. */
4791_ACEOF
4792cat confdefs.h >>conftest.$ac_ext
4793cat >>conftest.$ac_ext <<_ACEOF
4794/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004795$ac_includes_default
4796#include <$ac_header>
4797_ACEOF
4798rm -f conftest.$ac_objext
4799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4800 (eval $ac_compile) 2>&5
4801 ac_status=$?
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); } &&
4804 { ac_try='test -s conftest.$ac_objext'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806 (eval $ac_try) 2>&5
4807 ac_status=$?
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; }; then
4810 ac_header_compiler=yes
4811else
4812 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004813sed 's/^/| /' conftest.$ac_ext >&5
4814
John Criswell7a73b802003-06-30 21:59:07 +00004815ac_header_compiler=no
4816fi
4817rm -f conftest.$ac_objext conftest.$ac_ext
4818echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4819echo "${ECHO_T}$ac_header_compiler" >&6
4820
4821# Is the header present?
4822echo "$as_me:$LINENO: checking $ac_header presence" >&5
4823echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4824cat >conftest.$ac_ext <<_ACEOF
4825#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004826/* confdefs.h. */
4827_ACEOF
4828cat confdefs.h >>conftest.$ac_ext
4829cat >>conftest.$ac_ext <<_ACEOF
4830/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004831#include <$ac_header>
4832_ACEOF
4833if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4835 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004836 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004837 rm -f conftest.er1
4838 cat conftest.err >&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); } >/dev/null; then
4841 if test -s conftest.err; then
4842 ac_cpp_err=$ac_c_preproc_warn_flag
4843 else
4844 ac_cpp_err=
4845 fi
4846else
4847 ac_cpp_err=yes
4848fi
4849if test -z "$ac_cpp_err"; then
4850 ac_header_preproc=yes
4851else
4852 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004853sed 's/^/| /' conftest.$ac_ext >&5
4854
John Criswell7a73b802003-06-30 21:59:07 +00004855 ac_header_preproc=no
4856fi
4857rm -f conftest.err conftest.$ac_ext
4858echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4859echo "${ECHO_T}$ac_header_preproc" >&6
4860
4861# So? What about this header?
4862case $ac_header_compiler:$ac_header_preproc in
4863 yes:no )
4864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4865echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004867echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4868 (
4869 cat <<\_ASBOX
4870## ------------------------------------ ##
4871## Report this to bug-autoconf@gnu.org. ##
4872## ------------------------------------ ##
4873_ASBOX
4874 ) |
4875 sed "s/^/$as_me: WARNING: /" >&2
4876 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004877 no:yes )
4878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4879echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4881echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004883echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4884 (
4885 cat <<\_ASBOX
4886## ------------------------------------ ##
4887## Report this to bug-autoconf@gnu.org. ##
4888## ------------------------------------ ##
4889_ASBOX
4890 ) |
4891 sed "s/^/$as_me: WARNING: /" >&2
4892 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004893esac
4894echo "$as_me:$LINENO: checking for $ac_header" >&5
4895echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4896if eval "test \"\${$as_ac_Header+set}\" = set"; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
4898else
4899 eval "$as_ac_Header=$ac_header_preproc"
4900fi
4901echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4902echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4903
4904fi
4905if test `eval echo '${'$as_ac_Header'}'` = yes; then
4906 cat >>confdefs.h <<_ACEOF
4907#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4908_ACEOF
4909
4910fi
4911
4912done
4913
John Criswell47fdd832003-07-14 16:52:07 +00004914ac_ext=cc
4915ac_cpp='$CXXCPP $CPPFLAGS'
4916ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4917ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4918ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4919echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4920echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4921if test -z "$CXXCPP"; then
4922 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004923 echo $ECHO_N "(cached) $ECHO_C" >&6
4924else
John Criswell47fdd832003-07-14 16:52:07 +00004925 # Double quotes because CXXCPP needs to be expanded
4926 for CXXCPP in "$CXX -E" "/lib/cpp"
4927 do
4928 ac_preproc_ok=false
4929for ac_cxx_preproc_warn_flag in '' yes
4930do
4931 # Use a header file that comes with gcc, so configuring glibc
4932 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004933 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4934 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004935 # On the NeXT, cc -E runs the code through the compiler's parser,
4936 # not just through cpp. "Syntax error" is here to catch this case.
4937 cat >conftest.$ac_ext <<_ACEOF
4938#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004939/* confdefs.h. */
4940_ACEOF
4941cat confdefs.h >>conftest.$ac_ext
4942cat >>conftest.$ac_ext <<_ACEOF
4943/* end confdefs.h. */
4944#ifdef __STDC__
4945# include <limits.h>
4946#else
4947# include <assert.h>
4948#endif
John Criswell47fdd832003-07-14 16:52:07 +00004949 Syntax error
4950_ACEOF
4951if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4953 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004954 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004955 rm -f conftest.er1
4956 cat conftest.err >&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); } >/dev/null; then
4959 if test -s conftest.err; then
4960 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004961 else
John Criswell47fdd832003-07-14 16:52:07 +00004962 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004963 fi
John Criswell47fdd832003-07-14 16:52:07 +00004964else
4965 ac_cpp_err=yes
4966fi
4967if test -z "$ac_cpp_err"; then
4968 :
4969else
4970 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004971sed 's/^/| /' conftest.$ac_ext >&5
4972
John Criswell47fdd832003-07-14 16:52:07 +00004973 # Broken: fails on valid input.
4974continue
4975fi
4976rm -f conftest.err conftest.$ac_ext
4977
4978 # OK, works on sane cases. Now check whether non-existent headers
4979 # can be detected and how.
4980 cat >conftest.$ac_ext <<_ACEOF
4981#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004982/* confdefs.h. */
4983_ACEOF
4984cat confdefs.h >>conftest.$ac_ext
4985cat >>conftest.$ac_ext <<_ACEOF
4986/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004987#include <ac_nonexistent.h>
4988_ACEOF
4989if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4991 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004992 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004993 rm -f conftest.er1
4994 cat conftest.err >&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } >/dev/null; then
4997 if test -s conftest.err; then
4998 ac_cpp_err=$ac_cxx_preproc_warn_flag
4999 else
5000 ac_cpp_err=
5001 fi
5002else
5003 ac_cpp_err=yes
5004fi
5005if test -z "$ac_cpp_err"; then
5006 # Broken: success on invalid input.
5007continue
5008else
5009 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005010sed 's/^/| /' conftest.$ac_ext >&5
5011
John Criswell47fdd832003-07-14 16:52:07 +00005012 # Passes both tests.
5013ac_preproc_ok=:
5014break
5015fi
5016rm -f conftest.err conftest.$ac_ext
5017
5018done
5019# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5020rm -f conftest.err conftest.$ac_ext
5021if $ac_preproc_ok; then
5022 break
John Criswell7a73b802003-06-30 21:59:07 +00005023fi
5024
John Criswell47fdd832003-07-14 16:52:07 +00005025 done
5026 ac_cv_prog_CXXCPP=$CXXCPP
5027
5028fi
5029 CXXCPP=$ac_cv_prog_CXXCPP
5030else
5031 ac_cv_prog_CXXCPP=$CXXCPP
5032fi
5033echo "$as_me:$LINENO: result: $CXXCPP" >&5
5034echo "${ECHO_T}$CXXCPP" >&6
5035ac_preproc_ok=false
5036for ac_cxx_preproc_warn_flag in '' yes
5037do
5038 # Use a header file that comes with gcc, so configuring glibc
5039 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00005040 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5041 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005042 # On the NeXT, cc -E runs the code through the compiler's parser,
5043 # not just through cpp. "Syntax error" is here to catch this case.
5044 cat >conftest.$ac_ext <<_ACEOF
5045#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005046/* confdefs.h. */
5047_ACEOF
5048cat confdefs.h >>conftest.$ac_ext
5049cat >>conftest.$ac_ext <<_ACEOF
5050/* end confdefs.h. */
5051#ifdef __STDC__
5052# include <limits.h>
5053#else
5054# include <assert.h>
5055#endif
John Criswell47fdd832003-07-14 16:52:07 +00005056 Syntax error
5057_ACEOF
5058if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5060 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005061 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005062 rm -f conftest.er1
5063 cat conftest.err >&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); } >/dev/null; then
5066 if test -s conftest.err; then
5067 ac_cpp_err=$ac_cxx_preproc_warn_flag
5068 else
5069 ac_cpp_err=
5070 fi
5071else
5072 ac_cpp_err=yes
5073fi
5074if test -z "$ac_cpp_err"; then
5075 :
5076else
5077 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005078sed 's/^/| /' conftest.$ac_ext >&5
5079
John Criswell47fdd832003-07-14 16:52:07 +00005080 # Broken: fails on valid input.
5081continue
5082fi
5083rm -f conftest.err conftest.$ac_ext
5084
5085 # OK, works on sane cases. Now check whether non-existent headers
5086 # can be detected and how.
5087 cat >conftest.$ac_ext <<_ACEOF
5088#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005089/* confdefs.h. */
5090_ACEOF
5091cat confdefs.h >>conftest.$ac_ext
5092cat >>conftest.$ac_ext <<_ACEOF
5093/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005094#include <ac_nonexistent.h>
5095_ACEOF
5096if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5098 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005099 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005100 rm -f conftest.er1
5101 cat conftest.err >&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } >/dev/null; then
5104 if test -s conftest.err; then
5105 ac_cpp_err=$ac_cxx_preproc_warn_flag
5106 else
5107 ac_cpp_err=
5108 fi
5109else
5110 ac_cpp_err=yes
5111fi
5112if test -z "$ac_cpp_err"; then
5113 # Broken: success on invalid input.
5114continue
5115else
5116 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005117sed 's/^/| /' conftest.$ac_ext >&5
5118
John Criswell47fdd832003-07-14 16:52:07 +00005119 # Passes both tests.
5120ac_preproc_ok=:
5121break
5122fi
5123rm -f conftest.err conftest.$ac_ext
5124
5125done
5126# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5127rm -f conftest.err conftest.$ac_ext
5128if $ac_preproc_ok; then
5129 :
5130else
John Criswell0c38eaf2003-09-10 15:17:25 +00005131 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5132See \`config.log' for more details." >&5
5133echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5134See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005135 { (exit 1); exit 1; }; }
5136fi
5137
5138ac_ext=cc
5139ac_cpp='$CXXCPP $CPPFLAGS'
5140ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5141ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5142ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5143
5144
5145ac_ext=f
5146ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5147ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5148ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5149if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00005150 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 +00005151 do
5152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5153set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5154echo "$as_me:$LINENO: checking for $ac_word" >&5
5155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5156if test "${ac_cv_prog_F77+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5158else
5159 if test -n "$F77"; then
5160 ac_cv_prog_F77="$F77" # Let the user override the test.
5161else
5162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163for as_dir in $PATH
5164do
5165 IFS=$as_save_IFS
5166 test -z "$as_dir" && as_dir=.
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5169 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 break 2
5172 fi
5173done
5174done
5175
5176fi
5177fi
5178F77=$ac_cv_prog_F77
5179if test -n "$F77"; then
5180 echo "$as_me:$LINENO: result: $F77" >&5
5181echo "${ECHO_T}$F77" >&6
5182else
5183 echo "$as_me:$LINENO: result: no" >&5
5184echo "${ECHO_T}no" >&6
5185fi
5186
5187 test -n "$F77" && break
5188 done
5189fi
5190if test -z "$F77"; then
5191 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00005192 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 +00005193do
5194 # Extract the first word of "$ac_prog", so it can be a program name with args.
5195set dummy $ac_prog; ac_word=$2
5196echo "$as_me:$LINENO: checking for $ac_word" >&5
5197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5198if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5200else
5201 if test -n "$ac_ct_F77"; then
5202 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5203else
5204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205for as_dir in $PATH
5206do
5207 IFS=$as_save_IFS
5208 test -z "$as_dir" && as_dir=.
5209 for ac_exec_ext in '' $ac_executable_extensions; do
5210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5211 ac_cv_prog_ac_ct_F77="$ac_prog"
5212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5213 break 2
5214 fi
5215done
5216done
5217
5218fi
5219fi
5220ac_ct_F77=$ac_cv_prog_ac_ct_F77
5221if test -n "$ac_ct_F77"; then
5222 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5223echo "${ECHO_T}$ac_ct_F77" >&6
5224else
5225 echo "$as_me:$LINENO: result: no" >&5
5226echo "${ECHO_T}no" >&6
5227fi
5228
5229 test -n "$ac_ct_F77" && break
5230done
5231
5232 F77=$ac_ct_F77
5233fi
5234
5235
5236# Provide some information about the compiler.
John Criswell67181ca2003-09-26 14:53:17 +00005237echo "$as_me:5237:" \
John Criswell47fdd832003-07-14 16:52:07 +00005238 "checking for Fortran 77 compiler version" >&5
5239ac_compiler=`set X $ac_compile; echo $2`
5240{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5241 (eval $ac_compiler --version </dev/null >&5) 2>&5
5242 ac_status=$?
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }
5245{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5246 (eval $ac_compiler -v </dev/null >&5) 2>&5
5247 ac_status=$?
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); }
5250{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5251 (eval $ac_compiler -V </dev/null >&5) 2>&5
5252 ac_status=$?
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); }
5255
5256# If we don't use `.F' as extension, the preprocessor is not run on the
5257# input file.
5258ac_save_ext=$ac_ext
5259ac_ext=F
5260echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5261echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5262if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5264else
5265 cat >conftest.$ac_ext <<_ACEOF
5266 program main
5267#ifndef __GNUC__
5268 choke me
5269#endif
5270
5271 end
5272_ACEOF
5273rm -f conftest.$ac_objext
5274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5275 (eval $ac_compile) 2>&5
5276 ac_status=$?
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); } &&
5279 { ac_try='test -s conftest.$ac_objext'
5280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5281 (eval $ac_try) 2>&5
5282 ac_status=$?
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); }; }; then
5285 ac_compiler_gnu=yes
5286else
5287 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005288sed 's/^/| /' conftest.$ac_ext >&5
5289
John Criswell47fdd832003-07-14 16:52:07 +00005290ac_compiler_gnu=no
5291fi
5292rm -f conftest.$ac_objext conftest.$ac_ext
5293ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5294
5295fi
5296echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5297echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5298ac_ext=$ac_save_ext
5299G77=`test $ac_compiler_gnu = yes && echo yes`
5300ac_test_FFLAGS=${FFLAGS+set}
5301ac_save_FFLAGS=$FFLAGS
5302FFLAGS=
5303echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5304echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5305if test "${ac_cv_prog_f77_g+set}" = set; then
5306 echo $ECHO_N "(cached) $ECHO_C" >&6
5307else
5308 FFLAGS=-g
5309cat >conftest.$ac_ext <<_ACEOF
5310 program main
5311
5312 end
5313_ACEOF
5314rm -f conftest.$ac_objext
5315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5316 (eval $ac_compile) 2>&5
5317 ac_status=$?
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); } &&
5320 { ac_try='test -s conftest.$ac_objext'
5321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322 (eval $ac_try) 2>&5
5323 ac_status=$?
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); }; }; then
5326 ac_cv_prog_f77_g=yes
5327else
5328 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005329sed 's/^/| /' conftest.$ac_ext >&5
5330
John Criswell47fdd832003-07-14 16:52:07 +00005331ac_cv_prog_f77_g=no
5332fi
5333rm -f conftest.$ac_objext conftest.$ac_ext
5334
5335fi
5336echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5337echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5338if test "$ac_test_FFLAGS" = set; then
5339 FFLAGS=$ac_save_FFLAGS
5340elif test $ac_cv_prog_f77_g = yes; then
5341 if test "$G77" = yes; then
5342 FFLAGS="-g -O2"
5343 else
5344 FFLAGS="-g"
5345 fi
5346else
5347 if test "$G77" = yes; then
5348 FFLAGS="-O2"
5349 else
5350 FFLAGS=
5351 fi
5352fi
5353ac_ext=c
5354ac_cpp='$CPP $CPPFLAGS'
5355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5357ac_compiler_gnu=$ac_cv_c_compiler_gnu
5358
5359
5360
5361# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5362
5363# find the maximum length of command line arguments
5364echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5365echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5366if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5368else
5369 i=0
5370 testring="ABCD"
5371
5372 case $build_os in
5373 msdosdjgpp*)
5374 # On DJGPP, this test can blow up pretty badly due to problems in libc
5375 # (any single argument exceeding 2000 bytes causes a buffer overrun
5376 # during glob expansion). Even if it were fixed, the result of this
5377 # check would be larger than it should be.
5378 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5379 ;;
5380
5381 gnu*)
5382 # Under GNU Hurd, this test is not required because there is
5383 # no limit to the length of command line arguments.
5384 # Libtool will interpret -1 as no limit whatsoever
5385 lt_cv_sys_max_cmd_len=-1;
5386 ;;
5387
5388 cygwin* | mingw*)
5389 # On Win9x/ME, this test blows up -- it succeeds, but takes
5390 # about 5 minutes as the teststring grows exponentially.
5391 # Worse, since 9x/ME are not pre-emptively multitasking,
5392 # you end up with a "frozen" computer, even though with patience
5393 # the test eventually succeeds (with a max line length of 256k).
5394 # Instead, let's just punt: use the minimum linelength reported by
5395 # all of the supported platforms: 8192 (on NT/2K/XP).
5396 lt_cv_sys_max_cmd_len=8192;
5397 ;;
5398
5399 *)
5400 # If test is not a shell built-in, we'll probably end up computing a
5401 # maximum length that is only half of the actual maximum length, but
5402 # we can't tell.
5403 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5404 = "XX$testring") >/dev/null 2>&1 &&
5405 new_result=`expr "X$testring" : ".*" 2>&1` &&
5406 lt_cv_sys_max_cmd_len=$new_result &&
5407 test $i != 17 # 1/2 MB should be enough
5408 do
5409 i=`expr $i + 1`
5410 testring=$testring$testring
5411 done
5412 testring=
5413 # Add a significant safety factor because C++ compilers can tack on massive
5414 # amounts of additional arguments before passing them to the linker.
5415 # It appears as though 1/2 is a usable value.
5416 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5417 ;;
5418 esac
5419
5420fi
5421
5422if test -n $lt_cv_sys_max_cmd_len ; then
5423 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5424echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5425else
5426 echo "$as_me:$LINENO: result: none" >&5
5427echo "${ECHO_T}none" >&6
5428fi
5429
5430
5431
5432
5433# Check for command to grab the raw symbol name followed by C symbol from nm.
5434echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5435echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5436if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5438else
5439
5440# These are sane defaults that work on at least a few old systems.
5441# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5442
5443# Character class describing NM global symbol codes.
5444symcode='[BCDEGRST]'
5445
5446# Regexp to match symbols that can be accessed directly from C.
5447sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5448
5449# Transform the above into a raw symbol and a C symbol.
5450symxfrm='\1 \2\3 \3'
5451
5452# Transform an extracted symbol line into a proper C declaration
5453lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5454
5455# Transform an extracted symbol line into symbol name and symbol address
5456lt_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'"
5457
5458# Define system-specific variables.
5459case $host_os in
5460aix*)
5461 symcode='[BCDT]'
5462 ;;
5463cygwin* | mingw* | pw32*)
5464 symcode='[ABCDGISTW]'
5465 ;;
5466hpux*) # Its linker distinguishes data from code symbols
5467 if test "$host_cpu" = ia64; then
5468 symcode='[ABCDEGRST]'
5469 fi
5470 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5471 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'"
5472 ;;
5473irix* | nonstopux*)
5474 symcode='[BCDEGRST]'
5475 ;;
5476osf*)
5477 symcode='[BCDEGQRST]'
5478 ;;
5479solaris* | sysv5*)
5480 symcode='[BDT]'
5481 ;;
5482sysv4)
5483 symcode='[DFNSTU]'
5484 ;;
5485esac
5486
5487# Handle CRLF in mingw tool chain
5488opt_cr=
5489case $build_os in
5490mingw*)
5491 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5492 ;;
5493esac
5494
5495# If we're using GNU nm, then use its standard symbol codes.
5496case `$NM -V 2>&1` in
5497*GNU* | *'with BFD'*)
5498 symcode='[ABCDGISTW]' ;;
5499esac
5500
5501# Try without a prefix undercore, then with it.
5502for ac_symprfx in "" "_"; do
5503
5504 # Write the raw and C identifiers.
5505 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5506
5507 # Check to see that the pipe works correctly.
5508 pipe_works=no
5509
5510 rm -f conftest*
5511 cat > conftest.$ac_ext <<EOF
5512#ifdef __cplusplus
5513extern "C" {
5514#endif
5515char nm_test_var;
5516void nm_test_func(){}
5517#ifdef __cplusplus
5518}
5519#endif
5520int main(){nm_test_var='a';nm_test_func();return(0);}
5521EOF
5522
5523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5524 (eval $ac_compile) 2>&5
5525 ac_status=$?
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }; then
5528 # Now try to grab the symbols.
5529 nlist=conftest.nm
5530 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5531 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5532 ac_status=$?
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } && test -s "$nlist"; then
5535 # Try sorting and uniquifying the output.
5536 if sort "$nlist" | uniq > "$nlist"T; then
5537 mv -f "$nlist"T "$nlist"
5538 else
5539 rm -f "$nlist"T
5540 fi
5541
5542 # Make sure that we snagged all the symbols we need.
5543 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5544 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5545 cat <<EOF > conftest.$ac_ext
5546#ifdef __cplusplus
5547extern "C" {
5548#endif
5549
5550EOF
5551 # Now generate the symbol file.
5552 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5553
5554 cat <<EOF >> conftest.$ac_ext
5555#if defined (__STDC__) && __STDC__
5556# define lt_ptr_t void *
5557#else
5558# define lt_ptr_t char *
5559# define const
5560#endif
5561
5562/* The mapping between symbol names and symbols. */
5563const struct {
5564 const char *name;
5565 lt_ptr_t address;
5566}
5567lt_preloaded_symbols[] =
5568{
5569EOF
5570 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5571 cat <<\EOF >> conftest.$ac_ext
5572 {0, (lt_ptr_t) 0}
5573};
5574
5575#ifdef __cplusplus
5576}
5577#endif
5578EOF
5579 # Now try linking the two files.
5580 mv conftest.$ac_objext conftstm.$ac_objext
5581 lt_save_LIBS="$LIBS"
5582 lt_save_CFLAGS="$CFLAGS"
5583 LIBS="conftstm.$ac_objext"
5584 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5586 (eval $ac_link) 2>&5
5587 ac_status=$?
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5590 pipe_works=yes
5591 fi
5592 LIBS="$lt_save_LIBS"
5593 CFLAGS="$lt_save_CFLAGS"
5594 else
5595 echo "cannot find nm_test_func in $nlist" >&5
5596 fi
5597 else
5598 echo "cannot find nm_test_var in $nlist" >&5
5599 fi
5600 else
5601 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5602 fi
5603 else
5604 echo "$progname: failed program was:" >&5
5605 cat conftest.$ac_ext >&5
5606 fi
5607 rm -f conftest* conftst*
5608
5609 # Do not use the global_symbol_pipe unless it works.
5610 if test "$pipe_works" = yes; then
5611 break
5612 else
5613 lt_cv_sys_global_symbol_pipe=
5614 fi
5615done
5616
5617fi
5618
5619if test -z "$lt_cv_sys_global_symbol_pipe"; then
5620 lt_cv_sys_global_symbol_to_cdecl=
5621fi
5622if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5623 echo "$as_me:$LINENO: result: failed" >&5
5624echo "${ECHO_T}failed" >&6
5625else
5626 echo "$as_me:$LINENO: result: ok" >&5
5627echo "${ECHO_T}ok" >&6
5628fi
5629
5630echo "$as_me:$LINENO: checking for objdir" >&5
5631echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5632if test "${lt_cv_objdir+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5634else
5635 rm -f .libs 2>/dev/null
5636mkdir .libs 2>/dev/null
5637if test -d .libs; then
5638 lt_cv_objdir=.libs
5639else
5640 # MS-DOS does not allow filenames that begin with a dot.
5641 lt_cv_objdir=_libs
5642fi
5643rmdir .libs 2>/dev/null
5644fi
5645echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5646echo "${ECHO_T}$lt_cv_objdir" >&6
5647objdir=$lt_cv_objdir
5648
5649
5650
5651
5652
5653case $host_os in
5654aix3*)
5655 # AIX sometimes has problems with the GCC collect2 program. For some
5656 # reason, if we set the COLLECT_NAMES environment variable, the problems
5657 # vanish in a puff of smoke.
5658 if test "X${COLLECT_NAMES+set}" != Xset; then
5659 COLLECT_NAMES=
5660 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005661 fi
5662 ;;
5663esac
5664
John Criswell47fdd832003-07-14 16:52:07 +00005665# Sed substitution that helps us do robust quoting. It backslashifies
5666# metacharacters that are still active within double-quoted strings.
5667Xsed='sed -e s/^X//'
5668sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5669
5670# Same as above, but do not quote variable references.
5671double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5672
5673# Sed substitution to delay expansion of an escaped shell variable in a
5674# double_quote_subst'ed string.
5675delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5676
5677# Sed substitution to avoid accidental globbing in evaled expressions
5678no_glob_subst='s/\*/\\\*/g'
5679
5680# Constants:
5681rm="rm -f"
5682
5683# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005684default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005685can_build_shared=yes
5686
5687# All known linkers require a `.a' archive for static linking (except M$VC,
5688# which needs '.lib').
5689libext=a
5690ltmain="$ac_aux_dir/ltmain.sh"
5691ofile="$default_ofile"
5692with_gnu_ld="$lt_cv_prog_gnu_ld"
5693
5694if test -n "$ac_tool_prefix"; then
5695 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5696set dummy ${ac_tool_prefix}ar; ac_word=$2
5697echo "$as_me:$LINENO: checking for $ac_word" >&5
5698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5699if test "${ac_cv_prog_AR+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5701else
5702 if test -n "$AR"; then
5703 ac_cv_prog_AR="$AR" # Let the user override the test.
5704else
5705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706for as_dir in $PATH
5707do
5708 IFS=$as_save_IFS
5709 test -z "$as_dir" && as_dir=.
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5712 ac_cv_prog_AR="${ac_tool_prefix}ar"
5713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 break 2
5715 fi
5716done
5717done
5718
5719fi
5720fi
5721AR=$ac_cv_prog_AR
5722if test -n "$AR"; then
5723 echo "$as_me:$LINENO: result: $AR" >&5
5724echo "${ECHO_T}$AR" >&6
5725else
5726 echo "$as_me:$LINENO: result: no" >&5
5727echo "${ECHO_T}no" >&6
5728fi
5729
5730fi
5731if test -z "$ac_cv_prog_AR"; then
5732 ac_ct_AR=$AR
5733 # Extract the first word of "ar", so it can be a program name with args.
5734set dummy ar; ac_word=$2
5735echo "$as_me:$LINENO: checking for $ac_word" >&5
5736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5737if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5738 echo $ECHO_N "(cached) $ECHO_C" >&6
5739else
5740 if test -n "$ac_ct_AR"; then
5741 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5742else
5743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744for as_dir in $PATH
5745do
5746 IFS=$as_save_IFS
5747 test -z "$as_dir" && as_dir=.
5748 for ac_exec_ext in '' $ac_executable_extensions; do
5749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5750 ac_cv_prog_ac_ct_AR="ar"
5751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5752 break 2
5753 fi
5754done
5755done
5756
5757 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5758fi
5759fi
5760ac_ct_AR=$ac_cv_prog_ac_ct_AR
5761if test -n "$ac_ct_AR"; then
5762 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5763echo "${ECHO_T}$ac_ct_AR" >&6
5764else
5765 echo "$as_me:$LINENO: result: no" >&5
5766echo "${ECHO_T}no" >&6
5767fi
5768
5769 AR=$ac_ct_AR
5770else
5771 AR="$ac_cv_prog_AR"
5772fi
5773
John Criswell7a73b802003-06-30 21:59:07 +00005774if test -n "$ac_tool_prefix"; then
5775 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5776set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5777echo "$as_me:$LINENO: checking for $ac_word" >&5
5778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5779if test "${ac_cv_prog_RANLIB+set}" = set; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5781else
5782 if test -n "$RANLIB"; then
5783 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5784else
5785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786for as_dir in $PATH
5787do
5788 IFS=$as_save_IFS
5789 test -z "$as_dir" && as_dir=.
5790 for ac_exec_ext in '' $ac_executable_extensions; do
5791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5792 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5794 break 2
5795 fi
5796done
5797done
5798
5799fi
5800fi
5801RANLIB=$ac_cv_prog_RANLIB
5802if test -n "$RANLIB"; then
5803 echo "$as_me:$LINENO: result: $RANLIB" >&5
5804echo "${ECHO_T}$RANLIB" >&6
5805else
5806 echo "$as_me:$LINENO: result: no" >&5
5807echo "${ECHO_T}no" >&6
5808fi
5809
5810fi
5811if test -z "$ac_cv_prog_RANLIB"; then
5812 ac_ct_RANLIB=$RANLIB
5813 # Extract the first word of "ranlib", so it can be a program name with args.
5814set dummy ranlib; ac_word=$2
5815echo "$as_me:$LINENO: checking for $ac_word" >&5
5816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5817if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5819else
5820 if test -n "$ac_ct_RANLIB"; then
5821 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5822else
5823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824for as_dir in $PATH
5825do
5826 IFS=$as_save_IFS
5827 test -z "$as_dir" && as_dir=.
5828 for ac_exec_ext in '' $ac_executable_extensions; do
5829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5830 ac_cv_prog_ac_ct_RANLIB="ranlib"
5831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5832 break 2
5833 fi
5834done
5835done
5836
5837 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5838fi
5839fi
5840ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5841if test -n "$ac_ct_RANLIB"; then
5842 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5843echo "${ECHO_T}$ac_ct_RANLIB" >&6
5844else
5845 echo "$as_me:$LINENO: result: no" >&5
5846echo "${ECHO_T}no" >&6
5847fi
5848
5849 RANLIB=$ac_ct_RANLIB
5850else
5851 RANLIB="$ac_cv_prog_RANLIB"
5852fi
5853
5854if test -n "$ac_tool_prefix"; then
5855 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5856set dummy ${ac_tool_prefix}strip; ac_word=$2
5857echo "$as_me:$LINENO: checking for $ac_word" >&5
5858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5859if test "${ac_cv_prog_STRIP+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
5861else
5862 if test -n "$STRIP"; then
5863 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5864else
5865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866for as_dir in $PATH
5867do
5868 IFS=$as_save_IFS
5869 test -z "$as_dir" && as_dir=.
5870 for ac_exec_ext in '' $ac_executable_extensions; do
5871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5872 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 break 2
5875 fi
5876done
5877done
5878
5879fi
5880fi
5881STRIP=$ac_cv_prog_STRIP
5882if test -n "$STRIP"; then
5883 echo "$as_me:$LINENO: result: $STRIP" >&5
5884echo "${ECHO_T}$STRIP" >&6
5885else
5886 echo "$as_me:$LINENO: result: no" >&5
5887echo "${ECHO_T}no" >&6
5888fi
5889
5890fi
5891if test -z "$ac_cv_prog_STRIP"; then
5892 ac_ct_STRIP=$STRIP
5893 # Extract the first word of "strip", so it can be a program name with args.
5894set dummy strip; ac_word=$2
5895echo "$as_me:$LINENO: checking for $ac_word" >&5
5896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5897if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5899else
5900 if test -n "$ac_ct_STRIP"; then
5901 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5902else
5903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904for as_dir in $PATH
5905do
5906 IFS=$as_save_IFS
5907 test -z "$as_dir" && as_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5910 ac_cv_prog_ac_ct_STRIP="strip"
5911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5912 break 2
5913 fi
5914done
5915done
5916
5917 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5918fi
5919fi
5920ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5921if test -n "$ac_ct_STRIP"; then
5922 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5923echo "${ECHO_T}$ac_ct_STRIP" >&6
5924else
5925 echo "$as_me:$LINENO: result: no" >&5
5926echo "${ECHO_T}no" >&6
5927fi
5928
5929 STRIP=$ac_ct_STRIP
5930else
5931 STRIP="$ac_cv_prog_STRIP"
5932fi
5933
5934
John Criswell7a73b802003-06-30 21:59:07 +00005935old_CC="$CC"
5936old_CFLAGS="$CFLAGS"
5937
5938# Set sane defaults for various variables
5939test -z "$AR" && AR=ar
5940test -z "$AR_FLAGS" && AR_FLAGS=cru
5941test -z "$AS" && AS=as
5942test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005943test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005944test -z "$DLLTOOL" && DLLTOOL=dlltool
5945test -z "$LD" && LD=ld
5946test -z "$LN_S" && LN_S="ln -s"
5947test -z "$MAGIC_CMD" && MAGIC_CMD=file
5948test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005949test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005950test -z "$OBJDUMP" && OBJDUMP=objdump
5951test -z "$RANLIB" && RANLIB=:
5952test -z "$STRIP" && STRIP=:
5953test -z "$ac_objext" && ac_objext=o
5954
John Criswell7a73b802003-06-30 21:59:07 +00005955# Determine commands to create old-style static archives.
5956old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5957old_postinstall_cmds='chmod 644 $oldlib'
5958old_postuninstall_cmds=
5959
5960if test -n "$RANLIB"; then
5961 case $host_os in
5962 openbsd*)
5963 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5964 ;;
5965 *)
5966 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5967 ;;
5968 esac
5969 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5970fi
5971
John Criswell47fdd832003-07-14 16:52:07 +00005972# Only perform the check for file, if the check method requires it
5973case $deplibs_check_method in
5974file_magic*)
5975 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5976 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5977echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5978if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005980else
John Criswell47fdd832003-07-14 16:52:07 +00005981 case $MAGIC_CMD in
5982[\\/*] | ?:[\\/]*)
5983 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5984 ;;
5985*)
5986 lt_save_MAGIC_CMD="$MAGIC_CMD"
5987 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5988 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5989 for ac_dir in $ac_dummy; do
5990 IFS="$lt_save_ifs"
5991 test -z "$ac_dir" && ac_dir=.
5992 if test -f $ac_dir/${ac_tool_prefix}file; then
5993 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5994 if test -n "$file_magic_test_file"; then
5995 case $deplibs_check_method in
5996 "file_magic "*)
5997 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5998 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5999 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6000 $EGREP "$file_magic_regex" > /dev/null; then
6001 :
6002 else
6003 cat <<EOF 1>&2
6004
6005*** Warning: the command libtool uses to detect shared libraries,
6006*** $file_magic_cmd, produces output that libtool cannot recognize.
6007*** The result is that libtool may fail to recognize shared libraries
6008*** as such. This will affect the creation of libtool libraries that
6009*** depend on shared libraries, but programs linked with such libtool
6010*** libraries will work regardless of this problem. Nevertheless, you
6011*** may want to report the problem to your system manager and/or to
6012*** bug-libtool@gnu.org
6013
6014EOF
6015 fi ;;
6016 esac
6017 fi
6018 break
6019 fi
6020 done
6021 IFS="$lt_save_ifs"
6022 MAGIC_CMD="$lt_save_MAGIC_CMD"
6023 ;;
6024esac
John Criswell7a73b802003-06-30 21:59:07 +00006025fi
John Criswell7a73b802003-06-30 21:59:07 +00006026
John Criswell47fdd832003-07-14 16:52:07 +00006027MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6028if test -n "$MAGIC_CMD"; then
6029 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6030echo "${ECHO_T}$MAGIC_CMD" >&6
6031else
6032 echo "$as_me:$LINENO: result: no" >&5
6033echo "${ECHO_T}no" >&6
6034fi
John Criswell7a73b802003-06-30 21:59:07 +00006035
John Criswell47fdd832003-07-14 16:52:07 +00006036if test -z "$lt_cv_path_MAGIC_CMD"; then
6037 if test -n "$ac_tool_prefix"; then
6038 echo "$as_me:$LINENO: checking for file" >&5
6039echo $ECHO_N "checking for file... $ECHO_C" >&6
6040if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6042else
6043 case $MAGIC_CMD in
6044[\\/*] | ?:[\\/]*)
6045 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6046 ;;
6047*)
6048 lt_save_MAGIC_CMD="$MAGIC_CMD"
6049 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6050 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6051 for ac_dir in $ac_dummy; do
6052 IFS="$lt_save_ifs"
6053 test -z "$ac_dir" && ac_dir=.
6054 if test -f $ac_dir/file; then
6055 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6056 if test -n "$file_magic_test_file"; then
6057 case $deplibs_check_method in
6058 "file_magic "*)
6059 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6060 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6061 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6062 $EGREP "$file_magic_regex" > /dev/null; then
6063 :
6064 else
6065 cat <<EOF 1>&2
6066
6067*** Warning: the command libtool uses to detect shared libraries,
6068*** $file_magic_cmd, produces output that libtool cannot recognize.
6069*** The result is that libtool may fail to recognize shared libraries
6070*** as such. This will affect the creation of libtool libraries that
6071*** depend on shared libraries, but programs linked with such libtool
6072*** libraries will work regardless of this problem. Nevertheless, you
6073*** may want to report the problem to your system manager and/or to
6074*** bug-libtool@gnu.org
6075
6076EOF
6077 fi ;;
6078 esac
6079 fi
6080 break
6081 fi
6082 done
6083 IFS="$lt_save_ifs"
6084 MAGIC_CMD="$lt_save_MAGIC_CMD"
6085 ;;
6086esac
6087fi
6088
6089MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6090if test -n "$MAGIC_CMD"; then
6091 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6092echo "${ECHO_T}$MAGIC_CMD" >&6
6093else
6094 echo "$as_me:$LINENO: result: no" >&5
6095echo "${ECHO_T}no" >&6
6096fi
6097
6098 else
6099 MAGIC_CMD=:
6100 fi
6101fi
6102
6103 fi
6104 ;;
6105esac
6106
6107enable_dlopen=no
6108enable_win32_dll=no
6109
6110# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6111if test "${enable_libtool_lock+set}" = set; then
6112 enableval="$enable_libtool_lock"
6113
6114fi;
6115test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6116
John Criswell7a73b802003-06-30 21:59:07 +00006117
6118# Check whether --with-pic or --without-pic was given.
6119if test "${with_pic+set}" = set; then
6120 withval="$with_pic"
6121 pic_mode="$withval"
6122else
6123 pic_mode=default
6124fi;
6125test -z "$pic_mode" && pic_mode=default
6126
John Criswell47fdd832003-07-14 16:52:07 +00006127# Use C for the default configuration in the libtool script
6128tagname=
6129lt_save_CC="$CC"
6130ac_ext=c
6131ac_cpp='$CPP $CPPFLAGS'
6132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6134ac_compiler_gnu=$ac_cv_c_compiler_gnu
6135
6136
6137# Source file extension for C test sources.
6138ac_ext=c
6139
6140# Object file extension for compiled C test sources.
6141objext=o
6142objext=$objext
6143
6144# Code to be used in simple compile tests
6145lt_simple_compile_test_code="int some_variable = 0;\n"
6146
6147# Code to be used in simple link tests
6148lt_simple_link_test_code='int main(){return(0);}\n'
6149
6150
6151# If no C compiler was specified, use CC.
6152LTCC=${LTCC-"$CC"}
6153
6154# Allow CC to be a program name with arguments.
6155compiler=$CC
6156
6157
6158#
6159# Check for any special shared library compilation flags.
6160#
6161lt_prog_cc_shlib=
6162if test "$GCC" = no; then
6163 case $host_os in
6164 sco3.2v5*)
6165 lt_prog_cc_shlib='-belf'
6166 ;;
6167 esac
6168fi
6169if test -n "$lt_prog_cc_shlib"; then
6170 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6171echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6172 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6173 else
6174 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6175echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6176 lt_cv_prog_cc_can_build_shared=no
6177 fi
6178fi
6179
6180
6181#
6182# Check to make sure the static flag actually works.
6183#
6184echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6185echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6186if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006187 echo $ECHO_N "(cached) $ECHO_C" >&6
6188else
John Criswell47fdd832003-07-14 16:52:07 +00006189 lt_prog_compiler_static_works=no
6190 save_LDFLAGS="$LDFLAGS"
6191 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6192 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6193 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6194 # The compiler can only warn and ignore the option if not recognized
6195 # So say no if there are warnings
6196 if test -s conftest.err; then
6197 # Append any errors to the config.log.
6198 cat conftest.err 1>&5
6199 else
6200 lt_prog_compiler_static_works=yes
6201 fi
6202 fi
6203 $rm conftest*
6204 LDFLAGS="$save_LDFLAGS"
6205
6206fi
6207echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6208echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6209
6210if test x"$lt_prog_compiler_static_works" = xyes; then
6211 :
6212else
6213 lt_prog_compiler_static=
6214fi
6215
6216
6217
6218## CAVEAT EMPTOR:
6219## There is no encapsulation within the following macros, do not change
6220## the running order or otherwise move them around unless you know exactly
6221## what you are doing...
6222
6223lt_prog_compiler_no_builtin_flag=
6224
6225if test "$GCC" = yes; then
6226 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6227
6228 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6229echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6230if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6232else
6233 lt_cv_prog_compiler_rtti_exceptions=no
6234 ac_outfile=conftest.$ac_objext
6235 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6236 lt_compiler_flag="-fno-rtti -fno-exceptions"
6237 # Insert the option either (1) after the last *FLAGS variable, or
6238 # (2) before a word containing "conftest.", or (3) at the end.
6239 # Note that $ac_compile itself does not contain backslashes and begins
6240 # with a dollar sign (not a hyphen), so the echo should work correctly.
6241 # The option is referenced via a variable to avoid confusing sed.
6242 lt_compile=`echo "$ac_compile" | $SED \
6243 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6244 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6245 -e 's:$: $lt_compiler_flag:'`
John Criswell67181ca2003-09-26 14:53:17 +00006246 (eval echo "\"\$as_me:6246: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006247 (eval "$lt_compile" 2>conftest.err)
6248 ac_status=$?
6249 cat conftest.err >&5
John Criswell67181ca2003-09-26 14:53:17 +00006250 echo "$as_me:6250: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006251 if (exit $ac_status) && test -s "$ac_outfile"; then
6252 # The compiler can only warn and ignore the option if not recognized
6253 # So say no if there are warnings
6254 if test ! -s conftest.err; then
6255 lt_cv_prog_compiler_rtti_exceptions=yes
6256 fi
6257 fi
6258 $rm conftest*
6259
6260fi
6261echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6262echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6263
6264if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6265 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6266else
6267 :
6268fi
6269
6270fi
6271
6272lt_prog_compiler_wl=
6273lt_prog_compiler_pic=
6274lt_prog_compiler_static=
6275
6276echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6277echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006278
6279 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006280 lt_prog_compiler_wl='-Wl,'
6281 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006282
6283 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006284 aix*)
6285 # All AIX code is PIC.
6286 if test "$host_cpu" = ia64; then
6287 # AIX 5 now supports IA64 processor
6288 lt_prog_compiler_static='-Bstatic'
6289 fi
John Criswell7a73b802003-06-30 21:59:07 +00006290 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006291
John Criswell7a73b802003-06-30 21:59:07 +00006292 amigaos*)
6293 # FIXME: we need at least 68020 code to build shared libraries, but
6294 # adding the `-m68020' flag to GCC prevents building anything better,
6295 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006296 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006297 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006298
6299 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006300 # PIC is the default for these OSes.
6301 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006302
6303 mingw* | pw32* | os2*)
6304 # This hack is so that the source file can tell whether it is being
6305 # built for inclusion in a dll (and should export symbols for example).
6306 lt_prog_compiler_pic='-DDLL_EXPORT'
6307 ;;
6308
John Criswell7a73b802003-06-30 21:59:07 +00006309 darwin* | rhapsody*)
6310 # PIC is the default on this platform
6311 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006312 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006313 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006314
6315 msdosdjgpp*)
6316 # Just because we use GCC doesn't mean we suddenly get shared libraries
6317 # on systems that don't support them.
6318 lt_prog_compiler_can_build_shared=no
6319 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006320 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006321
John Criswell7a73b802003-06-30 21:59:07 +00006322 sysv4*MP*)
6323 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006324 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006325 fi
6326 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006327
6328 hpux*)
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='-fPIC'
6337 ;;
6338 esac
6339 ;;
6340
John Criswell7a73b802003-06-30 21:59:07 +00006341 *)
John Criswell47fdd832003-07-14 16:52:07 +00006342 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006343 ;;
6344 esac
6345 else
John Criswell47fdd832003-07-14 16:52:07 +00006346 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006347 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006348 aix*)
6349 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006350 if test "$host_cpu" = ia64; then
6351 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006352 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006353 else
John Criswell47fdd832003-07-14 16:52:07 +00006354 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006355 fi
6356 ;;
6357
John Criswell47fdd832003-07-14 16:52:07 +00006358 mingw* | pw32* | os2*)
6359 # This hack is so that the source file can tell whether it is being
6360 # built for inclusion in a dll (and should export symbols for example).
6361 lt_prog_compiler_pic='-DDLL_EXPORT'
6362 ;;
6363
John Criswell7a73b802003-06-30 21:59:07 +00006364 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006365 lt_prog_compiler_wl='-Wl,'
6366 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6367 # not for PA HP-UX.
6368 case "$host_cpu" in
6369 hppa*64*|ia64*)
6370 # +Z the default
6371 ;;
6372 *)
6373 lt_prog_compiler_pic='+Z'
6374 ;;
6375 esac
6376 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6377 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006378 ;;
6379
John Criswell47fdd832003-07-14 16:52:07 +00006380 irix5* | irix6* | nonstopux*)
6381 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006382 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006383 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006384 ;;
6385
6386 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006387 lt_prog_compiler_pic='-KPIC'
6388 lt_prog_compiler_static='-Bstatic'
6389 ;;
6390
6391 linux*)
6392 case $CC in
6393 icc|ecc)
6394 lt_prog_compiler_wl='-Wl,'
6395 lt_prog_compiler_pic='-KPIC'
6396 lt_prog_compiler_static='-static'
6397 ;;
6398 ccc)
6399 lt_prog_compiler_wl='-Wl,'
6400 # All Alpha code is PIC.
6401 lt_prog_compiler_static='-non_shared'
6402 ;;
6403 esac
John Criswell7a73b802003-06-30 21:59:07 +00006404 ;;
6405
6406 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006407 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006408 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006409 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006410 ;;
6411
6412 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006413 lt_prog_compiler_pic='-Kpic'
6414 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006415 ;;
6416
6417 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006418 lt_prog_compiler_wl='-Wl,'
6419 lt_prog_compiler_pic='-KPIC'
6420 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006421 ;;
6422
6423 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006424 lt_prog_compiler_wl='-Qoption ld '
6425 lt_prog_compiler_pic='-PIC'
6426 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006427 ;;
6428
6429 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006430 lt_prog_compiler_wl='-Wl,'
6431 lt_prog_compiler_pic='-KPIC'
6432 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006433 ;;
6434
6435 sysv4*MP*)
6436 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006437 lt_prog_compiler_pic='-Kconform_pic'
6438 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006439 fi
6440 ;;
6441
John Criswell47fdd832003-07-14 16:52:07 +00006442 uts4*)
6443 lt_prog_compiler_pic='-pic'
6444 lt_prog_compiler_static='-Bstatic'
6445 ;;
6446
John Criswell7a73b802003-06-30 21:59:07 +00006447 *)
John Criswell47fdd832003-07-14 16:52:07 +00006448 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006449 ;;
6450 esac
6451 fi
6452
John Criswell47fdd832003-07-14 16:52:07 +00006453echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6454echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006455
John Criswell47fdd832003-07-14 16:52:07 +00006456#
6457# Check to make sure the PIC flag actually works.
6458#
6459if test -n "$lt_prog_compiler_pic"; then
6460 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6461echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6462if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006463 echo $ECHO_N "(cached) $ECHO_C" >&6
6464else
John Criswell47fdd832003-07-14 16:52:07 +00006465 lt_prog_compiler_pic_works=no
6466 ac_outfile=conftest.$ac_objext
6467 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6468 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6469 # Insert the option either (1) after the last *FLAGS variable, or
6470 # (2) before a word containing "conftest.", or (3) at the end.
6471 # Note that $ac_compile itself does not contain backslashes and begins
6472 # with a dollar sign (not a hyphen), so the echo should work correctly.
6473 # The option is referenced via a variable to avoid confusing sed.
6474 lt_compile=`echo "$ac_compile" | $SED \
6475 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6477 -e 's:$: $lt_compiler_flag:'`
John Criswell67181ca2003-09-26 14:53:17 +00006478 (eval echo "\"\$as_me:6478: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006479 (eval "$lt_compile" 2>conftest.err)
6480 ac_status=$?
6481 cat conftest.err >&5
John Criswell67181ca2003-09-26 14:53:17 +00006482 echo "$as_me:6482: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006483 if (exit $ac_status) && test -s "$ac_outfile"; then
6484 # The compiler can only warn and ignore the option if not recognized
6485 # So say no if there are warnings
6486 if test ! -s conftest.err; then
6487 lt_prog_compiler_pic_works=yes
6488 fi
6489 fi
6490 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006491
John Criswell47fdd832003-07-14 16:52:07 +00006492fi
6493echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6494echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006495
John Criswell47fdd832003-07-14 16:52:07 +00006496if test x"$lt_prog_compiler_pic_works" = xyes; then
6497 case $lt_prog_compiler_pic in
6498 "" | " "*) ;;
6499 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6500 esac
John Criswell7a73b802003-06-30 21:59:07 +00006501else
John Criswell47fdd832003-07-14 16:52:07 +00006502 lt_prog_compiler_pic=
6503 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006504fi
6505
John Criswell7a73b802003-06-30 21:59:07 +00006506fi
John Criswell47fdd832003-07-14 16:52:07 +00006507case "$host_os" in
6508 # For platforms which do not support PIC, -DPIC is meaningless:
6509 *djgpp*)
6510 lt_prog_compiler_pic=
6511 ;;
6512 *)
6513 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6514 ;;
6515esac
John Criswell7a73b802003-06-30 21:59:07 +00006516
John Criswell7a73b802003-06-30 21:59:07 +00006517echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6518echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006519if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006520 echo $ECHO_N "(cached) $ECHO_C" >&6
6521else
John Criswell47fdd832003-07-14 16:52:07 +00006522 lt_cv_prog_compiler_c_o=no
6523 $rm -r conftest 2>/dev/null
6524 mkdir conftest
6525 cd conftest
6526 mkdir out
6527 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006528
John Criswell47fdd832003-07-14 16:52:07 +00006529 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6530 # that will create temporary files in the current directory regardless of
6531 # the output directory. Thus, making CWD read-only will cause this test
6532 # to fail, enabling locking or at least warning the user not to do parallel
6533 # builds.
6534 chmod -w .
6535
6536 lt_compiler_flag="-o out/conftest2.$ac_objext"
6537 # Insert the option either (1) after the last *FLAGS variable, or
6538 # (2) before a word containing "conftest.", or (3) at the end.
6539 # Note that $ac_compile itself does not contain backslashes and begins
6540 # with a dollar sign (not a hyphen), so the echo should work correctly.
6541 lt_compile=`echo "$ac_compile" | $SED \
6542 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6543 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6544 -e 's:$: $lt_compiler_flag:'`
John Criswell67181ca2003-09-26 14:53:17 +00006545 (eval echo "\"\$as_me:6545: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006546 (eval "$lt_compile" 2>out/conftest.err)
6547 ac_status=$?
6548 cat out/conftest.err >&5
John Criswell67181ca2003-09-26 14:53:17 +00006549 echo "$as_me:6549: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006550 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6551 then
6552 # The compiler can only warn and ignore the option if not recognized
6553 # So say no if there are warnings
6554 if test ! -s out/conftest.err; then
6555 lt_cv_prog_compiler_c_o=yes
6556 fi
6557 fi
6558 chmod u+w .
6559 $rm conftest* out/*
6560 rmdir out
6561 cd ..
6562 rmdir conftest
6563 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006564
6565fi
John Criswell47fdd832003-07-14 16:52:07 +00006566echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6567echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006568
John Criswell7a73b802003-06-30 21:59:07 +00006569
John Criswell7a73b802003-06-30 21:59:07 +00006570hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006571if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006572 # do not overwrite the value of need_locks provided by the user
6573 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6574echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6575 hard_links=yes
6576 $rm conftest*
6577 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6578 touch conftest.a
6579 ln conftest.a conftest.b 2>&5 || hard_links=no
6580 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6581 echo "$as_me:$LINENO: result: $hard_links" >&5
6582echo "${ECHO_T}$hard_links" >&6
6583 if test "$hard_links" = no; then
6584 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6585echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6586 need_locks=warn
6587 fi
6588else
6589 need_locks=no
6590fi
John Criswell7a73b802003-06-30 21:59:07 +00006591
John Criswell47fdd832003-07-14 16:52:07 +00006592echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6593echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6594
6595 runpath_var=
6596 allow_undefined_flag=
6597 enable_shared_with_static_runtimes=no
6598 archive_cmds=
6599 archive_expsym_cmds=
6600 old_archive_From_new_cmds=
6601 old_archive_from_expsyms_cmds=
6602 export_dynamic_flag_spec=
6603 whole_archive_flag_spec=
6604 thread_safe_flag_spec=
6605 hardcode_libdir_flag_spec=
6606 hardcode_libdir_flag_spec_ld=
6607 hardcode_libdir_separator=
6608 hardcode_direct=no
6609 hardcode_minus_L=no
6610 hardcode_shlibpath_var=unsupported
6611 link_all_deplibs=unknown
6612 hardcode_automatic=no
6613 module_cmds=
6614 module_expsym_cmds=
6615 always_export_symbols=no
6616 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6617 # include_expsyms should be a list of space-separated symbols to be *always*
6618 # included in the symbol list
6619 include_expsyms=
6620 # exclude_expsyms can be an extended regexp of symbols to exclude
6621 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6622 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6623 # as well as any symbol that contains `d'.
6624 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6625 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6626 # platforms (ab)use it in PIC code, but their linkers get confused if
6627 # the symbol is explicitly referenced. Since portable code cannot
6628 # rely on this symbol name, it's probably fine to never include it in
6629 # preloaded symbol tables.
6630 extract_expsyms_cmds=
6631
6632 case $host_os in
6633 cygwin* | mingw* | pw32*)
6634 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6635 # When not using gcc, we currently assume that we are using
6636 # Microsoft Visual C++.
6637 if test "$GCC" != yes; then
6638 with_gnu_ld=no
6639 fi
6640 ;;
6641 openbsd*)
6642 with_gnu_ld=no
6643 ;;
6644 esac
6645
6646 ld_shlibs=yes
6647 if test "$with_gnu_ld" = yes; then
6648 # If archive_cmds runs LD, not CC, wlarc should be empty
6649 wlarc='${wl}'
6650
6651 # See if GNU ld supports shared libraries.
6652 case $host_os in
6653 aix3* | aix4* | aix5*)
6654 # On AIX/PPC, the GNU linker is very broken
6655 if test "$host_cpu" != ia64; then
6656 ld_shlibs=no
6657 cat <<EOF 1>&2
6658
6659*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6660*** to be unable to reliably create shared libraries on AIX.
6661*** Therefore, libtool is disabling shared libraries support. If you
6662*** really care for shared libraries, you may want to modify your PATH
6663*** so that a non-GNU linker is found, and then restart.
6664
6665EOF
6666 fi
6667 ;;
6668
6669 amigaos*)
6670 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)'
6671 hardcode_libdir_flag_spec='-L$libdir'
6672 hardcode_minus_L=yes
6673
6674 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6675 # that the semantics of dynamic libraries on AmigaOS, at least up
6676 # to version 4, is to share data among multiple programs linked
6677 # with the same dynamic library. Since this doesn't match the
6678 # behavior of shared libraries on other platforms, we can't use
6679 # them.
6680 ld_shlibs=no
6681 ;;
6682
6683 beos*)
6684 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6685 allow_undefined_flag=unsupported
6686 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6687 # support --undefined. This deserves some investigation. FIXME
6688 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6689 else
6690 ld_shlibs=no
6691 fi
6692 ;;
6693
6694 cygwin* | mingw* | pw32*)
6695 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6696 # as there is no search path for DLLs.
6697 hardcode_libdir_flag_spec='-L$libdir'
6698 allow_undefined_flag=unsupported
6699 always_export_symbols=no
6700 enable_shared_with_static_runtimes=yes
6701 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6702
6703 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6705 # If the export-symbols file already is a .def file (1st line
6706 # is EXPORTS), use it as is; otherwise, prepend...
6707 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6708 cp $export_symbols $output_objdir/$soname.def;
6709 else
6710 echo EXPORTS > $output_objdir/$soname.def;
6711 cat $export_symbols >> $output_objdir/$soname.def;
6712 fi~
6713 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6714 else
6715 ld_shlibs=no
6716 fi
6717 ;;
6718
6719 netbsd*)
6720 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6721 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6722 wlarc=
6723 else
6724 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6725 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6726 fi
6727 ;;
6728
6729 solaris* | sysv5*)
6730 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6731 ld_shlibs=no
6732 cat <<EOF 1>&2
6733
6734*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6735*** create shared libraries on Solaris systems. Therefore, libtool
6736*** is disabling shared libraries support. We urge you to upgrade GNU
6737*** binutils to release 2.9.1 or newer. Another option is to modify
6738*** your PATH or compiler configuration so that the native linker is
6739*** used, and then restart.
6740
6741EOF
6742 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6743 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6744 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6745 else
6746 ld_shlibs=no
6747 fi
6748 ;;
6749
6750 sunos4*)
6751 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6752 wlarc=
6753 hardcode_direct=yes
6754 hardcode_shlibpath_var=no
6755 ;;
6756
6757 *)
6758 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6760 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6761 else
6762 ld_shlibs=no
6763 fi
6764 ;;
6765 esac
6766
6767 if test "$ld_shlibs" = yes; then
6768 runpath_var=LD_RUN_PATH
6769 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6770 export_dynamic_flag_spec='${wl}--export-dynamic'
6771 # ancient GNU ld didn't support --whole-archive et. al.
6772 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6773 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6774 else
6775 whole_archive_flag_spec=
6776 fi
6777 fi
6778 else
6779 # PORTME fill in a description of your system's linker (not GNU ld)
6780 case $host_os in
6781 aix3*)
6782 allow_undefined_flag=unsupported
6783 always_export_symbols=yes
6784 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'
6785 # Note: this linker hardcodes the directories in LIBPATH if there
6786 # are no directories specified by -L.
6787 hardcode_minus_L=yes
6788 if test "$GCC" = yes && test -z "$link_static_flag"; then
6789 # Neither direct hardcoding nor static linking is supported with a
6790 # broken collect2.
6791 hardcode_direct=unsupported
6792 fi
6793 ;;
6794
6795 aix4* | aix5*)
6796 if test "$host_cpu" = ia64; then
6797 # On IA64, the linker does run time linking by default, so we don't
6798 # have to do anything special.
6799 aix_use_runtimelinking=no
6800 exp_sym_flag='-Bexport'
6801 no_entry_flag=""
6802 else
6803 # If we're using GNU nm, then we don't want the "-C" option.
6804 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6805 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6806 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'
6807 else
6808 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'
6809 fi
6810 aix_use_runtimelinking=no
6811
6812 # Test if we are trying to use run time linking or normal
6813 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6814 # need to do runtime linking.
6815 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6816 for ld_flag in $LDFLAGS; do
6817 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6818 aix_use_runtimelinking=yes
6819 break
6820 fi
6821 done
6822 esac
6823
6824 exp_sym_flag='-bexport'
6825 no_entry_flag='-bnoentry'
6826 fi
6827
6828 # When large executables or shared objects are built, AIX ld can
6829 # have problems creating the table of contents. If linking a library
6830 # or program results in "error TOC overflow" add -mminimal-toc to
6831 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6832 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6833
6834 archive_cmds=''
6835 hardcode_direct=yes
6836 hardcode_libdir_separator=':'
6837 link_all_deplibs=yes
6838
6839 if test "$GCC" = yes; then
6840 case $host_os in aix4.012|aix4.012.*)
6841 # We only want to do this on AIX 4.2 and lower, the check
6842 # below for broken collect2 doesn't work under 4.3+
6843 collect2name=`${CC} -print-prog-name=collect2`
6844 if test -f "$collect2name" && \
6845 strings "$collect2name" | grep resolve_lib_name >/dev/null
6846 then
6847 # We have reworked collect2
6848 hardcode_direct=yes
6849 else
6850 # We have old collect2
6851 hardcode_direct=unsupported
6852 # It fails to find uninstalled libraries when the uninstalled
6853 # path is not listed in the libpath. Setting hardcode_minus_L
6854 # to unsupported forces relinking
6855 hardcode_minus_L=yes
6856 hardcode_libdir_flag_spec='-L$libdir'
6857 hardcode_libdir_separator=
6858 fi
6859 esac
6860 shared_flag='-shared'
6861 else
6862 # not using gcc
6863 if test "$host_cpu" = ia64; then
6864 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6865 # chokes on -Wl,-G. The following line is correct:
6866 shared_flag='-G'
6867 else
6868 if test "$aix_use_runtimelinking" = yes; then
6869 shared_flag='${wl}-G'
6870 else
6871 shared_flag='${wl}-bM:SRE'
6872 fi
6873 fi
6874 fi
6875
6876 # It seems that -bexpall does not export symbols beginning with
6877 # underscore (_), so it is better to generate a list of symbols to export.
6878 always_export_symbols=yes
6879 if test "$aix_use_runtimelinking" = yes; then
6880 # Warning - without using the other runtime loading flags (-brtl),
6881 # -berok will link without error, but may produce a broken library.
6882 allow_undefined_flag='-berok'
6883 # Determine the default libpath from the value encoded in an empty executable.
6884 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006885#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006886/* confdefs.h. */
6887_ACEOF
6888cat confdefs.h >>conftest.$ac_ext
6889cat >>conftest.$ac_ext <<_ACEOF
6890/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006891
John Criswell7a73b802003-06-30 21:59:07 +00006892int
6893main ()
6894{
John Criswell47fdd832003-07-14 16:52:07 +00006895
John Criswell7a73b802003-06-30 21:59:07 +00006896 ;
6897 return 0;
6898}
6899_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006900rm -f conftest.$ac_objext conftest$ac_exeext
6901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6902 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006903 ac_status=$?
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006906 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908 (eval $ac_try) 2>&5
6909 ac_status=$?
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006912
John Criswell47fdd832003-07-14 16:52:07 +00006913aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6914}'`
6915# Check for a 64-bit object if we didn't find anything.
6916if 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; }
6917}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006918else
6919 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006920sed 's/^/| /' conftest.$ac_ext >&5
6921
John Criswell7a73b802003-06-30 21:59:07 +00006922fi
John Criswell47fdd832003-07-14 16:52:07 +00006923rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6924if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006925
John Criswell47fdd832003-07-14 16:52:07 +00006926 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6927 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"
6928 else
6929 if test "$host_cpu" = ia64; then
6930 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6931 allow_undefined_flag="-z nodefs"
6932 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"
6933 else
6934 # Determine the default libpath from the value encoded in an empty executable.
6935 cat >conftest.$ac_ext <<_ACEOF
6936#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006937/* confdefs.h. */
6938_ACEOF
6939cat confdefs.h >>conftest.$ac_ext
6940cat >>conftest.$ac_ext <<_ACEOF
6941/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006942
John Criswell47fdd832003-07-14 16:52:07 +00006943int
6944main ()
6945{
John Criswell7a73b802003-06-30 21:59:07 +00006946
John Criswell47fdd832003-07-14 16:52:07 +00006947 ;
6948 return 0;
6949}
6950_ACEOF
6951rm -f conftest.$ac_objext conftest$ac_exeext
6952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6953 (eval $ac_link) 2>&5
6954 ac_status=$?
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); } &&
6957 { ac_try='test -s conftest$ac_exeext'
6958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6959 (eval $ac_try) 2>&5
6960 ac_status=$?
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006963
John Criswell47fdd832003-07-14 16:52:07 +00006964aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6965}'`
6966# Check for a 64-bit object if we didn't find anything.
6967if 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; }
6968}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006969else
John Criswell47fdd832003-07-14 16:52:07 +00006970 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006971sed 's/^/| /' conftest.$ac_ext >&5
6972
John Criswell47fdd832003-07-14 16:52:07 +00006973fi
6974rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6975if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006976
John Criswell47fdd832003-07-14 16:52:07 +00006977 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6978 # Warning - without using the other run time loading flags,
6979 # -berok will link without error, but may produce a broken library.
6980 no_undefined_flag=' ${wl}-bernotok'
6981 allow_undefined_flag=' ${wl}-berok'
6982 # -bexpall does not export symbols beginning with underscore (_)
6983 always_export_symbols=yes
6984 # Exported symbols can be pulled into shared objects from archives
6985 whole_archive_flag_spec=' '
6986 archive_cmds_need_lc=yes
6987 # This is similar to how AIX traditionally builds it's shared libraries.
6988 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 +00006989 fi
6990 fi
John Criswell7a73b802003-06-30 21:59:07 +00006991 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006992
6993 amigaos*)
6994 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)'
6995 hardcode_libdir_flag_spec='-L$libdir'
6996 hardcode_minus_L=yes
6997 # see comment about different semantics on the GNU ld section
6998 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006999 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007000
John Criswell47fdd832003-07-14 16:52:07 +00007001 bsdi4*)
7002 export_dynamic_flag_spec=-rdynamic
7003 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007004
John Criswell47fdd832003-07-14 16:52:07 +00007005 cygwin* | mingw* | pw32*)
7006 # When not using gcc, we currently assume that we are using
7007 # Microsoft Visual C++.
7008 # hardcode_libdir_flag_spec is actually meaningless, as there is
7009 # no search path for DLLs.
7010 hardcode_libdir_flag_spec=' '
7011 allow_undefined_flag=unsupported
7012 # Tell ltmain to make .lib files, not .a files.
7013 libext=lib
7014 # Tell ltmain to make .dll files, not .so files.
7015 shrext=".dll"
7016 # FIXME: Setting linknames here is a bad hack.
7017 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7018 # The linker will automatically build a .lib file if we build a DLL.
7019 old_archive_From_new_cmds='true'
7020 # FIXME: Should let the user specify the lib program.
7021 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7022 fix_srcfile_path='`cygpath -w "$srcfile"`'
7023 enable_shared_with_static_runtimes=yes
7024 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007025
John Criswell47fdd832003-07-14 16:52:07 +00007026 darwin* | rhapsody*)
7027 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7028 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00007029 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00007030 rhapsody* | darwin1.[012])
7031 allow_undefined_flag='-undefined suppress'
7032 ;;
7033 *) # Darwin 1.3 on
7034 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00007035 ;;
7036 esac
John Criswell47fdd832003-07-14 16:52:07 +00007037 # FIXME: Relying on posixy $() will cause problems for
7038 # cross-compilation, but unfortunately the echo tests do not
7039 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7040 # `"' quotes if we put them in here... so don't!
7041 lt_int_apple_cc_single_mod=no
7042 output_verbose_link_cmd='echo'
7043 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7044 lt_int_apple_cc_single_mod=yes
7045 fi
7046 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7047 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7048 else
7049 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'
7050 fi
7051 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7052 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7053 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7054 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}'
7055 else
7056 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}'
7057 fi
7058 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}'
7059 hardcode_direct=no
7060 hardcode_automatic=yes
7061 hardcode_shlibpath_var=unsupported
7062 whole_archive_flag_spec='-all_load $convenience'
7063 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007064 fi
John Criswell47fdd832003-07-14 16:52:07 +00007065 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007066
John Criswell47fdd832003-07-14 16:52:07 +00007067 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007069 hardcode_libdir_flag_spec='-L$libdir'
7070 hardcode_shlibpath_var=no
7071 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007072
John Criswell47fdd832003-07-14 16:52:07 +00007073 freebsd1*)
7074 ld_shlibs=no
7075 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007076
John Criswell47fdd832003-07-14 16:52:07 +00007077 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7078 # support. Future versions do this automatically, but an explicit c++rt0.o
7079 # does not break anything, and helps significantly (at the cost of a little
7080 # extra space).
7081 freebsd2.2*)
7082 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7083 hardcode_libdir_flag_spec='-R$libdir'
7084 hardcode_direct=yes
7085 hardcode_shlibpath_var=no
7086 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007087
John Criswell47fdd832003-07-14 16:52:07 +00007088 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7089 freebsd2*)
7090 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7091 hardcode_direct=yes
7092 hardcode_minus_L=yes
7093 hardcode_shlibpath_var=no
7094 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007095
John Criswell47fdd832003-07-14 16:52:07 +00007096 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7097 freebsd*)
7098 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7099 hardcode_libdir_flag_spec='-R$libdir'
7100 hardcode_direct=yes
7101 hardcode_shlibpath_var=no
7102 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007103
John Criswell47fdd832003-07-14 16:52:07 +00007104 hpux9*)
7105 if test "$GCC" = yes; then
7106 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'
7107 else
7108 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'
7109 fi
7110 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7111 hardcode_libdir_separator=:
7112 hardcode_direct=yes
7113
7114 # hardcode_minus_L: Not really in the search PATH,
7115 # but as the default location of the library.
7116 hardcode_minus_L=yes
7117 export_dynamic_flag_spec='${wl}-E'
7118 ;;
7119
7120 hpux10* | hpux11*)
7121 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7122 case "$host_cpu" in
7123 hppa*64*|ia64*)
7124 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7125 ;;
7126 *)
7127 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7128 ;;
7129 esac
7130 else
7131 case "$host_cpu" in
7132 hppa*64*|ia64*)
7133 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7134 ;;
7135 *)
7136 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7137 ;;
7138 esac
7139 fi
7140 if test "$with_gnu_ld" = no; then
7141 case "$host_cpu" in
7142 hppa*64*)
7143 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7144 hardcode_libdir_flag_spec_ld='+b $libdir'
7145 hardcode_libdir_separator=:
7146 hardcode_direct=no
7147 hardcode_shlibpath_var=no
7148 ;;
7149 ia64*)
7150 hardcode_libdir_flag_spec='-L$libdir'
7151 hardcode_direct=no
7152 hardcode_shlibpath_var=no
7153
7154 # hardcode_minus_L: Not really in the search PATH,
7155 # but as the default location of the library.
7156 hardcode_minus_L=yes
7157 ;;
7158 *)
7159 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7160 hardcode_libdir_separator=:
7161 hardcode_direct=yes
7162 export_dynamic_flag_spec='${wl}-E'
7163
7164 # hardcode_minus_L: Not really in the search PATH,
7165 # but as the default location of the library.
7166 hardcode_minus_L=yes
7167 ;;
7168 esac
7169 fi
7170 ;;
7171
7172 irix5* | irix6* | nonstopux*)
7173 if test "$GCC" = yes; then
7174 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'
7175 else
7176 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'
7177 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7178 fi
7179 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7180 hardcode_libdir_separator=:
7181 link_all_deplibs=yes
7182 ;;
7183
7184 netbsd*)
7185 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7186 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7187 else
7188 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7189 fi
7190 hardcode_libdir_flag_spec='-R$libdir'
7191 hardcode_direct=yes
7192 hardcode_shlibpath_var=no
7193 ;;
7194
7195 newsos6)
7196 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7197 hardcode_direct=yes
7198 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7199 hardcode_libdir_separator=:
7200 hardcode_shlibpath_var=no
7201 ;;
7202
7203 openbsd*)
7204 hardcode_direct=yes
7205 hardcode_shlibpath_var=no
7206 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7207 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7208 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7209 export_dynamic_flag_spec='${wl}-E'
7210 else
7211 case $host_os in
7212 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7213 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7214 hardcode_libdir_flag_spec='-R$libdir'
7215 ;;
7216 *)
7217 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7218 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7219 ;;
7220 esac
7221 fi
7222 ;;
7223
7224 os2*)
7225 hardcode_libdir_flag_spec='-L$libdir'
7226 hardcode_minus_L=yes
7227 allow_undefined_flag=unsupported
7228 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'
7229 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7230 ;;
7231
7232 osf3*)
7233 if test "$GCC" = yes; then
7234 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7235 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'
7236 else
7237 allow_undefined_flag=' -expect_unresolved \*'
7238 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'
7239 fi
7240 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7241 hardcode_libdir_separator=:
7242 ;;
7243
7244 osf4* | osf5*) # as osf3* with the addition of -msym flag
7245 if test "$GCC" = yes; then
7246 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7247 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'
7248 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7249 else
7250 allow_undefined_flag=' -expect_unresolved \*'
7251 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'
7252 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7253 $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'
7254
7255 # Both c and cxx compiler support -rpath directly
7256 hardcode_libdir_flag_spec='-rpath $libdir'
7257 fi
7258 hardcode_libdir_separator=:
7259 ;;
7260
7261 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007262 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7263 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007264 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007265 runpath_var=LD_RUN_PATH
7266 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007267 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007268
John Criswell47fdd832003-07-14 16:52:07 +00007269 solaris*)
7270 no_undefined_flag=' -z text'
7271 if test "$GCC" = yes; then
7272 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7273 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7274 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7275 else
7276 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7277 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7278 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7279 fi
7280 hardcode_libdir_flag_spec='-R$libdir'
7281 hardcode_shlibpath_var=no
7282 case $host_os in
7283 solaris2.[0-5] | solaris2.[0-5].*) ;;
7284 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7285 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7286 esac
7287 link_all_deplibs=yes
7288 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007289
John Criswell47fdd832003-07-14 16:52:07 +00007290 sunos4*)
7291 if test "x$host_vendor" = xsequent; then
7292 # Use $CC to link under sequent, because it throws in some extra .o
7293 # files that make .init and .fini sections work.
7294 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7295 else
7296 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7297 fi
7298 hardcode_libdir_flag_spec='-L$libdir'
7299 hardcode_direct=yes
7300 hardcode_minus_L=yes
7301 hardcode_shlibpath_var=no
7302 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007303
John Criswell47fdd832003-07-14 16:52:07 +00007304 sysv4)
7305 case $host_vendor in
7306 sni)
7307 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7308 hardcode_direct=yes # is this really true???
7309 ;;
7310 siemens)
7311 ## LD is ld it makes a PLAMLIB
7312 ## CC just makes a GrossModule.
7313 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7314 reload_cmds='$CC -r -o $output$reload_objs'
7315 hardcode_direct=no
7316 ;;
7317 motorola)
7318 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7319 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7320 ;;
7321 esac
7322 runpath_var='LD_RUN_PATH'
7323 hardcode_shlibpath_var=no
7324 ;;
7325
7326 sysv4.3*)
7327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7328 hardcode_shlibpath_var=no
7329 export_dynamic_flag_spec='-Bexport'
7330 ;;
7331
7332 sysv4*MP*)
7333 if test -d /usr/nec; then
7334 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7335 hardcode_shlibpath_var=no
7336 runpath_var=LD_RUN_PATH
7337 hardcode_runpath_var=yes
7338 ld_shlibs=yes
7339 fi
7340 ;;
7341
7342 sysv4.2uw2*)
7343 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7344 hardcode_direct=yes
7345 hardcode_minus_L=no
7346 hardcode_shlibpath_var=no
7347 hardcode_runpath_var=yes
7348 runpath_var=LD_RUN_PATH
7349 ;;
7350
7351 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7352 no_undefined_flag='${wl}-z ${wl}text'
7353 if test "$GCC" = yes; then
7354 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7355 else
7356 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7357 fi
7358 runpath_var='LD_RUN_PATH'
7359 hardcode_shlibpath_var=no
7360 ;;
7361
7362 sysv5*)
7363 no_undefined_flag=' -z text'
7364 # $CC -shared without GNU ld will not create a library from C++
7365 # object files and a static libstdc++, better avoid it by now
7366 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7367 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7368 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7369 hardcode_libdir_flag_spec=
7370 hardcode_shlibpath_var=no
7371 runpath_var='LD_RUN_PATH'
7372 ;;
7373
7374 uts4*)
7375 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7376 hardcode_libdir_flag_spec='-L$libdir'
7377 hardcode_shlibpath_var=no
7378 ;;
7379
7380 *)
7381 ld_shlibs=no
7382 ;;
7383 esac
7384 fi
7385
John Criswell7a73b802003-06-30 21:59:07 +00007386echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7387echo "${ECHO_T}$ld_shlibs" >&6
7388test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007389
John Criswell47fdd832003-07-14 16:52:07 +00007390variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7391if test "$GCC" = yes; then
7392 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7393fi
7394
7395#
7396# Do we need to explicitly link libc?
7397#
7398case "x$archive_cmds_need_lc" in
7399x|xyes)
7400 # Assume -lc should be added
7401 archive_cmds_need_lc=yes
7402
7403 if test "$enable_shared" = yes && test "$GCC" = yes; then
7404 case $archive_cmds in
7405 *'~'*)
7406 # FIXME: we may have to deal with multi-command sequences.
7407 ;;
7408 '$CC '*)
7409 # Test whether the compiler implicitly links with -lc since on some
7410 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7411 # to ld, don't add -lc before -lgcc.
7412 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7413echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7414 $rm conftest*
7415 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7416
7417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7418 (eval $ac_compile) 2>&5
7419 ac_status=$?
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); } 2>conftest.err; then
7422 soname=conftest
7423 lib=conftest
7424 libobjs=conftest.$ac_objext
7425 deplibs=
7426 wl=$lt_prog_compiler_wl
7427 compiler_flags=-v
7428 linker_flags=-v
7429 verstring=
7430 output_objdir=.
7431 libname=conftest
7432 lt_save_allow_undefined_flag=$allow_undefined_flag
7433 allow_undefined_flag=
7434 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7435 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7436 ac_status=$?
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); }
7439 then
7440 archive_cmds_need_lc=no
7441 else
7442 archive_cmds_need_lc=yes
7443 fi
7444 allow_undefined_flag=$lt_save_allow_undefined_flag
7445 else
7446 cat conftest.err 1>&5
7447 fi
7448 $rm conftest*
7449 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7450echo "${ECHO_T}$archive_cmds_need_lc" >&6
7451 ;;
7452 esac
7453 fi
7454 ;;
7455esac
7456
John Criswell7a73b802003-06-30 21:59:07 +00007457echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7458echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7459hardcode_action=
7460if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007461 test -n "$runpath_var " || \
7462 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007463
7464 # We can hardcode non-existant directories.
7465 if test "$hardcode_direct" != no &&
7466 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7467 # have to relink, otherwise we might link with an installed library
7468 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007469 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007470 test "$hardcode_minus_L" != no; then
7471 # Linking always hardcodes the temporary library directory.
7472 hardcode_action=relink
7473 else
7474 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7475 hardcode_action=immediate
7476 fi
7477else
7478 # We cannot hardcode anything, or else we can only hardcode existing
7479 # directories.
7480 hardcode_action=unsupported
7481fi
7482echo "$as_me:$LINENO: result: $hardcode_action" >&5
7483echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007484
John Criswell47fdd832003-07-14 16:52:07 +00007485if test "$hardcode_action" = relink; then
7486 # Fast installation is not supported
7487 enable_fast_install=no
7488elif test "$shlibpath_overrides_runpath" = yes ||
7489 test "$enable_shared" = no; then
7490 # Fast installation is not necessary
7491 enable_fast_install=needless
7492fi
7493
John Criswell7a73b802003-06-30 21:59:07 +00007494striplib=
7495old_striplib=
7496echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7497echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7498if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7499 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7500 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7501 echo "$as_me:$LINENO: result: yes" >&5
7502echo "${ECHO_T}yes" >&6
7503else
John Criswell47fdd832003-07-14 16:52:07 +00007504# FIXME - insert some real tests, host_os isn't really good enough
7505 case $host_os in
7506 darwin*)
7507 if test -n "$STRIP" ; then
7508 striplib="$STRIP -x"
7509 echo "$as_me:$LINENO: result: yes" >&5
7510echo "${ECHO_T}yes" >&6
7511 else
John Criswell7a73b802003-06-30 21:59:07 +00007512 echo "$as_me:$LINENO: result: no" >&5
7513echo "${ECHO_T}no" >&6
7514fi
John Criswell47fdd832003-07-14 16:52:07 +00007515 ;;
7516 *)
7517 echo "$as_me:$LINENO: result: no" >&5
7518echo "${ECHO_T}no" >&6
7519 ;;
7520 esac
7521fi
John Criswell7a73b802003-06-30 21:59:07 +00007522
John Criswell7a73b802003-06-30 21:59:07 +00007523echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7524echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7525library_names_spec=
7526libname_spec='lib$name'
7527soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007528shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007529postinstall_cmds=
7530postuninstall_cmds=
7531finish_cmds=
7532finish_eval=
7533shlibpath_var=
7534shlibpath_overrides_runpath=unknown
7535version_type=none
7536dynamic_linker="$host_os ld.so"
7537sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007538if test "$GCC" = yes; then
7539 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7540 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7541 # if the path contains ";" then we assume it to be the separator
7542 # otherwise default to the standard path separator (i.e. ":") - it is
7543 # assumed that no part of a normal pathname contains ";" but that should
7544 # okay in the real world where ";" in dirpaths is itself problematic.
7545 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7546 else
7547 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7548 fi
7549else
7550 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7551fi
7552need_lib_prefix=unknown
7553hardcode_into_libs=no
7554
7555# when you set need_version to no, make sure it does not cause -set_version
7556# flags to be left without arguments
7557need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007558
7559case $host_os in
7560aix3*)
7561 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007562 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007563 shlibpath_var=LIBPATH
7564
John Criswell47fdd832003-07-14 16:52:07 +00007565 # AIX 3 has no versioning support, so we append a major version to the name.
7566 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007567 ;;
7568
7569aix4* | aix5*)
7570 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007571 need_lib_prefix=no
7572 need_version=no
7573 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007574 if test "$host_cpu" = ia64; then
7575 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007576 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007577 shlibpath_var=LD_LIBRARY_PATH
7578 else
7579 # With GCC up to 2.95.x, collect2 would create an import file
7580 # for dependence libraries. The import file would start with
7581 # the line `#! .'. This would cause the generated library to
7582 # depend on `.', always an invalid library. This was fixed in
7583 # development snapshots of GCC prior to 3.0.
7584 case $host_os in
7585 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007586 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7587 echo ' yes '
7588 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7589 :
7590 else
7591 can_build_shared=no
7592 fi
7593 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007594 esac
John Criswell47fdd832003-07-14 16:52:07 +00007595 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7596 # soname into executable. Probably we can add versioning support to
7597 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007598 if test "$aix_use_runtimelinking" = yes; then
7599 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7600 # instead of lib<name>.a to let people know that these are not
7601 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007603 else
7604 # We preserve .a as extension for shared libraries through AIX4.2
7605 # and later when we are not doing run time linking.
7606 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007607 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007608 fi
7609 shlibpath_var=LIBPATH
7610 fi
7611 ;;
7612
7613amigaos*)
7614 library_names_spec='$libname.ixlibrary $libname.a'
7615 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7616 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'
7617 ;;
7618
7619beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007620 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007621 dynamic_linker="$host_os ld.so"
7622 shlibpath_var=LIBRARY_PATH
7623 ;;
7624
7625bsdi4*)
7626 version_type=linux
7627 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7629 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007630 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7631 shlibpath_var=LD_LIBRARY_PATH
7632 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7633 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007634 # the default ld.so.conf also contains /usr/contrib/lib and
7635 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7636 # libtool to hard-code these into programs
7637 ;;
7638
7639cygwin* | mingw* | pw32*)
7640 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007641 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007642 need_version=no
7643 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007644
John Criswell7a73b802003-06-30 21:59:07 +00007645 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007646 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007647 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007648 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7649 postinstall_cmds='base_file=`basename \${file}`~
7650 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007651 dldir=$destdir/`dirname \$dlpath`~
7652 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007653 $install_prog $dir/$dlname \$dldir/$dlname'
7654 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007655 dlpath=$dir/\$dldll~
7656 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007657 shlibpath_overrides_runpath=yes
7658
7659 case $host_os in
7660 cygwin*)
7661 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7662 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7663 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7664 ;;
7665 mingw*)
7666 # MinGW DLLs use traditional 'lib' prefix
7667 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7668 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7669 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7670 # It is most probably a Windows format PATH printed by
7671 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7672 # path with ; separators, and with drive letters. We can handle the
7673 # drive letters (cygwin fileutils understands them), so leave them,
7674 # especially as we might pass files found there to a mingw objdump,
7675 # which wouldn't understand a cygwinified path. Ahh.
7676 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7677 else
7678 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7679 fi
7680 ;;
7681 pw32*)
7682 # pw32 DLLs use 'pw' prefix rather than 'lib'
7683 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7684 ;;
7685 esac
John Criswell7a73b802003-06-30 21:59:07 +00007686 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007687
John Criswell7a73b802003-06-30 21:59:07 +00007688 *)
John Criswell47fdd832003-07-14 16:52:07 +00007689 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007690 ;;
7691 esac
7692 dynamic_linker='Win32 ld.exe'
7693 # FIXME: first we should search . and the directory the executable is in
7694 shlibpath_var=PATH
7695 ;;
7696
7697darwin* | rhapsody*)
7698 dynamic_linker="$host_os dyld"
7699 version_type=darwin
7700 need_lib_prefix=no
7701 need_version=no
7702 # FIXME: Relying on posixy $() will cause problems for
7703 # cross-compilation, but unfortunately the echo tests do not
7704 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007705 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7706 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007707 shlibpath_overrides_runpath=yes
7708 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007709 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7710 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7711 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7712 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"`
7713 fi
7714 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7715 ;;
7716
7717dgux*)
7718 version_type=linux
7719 need_lib_prefix=no
7720 need_version=no
7721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7722 soname_spec='${libname}${release}${shared_ext}$major'
7723 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007724 ;;
7725
7726freebsd1*)
7727 dynamic_linker=no
7728 ;;
7729
7730freebsd*)
7731 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7732 version_type=freebsd-$objformat
7733 case $version_type in
7734 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007736 need_version=no
7737 need_lib_prefix=no
7738 ;;
7739 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007740 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007741 need_version=yes
7742 ;;
7743 esac
7744 shlibpath_var=LD_LIBRARY_PATH
7745 case $host_os in
7746 freebsd2*)
7747 shlibpath_overrides_runpath=yes
7748 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007749 freebsd3.01* | freebsdelf3.01*)
7750 shlibpath_overrides_runpath=yes
7751 hardcode_into_libs=yes
7752 ;;
7753 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007754 shlibpath_overrides_runpath=no
7755 hardcode_into_libs=yes
7756 ;;
7757 esac
7758 ;;
7759
7760gnu*)
7761 version_type=linux
7762 need_lib_prefix=no
7763 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7765 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007766 shlibpath_var=LD_LIBRARY_PATH
7767 hardcode_into_libs=yes
7768 ;;
7769
7770hpux9* | hpux10* | hpux11*)
7771 # Give a soname corresponding to the major version so that dld.sl refuses to
7772 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007773 version_type=sunos
7774 need_lib_prefix=no
7775 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007776 case "$host_cpu" in
7777 ia64*)
7778 shrext='.so'
7779 hardcode_into_libs=yes
7780 dynamic_linker="$host_os dld.so"
7781 shlibpath_var=LD_LIBRARY_PATH
7782 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7784 soname_spec='${libname}${release}${shared_ext}$major'
7785 if test "X$HPUX_IA64_MODE" = X32; then
7786 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7787 else
7788 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7789 fi
7790 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7791 ;;
7792 hppa*64*)
7793 shrext='.sl'
7794 hardcode_into_libs=yes
7795 dynamic_linker="$host_os dld.sl"
7796 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7797 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7799 soname_spec='${libname}${release}${shared_ext}$major'
7800 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7801 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7802 ;;
7803 *)
7804 shrext='.sl'
7805 dynamic_linker="$host_os dld.sl"
7806 shlibpath_var=SHLIB_PATH
7807 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7809 soname_spec='${libname}${release}${shared_ext}$major'
7810 ;;
7811 esac
John Criswell7a73b802003-06-30 21:59:07 +00007812 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7813 postinstall_cmds='chmod 555 $lib'
7814 ;;
7815
John Criswell47fdd832003-07-14 16:52:07 +00007816irix5* | irix6* | nonstopux*)
7817 case $host_os in
7818 nonstopux*) version_type=nonstopux ;;
7819 *)
7820 if test "$lt_cv_prog_gnu_ld" = yes; then
7821 version_type=linux
7822 else
7823 version_type=irix
7824 fi ;;
7825 esac
John Criswell7a73b802003-06-30 21:59:07 +00007826 need_lib_prefix=no
7827 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007828 soname_spec='${libname}${release}${shared_ext}$major'
7829 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 +00007830 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007831 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007832 libsuff= shlibsuff=
7833 ;;
7834 *)
7835 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007836 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7837 libsuff= shlibsuff= libmagic=32-bit;;
7838 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7839 libsuff=32 shlibsuff=N32 libmagic=N32;;
7840 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7841 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007842 *) libsuff= shlibsuff= libmagic=never-match;;
7843 esac
7844 ;;
7845 esac
7846 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7847 shlibpath_overrides_runpath=no
7848 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7849 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007850 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007851 ;;
7852
7853# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007854linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007855 dynamic_linker=no
7856 ;;
7857
7858# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007859linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007860 version_type=linux
7861 need_lib_prefix=no
7862 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7864 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007865 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7866 shlibpath_var=LD_LIBRARY_PATH
7867 shlibpath_overrides_runpath=no
7868 # This implies no fast_install, which is unacceptable.
7869 # Some rework will be needed to allow for fast_install
7870 # before this can be enabled.
7871 hardcode_into_libs=yes
7872
7873 # We used to test for /lib/ld.so.1 and disable shared libraries on
7874 # powerpc, because MkLinux only supported shared libraries with the
7875 # GNU dynamic linker. Since this was broken with cross compilers,
7876 # most powerpc-linux boxes support dynamic linking these days and
7877 # people can always --disable-shared, the test was removed, and we
7878 # assume the GNU/Linux dynamic linker is in use.
7879 dynamic_linker='GNU/Linux ld.so'
7880 ;;
7881
7882netbsd*)
7883 version_type=sunos
7884 need_lib_prefix=no
7885 need_version=no
7886 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007888 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7889 dynamic_linker='NetBSD (a.out) ld.so'
7890 else
John Criswell47fdd832003-07-14 16:52:07 +00007891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7892 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007893 dynamic_linker='NetBSD ld.elf_so'
7894 fi
7895 shlibpath_var=LD_LIBRARY_PATH
7896 shlibpath_overrides_runpath=yes
7897 hardcode_into_libs=yes
7898 ;;
7899
7900newsos6)
7901 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7903 shlibpath_var=LD_LIBRARY_PATH
7904 shlibpath_overrides_runpath=yes
7905 ;;
7906
7907nto-qnx)
7908 version_type=linux
7909 need_lib_prefix=no
7910 need_version=no
7911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7912 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007913 shlibpath_var=LD_LIBRARY_PATH
7914 shlibpath_overrides_runpath=yes
7915 ;;
7916
7917openbsd*)
7918 version_type=sunos
7919 need_lib_prefix=no
7920 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7923 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007924 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 +00007925 case $host_os in
7926 openbsd2.[89] | openbsd2.[89].*)
7927 shlibpath_overrides_runpath=no
7928 ;;
7929 *)
7930 shlibpath_overrides_runpath=yes
7931 ;;
7932 esac
John Criswell7a73b802003-06-30 21:59:07 +00007933 else
7934 shlibpath_overrides_runpath=yes
7935 fi
John Criswell7a73b802003-06-30 21:59:07 +00007936 ;;
7937
7938os2*)
7939 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007940 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007941 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007942 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007943 dynamic_linker='OS/2 ld.exe'
7944 shlibpath_var=LIBPATH
7945 ;;
7946
7947osf3* | osf4* | osf5*)
7948 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007949 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007950 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007951 soname_spec='${libname}${release}${shared_ext}$major'
7952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007953 shlibpath_var=LD_LIBRARY_PATH
7954 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7955 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7956 ;;
7957
7958sco3.2v5*)
7959 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007960 soname_spec='${libname}${release}${shared_ext}$major'
7961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007962 shlibpath_var=LD_LIBRARY_PATH
7963 ;;
7964
7965solaris*)
7966 version_type=linux
7967 need_lib_prefix=no
7968 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7970 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007971 shlibpath_var=LD_LIBRARY_PATH
7972 shlibpath_overrides_runpath=yes
7973 hardcode_into_libs=yes
7974 # ldd complains unless libraries are executable
7975 postinstall_cmds='chmod +x $lib'
7976 ;;
7977
7978sunos4*)
7979 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007981 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7982 shlibpath_var=LD_LIBRARY_PATH
7983 shlibpath_overrides_runpath=yes
7984 if test "$with_gnu_ld" = yes; then
7985 need_lib_prefix=no
7986 fi
7987 need_version=yes
7988 ;;
7989
7990sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7991 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7993 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007994 shlibpath_var=LD_LIBRARY_PATH
7995 case $host_vendor in
7996 sni)
7997 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007998 need_lib_prefix=no
7999 export_dynamic_flag_spec='${wl}-Blargedynsym'
8000 runpath_var=LD_RUN_PATH
8001 ;;
8002 siemens)
8003 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00008004 ;;
8005 motorola)
8006 need_lib_prefix=no
8007 need_version=no
8008 shlibpath_overrides_runpath=no
8009 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8010 ;;
8011 esac
8012 ;;
8013
John Criswell7a73b802003-06-30 21:59:07 +00008014sysv4*MP*)
8015 if test -d /usr/nec ;then
8016 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008017 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8018 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00008019 shlibpath_var=LD_LIBRARY_PATH
8020 fi
8021 ;;
8022
John Criswell47fdd832003-07-14 16:52:07 +00008023uts4*)
8024 version_type=linux
8025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8026 soname_spec='${libname}${release}${shared_ext}$major'
8027 shlibpath_var=LD_LIBRARY_PATH
8028 ;;
8029
John Criswell7a73b802003-06-30 21:59:07 +00008030*)
8031 dynamic_linker=no
8032 ;;
8033esac
8034echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8035echo "${ECHO_T}$dynamic_linker" >&6
8036test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00008037
8038if test "x$enable_dlopen" != xyes; then
8039 enable_dlopen=unknown
8040 enable_dlopen_self=unknown
8041 enable_dlopen_self_static=unknown
8042else
8043 lt_cv_dlopen=no
8044 lt_cv_dlopen_libs=
8045
8046 case $host_os in
8047 beos*)
8048 lt_cv_dlopen="load_add_on"
8049 lt_cv_dlopen_libs=
8050 lt_cv_dlopen_self=yes
8051 ;;
8052
John Criswell47fdd832003-07-14 16:52:07 +00008053 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008054 lt_cv_dlopen="LoadLibrary"
8055 lt_cv_dlopen_libs=
8056 ;;
8057
John Criswell47fdd832003-07-14 16:52:07 +00008058 cygwin*)
8059 lt_cv_dlopen="dlopen"
8060 lt_cv_dlopen_libs=
8061 ;;
8062
8063 darwin*)
8064 # if libdl is installed we need to link against it
8065 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8066echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8067if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8068 echo $ECHO_N "(cached) $ECHO_C" >&6
8069else
8070 ac_check_lib_save_LIBS=$LIBS
8071LIBS="-ldl $LIBS"
8072cat >conftest.$ac_ext <<_ACEOF
8073#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008074/* confdefs.h. */
8075_ACEOF
8076cat confdefs.h >>conftest.$ac_ext
8077cat >>conftest.$ac_ext <<_ACEOF
8078/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008079
8080/* Override any gcc2 internal prototype to avoid an error. */
8081#ifdef __cplusplus
8082extern "C"
8083#endif
8084/* We use char because int might match the return type of a gcc2
8085 builtin and then its argument prototype would still apply. */
8086char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008087int
8088main ()
8089{
8090dlopen ();
8091 ;
8092 return 0;
8093}
8094_ACEOF
8095rm -f conftest.$ac_objext conftest$ac_exeext
8096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8097 (eval $ac_link) 2>&5
8098 ac_status=$?
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); } &&
8101 { ac_try='test -s conftest$ac_exeext'
8102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8103 (eval $ac_try) 2>&5
8104 ac_status=$?
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); }; }; then
8107 ac_cv_lib_dl_dlopen=yes
8108else
8109 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008110sed 's/^/| /' conftest.$ac_ext >&5
8111
John Criswell47fdd832003-07-14 16:52:07 +00008112ac_cv_lib_dl_dlopen=no
8113fi
8114rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8115LIBS=$ac_check_lib_save_LIBS
8116fi
8117echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8118echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8119if test $ac_cv_lib_dl_dlopen = yes; then
8120 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8121else
8122
8123 lt_cv_dlopen="dyld"
8124 lt_cv_dlopen_libs=
8125 lt_cv_dlopen_self=yes
8126
8127fi
8128
8129 ;;
8130
John Criswell7a73b802003-06-30 21:59:07 +00008131 *)
8132 echo "$as_me:$LINENO: checking for shl_load" >&5
8133echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8134if test "${ac_cv_func_shl_load+set}" = set; then
8135 echo $ECHO_N "(cached) $ECHO_C" >&6
8136else
8137 cat >conftest.$ac_ext <<_ACEOF
8138#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008139/* confdefs.h. */
8140_ACEOF
8141cat confdefs.h >>conftest.$ac_ext
8142cat >>conftest.$ac_ext <<_ACEOF
8143/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008144/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008145 which can conflict with char shl_load (); below.
8146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8147 <limits.h> exists even on freestanding compilers. */
8148#ifdef __STDC__
8149# include <limits.h>
8150#else
8151# include <assert.h>
8152#endif
John Criswell7a73b802003-06-30 21:59:07 +00008153/* Override any gcc2 internal prototype to avoid an error. */
8154#ifdef __cplusplus
8155extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008156{
John Criswell7a73b802003-06-30 21:59:07 +00008157#endif
8158/* We use char because int might match the return type of a gcc2
8159 builtin and then its argument prototype would still apply. */
8160char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008161/* The GNU C library defines this for functions which it implements
8162 to always fail with ENOSYS. Some functions are actually named
8163 something starting with __ and the normal name is an alias. */
8164#if defined (__stub_shl_load) || defined (__stub___shl_load)
8165choke me
8166#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008167char (*f) () = shl_load;
8168#endif
8169#ifdef __cplusplus
8170}
John Criswell7a73b802003-06-30 21:59:07 +00008171#endif
8172
John Criswell0c38eaf2003-09-10 15:17:25 +00008173int
8174main ()
8175{
8176return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008177 ;
8178 return 0;
8179}
8180_ACEOF
8181rm -f conftest.$ac_objext conftest$ac_exeext
8182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8183 (eval $ac_link) 2>&5
8184 ac_status=$?
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } &&
8187 { ac_try='test -s conftest$ac_exeext'
8188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189 (eval $ac_try) 2>&5
8190 ac_status=$?
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); }; }; then
8193 ac_cv_func_shl_load=yes
8194else
8195 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008196sed 's/^/| /' conftest.$ac_ext >&5
8197
John Criswell7a73b802003-06-30 21:59:07 +00008198ac_cv_func_shl_load=no
8199fi
8200rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8201fi
8202echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8203echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8204if test $ac_cv_func_shl_load = yes; then
8205 lt_cv_dlopen="shl_load"
8206else
8207 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8208echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8209if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8211else
8212 ac_check_lib_save_LIBS=$LIBS
8213LIBS="-ldld $LIBS"
8214cat >conftest.$ac_ext <<_ACEOF
8215#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008216/* confdefs.h. */
8217_ACEOF
8218cat confdefs.h >>conftest.$ac_ext
8219cat >>conftest.$ac_ext <<_ACEOF
8220/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008221
8222/* Override any gcc2 internal prototype to avoid an error. */
8223#ifdef __cplusplus
8224extern "C"
8225#endif
8226/* We use char because int might match the return type of a gcc2
8227 builtin and then its argument prototype would still apply. */
8228char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008229int
8230main ()
8231{
8232shl_load ();
8233 ;
8234 return 0;
8235}
8236_ACEOF
8237rm -f conftest.$ac_objext conftest$ac_exeext
8238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8239 (eval $ac_link) 2>&5
8240 ac_status=$?
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } &&
8243 { ac_try='test -s conftest$ac_exeext'
8244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245 (eval $ac_try) 2>&5
8246 ac_status=$?
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); }; }; then
8249 ac_cv_lib_dld_shl_load=yes
8250else
8251 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008252sed 's/^/| /' conftest.$ac_ext >&5
8253
John Criswell7a73b802003-06-30 21:59:07 +00008254ac_cv_lib_dld_shl_load=no
8255fi
8256rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8257LIBS=$ac_check_lib_save_LIBS
8258fi
8259echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8260echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8261if test $ac_cv_lib_dld_shl_load = yes; then
8262 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8263else
8264 echo "$as_me:$LINENO: checking for dlopen" >&5
8265echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8266if test "${ac_cv_func_dlopen+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8268else
8269 cat >conftest.$ac_ext <<_ACEOF
8270#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008271/* confdefs.h. */
8272_ACEOF
8273cat confdefs.h >>conftest.$ac_ext
8274cat >>conftest.$ac_ext <<_ACEOF
8275/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008276/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008277 which can conflict with char dlopen (); below.
8278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8279 <limits.h> exists even on freestanding compilers. */
8280#ifdef __STDC__
8281# include <limits.h>
8282#else
8283# include <assert.h>
8284#endif
John Criswell7a73b802003-06-30 21:59:07 +00008285/* Override any gcc2 internal prototype to avoid an error. */
8286#ifdef __cplusplus
8287extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008288{
John Criswell7a73b802003-06-30 21:59:07 +00008289#endif
8290/* We use char because int might match the return type of a gcc2
8291 builtin and then its argument prototype would still apply. */
8292char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008293/* The GNU C library defines this for functions which it implements
8294 to always fail with ENOSYS. Some functions are actually named
8295 something starting with __ and the normal name is an alias. */
8296#if defined (__stub_dlopen) || defined (__stub___dlopen)
8297choke me
8298#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008299char (*f) () = dlopen;
8300#endif
8301#ifdef __cplusplus
8302}
John Criswell7a73b802003-06-30 21:59:07 +00008303#endif
8304
John Criswell0c38eaf2003-09-10 15:17:25 +00008305int
8306main ()
8307{
8308return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008309 ;
8310 return 0;
8311}
8312_ACEOF
8313rm -f conftest.$ac_objext conftest$ac_exeext
8314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8315 (eval $ac_link) 2>&5
8316 ac_status=$?
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); } &&
8319 { ac_try='test -s conftest$ac_exeext'
8320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321 (eval $ac_try) 2>&5
8322 ac_status=$?
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); }; }; then
8325 ac_cv_func_dlopen=yes
8326else
8327 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008328sed 's/^/| /' conftest.$ac_ext >&5
8329
John Criswell7a73b802003-06-30 21:59:07 +00008330ac_cv_func_dlopen=no
8331fi
8332rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8333fi
8334echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8335echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8336if test $ac_cv_func_dlopen = yes; then
8337 lt_cv_dlopen="dlopen"
8338else
8339 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8340echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8341if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8343else
8344 ac_check_lib_save_LIBS=$LIBS
8345LIBS="-ldl $LIBS"
8346cat >conftest.$ac_ext <<_ACEOF
8347#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008348/* confdefs.h. */
8349_ACEOF
8350cat confdefs.h >>conftest.$ac_ext
8351cat >>conftest.$ac_ext <<_ACEOF
8352/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008353
8354/* Override any gcc2 internal prototype to avoid an error. */
8355#ifdef __cplusplus
8356extern "C"
8357#endif
8358/* We use char because int might match the return type of a gcc2
8359 builtin and then its argument prototype would still apply. */
8360char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008361int
8362main ()
8363{
8364dlopen ();
8365 ;
8366 return 0;
8367}
8368_ACEOF
8369rm -f conftest.$ac_objext conftest$ac_exeext
8370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8371 (eval $ac_link) 2>&5
8372 ac_status=$?
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); } &&
8375 { ac_try='test -s conftest$ac_exeext'
8376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377 (eval $ac_try) 2>&5
8378 ac_status=$?
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; }; then
8381 ac_cv_lib_dl_dlopen=yes
8382else
8383 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008384sed 's/^/| /' conftest.$ac_ext >&5
8385
John Criswell7a73b802003-06-30 21:59:07 +00008386ac_cv_lib_dl_dlopen=no
8387fi
8388rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8389LIBS=$ac_check_lib_save_LIBS
8390fi
8391echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8392echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8393if test $ac_cv_lib_dl_dlopen = yes; then
8394 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8395else
8396 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8397echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8398if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
8400else
8401 ac_check_lib_save_LIBS=$LIBS
8402LIBS="-lsvld $LIBS"
8403cat >conftest.$ac_ext <<_ACEOF
8404#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008405/* confdefs.h. */
8406_ACEOF
8407cat confdefs.h >>conftest.$ac_ext
8408cat >>conftest.$ac_ext <<_ACEOF
8409/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008410
8411/* Override any gcc2 internal prototype to avoid an error. */
8412#ifdef __cplusplus
8413extern "C"
8414#endif
8415/* We use char because int might match the return type of a gcc2
8416 builtin and then its argument prototype would still apply. */
8417char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008418int
8419main ()
8420{
8421dlopen ();
8422 ;
8423 return 0;
8424}
8425_ACEOF
8426rm -f conftest.$ac_objext conftest$ac_exeext
8427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8428 (eval $ac_link) 2>&5
8429 ac_status=$?
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } &&
8432 { ac_try='test -s conftest$ac_exeext'
8433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 (eval $ac_try) 2>&5
8435 ac_status=$?
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; }; then
8438 ac_cv_lib_svld_dlopen=yes
8439else
8440 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008441sed 's/^/| /' conftest.$ac_ext >&5
8442
John Criswell7a73b802003-06-30 21:59:07 +00008443ac_cv_lib_svld_dlopen=no
8444fi
8445rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8446LIBS=$ac_check_lib_save_LIBS
8447fi
8448echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8449echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8450if test $ac_cv_lib_svld_dlopen = yes; then
8451 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8452else
8453 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8454echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8455if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8456 echo $ECHO_N "(cached) $ECHO_C" >&6
8457else
8458 ac_check_lib_save_LIBS=$LIBS
8459LIBS="-ldld $LIBS"
8460cat >conftest.$ac_ext <<_ACEOF
8461#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008462/* confdefs.h. */
8463_ACEOF
8464cat confdefs.h >>conftest.$ac_ext
8465cat >>conftest.$ac_ext <<_ACEOF
8466/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008467
8468/* Override any gcc2 internal prototype to avoid an error. */
8469#ifdef __cplusplus
8470extern "C"
8471#endif
8472/* We use char because int might match the return type of a gcc2
8473 builtin and then its argument prototype would still apply. */
8474char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008475int
8476main ()
8477{
8478dld_link ();
8479 ;
8480 return 0;
8481}
8482_ACEOF
8483rm -f conftest.$ac_objext conftest$ac_exeext
8484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8485 (eval $ac_link) 2>&5
8486 ac_status=$?
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); } &&
8489 { ac_try='test -s conftest$ac_exeext'
8490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491 (eval $ac_try) 2>&5
8492 ac_status=$?
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); }; }; then
8495 ac_cv_lib_dld_dld_link=yes
8496else
8497 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008498sed 's/^/| /' conftest.$ac_ext >&5
8499
John Criswell7a73b802003-06-30 21:59:07 +00008500ac_cv_lib_dld_dld_link=no
8501fi
8502rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8503LIBS=$ac_check_lib_save_LIBS
8504fi
8505echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8506echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8507if test $ac_cv_lib_dld_dld_link = yes; then
8508 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8509fi
8510
8511
8512fi
8513
8514
8515fi
8516
8517
8518fi
8519
8520
8521fi
8522
8523
8524fi
8525
8526 ;;
8527 esac
8528
8529 if test "x$lt_cv_dlopen" != xno; then
8530 enable_dlopen=yes
8531 else
8532 enable_dlopen=no
8533 fi
8534
8535 case $lt_cv_dlopen in
8536 dlopen)
8537 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008538 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008539
8540 save_LDFLAGS="$LDFLAGS"
8541 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8542
8543 save_LIBS="$LIBS"
8544 LIBS="$lt_cv_dlopen_libs $LIBS"
8545
8546 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8547echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8548if test "${lt_cv_dlopen_self+set}" = set; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
8550else
8551 if test "$cross_compiling" = yes; then :
8552 lt_cv_dlopen_self=cross
8553else
John Criswell47fdd832003-07-14 16:52:07 +00008554 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008555 lt_status=$lt_dlunknown
8556 cat > conftest.$ac_ext <<EOF
John Criswell67181ca2003-09-26 14:53:17 +00008557#line 8557 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008558#include "confdefs.h"
8559
8560#if HAVE_DLFCN_H
8561#include <dlfcn.h>
8562#endif
8563
8564#include <stdio.h>
8565
8566#ifdef RTLD_GLOBAL
8567# define LT_DLGLOBAL RTLD_GLOBAL
8568#else
8569# ifdef DL_GLOBAL
8570# define LT_DLGLOBAL DL_GLOBAL
8571# else
8572# define LT_DLGLOBAL 0
8573# endif
8574#endif
8575
8576/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8577 find out it does not work in some platform. */
8578#ifndef LT_DLLAZY_OR_NOW
8579# ifdef RTLD_LAZY
8580# define LT_DLLAZY_OR_NOW RTLD_LAZY
8581# else
8582# ifdef DL_LAZY
8583# define LT_DLLAZY_OR_NOW DL_LAZY
8584# else
8585# ifdef RTLD_NOW
8586# define LT_DLLAZY_OR_NOW RTLD_NOW
8587# else
8588# ifdef DL_NOW
8589# define LT_DLLAZY_OR_NOW DL_NOW
8590# else
8591# define LT_DLLAZY_OR_NOW 0
8592# endif
8593# endif
8594# endif
8595# endif
8596#endif
8597
8598#ifdef __cplusplus
8599extern "C" void exit (int);
8600#endif
8601
8602void fnord() { int i=42;}
8603int main ()
8604{
8605 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8606 int status = $lt_dlunknown;
8607
8608 if (self)
8609 {
8610 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8611 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8612 /* dlclose (self); */
8613 }
8614
8615 exit (status);
8616}
8617EOF
8618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8619 (eval $ac_link) 2>&5
8620 ac_status=$?
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8623 (./conftest; exit; ) 2>/dev/null
8624 lt_status=$?
8625 case x$lt_status in
8626 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8627 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8628 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8629 esac
8630 else :
8631 # compilation failed
8632 lt_cv_dlopen_self=no
8633 fi
8634fi
8635rm -fr conftest*
8636
8637
8638fi
8639echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8640echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8641
8642 if test "x$lt_cv_dlopen_self" = xyes; then
8643 LDFLAGS="$LDFLAGS $link_static_flag"
8644 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8645echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8646if test "${lt_cv_dlopen_self_static+set}" = set; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8648else
8649 if test "$cross_compiling" = yes; then :
8650 lt_cv_dlopen_self_static=cross
8651else
John Criswell47fdd832003-07-14 16:52:07 +00008652 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008653 lt_status=$lt_dlunknown
8654 cat > conftest.$ac_ext <<EOF
John Criswell67181ca2003-09-26 14:53:17 +00008655#line 8655 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008656#include "confdefs.h"
8657
8658#if HAVE_DLFCN_H
8659#include <dlfcn.h>
8660#endif
8661
8662#include <stdio.h>
8663
8664#ifdef RTLD_GLOBAL
8665# define LT_DLGLOBAL RTLD_GLOBAL
8666#else
8667# ifdef DL_GLOBAL
8668# define LT_DLGLOBAL DL_GLOBAL
8669# else
8670# define LT_DLGLOBAL 0
8671# endif
8672#endif
8673
8674/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8675 find out it does not work in some platform. */
8676#ifndef LT_DLLAZY_OR_NOW
8677# ifdef RTLD_LAZY
8678# define LT_DLLAZY_OR_NOW RTLD_LAZY
8679# else
8680# ifdef DL_LAZY
8681# define LT_DLLAZY_OR_NOW DL_LAZY
8682# else
8683# ifdef RTLD_NOW
8684# define LT_DLLAZY_OR_NOW RTLD_NOW
8685# else
8686# ifdef DL_NOW
8687# define LT_DLLAZY_OR_NOW DL_NOW
8688# else
8689# define LT_DLLAZY_OR_NOW 0
8690# endif
8691# endif
8692# endif
8693# endif
8694#endif
8695
8696#ifdef __cplusplus
8697extern "C" void exit (int);
8698#endif
8699
8700void fnord() { int i=42;}
8701int main ()
8702{
8703 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8704 int status = $lt_dlunknown;
8705
8706 if (self)
8707 {
8708 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8709 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8710 /* dlclose (self); */
8711 }
8712
8713 exit (status);
8714}
8715EOF
8716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8717 (eval $ac_link) 2>&5
8718 ac_status=$?
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8721 (./conftest; exit; ) 2>/dev/null
8722 lt_status=$?
8723 case x$lt_status in
8724 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8725 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8726 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8727 esac
8728 else :
8729 # compilation failed
8730 lt_cv_dlopen_self_static=no
8731 fi
8732fi
8733rm -fr conftest*
8734
8735
8736fi
8737echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8738echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8739 fi
8740
8741 CPPFLAGS="$save_CPPFLAGS"
8742 LDFLAGS="$save_LDFLAGS"
8743 LIBS="$save_LIBS"
8744 ;;
8745 esac
8746
8747 case $lt_cv_dlopen_self in
8748 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8749 *) enable_dlopen_self=unknown ;;
8750 esac
8751
8752 case $lt_cv_dlopen_self_static in
8753 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8754 *) enable_dlopen_self_static=unknown ;;
8755 esac
8756fi
8757
8758
John Criswell47fdd832003-07-14 16:52:07 +00008759# Report which librarie types wil actually be built
8760echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8761echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8762echo "$as_me:$LINENO: result: $can_build_shared" >&5
8763echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008764
John Criswell47fdd832003-07-14 16:52:07 +00008765echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8766echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8767test "$can_build_shared" = "no" && enable_shared=no
8768
8769# On AIX, shared libraries and static libraries use the same namespace, and
8770# are all built from PIC.
8771case "$host_os" in
8772aix3*)
8773 test "$enable_shared" = yes && enable_static=no
8774 if test -n "$RANLIB"; then
8775 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8776 postinstall_cmds='$RANLIB $lib'
8777 fi
8778 ;;
8779
8780aix4*)
8781 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8782 test "$enable_shared" = yes && enable_static=no
8783 fi
8784 ;;
8785 darwin* | rhapsody*)
8786 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8787 archive_cmds_need_lc=no
8788 case "$host_os" in
8789 rhapsody* | darwin1.[012])
8790 allow_undefined_flag='-undefined suppress'
8791 ;;
8792 *) # Darwin 1.3 on
8793 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8794 ;;
8795 esac
8796 # FIXME: Relying on posixy $() will cause problems for
8797 # cross-compilation, but unfortunately the echo tests do not
8798 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8799 # `"' quotes if we put them in here... so don't!
8800 output_verbose_link_cmd='echo'
8801 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8802 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8803 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8804 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}'
8805 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}'
8806 hardcode_direct=no
8807 hardcode_automatic=yes
8808 hardcode_shlibpath_var=unsupported
8809 whole_archive_flag_spec='-all_load $convenience'
8810 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008811 fi
John Criswell7a73b802003-06-30 21:59:07 +00008812 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008813esac
8814echo "$as_me:$LINENO: result: $enable_shared" >&5
8815echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008816
John Criswell47fdd832003-07-14 16:52:07 +00008817echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8818echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8819# Make sure either enable_shared or enable_static is yes.
8820test "$enable_shared" = yes || enable_static=yes
8821echo "$as_me:$LINENO: result: $enable_static" >&5
8822echo "${ECHO_T}$enable_static" >&6
8823
8824# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008825# libtool distribution, otherwise you forgot to ship ltmain.sh
8826# with your package, and you will get complaints that there are
8827# no rules to generate ltmain.sh.
8828if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008829 # See if we are running on zsh, and set the options which allow our commands through
8830 # without removal of \ escapes.
8831 if test -n "${ZSH_VERSION+set}" ; then
8832 setopt NO_GLOB_SUBST
8833 fi
John Criswell7a73b802003-06-30 21:59:07 +00008834 # Now quote all the things that may contain metacharacters while being
8835 # careful not to overquote the AC_SUBSTed values. We take copies of the
8836 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008837 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8838 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8839 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8840 deplibs_check_method reload_flag reload_cmds need_locks \
8841 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8842 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008843 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008844 old_postinstall_cmds old_postuninstall_cmds \
8845 compiler \
8846 CC \
8847 LD \
8848 lt_prog_compiler_wl \
8849 lt_prog_compiler_pic \
8850 lt_prog_compiler_static \
8851 lt_prog_compiler_no_builtin_flag \
8852 export_dynamic_flag_spec \
8853 thread_safe_flag_spec \
8854 whole_archive_flag_spec \
8855 enable_shared_with_static_runtimes \
8856 old_archive_cmds \
8857 old_archive_from_new_cmds \
8858 predep_objects \
8859 postdep_objects \
8860 predeps \
8861 postdeps \
8862 compiler_lib_search_path \
8863 archive_cmds \
8864 archive_expsym_cmds \
8865 postinstall_cmds \
8866 postuninstall_cmds \
8867 old_archive_from_expsyms_cmds \
8868 allow_undefined_flag \
8869 no_undefined_flag \
8870 export_symbols_cmds \
8871 hardcode_libdir_flag_spec \
8872 hardcode_libdir_flag_spec_ld \
8873 hardcode_libdir_separator \
8874 hardcode_automatic \
8875 module_cmds \
8876 module_expsym_cmds \
8877 lt_cv_prog_compiler_c_o \
8878 exclude_expsyms \
8879 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008880
8881 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008882 old_archive_cmds | \
8883 old_archive_from_new_cmds | \
8884 archive_cmds | \
8885 archive_expsym_cmds | \
8886 module_cmds | \
8887 module_expsym_cmds | \
8888 old_archive_from_expsyms_cmds | \
8889 export_symbols_cmds | \
8890 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008891 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008892 old_postinstall_cmds | old_postuninstall_cmds | \
8893 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008894 # Double-quote double-evaled strings.
8895 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8896 ;;
8897 *)
8898 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8899 ;;
8900 esac
8901 done
8902
John Criswell47fdd832003-07-14 16:52:07 +00008903 case $lt_echo in
8904 *'\$0 --fallback-echo"')
8905 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8906 ;;
8907 esac
8908
8909cfgfile="${ofile}T"
8910 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8911 $rm -f "$cfgfile"
8912 { echo "$as_me:$LINENO: creating $ofile" >&5
8913echo "$as_me: creating $ofile" >&6;}
8914
8915 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008916#! $SHELL
8917
John Criswell47fdd832003-07-14 16:52:07 +00008918# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008919# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8920# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8921#
John Criswell47fdd832003-07-14 16:52:07 +00008922# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8923# Free Software Foundation, Inc.
8924#
8925# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008926# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8927#
8928# This program is free software; you can redistribute it and/or modify
8929# it under the terms of the GNU General Public License as published by
8930# the Free Software Foundation; either version 2 of the License, or
8931# (at your option) any later version.
8932#
8933# This program is distributed in the hope that it will be useful, but
8934# WITHOUT ANY WARRANTY; without even the implied warranty of
8935# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8936# General Public License for more details.
8937#
8938# You should have received a copy of the GNU General Public License
8939# along with this program; if not, write to the Free Software
8940# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8941#
8942# As a special exception to the GNU General Public License, if you
8943# distribute this file as part of a program that contains a
8944# configuration script generated by Autoconf, you may include it under
8945# the same distribution terms that you use for the rest of that program.
8946
John Criswell47fdd832003-07-14 16:52:07 +00008947# A sed program that does not truncate output.
8948SED=$lt_SED
8949
John Criswell7a73b802003-06-30 21:59:07 +00008950# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008951Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008952
8953# The HP-UX ksh and POSIX shell print the target directory to stdout
8954# if CDPATH is set.
8955if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8956
John Criswell47fdd832003-07-14 16:52:07 +00008957# The names of the tagged configurations supported by this script.
8958available_tags=
8959
John Criswell7a73b802003-06-30 21:59:07 +00008960# ### BEGIN LIBTOOL CONFIG
8961
8962# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8963
8964# Shell to use when invoking shell scripts.
8965SHELL=$lt_SHELL
8966
8967# Whether or not to build shared libraries.
8968build_libtool_libs=$enable_shared
8969
8970# Whether or not to build static libraries.
8971build_old_libs=$enable_static
8972
8973# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008974build_libtool_need_lc=$archive_cmds_need_lc
8975
8976# Whether or not to disallow shared libs when runtime libs are static
8977allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008978
8979# Whether or not to optimize for fast installation.
8980fast_install=$enable_fast_install
8981
8982# The host system.
8983host_alias=$host_alias
8984host=$host
8985
8986# An echo program that does not interpret backslashes.
8987echo=$lt_echo
8988
8989# The archiver.
8990AR=$lt_AR
8991AR_FLAGS=$lt_AR_FLAGS
8992
John Criswell47fdd832003-07-14 16:52:07 +00008993# A C compiler.
8994LTCC=$lt_LTCC
8995
8996# A language-specific compiler.
8997CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00008998
8999# Is the compiler the GNU C compiler?
9000with_gcc=$GCC
9001
John Criswell47fdd832003-07-14 16:52:07 +00009002# An ERE matcher.
9003EGREP=$lt_EGREP
9004
John Criswell7a73b802003-06-30 21:59:07 +00009005# The linker used to build libraries.
9006LD=$lt_LD
9007
9008# Whether we need hard or soft links.
9009LN_S=$lt_LN_S
9010
9011# A BSD-compatible nm program.
9012NM=$lt_NM
9013
9014# A symbol stripping program
9015STRIP=$STRIP
9016
9017# Used to examine libraries when file_magic_cmd begins "file"
9018MAGIC_CMD=$MAGIC_CMD
9019
9020# Used on cygwin: DLL creation program.
9021DLLTOOL="$DLLTOOL"
9022
9023# Used on cygwin: object dumper.
9024OBJDUMP="$OBJDUMP"
9025
9026# Used on cygwin: assembler.
9027AS="$AS"
9028
9029# The name of the directory that contains temporary libtool files.
9030objdir=$objdir
9031
9032# How to create reloadable object files.
9033reload_flag=$lt_reload_flag
9034reload_cmds=$lt_reload_cmds
9035
9036# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009037wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009038
9039# Object file suffix (normally "o").
9040objext="$ac_objext"
9041
9042# Old archive suffix (normally "a").
9043libext="$libext"
9044
John Criswell47fdd832003-07-14 16:52:07 +00009045# Shared library suffix (normally ".so").
9046shrext='$shrext'
9047
John Criswell7a73b802003-06-30 21:59:07 +00009048# Executable file suffix (normally "").
9049exeext="$exeext"
9050
9051# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009052pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009053pic_mode=$pic_mode
9054
John Criswell47fdd832003-07-14 16:52:07 +00009055# What is the maximum length of a command?
9056max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009057
John Criswell47fdd832003-07-14 16:52:07 +00009058# Does compiler simultaneously support -c and -o options?
9059compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009060
9061# Must we lock files when doing compilation ?
9062need_locks=$lt_need_locks
9063
9064# Do we need the lib prefix for modules?
9065need_lib_prefix=$need_lib_prefix
9066
9067# Do we need a version for libraries?
9068need_version=$need_version
9069
9070# Whether dlopen is supported.
9071dlopen_support=$enable_dlopen
9072
9073# Whether dlopen of programs is supported.
9074dlopen_self=$enable_dlopen_self
9075
9076# Whether dlopen of statically linked programs is supported.
9077dlopen_self_static=$enable_dlopen_self_static
9078
9079# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009080link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009081
9082# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009083no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009084
9085# Compiler flag to allow reflexive dlopens.
9086export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9087
9088# Compiler flag to generate shared objects directly from archives.
9089whole_archive_flag_spec=$lt_whole_archive_flag_spec
9090
9091# Compiler flag to generate thread-safe objects.
9092thread_safe_flag_spec=$lt_thread_safe_flag_spec
9093
9094# Library versioning type.
9095version_type=$version_type
9096
9097# Format of library name prefix.
9098libname_spec=$lt_libname_spec
9099
9100# List of archive names. First name is the real one, the rest are links.
9101# The last name is the one that the linker finds with -lNAME.
9102library_names_spec=$lt_library_names_spec
9103
9104# The coded name of the library, if different from the real name.
9105soname_spec=$lt_soname_spec
9106
9107# Commands used to build and install an old-style archive.
9108RANLIB=$lt_RANLIB
9109old_archive_cmds=$lt_old_archive_cmds
9110old_postinstall_cmds=$lt_old_postinstall_cmds
9111old_postuninstall_cmds=$lt_old_postuninstall_cmds
9112
9113# Create an old-style archive from a shared archive.
9114old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9115
9116# Create a temporary old-style archive to link instead of a shared archive.
9117old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9118
9119# Commands used to build and install a shared archive.
9120archive_cmds=$lt_archive_cmds
9121archive_expsym_cmds=$lt_archive_expsym_cmds
9122postinstall_cmds=$lt_postinstall_cmds
9123postuninstall_cmds=$lt_postuninstall_cmds
9124
John Criswell47fdd832003-07-14 16:52:07 +00009125# Commands used to build a loadable module (assumed same as above if empty)
9126module_cmds=$lt_module_cmds
9127module_expsym_cmds=$lt_module_expsym_cmds
9128
John Criswell7a73b802003-06-30 21:59:07 +00009129# Commands to strip libraries.
9130old_striplib=$lt_old_striplib
9131striplib=$lt_striplib
9132
John Criswell47fdd832003-07-14 16:52:07 +00009133# Dependencies to place before the objects being linked to create a
9134# shared library.
9135predep_objects=$lt_predep_objects
9136
9137# Dependencies to place after the objects being linked to create a
9138# shared library.
9139postdep_objects=$lt_postdep_objects
9140
9141# Dependencies to place before the objects being linked to create a
9142# shared library.
9143predeps=$lt_predeps
9144
9145# Dependencies to place after the objects being linked to create a
9146# shared library.
9147postdeps=$lt_postdeps
9148
9149# The library search path used internally by the compiler when linking
9150# a shared library.
9151compiler_lib_search_path=$lt_compiler_lib_search_path
9152
John Criswell7a73b802003-06-30 21:59:07 +00009153# Method to check whether dependent libraries are shared objects.
9154deplibs_check_method=$lt_deplibs_check_method
9155
9156# Command to use when deplibs_check_method == file_magic.
9157file_magic_cmd=$lt_file_magic_cmd
9158
9159# Flag that allows shared libraries with undefined symbols to be built.
9160allow_undefined_flag=$lt_allow_undefined_flag
9161
9162# Flag that forces no undefined symbols.
9163no_undefined_flag=$lt_no_undefined_flag
9164
9165# Commands used to finish a libtool library installation in a directory.
9166finish_cmds=$lt_finish_cmds
9167
9168# Same as above, but a single script fragment to be evaled but not shown.
9169finish_eval=$lt_finish_eval
9170
9171# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009172global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009173
9174# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009175global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009176
9177# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009178global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009179
9180# This is the shared library runtime path variable.
9181runpath_var=$runpath_var
9182
9183# This is the shared library path variable.
9184shlibpath_var=$shlibpath_var
9185
9186# Is shlibpath searched before the hard-coded library search path?
9187shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9188
9189# How to hardcode a shared library path into an executable.
9190hardcode_action=$hardcode_action
9191
9192# Whether we should hardcode library paths into libraries.
9193hardcode_into_libs=$hardcode_into_libs
9194
9195# Flag to hardcode \$libdir into a binary during linking.
9196# This must work even if \$libdir does not exist.
9197hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9198
John Criswell47fdd832003-07-14 16:52:07 +00009199# If ld is used when linking, flag to hardcode \$libdir into
9200# a binary during linking. This must work even if \$libdir does
9201# not exist.
9202hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9203
John Criswell7a73b802003-06-30 21:59:07 +00009204# Whether we need a single -rpath flag with a separated argument.
9205hardcode_libdir_separator=$lt_hardcode_libdir_separator
9206
John Criswell47fdd832003-07-14 16:52:07 +00009207# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009208# resulting binary.
9209hardcode_direct=$hardcode_direct
9210
9211# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9212# resulting binary.
9213hardcode_minus_L=$hardcode_minus_L
9214
9215# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9216# the resulting binary.
9217hardcode_shlibpath_var=$hardcode_shlibpath_var
9218
John Criswell47fdd832003-07-14 16:52:07 +00009219# Set to yes if building a shared library automatically hardcodes DIR into the library
9220# and all subsequent libraries and executables linked against it.
9221hardcode_automatic=$hardcode_automatic
9222
John Criswell7a73b802003-06-30 21:59:07 +00009223# Variables whose values should be saved in libtool wrapper scripts and
9224# restored at relink time.
9225variables_saved_for_relink="$variables_saved_for_relink"
9226
9227# Whether libtool must link a program against all its dependency libraries.
9228link_all_deplibs=$link_all_deplibs
9229
9230# Compile-time system search path for libraries
9231sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9232
9233# Run-time system search path for libraries
9234sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9235
9236# Fix the shell variable \$srcfile for the compiler.
9237fix_srcfile_path="$fix_srcfile_path"
9238
9239# Set to yes if exported symbols are required.
9240always_export_symbols=$always_export_symbols
9241
9242# The commands to list exported symbols.
9243export_symbols_cmds=$lt_export_symbols_cmds
9244
9245# The commands to extract the exported symbol list from a shared archive.
9246extract_expsyms_cmds=$lt_extract_expsyms_cmds
9247
9248# Symbols that should not be listed in the preloaded symbols.
9249exclude_expsyms=$lt_exclude_expsyms
9250
9251# Symbols that must always be exported.
9252include_expsyms=$lt_include_expsyms
9253
9254# ### END LIBTOOL CONFIG
9255
9256__EOF__
9257
John Criswell47fdd832003-07-14 16:52:07 +00009258
John Criswell7a73b802003-06-30 21:59:07 +00009259 case $host_os in
9260 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009261 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009262
9263# AIX sometimes has problems with the GCC collect2 program. For some
9264# reason, if we set the COLLECT_NAMES environment variable, the problems
9265# vanish in a puff of smoke.
9266if test "X${COLLECT_NAMES+set}" != Xset; then
9267 COLLECT_NAMES=
9268 export COLLECT_NAMES
9269fi
9270EOF
9271 ;;
9272 esac
9273
John Criswell7a73b802003-06-30 21:59:07 +00009274 # We use sed instead of cat because bash on DJGPP gets confused if
9275 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9276 # text mode, it properly converts lines to CR/LF. This bash problem
9277 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009278 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009279
John Criswell47fdd832003-07-14 16:52:07 +00009280 mv -f "$cfgfile" "$ofile" || \
9281 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009282 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009283
9284else
9285 # If there is no Makefile yet, we rely on a make rule to execute
9286 # `config.status --recheck' to rerun these tests and create the
9287 # libtool script then.
9288 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009289fi
John Criswell7a73b802003-06-30 21:59:07 +00009290
9291
John Criswell47fdd832003-07-14 16:52:07 +00009292ac_ext=c
9293ac_cpp='$CPP $CPPFLAGS'
9294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9296ac_compiler_gnu=$ac_cv_c_compiler_gnu
9297
9298CC="$lt_save_CC"
9299
9300
9301# Check whether --with-tags or --without-tags was given.
9302if test "${with_tags+set}" = set; then
9303 withval="$with_tags"
9304 tagnames="$withval"
9305fi;
9306
9307if test -f "$ltmain" && test -n "$tagnames"; then
9308 if test ! -f "${ofile}"; then
9309 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9310echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9311 fi
9312
9313 if test -z "$LTCC"; then
9314 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9315 if test -z "$LTCC"; then
9316 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9317echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9318 else
9319 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9320echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9321 fi
9322 fi
9323
9324 # Extract list of available tagged configurations in $ofile.
9325 # Note that this assumes the entire list is on one line.
9326 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9327
9328 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9329 for tagname in $tagnames; do
9330 IFS="$lt_save_ifs"
9331 # Check whether tagname contains only valid characters
9332 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9333 "") ;;
9334 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9335echo "$as_me: error: invalid tag name: $tagname" >&2;}
9336 { (exit 1); exit 1; }; }
9337 ;;
9338 esac
9339
9340 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9341 then
9342 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9343echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9344 { (exit 1); exit 1; }; }
9345 fi
9346
9347 # Update the list of available tags.
9348 if test -n "$tagname"; then
9349 echo appending configuration tag \"$tagname\" to $ofile
9350
9351 case $tagname in
9352 CXX)
9353 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9354 ac_ext=cc
9355ac_cpp='$CXXCPP $CPPFLAGS'
9356ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9357ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9358ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9359
9360
9361
9362
9363archive_cmds_need_lc_CXX=no
9364allow_undefined_flag_CXX=
9365always_export_symbols_CXX=no
9366archive_expsym_cmds_CXX=
9367export_dynamic_flag_spec_CXX=
9368hardcode_direct_CXX=no
9369hardcode_libdir_flag_spec_CXX=
9370hardcode_libdir_flag_spec_ld_CXX=
9371hardcode_libdir_separator_CXX=
9372hardcode_minus_L_CXX=no
9373hardcode_automatic_CXX=no
9374module_cmds_CXX=
9375module_expsym_cmds_CXX=
9376link_all_deplibs_CXX=unknown
9377old_archive_cmds_CXX=$old_archive_cmds
9378no_undefined_flag_CXX=
9379whole_archive_flag_spec_CXX=
9380enable_shared_with_static_runtimes_CXX=no
9381
9382# Dependencies to place before and after the object being linked:
9383predep_objects_CXX=
9384postdep_objects_CXX=
9385predeps_CXX=
9386postdeps_CXX=
9387compiler_lib_search_path_CXX=
9388
9389# Source file extension for C++ test sources.
9390ac_ext=cc
9391
9392# Object file extension for compiled C++ test sources.
9393objext=o
9394objext_CXX=$objext
9395
9396# Code to be used in simple compile tests
9397lt_simple_compile_test_code="int some_variable = 0;\n"
9398
9399# Code to be used in simple link tests
9400lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9401
9402# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9403
9404# If no C compiler was specified, use CC.
9405LTCC=${LTCC-"$CC"}
9406
9407# Allow CC to be a program name with arguments.
9408compiler=$CC
9409
9410
9411# Allow CC to be a program name with arguments.
9412lt_save_CC=$CC
9413lt_save_LD=$LD
9414lt_save_GCC=$GCC
9415GCC=$GXX
9416lt_save_with_gnu_ld=$with_gnu_ld
9417lt_save_path_LD=$lt_cv_path_LD
9418if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9419 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9420else
9421 unset lt_cv_prog_gnu_ld
9422fi
9423if test -n "${lt_cv_path_LDCXX+set}"; then
9424 lt_cv_path_LD=$lt_cv_path_LDCXX
9425else
9426 unset lt_cv_path_LD
9427fi
9428test -z "${LDCXX+set}" || LD=$LDCXX
9429CC=${CXX-"c++"}
9430compiler=$CC
9431compiler_CXX=$CC
9432cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9433
9434# We don't want -fno-exception wen compiling C++ code, so set the
9435# no_builtin_flag separately
9436if test "$GXX" = yes; then
9437 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9438else
9439 lt_prog_compiler_no_builtin_flag_CXX=
9440fi
9441
9442if test "$GXX" = yes; then
9443 # Set up default GNU C++ configuration
9444
9445
9446# Check whether --with-gnu-ld or --without-gnu-ld was given.
9447if test "${with_gnu_ld+set}" = set; then
9448 withval="$with_gnu_ld"
9449 test "$withval" = no || with_gnu_ld=yes
9450else
9451 with_gnu_ld=no
9452fi;
9453ac_prog=ld
9454if test "$GCC" = yes; then
9455 # Check if gcc -print-prog-name=ld gives a path.
9456 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9457echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9458 case $host in
9459 *-*-mingw*)
9460 # gcc leaves a trailing carriage return which upsets mingw
9461 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9462 *)
9463 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9464 esac
9465 case $ac_prog in
9466 # Accept absolute paths.
9467 [\\/]* | ?:[\\/]*)
9468 re_direlt='/[^/][^/]*/\.\./'
9469 # Canonicalize the path of ld
9470 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9471 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9472 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9473 done
9474 test -z "$LD" && LD="$ac_prog"
9475 ;;
9476 "")
9477 # If it fails, then pretend we aren't using GCC.
9478 ac_prog=ld
9479 ;;
9480 *)
9481 # If it is relative, then search for the first ld in PATH.
9482 with_gnu_ld=unknown
9483 ;;
9484 esac
9485elif test "$with_gnu_ld" = yes; then
9486 echo "$as_me:$LINENO: checking for GNU ld" >&5
9487echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9488else
9489 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9490echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9491fi
9492if test "${lt_cv_path_LD+set}" = set; then
9493 echo $ECHO_N "(cached) $ECHO_C" >&6
9494else
9495 if test -z "$LD"; then
9496 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9497 for ac_dir in $PATH; do
9498 IFS="$lt_save_ifs"
9499 test -z "$ac_dir" && ac_dir=.
9500 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9501 lt_cv_path_LD="$ac_dir/$ac_prog"
9502 # Check to see if the program is GNU ld. I'd rather use --version,
9503 # but apparently some GNU ld's only accept -v.
9504 # Break only if it was the GNU/non-GNU ld that we prefer.
9505 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9506 *GNU* | *'with BFD'*)
9507 test "$with_gnu_ld" != no && break
9508 ;;
9509 *)
9510 test "$with_gnu_ld" != yes && break
9511 ;;
9512 esac
9513 fi
9514 done
9515 IFS="$lt_save_ifs"
9516else
9517 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9518fi
9519fi
9520
9521LD="$lt_cv_path_LD"
9522if test -n "$LD"; then
9523 echo "$as_me:$LINENO: result: $LD" >&5
9524echo "${ECHO_T}$LD" >&6
9525else
9526 echo "$as_me:$LINENO: result: no" >&5
9527echo "${ECHO_T}no" >&6
9528fi
9529test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9530echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9531 { (exit 1); exit 1; }; }
9532echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9533echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9534if test "${lt_cv_prog_gnu_ld+set}" = set; then
9535 echo $ECHO_N "(cached) $ECHO_C" >&6
9536else
9537 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9538case `"$LD" -v 2>&1 </dev/null` in
9539*GNU* | *'with BFD'*)
9540 lt_cv_prog_gnu_ld=yes
9541 ;;
9542*)
9543 lt_cv_prog_gnu_ld=no
9544 ;;
9545esac
9546fi
9547echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9548echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9549with_gnu_ld=$lt_cv_prog_gnu_ld
9550
9551
9552
9553 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9554 # archiving commands below assume that GNU ld is being used.
9555 if test "$with_gnu_ld" = yes; then
9556 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9557 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'
9558
9559 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9560 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9561
9562 # If archive_cmds runs LD, not CC, wlarc should be empty
9563 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9564 # investigate it a little bit more. (MM)
9565 wlarc='${wl}'
9566
9567 # ancient GNU ld didn't support --whole-archive et. al.
9568 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9569 grep 'no-whole-archive' > /dev/null; then
9570 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9571 else
9572 whole_archive_flag_spec_CXX=
9573 fi
9574 else
9575 with_gnu_ld=no
9576 wlarc=
9577
9578 # A generic and very simple default shared library creation
9579 # command for GNU C++ for the case where it uses the native
9580 # linker, instead of GNU ld. If possible, this setting should
9581 # overridden to take advantage of the native linker features on
9582 # the platform it is being used on.
9583 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9584 fi
9585
9586 # Commands to make compiler produce verbose output that lists
9587 # what "hidden" libraries, object files and flags are used when
9588 # linking a shared library.
9589 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9590
9591else
9592 GXX=no
9593 with_gnu_ld=no
9594 wlarc=
9595fi
9596
9597# PORTME: fill in a description of your system's C++ link characteristics
9598echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9599echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9600ld_shlibs_CXX=yes
9601case $host_os in
9602 aix3*)
9603 # FIXME: insert proper C++ library support
9604 ld_shlibs_CXX=no
9605 ;;
9606 aix4* | aix5*)
9607 if test "$host_cpu" = ia64; then
9608 # On IA64, the linker does run time linking by default, so we don't
9609 # have to do anything special.
9610 aix_use_runtimelinking=no
9611 exp_sym_flag='-Bexport'
9612 no_entry_flag=""
9613 else
9614 aix_use_runtimelinking=no
9615
9616 # Test if we are trying to use run time linking or normal
9617 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9618 # need to do runtime linking.
9619 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9620 for ld_flag in $LDFLAGS; do
9621 case $ld_flag in
9622 *-brtl*)
9623 aix_use_runtimelinking=yes
9624 break
9625 ;;
9626 esac
9627 done
9628 esac
9629
9630 exp_sym_flag='-bexport'
9631 no_entry_flag='-bnoentry'
9632 fi
9633
9634 # When large executables or shared objects are built, AIX ld can
9635 # have problems creating the table of contents. If linking a library
9636 # or program results in "error TOC overflow" add -mminimal-toc to
9637 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9638 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9639
9640 archive_cmds_CXX=''
9641 hardcode_direct_CXX=yes
9642 hardcode_libdir_separator_CXX=':'
9643 link_all_deplibs_CXX=yes
9644
9645 if test "$GXX" = yes; then
9646 case $host_os in aix4.012|aix4.012.*)
9647 # We only want to do this on AIX 4.2 and lower, the check
9648 # below for broken collect2 doesn't work under 4.3+
9649 collect2name=`${CC} -print-prog-name=collect2`
9650 if test -f "$collect2name" && \
9651 strings "$collect2name" | grep resolve_lib_name >/dev/null
9652 then
9653 # We have reworked collect2
9654 hardcode_direct_CXX=yes
9655 else
9656 # We have old collect2
9657 hardcode_direct_CXX=unsupported
9658 # It fails to find uninstalled libraries when the uninstalled
9659 # path is not listed in the libpath. Setting hardcode_minus_L
9660 # to unsupported forces relinking
9661 hardcode_minus_L_CXX=yes
9662 hardcode_libdir_flag_spec_CXX='-L$libdir'
9663 hardcode_libdir_separator_CXX=
9664 fi
9665 esac
9666 shared_flag='-shared'
9667 else
9668 # not using gcc
9669 if test "$host_cpu" = ia64; then
9670 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9671 # chokes on -Wl,-G. The following line is correct:
9672 shared_flag='-G'
9673 else
9674 if test "$aix_use_runtimelinking" = yes; then
9675 shared_flag='${wl}-G'
9676 else
9677 shared_flag='${wl}-bM:SRE'
9678 fi
9679 fi
9680 fi
9681
9682 # It seems that -bexpall does not export symbols beginning with
9683 # underscore (_), so it is better to generate a list of symbols to export.
9684 always_export_symbols_CXX=yes
9685 if test "$aix_use_runtimelinking" = yes; then
9686 # Warning - without using the other runtime loading flags (-brtl),
9687 # -berok will link without error, but may produce a broken library.
9688 allow_undefined_flag_CXX='-berok'
9689 # Determine the default libpath from the value encoded in an empty executable.
9690 cat >conftest.$ac_ext <<_ACEOF
9691#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009692/* confdefs.h. */
9693_ACEOF
9694cat confdefs.h >>conftest.$ac_ext
9695cat >>conftest.$ac_ext <<_ACEOF
9696/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009697
John Criswell47fdd832003-07-14 16:52:07 +00009698int
9699main ()
9700{
9701
9702 ;
9703 return 0;
9704}
9705_ACEOF
9706rm -f conftest.$ac_objext conftest$ac_exeext
9707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9708 (eval $ac_link) 2>&5
9709 ac_status=$?
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); } &&
9712 { ac_try='test -s conftest$ac_exeext'
9713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9714 (eval $ac_try) 2>&5
9715 ac_status=$?
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); }; }; then
9718
9719aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9720}'`
9721# Check for a 64-bit object if we didn't find anything.
9722if 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; }
9723}'`; fi
9724else
9725 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009726sed 's/^/| /' conftest.$ac_ext >&5
9727
John Criswell47fdd832003-07-14 16:52:07 +00009728fi
9729rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9730if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9731
9732 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9733
9734 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"
9735 else
9736 if test "$host_cpu" = ia64; then
9737 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9738 allow_undefined_flag_CXX="-z nodefs"
9739 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"
9740 else
9741 # Determine the default libpath from the value encoded in an empty executable.
9742 cat >conftest.$ac_ext <<_ACEOF
9743#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009744/* confdefs.h. */
9745_ACEOF
9746cat confdefs.h >>conftest.$ac_ext
9747cat >>conftest.$ac_ext <<_ACEOF
9748/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009749
John Criswell47fdd832003-07-14 16:52:07 +00009750int
9751main ()
9752{
9753
9754 ;
9755 return 0;
9756}
9757_ACEOF
9758rm -f conftest.$ac_objext conftest$ac_exeext
9759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9760 (eval $ac_link) 2>&5
9761 ac_status=$?
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); } &&
9764 { ac_try='test -s conftest$ac_exeext'
9765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766 (eval $ac_try) 2>&5
9767 ac_status=$?
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; }; then
9770
9771aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9772}'`
9773# Check for a 64-bit object if we didn't find anything.
9774if 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; }
9775}'`; fi
9776else
9777 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009778sed 's/^/| /' conftest.$ac_ext >&5
9779
John Criswell47fdd832003-07-14 16:52:07 +00009780fi
9781rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9782if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9783
9784 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9785 # Warning - without using the other run time loading flags,
9786 # -berok will link without error, but may produce a broken library.
9787 no_undefined_flag_CXX=' ${wl}-bernotok'
9788 allow_undefined_flag_CXX=' ${wl}-berok'
9789 # -bexpall does not export symbols beginning with underscore (_)
9790 always_export_symbols_CXX=yes
9791 # Exported symbols can be pulled into shared objects from archives
9792 whole_archive_flag_spec_CXX=' '
9793 archive_cmds_need_lc_CXX=yes
9794 # This is similar to how AIX traditionally builds it's shared libraries.
9795 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'
9796 fi
9797 fi
9798 ;;
9799 chorus*)
9800 case $cc_basename in
9801 *)
9802 # FIXME: insert proper C++ library support
9803 ld_shlibs_CXX=no
9804 ;;
9805 esac
9806 ;;
9807
9808 cygwin* | mingw* | pw32*)
9809 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9810 # as there is no search path for DLLs.
9811 hardcode_libdir_flag_spec_CXX='-L$libdir'
9812 allow_undefined_flag_CXX=unsupported
9813 always_export_symbols_CXX=no
9814 enable_shared_with_static_runtimes_CXX=yes
9815
9816 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9817 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'
9818 # If the export-symbols file already is a .def file (1st line
9819 # is EXPORTS), use it as is; otherwise, prepend...
9820 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9821 cp $export_symbols $output_objdir/$soname.def;
9822 else
9823 echo EXPORTS > $output_objdir/$soname.def;
9824 cat $export_symbols >> $output_objdir/$soname.def;
9825 fi~
9826 $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'
9827 else
9828 ld_shlibs_CXX=no
9829 fi
9830 ;;
9831
9832 darwin* | rhapsody*)
9833 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9834 archive_cmds_need_lc_CXX=no
9835 case "$host_os" in
9836 rhapsody* | darwin1.[012])
9837 allow_undefined_flag_CXX='-undefined suppress'
9838 ;;
9839 *) # Darwin 1.3 on
9840 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9841 ;;
9842 esac
9843 lt_int_apple_cc_single_mod=no
9844 output_verbose_link_cmd='echo'
9845 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9846 lt_int_apple_cc_single_mod=yes
9847 fi
9848 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9849 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9850 else
9851 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'
9852 fi
9853 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9854
9855 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9856 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9857 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}'
9858 else
9859 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}'
9860 fi
9861 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}'
9862 hardcode_direct_CXX=no
9863 hardcode_automatic_CXX=yes
9864 hardcode_shlibpath_var_CXX=unsupported
9865 whole_archive_flag_spec_CXX='-all_load $convenience'
9866 link_all_deplibs_CXX=yes
9867 fi
9868 ;;
9869
9870 dgux*)
9871 case $cc_basename in
9872 ec++)
9873 # FIXME: insert proper C++ library support
9874 ld_shlibs_CXX=no
9875 ;;
9876 ghcx)
9877 # Green Hills C++ Compiler
9878 # FIXME: insert proper C++ library support
9879 ld_shlibs_CXX=no
9880 ;;
9881 *)
9882 # FIXME: insert proper C++ library support
9883 ld_shlibs_CXX=no
9884 ;;
9885 esac
9886 ;;
9887 freebsd12*)
9888 # C++ shared libraries reported to be fairly broken before switch to ELF
9889 ld_shlibs_CXX=no
9890 ;;
9891 freebsd-elf*)
9892 archive_cmds_need_lc_CXX=no
9893 ;;
9894 freebsd*)
9895 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9896 # conventions
9897 ld_shlibs_CXX=yes
9898 ;;
9899 gnu*)
9900 ;;
9901 hpux9*)
9902 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9903 hardcode_libdir_separator_CXX=:
9904 export_dynamic_flag_spec_CXX='${wl}-E'
9905 hardcode_direct_CXX=yes
9906 hardcode_minus_L_CXX=yes # Not in the search PATH,
9907 # but as the default
9908 # location of the library.
9909
9910 case $cc_basename in
9911 CC)
9912 # FIXME: insert proper C++ library support
9913 ld_shlibs_CXX=no
9914 ;;
9915 aCC)
9916 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'
9917 # Commands to make compiler produce verbose output that lists
9918 # what "hidden" libraries, object files and flags are used when
9919 # linking a shared library.
9920 #
9921 # There doesn't appear to be a way to prevent this compiler from
9922 # explicitly linking system object files so we need to strip them
9923 # from the output so that they don't get included in the library
9924 # dependencies.
9925 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'
9926 ;;
9927 *)
9928 if test "$GXX" = yes; then
9929 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'
9930 else
9931 # FIXME: insert proper C++ library support
9932 ld_shlibs_CXX=no
9933 fi
9934 ;;
9935 esac
9936 ;;
9937 hpux10*|hpux11*)
9938 if test $with_gnu_ld = no; then
9939 case "$host_cpu" in
9940 hppa*64*)
9941 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9942 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9943 hardcode_libdir_separator_CXX=:
9944 ;;
9945 ia64*)
9946 hardcode_libdir_flag_spec_CXX='-L$libdir'
9947 ;;
9948 *)
9949 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9950 hardcode_libdir_separator_CXX=:
9951 export_dynamic_flag_spec_CXX='${wl}-E'
9952 ;;
9953 esac
9954 fi
9955 case "$host_cpu" in
9956 hppa*64*)
9957 hardcode_direct_CXX=no
9958 hardcode_shlibpath_var_CXX=no
9959 ;;
9960 ia64*)
9961 hardcode_direct_CXX=no
9962 hardcode_shlibpath_var_CXX=no
9963 hardcode_minus_L_CXX=yes # Not in the search PATH,
9964 # but as the default
9965 # location of the library.
9966 ;;
9967 *)
9968 hardcode_direct_CXX=yes
9969 hardcode_minus_L_CXX=yes # Not in the search PATH,
9970 # but as the default
9971 # location of the library.
9972 ;;
9973 esac
9974
9975 case $cc_basename in
9976 CC)
9977 # FIXME: insert proper C++ library support
9978 ld_shlibs_CXX=no
9979 ;;
9980 aCC)
9981 case "$host_cpu" in
9982 hppa*64*|ia64*)
9983 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9984 ;;
9985 *)
9986 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9987 ;;
9988 esac
9989 # Commands to make compiler produce verbose output that lists
9990 # what "hidden" libraries, object files and flags are used when
9991 # linking a shared library.
9992 #
9993 # There doesn't appear to be a way to prevent this compiler from
9994 # explicitly linking system object files so we need to strip them
9995 # from the output so that they don't get included in the library
9996 # dependencies.
9997 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'
9998 ;;
9999 *)
10000 if test "$GXX" = yes; then
10001 if test $with_gnu_ld = no; then
10002 case "$host_cpu" in
10003 ia64*|hppa*64*)
10004 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10005 ;;
10006 *)
10007 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'
10008 ;;
10009 esac
10010 fi
10011 else
10012 # FIXME: insert proper C++ library support
10013 ld_shlibs_CXX=no
10014 fi
10015 ;;
10016 esac
10017 ;;
10018 irix5* | irix6*)
10019 case $cc_basename in
10020 CC)
10021 # SGI C++
10022 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'
10023
10024 # Archives containing C++ object files must be created using
10025 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10026 # necessary to make sure instantiated templates are included
10027 # in the archive.
10028 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10029 ;;
10030 *)
10031 if test "$GXX" = yes; then
10032 if test "$with_gnu_ld" = no; then
10033 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'
10034 else
10035 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'
10036 fi
10037 fi
10038 link_all_deplibs_CXX=yes
10039 ;;
10040 esac
10041 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10042 hardcode_libdir_separator_CXX=:
10043 ;;
10044 linux*)
10045 case $cc_basename in
10046 KCC)
10047 # Kuck and Associates, Inc. (KAI) C++ Compiler
10048
10049 # KCC will only create a shared library if the output file
10050 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10051 # to its proper name (with version) after linking.
10052 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'
10053 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'
10054 # Commands to make compiler produce verbose output that lists
10055 # what "hidden" libraries, object files and flags are used when
10056 # linking a shared library.
10057 #
10058 # There doesn't appear to be a way to prevent this compiler from
10059 # explicitly linking system object files so we need to strip them
10060 # from the output so that they don't get included in the library
10061 # dependencies.
10062 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'
10063
10064 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10065 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10066
10067 # Archives containing C++ object files must be created using
10068 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10069 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10070 ;;
10071 icpc)
10072 # Intel C++
10073 with_gnu_ld=yes
10074 archive_cmds_need_lc_CXX=no
10075 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10076 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'
10077 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10078 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10079 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10080 ;;
10081 cxx)
10082 # Compaq C++
10083 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10084 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'
10085
10086 runpath_var=LD_RUN_PATH
10087 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10088 hardcode_libdir_separator_CXX=:
10089
10090 # Commands to make compiler produce verbose output that lists
10091 # what "hidden" libraries, object files and flags are used when
10092 # linking a shared library.
10093 #
10094 # There doesn't appear to be a way to prevent this compiler from
10095 # explicitly linking system object files so we need to strip them
10096 # from the output so that they don't get included in the library
10097 # dependencies.
10098 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'
10099 ;;
10100 esac
10101 ;;
10102 lynxos*)
10103 # FIXME: insert proper C++ library support
10104 ld_shlibs_CXX=no
10105 ;;
10106 m88k*)
10107 # FIXME: insert proper C++ library support
10108 ld_shlibs_CXX=no
10109 ;;
10110 mvs*)
10111 case $cc_basename in
10112 cxx)
10113 # FIXME: insert proper C++ library support
10114 ld_shlibs_CXX=no
10115 ;;
10116 *)
10117 # FIXME: insert proper C++ library support
10118 ld_shlibs_CXX=no
10119 ;;
10120 esac
10121 ;;
10122 netbsd*)
10123 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10124 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10125 wlarc=
10126 hardcode_libdir_flag_spec_CXX='-R$libdir'
10127 hardcode_direct_CXX=yes
10128 hardcode_shlibpath_var_CXX=no
10129 fi
10130 # Workaround some broken pre-1.5 toolchains
10131 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10132 ;;
10133 osf3*)
10134 case $cc_basename in
10135 KCC)
10136 # Kuck and Associates, Inc. (KAI) C++ Compiler
10137
10138 # KCC will only create a shared library if the output file
10139 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10140 # to its proper name (with version) after linking.
10141 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'
10142
10143 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10144 hardcode_libdir_separator_CXX=:
10145
10146 # Archives containing C++ object files must be created using
10147 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10148 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10149
10150 ;;
10151 RCC)
10152 # Rational C++ 2.4.1
10153 # FIXME: insert proper C++ library support
10154 ld_shlibs_CXX=no
10155 ;;
10156 cxx)
10157 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10158 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'
10159
10160 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10161 hardcode_libdir_separator_CXX=:
10162
10163 # Commands to make compiler produce verbose output that lists
10164 # what "hidden" libraries, object files and flags are used when
10165 # linking a shared library.
10166 #
10167 # There doesn't appear to be a way to prevent this compiler from
10168 # explicitly linking system object files so we need to strip them
10169 # from the output so that they don't get included in the library
10170 # dependencies.
10171 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'
10172 ;;
10173 *)
10174 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10175 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10176 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'
10177
10178 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10179 hardcode_libdir_separator_CXX=:
10180
10181 # Commands to make compiler produce verbose output that lists
10182 # what "hidden" libraries, object files and flags are used when
10183 # linking a shared library.
10184 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10185
10186 else
10187 # FIXME: insert proper C++ library support
10188 ld_shlibs_CXX=no
10189 fi
10190 ;;
10191 esac
10192 ;;
10193 osf4* | osf5*)
10194 case $cc_basename in
10195 KCC)
10196 # Kuck and Associates, Inc. (KAI) C++ Compiler
10197
10198 # KCC will only create a shared library if the output file
10199 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10200 # to its proper name (with version) after linking.
10201 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'
10202
10203 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10204 hardcode_libdir_separator_CXX=:
10205
10206 # Archives containing C++ object files must be created using
10207 # the KAI C++ compiler.
10208 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10209 ;;
10210 RCC)
10211 # Rational C++ 2.4.1
10212 # FIXME: insert proper C++ library support
10213 ld_shlibs_CXX=no
10214 ;;
10215 cxx)
10216 allow_undefined_flag_CXX=' -expect_unresolved \*'
10217 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'
10218 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10219 echo "-hidden">> $lib.exp~
10220 $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~
10221 $rm $lib.exp'
10222
10223 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10224 hardcode_libdir_separator_CXX=:
10225
10226 # Commands to make compiler produce verbose output that lists
10227 # what "hidden" libraries, object files and flags are used when
10228 # linking a shared library.
10229 #
10230 # There doesn't appear to be a way to prevent this compiler from
10231 # explicitly linking system object files so we need to strip them
10232 # from the output so that they don't get included in the library
10233 # dependencies.
10234 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'
10235 ;;
10236 *)
10237 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10238 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10239 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'
10240
10241 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10242 hardcode_libdir_separator_CXX=:
10243
10244 # Commands to make compiler produce verbose output that lists
10245 # what "hidden" libraries, object files and flags are used when
10246 # linking a shared library.
10247 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10248
10249 else
10250 # FIXME: insert proper C++ library support
10251 ld_shlibs_CXX=no
10252 fi
10253 ;;
10254 esac
10255 ;;
10256 psos*)
10257 # FIXME: insert proper C++ library support
10258 ld_shlibs_CXX=no
10259 ;;
10260 sco*)
10261 archive_cmds_need_lc_CXX=no
10262 case $cc_basename in
10263 CC)
10264 # FIXME: insert proper C++ library support
10265 ld_shlibs_CXX=no
10266 ;;
10267 *)
10268 # FIXME: insert proper C++ library support
10269 ld_shlibs_CXX=no
10270 ;;
10271 esac
10272 ;;
10273 sunos4*)
10274 case $cc_basename in
10275 CC)
10276 # Sun C++ 4.x
10277 # FIXME: insert proper C++ library support
10278 ld_shlibs_CXX=no
10279 ;;
10280 lcc)
10281 # Lucid
10282 # FIXME: insert proper C++ library support
10283 ld_shlibs_CXX=no
10284 ;;
10285 *)
10286 # FIXME: insert proper C++ library support
10287 ld_shlibs_CXX=no
10288 ;;
10289 esac
10290 ;;
10291 solaris*)
10292 case $cc_basename in
10293 CC)
10294 # Sun C++ 4.2, 5.x and Centerline C++
10295 no_undefined_flag_CXX=' -zdefs'
10296 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10297 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10298 $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'
10299
10300 hardcode_libdir_flag_spec_CXX='-R$libdir'
10301 hardcode_shlibpath_var_CXX=no
10302 case $host_os in
10303 solaris2.0-5 | solaris2.0-5.*) ;;
10304 *)
10305 # The C++ compiler is used as linker so we must use $wl
10306 # flag to pass the commands to the underlying system
10307 # linker.
10308 # Supported since Solaris 2.6 (maybe 2.5.1?)
10309 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10310 ;;
10311 esac
10312 link_all_deplibs_CXX=yes
10313
10314 # Commands to make compiler produce verbose output that lists
10315 # what "hidden" libraries, object files and flags are used when
10316 # linking a shared library.
10317 #
10318 # There doesn't appear to be a way to prevent this compiler from
10319 # explicitly linking system object files so we need to strip them
10320 # from the output so that they don't get included in the library
10321 # dependencies.
10322 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'
10323
10324 # Archives containing C++ object files must be created using
10325 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10326 # necessary to make sure instantiated templates are included
10327 # in the archive.
10328 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10329 ;;
10330 gcx)
10331 # Green Hills C++ Compiler
10332 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10333
10334 # The C++ compiler must be used to create the archive.
10335 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10336 ;;
10337 *)
10338 # GNU C++ compiler with Solaris linker
10339 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10340 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10341 if $CC --version | grep -v '^2\.7' > /dev/null; then
10342 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10343 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10344 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10345
10346 # Commands to make compiler produce verbose output that lists
10347 # what "hidden" libraries, object files and flags are used when
10348 # linking a shared library.
10349 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10350 else
10351 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10352 # platform.
10353 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10354 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10355 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10356
10357 # Commands to make compiler produce verbose output that lists
10358 # what "hidden" libraries, object files and flags are used when
10359 # linking a shared library.
10360 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10361 fi
10362
10363 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10364 fi
10365 ;;
10366 esac
10367 ;;
10368 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10369 archive_cmds_need_lc_CXX=no
10370 ;;
10371 tandem*)
10372 case $cc_basename in
10373 NCC)
10374 # NonStop-UX NCC 3.20
10375 # FIXME: insert proper C++ library support
10376 ld_shlibs_CXX=no
10377 ;;
10378 *)
10379 # FIXME: insert proper C++ library support
10380 ld_shlibs_CXX=no
10381 ;;
10382 esac
10383 ;;
10384 vxworks*)
10385 # FIXME: insert proper C++ library support
10386 ld_shlibs_CXX=no
10387 ;;
10388 *)
10389 # FIXME: insert proper C++ library support
10390 ld_shlibs_CXX=no
10391 ;;
10392esac
10393echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10394echo "${ECHO_T}$ld_shlibs_CXX" >&6
10395test "$ld_shlibs_CXX" = no && can_build_shared=no
10396
10397GCC_CXX="$GXX"
10398LD_CXX="$LD"
10399
10400## CAVEAT EMPTOR:
10401## There is no encapsulation within the following macros, do not change
10402## the running order or otherwise move them around unless you know exactly
10403## what you are doing...
10404
10405cat > conftest.$ac_ext <<EOF
10406class Foo
10407{
10408public:
10409 Foo (void) { a = 0; }
10410private:
10411 int a;
10412};
10413EOF
10414
10415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10416 (eval $ac_compile) 2>&5
10417 ac_status=$?
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); }; then
10420 # Parse the compiler output and extract the necessary
10421 # objects, libraries and library flags.
10422
10423 # Sentinel used to keep track of whether or not we are before
10424 # the conftest object file.
10425 pre_test_object_deps_done=no
10426
10427 # The `*' in the case matches for architectures that use `case' in
10428 # $output_verbose_cmd can trigger glob expansion during the loop
10429 # eval without this substitution.
10430 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10431
10432 for p in `eval $output_verbose_link_cmd`; do
10433 case $p in
10434
10435 -L* | -R* | -l*)
10436 # Some compilers place space between "-{L,R}" and the path.
10437 # Remove the space.
10438 if test $p = "-L" \
10439 || test $p = "-R"; then
10440 prev=$p
10441 continue
10442 else
10443 prev=
10444 fi
10445
10446 if test "$pre_test_object_deps_done" = no; then
10447 case $p in
10448 -L* | -R*)
10449 # Internal compiler library paths should come after those
10450 # provided the user. The postdeps already come after the
10451 # user supplied libs so there is no need to process them.
10452 if test -z "$compiler_lib_search_path_CXX"; then
10453 compiler_lib_search_path_CXX="${prev}${p}"
10454 else
10455 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10456 fi
10457 ;;
10458 # The "-l" case would never come before the object being
10459 # linked, so don't bother handling this case.
10460 esac
10461 else
10462 if test -z "$postdeps_CXX"; then
10463 postdeps_CXX="${prev}${p}"
10464 else
10465 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10466 fi
10467 fi
10468 ;;
10469
10470 *.$objext)
10471 # This assumes that the test object file only shows up
10472 # once in the compiler output.
10473 if test "$p" = "conftest.$objext"; then
10474 pre_test_object_deps_done=yes
10475 continue
10476 fi
10477
10478 if test "$pre_test_object_deps_done" = no; then
10479 if test -z "$predep_objects_CXX"; then
10480 predep_objects_CXX="$p"
10481 else
10482 predep_objects_CXX="$predep_objects_CXX $p"
10483 fi
10484 else
10485 if test -z "$postdep_objects_CXX"; then
10486 postdep_objects_CXX="$p"
10487 else
10488 postdep_objects_CXX="$postdep_objects_CXX $p"
10489 fi
10490 fi
10491 ;;
10492
10493 *) ;; # Ignore the rest.
10494
10495 esac
10496 done
10497
10498 # Clean up.
10499 rm -f a.out a.exe
10500else
10501 echo "libtool.m4: error: problem compiling CXX test program"
10502fi
10503
10504$rm -f confest.$objext
10505
10506case " $postdeps_CXX " in
10507*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10508esac
10509
10510lt_prog_compiler_wl_CXX=
10511lt_prog_compiler_pic_CXX=
10512lt_prog_compiler_static_CXX=
10513
10514echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10515echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10516
10517 # C++ specific cases for pic, static, wl, etc.
10518 if test "$GXX" = yes; then
10519 lt_prog_compiler_wl_CXX='-Wl,'
10520 lt_prog_compiler_static_CXX='-static'
10521
10522 case $host_os in
10523 aix*)
10524 # All AIX code is PIC.
10525 if test "$host_cpu" = ia64; then
10526 # AIX 5 now supports IA64 processor
10527 lt_prog_compiler_static_CXX='-Bstatic'
10528 fi
10529 ;;
10530 amigaos*)
10531 # FIXME: we need at least 68020 code to build shared libraries, but
10532 # adding the `-m68020' flag to GCC prevents building anything better,
10533 # like `-m68040'.
10534 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10535 ;;
10536 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10537 # PIC is the default for these OSes.
10538 ;;
10539 mingw* | os2* | pw32*)
10540 # This hack is so that the source file can tell whether it is being
10541 # built for inclusion in a dll (and should export symbols for example).
10542 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10543 ;;
10544 darwin* | rhapsody*)
10545 # PIC is the default on this platform
10546 # Common symbols not allowed in MH_DYLIB files
10547 lt_prog_compiler_pic_CXX='-fno-common'
10548 ;;
10549 *djgpp*)
10550 # DJGPP does not support shared libraries at all
10551 lt_prog_compiler_pic_CXX=
10552 ;;
10553 sysv4*MP*)
10554 if test -d /usr/nec; then
10555 lt_prog_compiler_pic_CXX=-Kconform_pic
10556 fi
10557 ;;
10558 hpux*)
10559 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10560 # not for PA HP-UX.
10561 case "$host_cpu" in
10562 hppa*64*|ia64*)
10563 ;;
10564 *)
10565 lt_prog_compiler_pic_CXX='-fPIC'
10566 ;;
10567 esac
10568 ;;
10569 *)
10570 lt_prog_compiler_pic_CXX='-fPIC'
10571 ;;
10572 esac
10573 else
10574 case $host_os in
10575 aix4* | aix5*)
10576 # All AIX code is PIC.
10577 if test "$host_cpu" = ia64; then
10578 # AIX 5 now supports IA64 processor
10579 lt_prog_compiler_static_CXX='-Bstatic'
10580 else
10581 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10582 fi
10583 ;;
10584 chorus*)
10585 case $cc_basename in
10586 cxch68)
10587 # Green Hills C++ Compiler
10588 # _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"
10589 ;;
10590 esac
10591 ;;
10592 dgux*)
10593 case $cc_basename in
10594 ec++)
10595 lt_prog_compiler_pic_CXX='-KPIC'
10596 ;;
10597 ghcx)
10598 # Green Hills C++ Compiler
10599 lt_prog_compiler_pic_CXX='-pic'
10600 ;;
10601 *)
10602 ;;
10603 esac
10604 ;;
10605 freebsd*)
10606 # FreeBSD uses GNU C++
10607 ;;
10608 hpux9* | hpux10* | hpux11*)
10609 case $cc_basename in
10610 CC)
10611 lt_prog_compiler_wl_CXX='-Wl,'
10612 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10613 if test "$host_cpu" != ia64; then
10614 lt_prog_compiler_pic_CXX='+Z'
10615 fi
10616 ;;
10617 aCC)
10618 lt_prog_compiler_wl_CXX='-Wl,'
10619 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10620 case "$host_cpu" in
10621 hppa*64*|ia64*)
10622 # +Z the default
10623 ;;
10624 *)
10625 lt_prog_compiler_pic_CXX='+Z'
10626 ;;
10627 esac
10628 ;;
10629 *)
10630 ;;
10631 esac
10632 ;;
10633 irix5* | irix6* | nonstopux*)
10634 case $cc_basename in
10635 CC)
10636 lt_prog_compiler_wl_CXX='-Wl,'
10637 lt_prog_compiler_static_CXX='-non_shared'
10638 # CC pic flag -KPIC is the default.
10639 ;;
10640 *)
10641 ;;
10642 esac
10643 ;;
10644 linux*)
10645 case $cc_basename in
10646 KCC)
10647 # KAI C++ Compiler
10648 lt_prog_compiler_wl_CXX='--backend -Wl,'
10649 lt_prog_compiler_pic_CXX='-fPIC'
10650 ;;
10651 icpc)
10652 # Intel C++
10653 lt_prog_compiler_wl_CXX='-Wl,'
10654 lt_prog_compiler_pic_CXX='-KPIC'
10655 lt_prog_compiler_static_CXX='-static'
10656 ;;
10657 cxx)
10658 # Compaq C++
10659 # Make sure the PIC flag is empty. It appears that all Alpha
10660 # Linux and Compaq Tru64 Unix objects are PIC.
10661 lt_prog_compiler_pic_CXX=
10662 lt_prog_compiler_static_CXX='-non_shared'
10663 ;;
10664 *)
10665 ;;
10666 esac
10667 ;;
10668 lynxos*)
10669 ;;
10670 m88k*)
10671 ;;
10672 mvs*)
10673 case $cc_basename in
10674 cxx)
10675 lt_prog_compiler_pic_CXX='-W c,exportall'
10676 ;;
10677 *)
10678 ;;
10679 esac
10680 ;;
10681 netbsd*)
10682 ;;
10683 osf3* | osf4* | osf5*)
10684 case $cc_basename in
10685 KCC)
10686 lt_prog_compiler_wl_CXX='--backend -Wl,'
10687 ;;
10688 RCC)
10689 # Rational C++ 2.4.1
10690 lt_prog_compiler_pic_CXX='-pic'
10691 ;;
10692 cxx)
10693 # Digital/Compaq C++
10694 lt_prog_compiler_wl_CXX='-Wl,'
10695 # Make sure the PIC flag is empty. It appears that all Alpha
10696 # Linux and Compaq Tru64 Unix objects are PIC.
10697 lt_prog_compiler_pic_CXX=
10698 lt_prog_compiler_static_CXX='-non_shared'
10699 ;;
10700 *)
10701 ;;
10702 esac
10703 ;;
10704 psos*)
10705 ;;
10706 sco*)
10707 case $cc_basename in
10708 CC)
10709 lt_prog_compiler_pic_CXX='-fPIC'
10710 ;;
10711 *)
10712 ;;
10713 esac
10714 ;;
10715 solaris*)
10716 case $cc_basename in
10717 CC)
10718 # Sun C++ 4.2, 5.x and Centerline C++
10719 lt_prog_compiler_pic_CXX='-KPIC'
10720 lt_prog_compiler_static_CXX='-Bstatic'
10721 lt_prog_compiler_wl_CXX='-Qoption ld '
10722 ;;
10723 gcx)
10724 # Green Hills C++ Compiler
10725 lt_prog_compiler_pic_CXX='-PIC'
10726 ;;
10727 *)
10728 ;;
10729 esac
10730 ;;
10731 sunos4*)
10732 case $cc_basename in
10733 CC)
10734 # Sun C++ 4.x
10735 lt_prog_compiler_pic_CXX='-pic'
10736 lt_prog_compiler_static_CXX='-Bstatic'
10737 ;;
10738 lcc)
10739 # Lucid
10740 lt_prog_compiler_pic_CXX='-pic'
10741 ;;
10742 *)
10743 ;;
10744 esac
10745 ;;
10746 tandem*)
10747 case $cc_basename in
10748 NCC)
10749 # NonStop-UX NCC 3.20
10750 lt_prog_compiler_pic_CXX='-KPIC'
10751 ;;
10752 *)
10753 ;;
10754 esac
10755 ;;
10756 unixware*)
10757 ;;
10758 vxworks*)
10759 ;;
10760 *)
10761 lt_prog_compiler_can_build_shared_CXX=no
10762 ;;
10763 esac
10764 fi
10765
10766echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10767echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10768
10769#
10770# Check to make sure the PIC flag actually works.
10771#
10772if test -n "$lt_prog_compiler_pic_CXX"; then
10773 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10774echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10775if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10776 echo $ECHO_N "(cached) $ECHO_C" >&6
10777else
10778 lt_prog_compiler_pic_works_CXX=no
10779 ac_outfile=conftest.$ac_objext
10780 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10781 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10782 # Insert the option either (1) after the last *FLAGS variable, or
10783 # (2) before a word containing "conftest.", or (3) at the end.
10784 # Note that $ac_compile itself does not contain backslashes and begins
10785 # with a dollar sign (not a hyphen), so the echo should work correctly.
10786 # The option is referenced via a variable to avoid confusing sed.
10787 lt_compile=`echo "$ac_compile" | $SED \
10788 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10789 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10790 -e 's:$: $lt_compiler_flag:'`
John Criswell67181ca2003-09-26 14:53:17 +000010791 (eval echo "\"\$as_me:10791: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010792 (eval "$lt_compile" 2>conftest.err)
10793 ac_status=$?
10794 cat conftest.err >&5
John Criswell67181ca2003-09-26 14:53:17 +000010795 echo "$as_me:10795: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010796 if (exit $ac_status) && test -s "$ac_outfile"; then
10797 # The compiler can only warn and ignore the option if not recognized
10798 # So say no if there are warnings
10799 if test ! -s conftest.err; then
10800 lt_prog_compiler_pic_works_CXX=yes
10801 fi
10802 fi
10803 $rm conftest*
10804
10805fi
10806echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10807echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10808
10809if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10810 case $lt_prog_compiler_pic_CXX in
10811 "" | " "*) ;;
10812 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10813 esac
10814else
10815 lt_prog_compiler_pic_CXX=
10816 lt_prog_compiler_can_build_shared_CXX=no
10817fi
10818
10819fi
10820case "$host_os" in
10821 # For platforms which do not support PIC, -DPIC is meaningless:
10822 *djgpp*)
10823 lt_prog_compiler_pic_CXX=
10824 ;;
10825 *)
10826 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10827 ;;
10828esac
10829
10830echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10831echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10832if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10833 echo $ECHO_N "(cached) $ECHO_C" >&6
10834else
10835 lt_cv_prog_compiler_c_o_CXX=no
10836 $rm -r conftest 2>/dev/null
10837 mkdir conftest
10838 cd conftest
10839 mkdir out
10840 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10841
10842 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10843 # that will create temporary files in the current directory regardless of
10844 # the output directory. Thus, making CWD read-only will cause this test
10845 # to fail, enabling locking or at least warning the user not to do parallel
10846 # builds.
10847 chmod -w .
10848
10849 lt_compiler_flag="-o out/conftest2.$ac_objext"
10850 # Insert the option either (1) after the last *FLAGS variable, or
10851 # (2) before a word containing "conftest.", or (3) at the end.
10852 # Note that $ac_compile itself does not contain backslashes and begins
10853 # with a dollar sign (not a hyphen), so the echo should work correctly.
10854 lt_compile=`echo "$ac_compile" | $SED \
10855 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10857 -e 's:$: $lt_compiler_flag:'`
John Criswell67181ca2003-09-26 14:53:17 +000010858 (eval echo "\"\$as_me:10858: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010859 (eval "$lt_compile" 2>out/conftest.err)
10860 ac_status=$?
10861 cat out/conftest.err >&5
John Criswell67181ca2003-09-26 14:53:17 +000010862 echo "$as_me:10862: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010863 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10864 then
10865 # The compiler can only warn and ignore the option if not recognized
10866 # So say no if there are warnings
10867 if test ! -s out/conftest.err; then
10868 lt_cv_prog_compiler_c_o_CXX=yes
10869 fi
10870 fi
10871 chmod u+w .
10872 $rm conftest* out/*
10873 rmdir out
10874 cd ..
10875 rmdir conftest
10876 $rm conftest*
10877
10878fi
10879echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10880echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10881
10882
10883hard_links="nottested"
10884if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10885 # do not overwrite the value of need_locks provided by the user
10886 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10887echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10888 hard_links=yes
10889 $rm conftest*
10890 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10891 touch conftest.a
10892 ln conftest.a conftest.b 2>&5 || hard_links=no
10893 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10894 echo "$as_me:$LINENO: result: $hard_links" >&5
10895echo "${ECHO_T}$hard_links" >&6
10896 if test "$hard_links" = no; then
10897 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10898echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10899 need_locks=warn
10900 fi
10901else
10902 need_locks=no
10903fi
10904
10905echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10906echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10907
10908 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10909 case $host_os in
10910 aix4* | aix5*)
10911 # If we're using GNU nm, then we don't want the "-C" option.
10912 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10913 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10914 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'
10915 else
10916 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'
10917 fi
10918 ;;
10919 pw32*)
10920 export_symbols_cmds_CXX="$ltdll_cmds"
10921 ;;
10922 cygwin* | mingw*)
10923 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10924 ;;
10925 *)
10926 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10927 ;;
10928 esac
10929
10930echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10931echo "${ECHO_T}$ld_shlibs_CXX" >&6
10932test "$ld_shlibs_CXX" = no && can_build_shared=no
10933
10934variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10935if test "$GCC" = yes; then
10936 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10937fi
10938
10939#
10940# Do we need to explicitly link libc?
10941#
10942case "x$archive_cmds_need_lc_CXX" in
10943x|xyes)
10944 # Assume -lc should be added
10945 archive_cmds_need_lc_CXX=yes
10946
10947 if test "$enable_shared" = yes && test "$GCC" = yes; then
10948 case $archive_cmds_CXX in
10949 *'~'*)
10950 # FIXME: we may have to deal with multi-command sequences.
10951 ;;
10952 '$CC '*)
10953 # Test whether the compiler implicitly links with -lc since on some
10954 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10955 # to ld, don't add -lc before -lgcc.
10956 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10957echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10958 $rm conftest*
10959 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10960
10961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10962 (eval $ac_compile) 2>&5
10963 ac_status=$?
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); } 2>conftest.err; then
10966 soname=conftest
10967 lib=conftest
10968 libobjs=conftest.$ac_objext
10969 deplibs=
10970 wl=$lt_prog_compiler_wl_CXX
10971 compiler_flags=-v
10972 linker_flags=-v
10973 verstring=
10974 output_objdir=.
10975 libname=conftest
10976 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10977 allow_undefined_flag_CXX=
10978 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10979 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10980 ac_status=$?
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); }
10983 then
10984 archive_cmds_need_lc_CXX=no
10985 else
10986 archive_cmds_need_lc_CXX=yes
10987 fi
10988 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10989 else
10990 cat conftest.err 1>&5
10991 fi
10992 $rm conftest*
10993 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10994echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10995 ;;
10996 esac
10997 fi
10998 ;;
10999esac
11000
11001echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11002echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11003hardcode_action_CXX=
11004if test -n "$hardcode_libdir_flag_spec_CXX" || \
11005 test -n "$runpath_var CXX" || \
11006 test "X$hardcode_automatic_CXX"="Xyes" ; then
11007
11008 # We can hardcode non-existant directories.
11009 if test "$hardcode_direct_CXX" != no &&
11010 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11011 # have to relink, otherwise we might link with an installed library
11012 # when we should be linking with a yet-to-be-installed one
11013 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11014 test "$hardcode_minus_L_CXX" != no; then
11015 # Linking always hardcodes the temporary library directory.
11016 hardcode_action_CXX=relink
11017 else
11018 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11019 hardcode_action_CXX=immediate
11020 fi
11021else
11022 # We cannot hardcode anything, or else we can only hardcode existing
11023 # directories.
11024 hardcode_action_CXX=unsupported
11025fi
11026echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11027echo "${ECHO_T}$hardcode_action_CXX" >&6
11028
11029if test "$hardcode_action_CXX" = relink; then
11030 # Fast installation is not supported
11031 enable_fast_install=no
11032elif test "$shlibpath_overrides_runpath" = yes ||
11033 test "$enable_shared" = no; then
11034 # Fast installation is not necessary
11035 enable_fast_install=needless
11036fi
11037
11038striplib=
11039old_striplib=
11040echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11041echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11042if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11043 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11044 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11045 echo "$as_me:$LINENO: result: yes" >&5
11046echo "${ECHO_T}yes" >&6
11047else
11048# FIXME - insert some real tests, host_os isn't really good enough
11049 case $host_os in
11050 darwin*)
11051 if test -n "$STRIP" ; then
11052 striplib="$STRIP -x"
11053 echo "$as_me:$LINENO: result: yes" >&5
11054echo "${ECHO_T}yes" >&6
11055 else
11056 echo "$as_me:$LINENO: result: no" >&5
11057echo "${ECHO_T}no" >&6
11058fi
11059 ;;
11060 *)
11061 echo "$as_me:$LINENO: result: no" >&5
11062echo "${ECHO_T}no" >&6
11063 ;;
11064 esac
11065fi
11066
11067echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11068echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11069library_names_spec=
11070libname_spec='lib$name'
11071soname_spec=
11072shrext=".so"
11073postinstall_cmds=
11074postuninstall_cmds=
11075finish_cmds=
11076finish_eval=
11077shlibpath_var=
11078shlibpath_overrides_runpath=unknown
11079version_type=none
11080dynamic_linker="$host_os ld.so"
11081sys_lib_dlsearch_path_spec="/lib /usr/lib"
11082if test "$GCC" = yes; then
11083 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11084 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11085 # if the path contains ";" then we assume it to be the separator
11086 # otherwise default to the standard path separator (i.e. ":") - it is
11087 # assumed that no part of a normal pathname contains ";" but that should
11088 # okay in the real world where ";" in dirpaths is itself problematic.
11089 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11090 else
11091 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11092 fi
11093else
11094 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11095fi
11096need_lib_prefix=unknown
11097hardcode_into_libs=no
11098
11099# when you set need_version to no, make sure it does not cause -set_version
11100# flags to be left without arguments
11101need_version=unknown
11102
11103case $host_os in
11104aix3*)
11105 version_type=linux
11106 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11107 shlibpath_var=LIBPATH
11108
11109 # AIX 3 has no versioning support, so we append a major version to the name.
11110 soname_spec='${libname}${release}${shared_ext}$major'
11111 ;;
11112
11113aix4* | aix5*)
11114 version_type=linux
11115 need_lib_prefix=no
11116 need_version=no
11117 hardcode_into_libs=yes
11118 if test "$host_cpu" = ia64; then
11119 # AIX 5 supports IA64
11120 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11121 shlibpath_var=LD_LIBRARY_PATH
11122 else
11123 # With GCC up to 2.95.x, collect2 would create an import file
11124 # for dependence libraries. The import file would start with
11125 # the line `#! .'. This would cause the generated library to
11126 # depend on `.', always an invalid library. This was fixed in
11127 # development snapshots of GCC prior to 3.0.
11128 case $host_os in
11129 aix4 | aix4.[01] | aix4.[01].*)
11130 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11131 echo ' yes '
11132 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11133 :
11134 else
11135 can_build_shared=no
11136 fi
11137 ;;
11138 esac
11139 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11140 # soname into executable. Probably we can add versioning support to
11141 # collect2, so additional links can be useful in future.
11142 if test "$aix_use_runtimelinking" = yes; then
11143 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11144 # instead of lib<name>.a to let people know that these are not
11145 # typical AIX shared libraries.
11146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11147 else
11148 # We preserve .a as extension for shared libraries through AIX4.2
11149 # and later when we are not doing run time linking.
11150 library_names_spec='${libname}${release}.a $libname.a'
11151 soname_spec='${libname}${release}${shared_ext}$major'
11152 fi
11153 shlibpath_var=LIBPATH
11154 fi
11155 ;;
11156
11157amigaos*)
11158 library_names_spec='$libname.ixlibrary $libname.a'
11159 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11160 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'
11161 ;;
11162
11163beos*)
11164 library_names_spec='${libname}${shared_ext}'
11165 dynamic_linker="$host_os ld.so"
11166 shlibpath_var=LIBRARY_PATH
11167 ;;
11168
11169bsdi4*)
11170 version_type=linux
11171 need_version=no
11172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11173 soname_spec='${libname}${release}${shared_ext}$major'
11174 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11175 shlibpath_var=LD_LIBRARY_PATH
11176 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11177 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11178 # the default ld.so.conf also contains /usr/contrib/lib and
11179 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11180 # libtool to hard-code these into programs
11181 ;;
11182
11183cygwin* | mingw* | pw32*)
11184 version_type=windows
11185 shrext=".dll"
11186 need_version=no
11187 need_lib_prefix=no
11188
11189 case $GCC,$host_os in
11190 yes,cygwin* | yes,mingw* | yes,pw32*)
11191 library_names_spec='$libname.dll.a'
11192 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11193 postinstall_cmds='base_file=`basename \${file}`~
11194 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11195 dldir=$destdir/`dirname \$dlpath`~
11196 test -d \$dldir || mkdir -p \$dldir~
11197 $install_prog $dir/$dlname \$dldir/$dlname'
11198 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11199 dlpath=$dir/\$dldll~
11200 $rm \$dlpath'
11201 shlibpath_overrides_runpath=yes
11202
11203 case $host_os in
11204 cygwin*)
11205 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11206 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11207 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11208 ;;
11209 mingw*)
11210 # MinGW DLLs use traditional 'lib' prefix
11211 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11212 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11213 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11214 # It is most probably a Windows format PATH printed by
11215 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11216 # path with ; separators, and with drive letters. We can handle the
11217 # drive letters (cygwin fileutils understands them), so leave them,
11218 # especially as we might pass files found there to a mingw objdump,
11219 # which wouldn't understand a cygwinified path. Ahh.
11220 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11221 else
11222 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11223 fi
11224 ;;
11225 pw32*)
11226 # pw32 DLLs use 'pw' prefix rather than 'lib'
11227 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11228 ;;
11229 esac
11230 ;;
11231
11232 *)
11233 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11234 ;;
11235 esac
11236 dynamic_linker='Win32 ld.exe'
11237 # FIXME: first we should search . and the directory the executable is in
11238 shlibpath_var=PATH
11239 ;;
11240
11241darwin* | rhapsody*)
11242 dynamic_linker="$host_os dyld"
11243 version_type=darwin
11244 need_lib_prefix=no
11245 need_version=no
11246 # FIXME: Relying on posixy $() will cause problems for
11247 # cross-compilation, but unfortunately the echo tests do not
11248 # yet detect zsh echo's removal of \ escapes.
11249 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11250 soname_spec='${libname}${release}${major}$shared_ext'
11251 shlibpath_overrides_runpath=yes
11252 shlibpath_var=DYLD_LIBRARY_PATH
11253 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11254 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11255 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11256 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"`
11257 fi
11258 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11259 ;;
11260
11261dgux*)
11262 version_type=linux
11263 need_lib_prefix=no
11264 need_version=no
11265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11266 soname_spec='${libname}${release}${shared_ext}$major'
11267 shlibpath_var=LD_LIBRARY_PATH
11268 ;;
11269
11270freebsd1*)
11271 dynamic_linker=no
11272 ;;
11273
11274freebsd*)
11275 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11276 version_type=freebsd-$objformat
11277 case $version_type in
11278 freebsd-elf*)
11279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11280 need_version=no
11281 need_lib_prefix=no
11282 ;;
11283 freebsd-*)
11284 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11285 need_version=yes
11286 ;;
11287 esac
11288 shlibpath_var=LD_LIBRARY_PATH
11289 case $host_os in
11290 freebsd2*)
11291 shlibpath_overrides_runpath=yes
11292 ;;
11293 freebsd3.01* | freebsdelf3.01*)
11294 shlibpath_overrides_runpath=yes
11295 hardcode_into_libs=yes
11296 ;;
11297 *) # from 3.2 on
11298 shlibpath_overrides_runpath=no
11299 hardcode_into_libs=yes
11300 ;;
11301 esac
11302 ;;
11303
11304gnu*)
11305 version_type=linux
11306 need_lib_prefix=no
11307 need_version=no
11308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11309 soname_spec='${libname}${release}${shared_ext}$major'
11310 shlibpath_var=LD_LIBRARY_PATH
11311 hardcode_into_libs=yes
11312 ;;
11313
11314hpux9* | hpux10* | hpux11*)
11315 # Give a soname corresponding to the major version so that dld.sl refuses to
11316 # link against other versions.
11317 version_type=sunos
11318 need_lib_prefix=no
11319 need_version=no
11320 case "$host_cpu" in
11321 ia64*)
11322 shrext='.so'
11323 hardcode_into_libs=yes
11324 dynamic_linker="$host_os dld.so"
11325 shlibpath_var=LD_LIBRARY_PATH
11326 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11328 soname_spec='${libname}${release}${shared_ext}$major'
11329 if test "X$HPUX_IA64_MODE" = X32; then
11330 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11331 else
11332 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11333 fi
11334 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11335 ;;
11336 hppa*64*)
11337 shrext='.sl'
11338 hardcode_into_libs=yes
11339 dynamic_linker="$host_os dld.sl"
11340 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11341 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11343 soname_spec='${libname}${release}${shared_ext}$major'
11344 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11345 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11346 ;;
11347 *)
11348 shrext='.sl'
11349 dynamic_linker="$host_os dld.sl"
11350 shlibpath_var=SHLIB_PATH
11351 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11353 soname_spec='${libname}${release}${shared_ext}$major'
11354 ;;
11355 esac
11356 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11357 postinstall_cmds='chmod 555 $lib'
11358 ;;
11359
11360irix5* | irix6* | nonstopux*)
11361 case $host_os in
11362 nonstopux*) version_type=nonstopux ;;
11363 *)
11364 if test "$lt_cv_prog_gnu_ld" = yes; then
11365 version_type=linux
11366 else
11367 version_type=irix
11368 fi ;;
11369 esac
11370 need_lib_prefix=no
11371 need_version=no
11372 soname_spec='${libname}${release}${shared_ext}$major'
11373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11374 case $host_os in
11375 irix5* | nonstopux*)
11376 libsuff= shlibsuff=
11377 ;;
11378 *)
11379 case $LD in # libtool.m4 will add one of these switches to LD
11380 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11381 libsuff= shlibsuff= libmagic=32-bit;;
11382 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11383 libsuff=32 shlibsuff=N32 libmagic=N32;;
11384 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11385 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11386 *) libsuff= shlibsuff= libmagic=never-match;;
11387 esac
11388 ;;
11389 esac
11390 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11391 shlibpath_overrides_runpath=no
11392 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11393 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11394 hardcode_into_libs=yes
11395 ;;
11396
11397# No shared lib support for Linux oldld, aout, or coff.
11398linux*oldld* | linux*aout* | linux*coff*)
11399 dynamic_linker=no
11400 ;;
11401
11402# This must be Linux ELF.
11403linux*)
11404 version_type=linux
11405 need_lib_prefix=no
11406 need_version=no
11407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11408 soname_spec='${libname}${release}${shared_ext}$major'
11409 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11410 shlibpath_var=LD_LIBRARY_PATH
11411 shlibpath_overrides_runpath=no
11412 # This implies no fast_install, which is unacceptable.
11413 # Some rework will be needed to allow for fast_install
11414 # before this can be enabled.
11415 hardcode_into_libs=yes
11416
11417 # We used to test for /lib/ld.so.1 and disable shared libraries on
11418 # powerpc, because MkLinux only supported shared libraries with the
11419 # GNU dynamic linker. Since this was broken with cross compilers,
11420 # most powerpc-linux boxes support dynamic linking these days and
11421 # people can always --disable-shared, the test was removed, and we
11422 # assume the GNU/Linux dynamic linker is in use.
11423 dynamic_linker='GNU/Linux ld.so'
11424 ;;
11425
11426netbsd*)
11427 version_type=sunos
11428 need_lib_prefix=no
11429 need_version=no
11430 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11433 dynamic_linker='NetBSD (a.out) ld.so'
11434 else
11435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11436 soname_spec='${libname}${release}${shared_ext}$major'
11437 dynamic_linker='NetBSD ld.elf_so'
11438 fi
11439 shlibpath_var=LD_LIBRARY_PATH
11440 shlibpath_overrides_runpath=yes
11441 hardcode_into_libs=yes
11442 ;;
11443
11444newsos6)
11445 version_type=linux
11446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11447 shlibpath_var=LD_LIBRARY_PATH
11448 shlibpath_overrides_runpath=yes
11449 ;;
11450
11451nto-qnx)
11452 version_type=linux
11453 need_lib_prefix=no
11454 need_version=no
11455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11456 soname_spec='${libname}${release}${shared_ext}$major'
11457 shlibpath_var=LD_LIBRARY_PATH
11458 shlibpath_overrides_runpath=yes
11459 ;;
11460
11461openbsd*)
11462 version_type=sunos
11463 need_lib_prefix=no
11464 need_version=no
11465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11467 shlibpath_var=LD_LIBRARY_PATH
11468 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11469 case $host_os in
11470 openbsd2.[89] | openbsd2.[89].*)
11471 shlibpath_overrides_runpath=no
11472 ;;
11473 *)
11474 shlibpath_overrides_runpath=yes
11475 ;;
11476 esac
11477 else
11478 shlibpath_overrides_runpath=yes
11479 fi
11480 ;;
11481
11482os2*)
11483 libname_spec='$name'
11484 shrext=".dll"
11485 need_lib_prefix=no
11486 library_names_spec='$libname${shared_ext} $libname.a'
11487 dynamic_linker='OS/2 ld.exe'
11488 shlibpath_var=LIBPATH
11489 ;;
11490
11491osf3* | osf4* | osf5*)
11492 version_type=osf
11493 need_lib_prefix=no
11494 need_version=no
11495 soname_spec='${libname}${release}${shared_ext}$major'
11496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11497 shlibpath_var=LD_LIBRARY_PATH
11498 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11499 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11500 ;;
11501
11502sco3.2v5*)
11503 version_type=osf
11504 soname_spec='${libname}${release}${shared_ext}$major'
11505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11506 shlibpath_var=LD_LIBRARY_PATH
11507 ;;
11508
11509solaris*)
11510 version_type=linux
11511 need_lib_prefix=no
11512 need_version=no
11513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11514 soname_spec='${libname}${release}${shared_ext}$major'
11515 shlibpath_var=LD_LIBRARY_PATH
11516 shlibpath_overrides_runpath=yes
11517 hardcode_into_libs=yes
11518 # ldd complains unless libraries are executable
11519 postinstall_cmds='chmod +x $lib'
11520 ;;
11521
11522sunos4*)
11523 version_type=sunos
11524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11525 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11526 shlibpath_var=LD_LIBRARY_PATH
11527 shlibpath_overrides_runpath=yes
11528 if test "$with_gnu_ld" = yes; then
11529 need_lib_prefix=no
11530 fi
11531 need_version=yes
11532 ;;
11533
11534sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11535 version_type=linux
11536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11537 soname_spec='${libname}${release}${shared_ext}$major'
11538 shlibpath_var=LD_LIBRARY_PATH
11539 case $host_vendor in
11540 sni)
11541 shlibpath_overrides_runpath=no
11542 need_lib_prefix=no
11543 export_dynamic_flag_spec='${wl}-Blargedynsym'
11544 runpath_var=LD_RUN_PATH
11545 ;;
11546 siemens)
11547 need_lib_prefix=no
11548 ;;
11549 motorola)
11550 need_lib_prefix=no
11551 need_version=no
11552 shlibpath_overrides_runpath=no
11553 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11554 ;;
11555 esac
11556 ;;
11557
11558sysv4*MP*)
11559 if test -d /usr/nec ;then
11560 version_type=linux
11561 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11562 soname_spec='$libname${shared_ext}.$major'
11563 shlibpath_var=LD_LIBRARY_PATH
11564 fi
11565 ;;
11566
11567uts4*)
11568 version_type=linux
11569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11570 soname_spec='${libname}${release}${shared_ext}$major'
11571 shlibpath_var=LD_LIBRARY_PATH
11572 ;;
11573
11574*)
11575 dynamic_linker=no
11576 ;;
11577esac
11578echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11579echo "${ECHO_T}$dynamic_linker" >&6
11580test "$dynamic_linker" = no && can_build_shared=no
11581
11582if test "x$enable_dlopen" != xyes; then
11583 enable_dlopen=unknown
11584 enable_dlopen_self=unknown
11585 enable_dlopen_self_static=unknown
11586else
11587 lt_cv_dlopen=no
11588 lt_cv_dlopen_libs=
11589
11590 case $host_os in
11591 beos*)
11592 lt_cv_dlopen="load_add_on"
11593 lt_cv_dlopen_libs=
11594 lt_cv_dlopen_self=yes
11595 ;;
11596
11597 mingw* | pw32*)
11598 lt_cv_dlopen="LoadLibrary"
11599 lt_cv_dlopen_libs=
11600 ;;
11601
11602 cygwin*)
11603 lt_cv_dlopen="dlopen"
11604 lt_cv_dlopen_libs=
11605 ;;
11606
11607 darwin*)
11608 # if libdl is installed we need to link against it
11609 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11610echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11611if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11612 echo $ECHO_N "(cached) $ECHO_C" >&6
11613else
11614 ac_check_lib_save_LIBS=$LIBS
11615LIBS="-ldl $LIBS"
11616cat >conftest.$ac_ext <<_ACEOF
11617#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011618/* confdefs.h. */
11619_ACEOF
11620cat confdefs.h >>conftest.$ac_ext
11621cat >>conftest.$ac_ext <<_ACEOF
11622/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011623
11624/* Override any gcc2 internal prototype to avoid an error. */
11625#ifdef __cplusplus
11626extern "C"
11627#endif
11628/* We use char because int might match the return type of a gcc2
11629 builtin and then its argument prototype would still apply. */
11630char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011631int
11632main ()
11633{
11634dlopen ();
11635 ;
11636 return 0;
11637}
11638_ACEOF
11639rm -f conftest.$ac_objext conftest$ac_exeext
11640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11641 (eval $ac_link) 2>&5
11642 ac_status=$?
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); } &&
11645 { ac_try='test -s conftest$ac_exeext'
11646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647 (eval $ac_try) 2>&5
11648 ac_status=$?
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); }; }; then
11651 ac_cv_lib_dl_dlopen=yes
11652else
11653 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011654sed 's/^/| /' conftest.$ac_ext >&5
11655
John Criswell47fdd832003-07-14 16:52:07 +000011656ac_cv_lib_dl_dlopen=no
11657fi
11658rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11659LIBS=$ac_check_lib_save_LIBS
11660fi
11661echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11662echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11663if test $ac_cv_lib_dl_dlopen = yes; then
11664 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11665else
11666
11667 lt_cv_dlopen="dyld"
11668 lt_cv_dlopen_libs=
11669 lt_cv_dlopen_self=yes
11670
11671fi
11672
11673 ;;
11674
11675 *)
11676 echo "$as_me:$LINENO: checking for shl_load" >&5
11677echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11678if test "${ac_cv_func_shl_load+set}" = set; then
11679 echo $ECHO_N "(cached) $ECHO_C" >&6
11680else
11681 cat >conftest.$ac_ext <<_ACEOF
11682#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011683/* confdefs.h. */
11684_ACEOF
11685cat confdefs.h >>conftest.$ac_ext
11686cat >>conftest.$ac_ext <<_ACEOF
11687/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011688/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011689 which can conflict with char shl_load (); below.
11690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11691 <limits.h> exists even on freestanding compilers. */
11692#ifdef __STDC__
11693# include <limits.h>
11694#else
11695# include <assert.h>
11696#endif
John Criswell47fdd832003-07-14 16:52:07 +000011697/* Override any gcc2 internal prototype to avoid an error. */
11698#ifdef __cplusplus
11699extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011700{
John Criswell47fdd832003-07-14 16:52:07 +000011701#endif
11702/* We use char because int might match the return type of a gcc2
11703 builtin and then its argument prototype would still apply. */
11704char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011705/* The GNU C library defines this for functions which it implements
11706 to always fail with ENOSYS. Some functions are actually named
11707 something starting with __ and the normal name is an alias. */
11708#if defined (__stub_shl_load) || defined (__stub___shl_load)
11709choke me
11710#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011711char (*f) () = shl_load;
11712#endif
11713#ifdef __cplusplus
11714}
John Criswell47fdd832003-07-14 16:52:07 +000011715#endif
11716
John Criswell0c38eaf2003-09-10 15:17:25 +000011717int
11718main ()
11719{
11720return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011721 ;
11722 return 0;
11723}
11724_ACEOF
11725rm -f conftest.$ac_objext conftest$ac_exeext
11726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11727 (eval $ac_link) 2>&5
11728 ac_status=$?
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); } &&
11731 { ac_try='test -s conftest$ac_exeext'
11732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11733 (eval $ac_try) 2>&5
11734 ac_status=$?
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); }; }; then
11737 ac_cv_func_shl_load=yes
11738else
11739 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011740sed 's/^/| /' conftest.$ac_ext >&5
11741
John Criswell47fdd832003-07-14 16:52:07 +000011742ac_cv_func_shl_load=no
11743fi
11744rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11745fi
11746echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11747echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11748if test $ac_cv_func_shl_load = yes; then
11749 lt_cv_dlopen="shl_load"
11750else
11751 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11752echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11753if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11754 echo $ECHO_N "(cached) $ECHO_C" >&6
11755else
11756 ac_check_lib_save_LIBS=$LIBS
11757LIBS="-ldld $LIBS"
11758cat >conftest.$ac_ext <<_ACEOF
11759#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011760/* confdefs.h. */
11761_ACEOF
11762cat confdefs.h >>conftest.$ac_ext
11763cat >>conftest.$ac_ext <<_ACEOF
11764/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011765
11766/* Override any gcc2 internal prototype to avoid an error. */
11767#ifdef __cplusplus
11768extern "C"
11769#endif
11770/* We use char because int might match the return type of a gcc2
11771 builtin and then its argument prototype would still apply. */
11772char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011773int
11774main ()
11775{
11776shl_load ();
11777 ;
11778 return 0;
11779}
11780_ACEOF
11781rm -f conftest.$ac_objext conftest$ac_exeext
11782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11783 (eval $ac_link) 2>&5
11784 ac_status=$?
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } &&
11787 { ac_try='test -s conftest$ac_exeext'
11788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11789 (eval $ac_try) 2>&5
11790 ac_status=$?
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); }; }; then
11793 ac_cv_lib_dld_shl_load=yes
11794else
11795 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011796sed 's/^/| /' conftest.$ac_ext >&5
11797
John Criswell47fdd832003-07-14 16:52:07 +000011798ac_cv_lib_dld_shl_load=no
11799fi
11800rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11801LIBS=$ac_check_lib_save_LIBS
11802fi
11803echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11804echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11805if test $ac_cv_lib_dld_shl_load = yes; then
11806 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11807else
11808 echo "$as_me:$LINENO: checking for dlopen" >&5
11809echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11810if test "${ac_cv_func_dlopen+set}" = set; then
11811 echo $ECHO_N "(cached) $ECHO_C" >&6
11812else
11813 cat >conftest.$ac_ext <<_ACEOF
11814#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011815/* confdefs.h. */
11816_ACEOF
11817cat confdefs.h >>conftest.$ac_ext
11818cat >>conftest.$ac_ext <<_ACEOF
11819/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011820/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011821 which can conflict with char dlopen (); below.
11822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11823 <limits.h> exists even on freestanding compilers. */
11824#ifdef __STDC__
11825# include <limits.h>
11826#else
11827# include <assert.h>
11828#endif
John Criswell47fdd832003-07-14 16:52:07 +000011829/* Override any gcc2 internal prototype to avoid an error. */
11830#ifdef __cplusplus
11831extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011832{
John Criswell47fdd832003-07-14 16:52:07 +000011833#endif
11834/* We use char because int might match the return type of a gcc2
11835 builtin and then its argument prototype would still apply. */
11836char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011837/* The GNU C library defines this for functions which it implements
11838 to always fail with ENOSYS. Some functions are actually named
11839 something starting with __ and the normal name is an alias. */
11840#if defined (__stub_dlopen) || defined (__stub___dlopen)
11841choke me
11842#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011843char (*f) () = dlopen;
11844#endif
11845#ifdef __cplusplus
11846}
John Criswell47fdd832003-07-14 16:52:07 +000011847#endif
11848
John Criswell0c38eaf2003-09-10 15:17:25 +000011849int
11850main ()
11851{
11852return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011853 ;
11854 return 0;
11855}
11856_ACEOF
11857rm -f conftest.$ac_objext conftest$ac_exeext
11858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11859 (eval $ac_link) 2>&5
11860 ac_status=$?
11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862 (exit $ac_status); } &&
11863 { ac_try='test -s conftest$ac_exeext'
11864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11865 (eval $ac_try) 2>&5
11866 ac_status=$?
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); }; }; then
11869 ac_cv_func_dlopen=yes
11870else
11871 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011872sed 's/^/| /' conftest.$ac_ext >&5
11873
John Criswell47fdd832003-07-14 16:52:07 +000011874ac_cv_func_dlopen=no
11875fi
11876rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11877fi
11878echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11879echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11880if test $ac_cv_func_dlopen = yes; then
11881 lt_cv_dlopen="dlopen"
11882else
11883 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11884echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11885if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11886 echo $ECHO_N "(cached) $ECHO_C" >&6
11887else
11888 ac_check_lib_save_LIBS=$LIBS
11889LIBS="-ldl $LIBS"
11890cat >conftest.$ac_ext <<_ACEOF
11891#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011892/* confdefs.h. */
11893_ACEOF
11894cat confdefs.h >>conftest.$ac_ext
11895cat >>conftest.$ac_ext <<_ACEOF
11896/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011897
11898/* Override any gcc2 internal prototype to avoid an error. */
11899#ifdef __cplusplus
11900extern "C"
11901#endif
11902/* We use char because int might match the return type of a gcc2
11903 builtin and then its argument prototype would still apply. */
11904char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011905int
11906main ()
11907{
11908dlopen ();
11909 ;
11910 return 0;
11911}
11912_ACEOF
11913rm -f conftest.$ac_objext conftest$ac_exeext
11914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11915 (eval $ac_link) 2>&5
11916 ac_status=$?
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); } &&
11919 { ac_try='test -s conftest$ac_exeext'
11920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11921 (eval $ac_try) 2>&5
11922 ac_status=$?
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); }; }; then
11925 ac_cv_lib_dl_dlopen=yes
11926else
11927 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011928sed 's/^/| /' conftest.$ac_ext >&5
11929
John Criswell47fdd832003-07-14 16:52:07 +000011930ac_cv_lib_dl_dlopen=no
11931fi
11932rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11933LIBS=$ac_check_lib_save_LIBS
11934fi
11935echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11936echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11937if test $ac_cv_lib_dl_dlopen = yes; then
11938 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11939else
11940 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11941echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11942if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11944else
11945 ac_check_lib_save_LIBS=$LIBS
11946LIBS="-lsvld $LIBS"
11947cat >conftest.$ac_ext <<_ACEOF
11948#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011949/* confdefs.h. */
11950_ACEOF
11951cat confdefs.h >>conftest.$ac_ext
11952cat >>conftest.$ac_ext <<_ACEOF
11953/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011954
11955/* Override any gcc2 internal prototype to avoid an error. */
11956#ifdef __cplusplus
11957extern "C"
11958#endif
11959/* We use char because int might match the return type of a gcc2
11960 builtin and then its argument prototype would still apply. */
11961char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011962int
11963main ()
11964{
11965dlopen ();
11966 ;
11967 return 0;
11968}
11969_ACEOF
11970rm -f conftest.$ac_objext conftest$ac_exeext
11971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11972 (eval $ac_link) 2>&5
11973 ac_status=$?
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } &&
11976 { ac_try='test -s conftest$ac_exeext'
11977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11978 (eval $ac_try) 2>&5
11979 ac_status=$?
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); }; }; then
11982 ac_cv_lib_svld_dlopen=yes
11983else
11984 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011985sed 's/^/| /' conftest.$ac_ext >&5
11986
John Criswell47fdd832003-07-14 16:52:07 +000011987ac_cv_lib_svld_dlopen=no
11988fi
11989rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11990LIBS=$ac_check_lib_save_LIBS
11991fi
11992echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11993echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11994if test $ac_cv_lib_svld_dlopen = yes; then
11995 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11996else
11997 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11998echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11999if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12000 echo $ECHO_N "(cached) $ECHO_C" >&6
12001else
12002 ac_check_lib_save_LIBS=$LIBS
12003LIBS="-ldld $LIBS"
12004cat >conftest.$ac_ext <<_ACEOF
12005#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000012006/* confdefs.h. */
12007_ACEOF
12008cat confdefs.h >>conftest.$ac_ext
12009cat >>conftest.$ac_ext <<_ACEOF
12010/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012011
12012/* Override any gcc2 internal prototype to avoid an error. */
12013#ifdef __cplusplus
12014extern "C"
12015#endif
12016/* We use char because int might match the return type of a gcc2
12017 builtin and then its argument prototype would still apply. */
12018char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012019int
12020main ()
12021{
12022dld_link ();
12023 ;
12024 return 0;
12025}
12026_ACEOF
12027rm -f conftest.$ac_objext conftest$ac_exeext
12028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12029 (eval $ac_link) 2>&5
12030 ac_status=$?
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); } &&
12033 { ac_try='test -s conftest$ac_exeext'
12034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12035 (eval $ac_try) 2>&5
12036 ac_status=$?
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; }; then
12039 ac_cv_lib_dld_dld_link=yes
12040else
12041 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012042sed 's/^/| /' conftest.$ac_ext >&5
12043
John Criswell47fdd832003-07-14 16:52:07 +000012044ac_cv_lib_dld_dld_link=no
12045fi
12046rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12047LIBS=$ac_check_lib_save_LIBS
12048fi
12049echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12050echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12051if test $ac_cv_lib_dld_dld_link = yes; then
12052 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12053fi
12054
12055
12056fi
12057
12058
12059fi
12060
12061
12062fi
12063
12064
12065fi
12066
12067
12068fi
12069
12070 ;;
12071 esac
12072
12073 if test "x$lt_cv_dlopen" != xno; then
12074 enable_dlopen=yes
12075 else
12076 enable_dlopen=no
12077 fi
12078
12079 case $lt_cv_dlopen in
12080 dlopen)
12081 save_CPPFLAGS="$CPPFLAGS"
12082 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12083
12084 save_LDFLAGS="$LDFLAGS"
12085 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12086
12087 save_LIBS="$LIBS"
12088 LIBS="$lt_cv_dlopen_libs $LIBS"
12089
12090 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12091echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12092if test "${lt_cv_dlopen_self+set}" = set; then
12093 echo $ECHO_N "(cached) $ECHO_C" >&6
12094else
12095 if test "$cross_compiling" = yes; then :
12096 lt_cv_dlopen_self=cross
12097else
12098 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12099 lt_status=$lt_dlunknown
12100 cat > conftest.$ac_ext <<EOF
John Criswell67181ca2003-09-26 14:53:17 +000012101#line 12101 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012102#include "confdefs.h"
12103
12104#if HAVE_DLFCN_H
12105#include <dlfcn.h>
12106#endif
12107
12108#include <stdio.h>
12109
12110#ifdef RTLD_GLOBAL
12111# define LT_DLGLOBAL RTLD_GLOBAL
12112#else
12113# ifdef DL_GLOBAL
12114# define LT_DLGLOBAL DL_GLOBAL
12115# else
12116# define LT_DLGLOBAL 0
12117# endif
12118#endif
12119
12120/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12121 find out it does not work in some platform. */
12122#ifndef LT_DLLAZY_OR_NOW
12123# ifdef RTLD_LAZY
12124# define LT_DLLAZY_OR_NOW RTLD_LAZY
12125# else
12126# ifdef DL_LAZY
12127# define LT_DLLAZY_OR_NOW DL_LAZY
12128# else
12129# ifdef RTLD_NOW
12130# define LT_DLLAZY_OR_NOW RTLD_NOW
12131# else
12132# ifdef DL_NOW
12133# define LT_DLLAZY_OR_NOW DL_NOW
12134# else
12135# define LT_DLLAZY_OR_NOW 0
12136# endif
12137# endif
12138# endif
12139# endif
12140#endif
12141
12142#ifdef __cplusplus
12143extern "C" void exit (int);
12144#endif
12145
12146void fnord() { int i=42;}
12147int main ()
12148{
12149 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12150 int status = $lt_dlunknown;
12151
12152 if (self)
12153 {
12154 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12155 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12156 /* dlclose (self); */
12157 }
12158
12159 exit (status);
12160}
12161EOF
12162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12163 (eval $ac_link) 2>&5
12164 ac_status=$?
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12167 (./conftest; exit; ) 2>/dev/null
12168 lt_status=$?
12169 case x$lt_status in
12170 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12171 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12172 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12173 esac
12174 else :
12175 # compilation failed
12176 lt_cv_dlopen_self=no
12177 fi
12178fi
12179rm -fr conftest*
12180
12181
12182fi
12183echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12184echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12185
12186 if test "x$lt_cv_dlopen_self" = xyes; then
12187 LDFLAGS="$LDFLAGS $link_static_flag"
12188 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12189echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12190if test "${lt_cv_dlopen_self_static+set}" = set; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12192else
12193 if test "$cross_compiling" = yes; then :
12194 lt_cv_dlopen_self_static=cross
12195else
12196 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12197 lt_status=$lt_dlunknown
12198 cat > conftest.$ac_ext <<EOF
John Criswell67181ca2003-09-26 14:53:17 +000012199#line 12199 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012200#include "confdefs.h"
12201
12202#if HAVE_DLFCN_H
12203#include <dlfcn.h>
12204#endif
12205
12206#include <stdio.h>
12207
12208#ifdef RTLD_GLOBAL
12209# define LT_DLGLOBAL RTLD_GLOBAL
12210#else
12211# ifdef DL_GLOBAL
12212# define LT_DLGLOBAL DL_GLOBAL
12213# else
12214# define LT_DLGLOBAL 0
12215# endif
12216#endif
12217
12218/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12219 find out it does not work in some platform. */
12220#ifndef LT_DLLAZY_OR_NOW
12221# ifdef RTLD_LAZY
12222# define LT_DLLAZY_OR_NOW RTLD_LAZY
12223# else
12224# ifdef DL_LAZY
12225# define LT_DLLAZY_OR_NOW DL_LAZY
12226# else
12227# ifdef RTLD_NOW
12228# define LT_DLLAZY_OR_NOW RTLD_NOW
12229# else
12230# ifdef DL_NOW
12231# define LT_DLLAZY_OR_NOW DL_NOW
12232# else
12233# define LT_DLLAZY_OR_NOW 0
12234# endif
12235# endif
12236# endif
12237# endif
12238#endif
12239
12240#ifdef __cplusplus
12241extern "C" void exit (int);
12242#endif
12243
12244void fnord() { int i=42;}
12245int main ()
12246{
12247 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12248 int status = $lt_dlunknown;
12249
12250 if (self)
12251 {
12252 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12253 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12254 /* dlclose (self); */
12255 }
12256
12257 exit (status);
12258}
12259EOF
12260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12261 (eval $ac_link) 2>&5
12262 ac_status=$?
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12265 (./conftest; exit; ) 2>/dev/null
12266 lt_status=$?
12267 case x$lt_status in
12268 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12269 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12270 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12271 esac
12272 else :
12273 # compilation failed
12274 lt_cv_dlopen_self_static=no
12275 fi
12276fi
12277rm -fr conftest*
12278
12279
12280fi
12281echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12282echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12283 fi
12284
12285 CPPFLAGS="$save_CPPFLAGS"
12286 LDFLAGS="$save_LDFLAGS"
12287 LIBS="$save_LIBS"
12288 ;;
12289 esac
12290
12291 case $lt_cv_dlopen_self in
12292 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12293 *) enable_dlopen_self=unknown ;;
12294 esac
12295
12296 case $lt_cv_dlopen_self_static in
12297 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12298 *) enable_dlopen_self_static=unknown ;;
12299 esac
12300fi
12301
12302
12303# The else clause should only fire when bootstrapping the
12304# libtool distribution, otherwise you forgot to ship ltmain.sh
12305# with your package, and you will get complaints that there are
12306# no rules to generate ltmain.sh.
12307if test -f "$ltmain"; then
12308 # See if we are running on zsh, and set the options which allow our commands through
12309 # without removal of \ escapes.
12310 if test -n "${ZSH_VERSION+set}" ; then
12311 setopt NO_GLOB_SUBST
12312 fi
12313 # Now quote all the things that may contain metacharacters while being
12314 # careful not to overquote the AC_SUBSTed values. We take copies of the
12315 # variables and quote the copies for generation of the libtool script.
12316 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12317 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12318 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12319 deplibs_check_method reload_flag reload_cmds need_locks \
12320 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12321 lt_cv_sys_global_symbol_to_c_name_address \
12322 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12323 old_postinstall_cmds old_postuninstall_cmds \
12324 compiler_CXX \
12325 CC_CXX \
12326 LD_CXX \
12327 lt_prog_compiler_wl_CXX \
12328 lt_prog_compiler_pic_CXX \
12329 lt_prog_compiler_static_CXX \
12330 lt_prog_compiler_no_builtin_flag_CXX \
12331 export_dynamic_flag_spec_CXX \
12332 thread_safe_flag_spec_CXX \
12333 whole_archive_flag_spec_CXX \
12334 enable_shared_with_static_runtimes_CXX \
12335 old_archive_cmds_CXX \
12336 old_archive_from_new_cmds_CXX \
12337 predep_objects_CXX \
12338 postdep_objects_CXX \
12339 predeps_CXX \
12340 postdeps_CXX \
12341 compiler_lib_search_path_CXX \
12342 archive_cmds_CXX \
12343 archive_expsym_cmds_CXX \
12344 postinstall_cmds_CXX \
12345 postuninstall_cmds_CXX \
12346 old_archive_from_expsyms_cmds_CXX \
12347 allow_undefined_flag_CXX \
12348 no_undefined_flag_CXX \
12349 export_symbols_cmds_CXX \
12350 hardcode_libdir_flag_spec_CXX \
12351 hardcode_libdir_flag_spec_ld_CXX \
12352 hardcode_libdir_separator_CXX \
12353 hardcode_automatic_CXX \
12354 module_cmds_CXX \
12355 module_expsym_cmds_CXX \
12356 lt_cv_prog_compiler_c_o_CXX \
12357 exclude_expsyms_CXX \
12358 include_expsyms_CXX; do
12359
12360 case $var in
12361 old_archive_cmds_CXX | \
12362 old_archive_from_new_cmds_CXX | \
12363 archive_cmds_CXX | \
12364 archive_expsym_cmds_CXX | \
12365 module_cmds_CXX | \
12366 module_expsym_cmds_CXX | \
12367 old_archive_from_expsyms_cmds_CXX | \
12368 export_symbols_cmds_CXX | \
12369 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12370 postinstall_cmds | postuninstall_cmds | \
12371 old_postinstall_cmds | old_postuninstall_cmds | \
12372 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12373 # Double-quote double-evaled strings.
12374 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12375 ;;
12376 *)
12377 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12378 ;;
12379 esac
12380 done
12381
12382 case $lt_echo in
12383 *'\$0 --fallback-echo"')
12384 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12385 ;;
12386 esac
12387
12388cfgfile="$ofile"
12389
12390 cat <<__EOF__ >> "$cfgfile"
12391# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12392
12393# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12394
12395# Shell to use when invoking shell scripts.
12396SHELL=$lt_SHELL
12397
12398# Whether or not to build shared libraries.
12399build_libtool_libs=$enable_shared
12400
12401# Whether or not to build static libraries.
12402build_old_libs=$enable_static
12403
12404# Whether or not to add -lc for building shared libraries.
12405build_libtool_need_lc=$archive_cmds_need_lc_CXX
12406
12407# Whether or not to disallow shared libs when runtime libs are static
12408allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12409
12410# Whether or not to optimize for fast installation.
12411fast_install=$enable_fast_install
12412
12413# The host system.
12414host_alias=$host_alias
12415host=$host
12416
12417# An echo program that does not interpret backslashes.
12418echo=$lt_echo
12419
12420# The archiver.
12421AR=$lt_AR
12422AR_FLAGS=$lt_AR_FLAGS
12423
12424# A C compiler.
12425LTCC=$lt_LTCC
12426
12427# A language-specific compiler.
12428CC=$lt_compiler_CXX
12429
12430# Is the compiler the GNU C compiler?
12431with_gcc=$GCC_CXX
12432
12433# An ERE matcher.
12434EGREP=$lt_EGREP
12435
12436# The linker used to build libraries.
12437LD=$lt_LD_CXX
12438
12439# Whether we need hard or soft links.
12440LN_S=$lt_LN_S
12441
12442# A BSD-compatible nm program.
12443NM=$lt_NM
12444
12445# A symbol stripping program
12446STRIP=$STRIP
12447
12448# Used to examine libraries when file_magic_cmd begins "file"
12449MAGIC_CMD=$MAGIC_CMD
12450
12451# Used on cygwin: DLL creation program.
12452DLLTOOL="$DLLTOOL"
12453
12454# Used on cygwin: object dumper.
12455OBJDUMP="$OBJDUMP"
12456
12457# Used on cygwin: assembler.
12458AS="$AS"
12459
12460# The name of the directory that contains temporary libtool files.
12461objdir=$objdir
12462
12463# How to create reloadable object files.
12464reload_flag=$lt_reload_flag
12465reload_cmds=$lt_reload_cmds
12466
12467# How to pass a linker flag through the compiler.
12468wl=$lt_lt_prog_compiler_wl_CXX
12469
12470# Object file suffix (normally "o").
12471objext="$ac_objext"
12472
12473# Old archive suffix (normally "a").
12474libext="$libext"
12475
12476# Shared library suffix (normally ".so").
12477shrext='$shrext'
12478
12479# Executable file suffix (normally "").
12480exeext="$exeext"
12481
12482# Additional compiler flags for building library objects.
12483pic_flag=$lt_lt_prog_compiler_pic_CXX
12484pic_mode=$pic_mode
12485
12486# What is the maximum length of a command?
12487max_cmd_len=$lt_cv_sys_max_cmd_len
12488
12489# Does compiler simultaneously support -c and -o options?
12490compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12491
12492# Must we lock files when doing compilation ?
12493need_locks=$lt_need_locks
12494
12495# Do we need the lib prefix for modules?
12496need_lib_prefix=$need_lib_prefix
12497
12498# Do we need a version for libraries?
12499need_version=$need_version
12500
12501# Whether dlopen is supported.
12502dlopen_support=$enable_dlopen
12503
12504# Whether dlopen of programs is supported.
12505dlopen_self=$enable_dlopen_self
12506
12507# Whether dlopen of statically linked programs is supported.
12508dlopen_self_static=$enable_dlopen_self_static
12509
12510# Compiler flag to prevent dynamic linking.
12511link_static_flag=$lt_lt_prog_compiler_static_CXX
12512
12513# Compiler flag to turn off builtin functions.
12514no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12515
12516# Compiler flag to allow reflexive dlopens.
12517export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12518
12519# Compiler flag to generate shared objects directly from archives.
12520whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12521
12522# Compiler flag to generate thread-safe objects.
12523thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12524
12525# Library versioning type.
12526version_type=$version_type
12527
12528# Format of library name prefix.
12529libname_spec=$lt_libname_spec
12530
12531# List of archive names. First name is the real one, the rest are links.
12532# The last name is the one that the linker finds with -lNAME.
12533library_names_spec=$lt_library_names_spec
12534
12535# The coded name of the library, if different from the real name.
12536soname_spec=$lt_soname_spec
12537
12538# Commands used to build and install an old-style archive.
12539RANLIB=$lt_RANLIB
12540old_archive_cmds=$lt_old_archive_cmds_CXX
12541old_postinstall_cmds=$lt_old_postinstall_cmds
12542old_postuninstall_cmds=$lt_old_postuninstall_cmds
12543
12544# Create an old-style archive from a shared archive.
12545old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12546
12547# Create a temporary old-style archive to link instead of a shared archive.
12548old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12549
12550# Commands used to build and install a shared archive.
12551archive_cmds=$lt_archive_cmds_CXX
12552archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12553postinstall_cmds=$lt_postinstall_cmds
12554postuninstall_cmds=$lt_postuninstall_cmds
12555
12556# Commands used to build a loadable module (assumed same as above if empty)
12557module_cmds=$lt_module_cmds_CXX
12558module_expsym_cmds=$lt_module_expsym_cmds_CXX
12559
12560# Commands to strip libraries.
12561old_striplib=$lt_old_striplib
12562striplib=$lt_striplib
12563
12564# Dependencies to place before the objects being linked to create a
12565# shared library.
12566predep_objects=$lt_predep_objects_CXX
12567
12568# Dependencies to place after the objects being linked to create a
12569# shared library.
12570postdep_objects=$lt_postdep_objects_CXX
12571
12572# Dependencies to place before the objects being linked to create a
12573# shared library.
12574predeps=$lt_predeps_CXX
12575
12576# Dependencies to place after the objects being linked to create a
12577# shared library.
12578postdeps=$lt_postdeps_CXX
12579
12580# The library search path used internally by the compiler when linking
12581# a shared library.
12582compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12583
12584# Method to check whether dependent libraries are shared objects.
12585deplibs_check_method=$lt_deplibs_check_method
12586
12587# Command to use when deplibs_check_method == file_magic.
12588file_magic_cmd=$lt_file_magic_cmd
12589
12590# Flag that allows shared libraries with undefined symbols to be built.
12591allow_undefined_flag=$lt_allow_undefined_flag_CXX
12592
12593# Flag that forces no undefined symbols.
12594no_undefined_flag=$lt_no_undefined_flag_CXX
12595
12596# Commands used to finish a libtool library installation in a directory.
12597finish_cmds=$lt_finish_cmds
12598
12599# Same as above, but a single script fragment to be evaled but not shown.
12600finish_eval=$lt_finish_eval
12601
12602# Take the output of nm and produce a listing of raw symbols and C names.
12603global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12604
12605# Transform the output of nm in a proper C declaration
12606global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12607
12608# Transform the output of nm in a C name address pair
12609global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12610
12611# This is the shared library runtime path variable.
12612runpath_var=$runpath_var
12613
12614# This is the shared library path variable.
12615shlibpath_var=$shlibpath_var
12616
12617# Is shlibpath searched before the hard-coded library search path?
12618shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12619
12620# How to hardcode a shared library path into an executable.
12621hardcode_action=$hardcode_action_CXX
12622
12623# Whether we should hardcode library paths into libraries.
12624hardcode_into_libs=$hardcode_into_libs
12625
12626# Flag to hardcode \$libdir into a binary during linking.
12627# This must work even if \$libdir does not exist.
12628hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12629
12630# If ld is used when linking, flag to hardcode \$libdir into
12631# a binary during linking. This must work even if \$libdir does
12632# not exist.
12633hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12634
12635# Whether we need a single -rpath flag with a separated argument.
12636hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12637
12638# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12639# resulting binary.
12640hardcode_direct=$hardcode_direct_CXX
12641
12642# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12643# resulting binary.
12644hardcode_minus_L=$hardcode_minus_L_CXX
12645
12646# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12647# the resulting binary.
12648hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12649
12650# Set to yes if building a shared library automatically hardcodes DIR into the library
12651# and all subsequent libraries and executables linked against it.
12652hardcode_automatic=$hardcode_automatic_CXX
12653
12654# Variables whose values should be saved in libtool wrapper scripts and
12655# restored at relink time.
12656variables_saved_for_relink="$variables_saved_for_relink"
12657
12658# Whether libtool must link a program against all its dependency libraries.
12659link_all_deplibs=$link_all_deplibs_CXX
12660
12661# Compile-time system search path for libraries
12662sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12663
12664# Run-time system search path for libraries
12665sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12666
12667# Fix the shell variable \$srcfile for the compiler.
12668fix_srcfile_path="$fix_srcfile_path_CXX"
12669
12670# Set to yes if exported symbols are required.
12671always_export_symbols=$always_export_symbols_CXX
12672
12673# The commands to list exported symbols.
12674export_symbols_cmds=$lt_export_symbols_cmds_CXX
12675
12676# The commands to extract the exported symbol list from a shared archive.
12677extract_expsyms_cmds=$lt_extract_expsyms_cmds
12678
12679# Symbols that should not be listed in the preloaded symbols.
12680exclude_expsyms=$lt_exclude_expsyms_CXX
12681
12682# Symbols that must always be exported.
12683include_expsyms=$lt_include_expsyms_CXX
12684
12685# ### END LIBTOOL TAG CONFIG: $tagname
12686
12687__EOF__
12688
12689
12690else
12691 # If there is no Makefile yet, we rely on a make rule to execute
12692 # `config.status --recheck' to rerun these tests and create the
12693 # libtool script then.
12694 test -f Makefile && make "$ltmain"
12695fi
12696
12697
12698ac_ext=c
12699ac_cpp='$CPP $CPPFLAGS'
12700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12702ac_compiler_gnu=$ac_cv_c_compiler_gnu
12703
12704CC=$lt_save_CC
12705LDCXX=$LD
12706LD=$lt_save_LD
12707GCC=$lt_save_GCC
12708with_gnu_ldcxx=$with_gnu_ld
12709with_gnu_ld=$lt_save_with_gnu_ld
12710lt_cv_path_LDCXX=$lt_cv_path_LD
12711lt_cv_path_LD=$lt_save_path_LD
12712lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12713lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12714
12715 else
12716 tagname=""
12717 fi
12718 ;;
12719
12720 F77)
12721 if test -n "$F77" && test "X$F77" != "Xno"; then
12722
12723ac_ext=f
12724ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12725ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12726ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12727
12728
12729archive_cmds_need_lc_F77=no
12730allow_undefined_flag_F77=
12731always_export_symbols_F77=no
12732archive_expsym_cmds_F77=
12733export_dynamic_flag_spec_F77=
12734hardcode_direct_F77=no
12735hardcode_libdir_flag_spec_F77=
12736hardcode_libdir_flag_spec_ld_F77=
12737hardcode_libdir_separator_F77=
12738hardcode_minus_L_F77=no
12739hardcode_automatic_F77=no
12740module_cmds_F77=
12741module_expsym_cmds_F77=
12742link_all_deplibs_F77=unknown
12743old_archive_cmds_F77=$old_archive_cmds
12744no_undefined_flag_F77=
12745whole_archive_flag_spec_F77=
12746enable_shared_with_static_runtimes_F77=no
12747
12748# Source file extension for f77 test sources.
12749ac_ext=f
12750
12751# Object file extension for compiled f77 test sources.
12752objext=o
12753objext_F77=$objext
12754
12755# Code to be used in simple compile tests
12756lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12757
12758# Code to be used in simple link tests
12759lt_simple_link_test_code=" program t\n end\n"
12760
12761# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12762
12763# If no C compiler was specified, use CC.
12764LTCC=${LTCC-"$CC"}
12765
12766# Allow CC to be a program name with arguments.
12767compiler=$CC
12768
12769
12770# Allow CC to be a program name with arguments.
12771lt_save_CC="$CC"
12772CC=${F77-"f77"}
12773compiler=$CC
12774compiler_F77=$CC
12775cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12776
12777echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12778echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12779echo "$as_me:$LINENO: result: $can_build_shared" >&5
12780echo "${ECHO_T}$can_build_shared" >&6
12781
12782echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12783echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12784test "$can_build_shared" = "no" && enable_shared=no
12785
12786# On AIX, shared libraries and static libraries use the same namespace, and
12787# are all built from PIC.
12788case "$host_os" in
12789aix3*)
12790 test "$enable_shared" = yes && enable_static=no
12791 if test -n "$RANLIB"; then
12792 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12793 postinstall_cmds='$RANLIB $lib'
12794 fi
12795 ;;
12796aix4*)
12797 test "$enable_shared" = yes && enable_static=no
12798 ;;
12799esac
12800echo "$as_me:$LINENO: result: $enable_shared" >&5
12801echo "${ECHO_T}$enable_shared" >&6
12802
12803echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12804echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12805# Make sure either enable_shared or enable_static is yes.
12806test "$enable_shared" = yes || enable_static=yes
12807echo "$as_me:$LINENO: result: $enable_static" >&5
12808echo "${ECHO_T}$enable_static" >&6
12809
12810test "$ld_shlibs_F77" = no && can_build_shared=no
12811
12812GCC_F77="$G77"
12813LD_F77="$LD"
12814
12815lt_prog_compiler_wl_F77=
12816lt_prog_compiler_pic_F77=
12817lt_prog_compiler_static_F77=
12818
12819echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12820echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12821
12822 if test "$GCC" = yes; then
12823 lt_prog_compiler_wl_F77='-Wl,'
12824 lt_prog_compiler_static_F77='-static'
12825
12826 case $host_os in
12827 aix*)
12828 # All AIX code is PIC.
12829 if test "$host_cpu" = ia64; then
12830 # AIX 5 now supports IA64 processor
12831 lt_prog_compiler_static_F77='-Bstatic'
12832 fi
12833 ;;
12834
12835 amigaos*)
12836 # FIXME: we need at least 68020 code to build shared libraries, but
12837 # adding the `-m68020' flag to GCC prevents building anything better,
12838 # like `-m68040'.
12839 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12840 ;;
12841
12842 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12843 # PIC is the default for these OSes.
12844 ;;
12845
12846 mingw* | pw32* | os2*)
12847 # This hack is so that the source file can tell whether it is being
12848 # built for inclusion in a dll (and should export symbols for example).
12849 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12850 ;;
12851
12852 darwin* | rhapsody*)
12853 # PIC is the default on this platform
12854 # Common symbols not allowed in MH_DYLIB files
12855 lt_prog_compiler_pic_F77='-fno-common'
12856 ;;
12857
12858 msdosdjgpp*)
12859 # Just because we use GCC doesn't mean we suddenly get shared libraries
12860 # on systems that don't support them.
12861 lt_prog_compiler_can_build_shared_F77=no
12862 enable_shared=no
12863 ;;
12864
12865 sysv4*MP*)
12866 if test -d /usr/nec; then
12867 lt_prog_compiler_pic_F77=-Kconform_pic
12868 fi
12869 ;;
12870
12871 hpux*)
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='-fPIC'
12880 ;;
12881 esac
12882 ;;
12883
12884 *)
12885 lt_prog_compiler_pic_F77='-fPIC'
12886 ;;
12887 esac
12888 else
12889 # PORTME Check for flag to pass linker flags through the system compiler.
12890 case $host_os in
12891 aix*)
12892 lt_prog_compiler_wl_F77='-Wl,'
12893 if test "$host_cpu" = ia64; then
12894 # AIX 5 now supports IA64 processor
12895 lt_prog_compiler_static_F77='-Bstatic'
12896 else
12897 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12898 fi
12899 ;;
12900
12901 mingw* | pw32* | os2*)
12902 # This hack is so that the source file can tell whether it is being
12903 # built for inclusion in a dll (and should export symbols for example).
12904 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12905 ;;
12906
12907 hpux9* | hpux10* | hpux11*)
12908 lt_prog_compiler_wl_F77='-Wl,'
12909 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12910 # not for PA HP-UX.
12911 case "$host_cpu" in
12912 hppa*64*|ia64*)
12913 # +Z the default
12914 ;;
12915 *)
12916 lt_prog_compiler_pic_F77='+Z'
12917 ;;
12918 esac
12919 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12920 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12921 ;;
12922
12923 irix5* | irix6* | nonstopux*)
12924 lt_prog_compiler_wl_F77='-Wl,'
12925 # PIC (with -KPIC) is the default.
12926 lt_prog_compiler_static_F77='-non_shared'
12927 ;;
12928
12929 newsos6)
12930 lt_prog_compiler_pic_F77='-KPIC'
12931 lt_prog_compiler_static_F77='-Bstatic'
12932 ;;
12933
12934 linux*)
12935 case $CC in
12936 icc|ecc)
12937 lt_prog_compiler_wl_F77='-Wl,'
12938 lt_prog_compiler_pic_F77='-KPIC'
12939 lt_prog_compiler_static_F77='-static'
12940 ;;
12941 ccc)
12942 lt_prog_compiler_wl_F77='-Wl,'
12943 # All Alpha code is PIC.
12944 lt_prog_compiler_static_F77='-non_shared'
12945 ;;
12946 esac
12947 ;;
12948
12949 osf3* | osf4* | osf5*)
12950 lt_prog_compiler_wl_F77='-Wl,'
12951 # All OSF/1 code is PIC.
12952 lt_prog_compiler_static_F77='-non_shared'
12953 ;;
12954
12955 sco3.2v5*)
12956 lt_prog_compiler_pic_F77='-Kpic'
12957 lt_prog_compiler_static_F77='-dn'
12958 ;;
12959
12960 solaris*)
12961 lt_prog_compiler_wl_F77='-Wl,'
12962 lt_prog_compiler_pic_F77='-KPIC'
12963 lt_prog_compiler_static_F77='-Bstatic'
12964 ;;
12965
12966 sunos4*)
12967 lt_prog_compiler_wl_F77='-Qoption ld '
12968 lt_prog_compiler_pic_F77='-PIC'
12969 lt_prog_compiler_static_F77='-Bstatic'
12970 ;;
12971
12972 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12973 lt_prog_compiler_wl_F77='-Wl,'
12974 lt_prog_compiler_pic_F77='-KPIC'
12975 lt_prog_compiler_static_F77='-Bstatic'
12976 ;;
12977
12978 sysv4*MP*)
12979 if test -d /usr/nec ;then
12980 lt_prog_compiler_pic_F77='-Kconform_pic'
12981 lt_prog_compiler_static_F77='-Bstatic'
12982 fi
12983 ;;
12984
12985 uts4*)
12986 lt_prog_compiler_pic_F77='-pic'
12987 lt_prog_compiler_static_F77='-Bstatic'
12988 ;;
12989
12990 *)
12991 lt_prog_compiler_can_build_shared_F77=no
12992 ;;
12993 esac
12994 fi
12995
12996echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12997echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12998
12999#
13000# Check to make sure the PIC flag actually works.
13001#
13002if test -n "$lt_prog_compiler_pic_F77"; then
13003 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13004echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13005if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13006 echo $ECHO_N "(cached) $ECHO_C" >&6
13007else
13008 lt_prog_compiler_pic_works_F77=no
13009 ac_outfile=conftest.$ac_objext
13010 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13011 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13012 # Insert the option either (1) after the last *FLAGS variable, or
13013 # (2) before a word containing "conftest.", or (3) at the end.
13014 # Note that $ac_compile itself does not contain backslashes and begins
13015 # with a dollar sign (not a hyphen), so the echo should work correctly.
13016 # The option is referenced via a variable to avoid confusing sed.
13017 lt_compile=`echo "$ac_compile" | $SED \
13018 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13020 -e 's:$: $lt_compiler_flag:'`
John Criswell67181ca2003-09-26 14:53:17 +000013021 (eval echo "\"\$as_me:13021: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013022 (eval "$lt_compile" 2>conftest.err)
13023 ac_status=$?
13024 cat conftest.err >&5
John Criswell67181ca2003-09-26 14:53:17 +000013025 echo "$as_me:13025: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013026 if (exit $ac_status) && test -s "$ac_outfile"; then
13027 # The compiler can only warn and ignore the option if not recognized
13028 # So say no if there are warnings
13029 if test ! -s conftest.err; then
13030 lt_prog_compiler_pic_works_F77=yes
13031 fi
13032 fi
13033 $rm conftest*
13034
13035fi
13036echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13037echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13038
13039if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13040 case $lt_prog_compiler_pic_F77 in
13041 "" | " "*) ;;
13042 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13043 esac
13044else
13045 lt_prog_compiler_pic_F77=
13046 lt_prog_compiler_can_build_shared_F77=no
13047fi
13048
13049fi
13050case "$host_os" in
13051 # For platforms which do not support PIC, -DPIC is meaningless:
13052 *djgpp*)
13053 lt_prog_compiler_pic_F77=
13054 ;;
13055 *)
13056 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13057 ;;
13058esac
13059
13060echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13061echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13062if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13063 echo $ECHO_N "(cached) $ECHO_C" >&6
13064else
13065 lt_cv_prog_compiler_c_o_F77=no
13066 $rm -r conftest 2>/dev/null
13067 mkdir conftest
13068 cd conftest
13069 mkdir out
13070 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13071
13072 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13073 # that will create temporary files in the current directory regardless of
13074 # the output directory. Thus, making CWD read-only will cause this test
13075 # to fail, enabling locking or at least warning the user not to do parallel
13076 # builds.
13077 chmod -w .
13078
13079 lt_compiler_flag="-o out/conftest2.$ac_objext"
13080 # Insert the option either (1) after the last *FLAGS variable, or
13081 # (2) before a word containing "conftest.", or (3) at the end.
13082 # Note that $ac_compile itself does not contain backslashes and begins
13083 # with a dollar sign (not a hyphen), so the echo should work correctly.
13084 lt_compile=`echo "$ac_compile" | $SED \
13085 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13086 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13087 -e 's:$: $lt_compiler_flag:'`
John Criswell67181ca2003-09-26 14:53:17 +000013088 (eval echo "\"\$as_me:13088: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013089 (eval "$lt_compile" 2>out/conftest.err)
13090 ac_status=$?
13091 cat out/conftest.err >&5
John Criswell67181ca2003-09-26 14:53:17 +000013092 echo "$as_me:13092: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013093 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13094 then
13095 # The compiler can only warn and ignore the option if not recognized
13096 # So say no if there are warnings
13097 if test ! -s out/conftest.err; then
13098 lt_cv_prog_compiler_c_o_F77=yes
13099 fi
13100 fi
13101 chmod u+w .
13102 $rm conftest* out/*
13103 rmdir out
13104 cd ..
13105 rmdir conftest
13106 $rm conftest*
13107
13108fi
13109echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13110echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13111
13112
13113hard_links="nottested"
13114if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13115 # do not overwrite the value of need_locks provided by the user
13116 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13117echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13118 hard_links=yes
13119 $rm conftest*
13120 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13121 touch conftest.a
13122 ln conftest.a conftest.b 2>&5 || hard_links=no
13123 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13124 echo "$as_me:$LINENO: result: $hard_links" >&5
13125echo "${ECHO_T}$hard_links" >&6
13126 if test "$hard_links" = no; then
13127 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13128echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13129 need_locks=warn
13130 fi
13131else
13132 need_locks=no
13133fi
13134
13135echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13136echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13137
13138 runpath_var=
13139 allow_undefined_flag_F77=
13140 enable_shared_with_static_runtimes_F77=no
13141 archive_cmds_F77=
13142 archive_expsym_cmds_F77=
13143 old_archive_From_new_cmds_F77=
13144 old_archive_from_expsyms_cmds_F77=
13145 export_dynamic_flag_spec_F77=
13146 whole_archive_flag_spec_F77=
13147 thread_safe_flag_spec_F77=
13148 hardcode_libdir_flag_spec_F77=
13149 hardcode_libdir_flag_spec_ld_F77=
13150 hardcode_libdir_separator_F77=
13151 hardcode_direct_F77=no
13152 hardcode_minus_L_F77=no
13153 hardcode_shlibpath_var_F77=unsupported
13154 link_all_deplibs_F77=unknown
13155 hardcode_automatic_F77=no
13156 module_cmds_F77=
13157 module_expsym_cmds_F77=
13158 always_export_symbols_F77=no
13159 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13160 # include_expsyms should be a list of space-separated symbols to be *always*
13161 # included in the symbol list
13162 include_expsyms_F77=
13163 # exclude_expsyms can be an extended regexp of symbols to exclude
13164 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13165 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13166 # as well as any symbol that contains `d'.
13167 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13168 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13169 # platforms (ab)use it in PIC code, but their linkers get confused if
13170 # the symbol is explicitly referenced. Since portable code cannot
13171 # rely on this symbol name, it's probably fine to never include it in
13172 # preloaded symbol tables.
13173 extract_expsyms_cmds=
13174
13175 case $host_os in
13176 cygwin* | mingw* | pw32*)
13177 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13178 # When not using gcc, we currently assume that we are using
13179 # Microsoft Visual C++.
13180 if test "$GCC" != yes; then
13181 with_gnu_ld=no
13182 fi
13183 ;;
13184 openbsd*)
13185 with_gnu_ld=no
13186 ;;
13187 esac
13188
13189 ld_shlibs_F77=yes
13190 if test "$with_gnu_ld" = yes; then
13191 # If archive_cmds runs LD, not CC, wlarc should be empty
13192 wlarc='${wl}'
13193
13194 # See if GNU ld supports shared libraries.
13195 case $host_os in
13196 aix3* | aix4* | aix5*)
13197 # On AIX/PPC, the GNU linker is very broken
13198 if test "$host_cpu" != ia64; then
13199 ld_shlibs_F77=no
13200 cat <<EOF 1>&2
13201
13202*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13203*** to be unable to reliably create shared libraries on AIX.
13204*** Therefore, libtool is disabling shared libraries support. If you
13205*** really care for shared libraries, you may want to modify your PATH
13206*** so that a non-GNU linker is found, and then restart.
13207
13208EOF
13209 fi
13210 ;;
13211
13212 amigaos*)
13213 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)'
13214 hardcode_libdir_flag_spec_F77='-L$libdir'
13215 hardcode_minus_L_F77=yes
13216
13217 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13218 # that the semantics of dynamic libraries on AmigaOS, at least up
13219 # to version 4, is to share data among multiple programs linked
13220 # with the same dynamic library. Since this doesn't match the
13221 # behavior of shared libraries on other platforms, we can't use
13222 # them.
13223 ld_shlibs_F77=no
13224 ;;
13225
13226 beos*)
13227 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13228 allow_undefined_flag_F77=unsupported
13229 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13230 # support --undefined. This deserves some investigation. FIXME
13231 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13232 else
13233 ld_shlibs_F77=no
13234 fi
13235 ;;
13236
13237 cygwin* | mingw* | pw32*)
13238 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13239 # as there is no search path for DLLs.
13240 hardcode_libdir_flag_spec_F77='-L$libdir'
13241 allow_undefined_flag_F77=unsupported
13242 always_export_symbols_F77=no
13243 enable_shared_with_static_runtimes_F77=yes
13244 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13245
13246 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13247 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13248 # If the export-symbols file already is a .def file (1st line
13249 # is EXPORTS), use it as is; otherwise, prepend...
13250 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13251 cp $export_symbols $output_objdir/$soname.def;
13252 else
13253 echo EXPORTS > $output_objdir/$soname.def;
13254 cat $export_symbols >> $output_objdir/$soname.def;
13255 fi~
13256 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13257 else
13258 ld_shlibs=no
13259 fi
13260 ;;
13261
13262 netbsd*)
13263 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13264 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13265 wlarc=
13266 else
13267 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13268 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13269 fi
13270 ;;
13271
13272 solaris* | sysv5*)
13273 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13274 ld_shlibs_F77=no
13275 cat <<EOF 1>&2
13276
13277*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13278*** create shared libraries on Solaris systems. Therefore, libtool
13279*** is disabling shared libraries support. We urge you to upgrade GNU
13280*** binutils to release 2.9.1 or newer. Another option is to modify
13281*** your PATH or compiler configuration so that the native linker is
13282*** used, and then restart.
13283
13284EOF
13285 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13286 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13287 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13288 else
13289 ld_shlibs_F77=no
13290 fi
13291 ;;
13292
13293 sunos4*)
13294 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13295 wlarc=
13296 hardcode_direct_F77=yes
13297 hardcode_shlibpath_var_F77=no
13298 ;;
13299
13300 *)
13301 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13302 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13303 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13304 else
13305 ld_shlibs_F77=no
13306 fi
13307 ;;
13308 esac
13309
13310 if test "$ld_shlibs_F77" = yes; then
13311 runpath_var=LD_RUN_PATH
13312 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13313 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13314 # ancient GNU ld didn't support --whole-archive et. al.
13315 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13316 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13317 else
13318 whole_archive_flag_spec_F77=
13319 fi
13320 fi
13321 else
13322 # PORTME fill in a description of your system's linker (not GNU ld)
13323 case $host_os in
13324 aix3*)
13325 allow_undefined_flag_F77=unsupported
13326 always_export_symbols_F77=yes
13327 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'
13328 # Note: this linker hardcodes the directories in LIBPATH if there
13329 # are no directories specified by -L.
13330 hardcode_minus_L_F77=yes
13331 if test "$GCC" = yes && test -z "$link_static_flag"; then
13332 # Neither direct hardcoding nor static linking is supported with a
13333 # broken collect2.
13334 hardcode_direct_F77=unsupported
13335 fi
13336 ;;
13337
13338 aix4* | aix5*)
13339 if test "$host_cpu" = ia64; then
13340 # On IA64, the linker does run time linking by default, so we don't
13341 # have to do anything special.
13342 aix_use_runtimelinking=no
13343 exp_sym_flag='-Bexport'
13344 no_entry_flag=""
13345 else
13346 # If we're using GNU nm, then we don't want the "-C" option.
13347 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13348 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13349 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'
13350 else
13351 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'
13352 fi
13353 aix_use_runtimelinking=no
13354
13355 # Test if we are trying to use run time linking or normal
13356 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13357 # need to do runtime linking.
13358 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13359 for ld_flag in $LDFLAGS; do
13360 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13361 aix_use_runtimelinking=yes
13362 break
13363 fi
13364 done
13365 esac
13366
13367 exp_sym_flag='-bexport'
13368 no_entry_flag='-bnoentry'
13369 fi
13370
13371 # When large executables or shared objects are built, AIX ld can
13372 # have problems creating the table of contents. If linking a library
13373 # or program results in "error TOC overflow" add -mminimal-toc to
13374 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13375 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13376
13377 archive_cmds_F77=''
13378 hardcode_direct_F77=yes
13379 hardcode_libdir_separator_F77=':'
13380 link_all_deplibs_F77=yes
13381
13382 if test "$GCC" = yes; then
13383 case $host_os in aix4.012|aix4.012.*)
13384 # We only want to do this on AIX 4.2 and lower, the check
13385 # below for broken collect2 doesn't work under 4.3+
13386 collect2name=`${CC} -print-prog-name=collect2`
13387 if test -f "$collect2name" && \
13388 strings "$collect2name" | grep resolve_lib_name >/dev/null
13389 then
13390 # We have reworked collect2
13391 hardcode_direct_F77=yes
13392 else
13393 # We have old collect2
13394 hardcode_direct_F77=unsupported
13395 # It fails to find uninstalled libraries when the uninstalled
13396 # path is not listed in the libpath. Setting hardcode_minus_L
13397 # to unsupported forces relinking
13398 hardcode_minus_L_F77=yes
13399 hardcode_libdir_flag_spec_F77='-L$libdir'
13400 hardcode_libdir_separator_F77=
13401 fi
13402 esac
13403 shared_flag='-shared'
13404 else
13405 # not using gcc
13406 if test "$host_cpu" = ia64; then
13407 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13408 # chokes on -Wl,-G. The following line is correct:
13409 shared_flag='-G'
13410 else
13411 if test "$aix_use_runtimelinking" = yes; then
13412 shared_flag='${wl}-G'
13413 else
13414 shared_flag='${wl}-bM:SRE'
13415 fi
13416 fi
13417 fi
13418
13419 # It seems that -bexpall does not export symbols beginning with
13420 # underscore (_), so it is better to generate a list of symbols to export.
13421 always_export_symbols_F77=yes
13422 if test "$aix_use_runtimelinking" = yes; then
13423 # Warning - without using the other runtime loading flags (-brtl),
13424 # -berok will link without error, but may produce a broken library.
13425 allow_undefined_flag_F77='-berok'
13426 # Determine the default libpath from the value encoded in an empty executable.
13427 cat >conftest.$ac_ext <<_ACEOF
13428 program main
13429
13430 end
13431_ACEOF
13432rm -f conftest.$ac_objext conftest$ac_exeext
13433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13434 (eval $ac_link) 2>&5
13435 ac_status=$?
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); } &&
13438 { ac_try='test -s conftest$ac_exeext'
13439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440 (eval $ac_try) 2>&5
13441 ac_status=$?
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; }; then
13444
13445aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13446}'`
13447# Check for a 64-bit object if we didn't find anything.
13448if 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; }
13449}'`; fi
13450else
13451 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013452sed 's/^/| /' conftest.$ac_ext >&5
13453
John Criswell47fdd832003-07-14 16:52:07 +000013454fi
13455rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13456if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13457
13458 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13459 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"
13460 else
13461 if test "$host_cpu" = ia64; then
13462 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13463 allow_undefined_flag_F77="-z nodefs"
13464 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"
13465 else
13466 # Determine the default libpath from the value encoded in an empty executable.
13467 cat >conftest.$ac_ext <<_ACEOF
13468 program main
13469
13470 end
13471_ACEOF
13472rm -f conftest.$ac_objext conftest$ac_exeext
13473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13474 (eval $ac_link) 2>&5
13475 ac_status=$?
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); } &&
13478 { ac_try='test -s conftest$ac_exeext'
13479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13480 (eval $ac_try) 2>&5
13481 ac_status=$?
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); }; }; then
13484
13485aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13486}'`
13487# Check for a 64-bit object if we didn't find anything.
13488if 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; }
13489}'`; fi
13490else
13491 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013492sed 's/^/| /' conftest.$ac_ext >&5
13493
John Criswell47fdd832003-07-14 16:52:07 +000013494fi
13495rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13496if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13497
13498 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13499 # Warning - without using the other run time loading flags,
13500 # -berok will link without error, but may produce a broken library.
13501 no_undefined_flag_F77=' ${wl}-bernotok'
13502 allow_undefined_flag_F77=' ${wl}-berok'
13503 # -bexpall does not export symbols beginning with underscore (_)
13504 always_export_symbols_F77=yes
13505 # Exported symbols can be pulled into shared objects from archives
13506 whole_archive_flag_spec_F77=' '
13507 archive_cmds_need_lc_F77=yes
13508 # This is similar to how AIX traditionally builds it's shared libraries.
13509 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'
13510 fi
13511 fi
13512 ;;
13513
13514 amigaos*)
13515 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)'
13516 hardcode_libdir_flag_spec_F77='-L$libdir'
13517 hardcode_minus_L_F77=yes
13518 # see comment about different semantics on the GNU ld section
13519 ld_shlibs_F77=no
13520 ;;
13521
13522 bsdi4*)
13523 export_dynamic_flag_spec_F77=-rdynamic
13524 ;;
13525
13526 cygwin* | mingw* | pw32*)
13527 # When not using gcc, we currently assume that we are using
13528 # Microsoft Visual C++.
13529 # hardcode_libdir_flag_spec is actually meaningless, as there is
13530 # no search path for DLLs.
13531 hardcode_libdir_flag_spec_F77=' '
13532 allow_undefined_flag_F77=unsupported
13533 # Tell ltmain to make .lib files, not .a files.
13534 libext=lib
13535 # Tell ltmain to make .dll files, not .so files.
13536 shrext=".dll"
13537 # FIXME: Setting linknames here is a bad hack.
13538 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13539 # The linker will automatically build a .lib file if we build a DLL.
13540 old_archive_From_new_cmds_F77='true'
13541 # FIXME: Should let the user specify the lib program.
13542 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13543 fix_srcfile_path='`cygpath -w "$srcfile"`'
13544 enable_shared_with_static_runtimes_F77=yes
13545 ;;
13546
13547 darwin* | rhapsody*)
13548 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13549 archive_cmds_need_lc_F77=no
13550 case "$host_os" in
13551 rhapsody* | darwin1.[012])
13552 allow_undefined_flag_F77='-undefined suppress'
13553 ;;
13554 *) # Darwin 1.3 on
13555 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13556 ;;
13557 esac
13558 # FIXME: Relying on posixy $() will cause problems for
13559 # cross-compilation, but unfortunately the echo tests do not
13560 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13561 # `"' quotes if we put them in here... so don't!
13562 lt_int_apple_cc_single_mod=no
13563 output_verbose_link_cmd='echo'
13564 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13565 lt_int_apple_cc_single_mod=yes
13566 fi
13567 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13568 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13569 else
13570 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'
13571 fi
13572 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13573 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13574 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13575 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}'
13576 else
13577 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}'
13578 fi
13579 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}'
13580 hardcode_direct_F77=no
13581 hardcode_automatic_F77=yes
13582 hardcode_shlibpath_var_F77=unsupported
13583 whole_archive_flag_spec_F77='-all_load $convenience'
13584 link_all_deplibs_F77=yes
13585 fi
13586 ;;
13587
13588 dgux*)
13589 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13590 hardcode_libdir_flag_spec_F77='-L$libdir'
13591 hardcode_shlibpath_var_F77=no
13592 ;;
13593
13594 freebsd1*)
13595 ld_shlibs_F77=no
13596 ;;
13597
13598 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13599 # support. Future versions do this automatically, but an explicit c++rt0.o
13600 # does not break anything, and helps significantly (at the cost of a little
13601 # extra space).
13602 freebsd2.2*)
13603 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13604 hardcode_libdir_flag_spec_F77='-R$libdir'
13605 hardcode_direct_F77=yes
13606 hardcode_shlibpath_var_F77=no
13607 ;;
13608
13609 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13610 freebsd2*)
13611 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13612 hardcode_direct_F77=yes
13613 hardcode_minus_L_F77=yes
13614 hardcode_shlibpath_var_F77=no
13615 ;;
13616
13617 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13618 freebsd*)
13619 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13620 hardcode_libdir_flag_spec_F77='-R$libdir'
13621 hardcode_direct_F77=yes
13622 hardcode_shlibpath_var_F77=no
13623 ;;
13624
13625 hpux9*)
13626 if test "$GCC" = yes; then
13627 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'
13628 else
13629 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'
13630 fi
13631 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13632 hardcode_libdir_separator_F77=:
13633 hardcode_direct_F77=yes
13634
13635 # hardcode_minus_L: Not really in the search PATH,
13636 # but as the default location of the library.
13637 hardcode_minus_L_F77=yes
13638 export_dynamic_flag_spec_F77='${wl}-E'
13639 ;;
13640
13641 hpux10* | hpux11*)
13642 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13643 case "$host_cpu" in
13644 hppa*64*|ia64*)
13645 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13646 ;;
13647 *)
13648 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13649 ;;
13650 esac
13651 else
13652 case "$host_cpu" in
13653 hppa*64*|ia64*)
13654 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13655 ;;
13656 *)
13657 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13658 ;;
13659 esac
13660 fi
13661 if test "$with_gnu_ld" = no; then
13662 case "$host_cpu" in
13663 hppa*64*)
13664 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13665 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13666 hardcode_libdir_separator_F77=:
13667 hardcode_direct_F77=no
13668 hardcode_shlibpath_var_F77=no
13669 ;;
13670 ia64*)
13671 hardcode_libdir_flag_spec_F77='-L$libdir'
13672 hardcode_direct_F77=no
13673 hardcode_shlibpath_var_F77=no
13674
13675 # hardcode_minus_L: Not really in the search PATH,
13676 # but as the default location of the library.
13677 hardcode_minus_L_F77=yes
13678 ;;
13679 *)
13680 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13681 hardcode_libdir_separator_F77=:
13682 hardcode_direct_F77=yes
13683 export_dynamic_flag_spec_F77='${wl}-E'
13684
13685 # hardcode_minus_L: Not really in the search PATH,
13686 # but as the default location of the library.
13687 hardcode_minus_L_F77=yes
13688 ;;
13689 esac
13690 fi
13691 ;;
13692
13693 irix5* | irix6* | nonstopux*)
13694 if test "$GCC" = yes; then
13695 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'
13696 else
13697 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'
13698 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13699 fi
13700 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13701 hardcode_libdir_separator_F77=:
13702 link_all_deplibs_F77=yes
13703 ;;
13704
13705 netbsd*)
13706 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13707 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13708 else
13709 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13710 fi
13711 hardcode_libdir_flag_spec_F77='-R$libdir'
13712 hardcode_direct_F77=yes
13713 hardcode_shlibpath_var_F77=no
13714 ;;
13715
13716 newsos6)
13717 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13718 hardcode_direct_F77=yes
13719 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13720 hardcode_libdir_separator_F77=:
13721 hardcode_shlibpath_var_F77=no
13722 ;;
13723
13724 openbsd*)
13725 hardcode_direct_F77=yes
13726 hardcode_shlibpath_var_F77=no
13727 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13728 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13729 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13730 export_dynamic_flag_spec_F77='${wl}-E'
13731 else
13732 case $host_os in
13733 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13734 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13735 hardcode_libdir_flag_spec_F77='-R$libdir'
13736 ;;
13737 *)
13738 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13739 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13740 ;;
13741 esac
13742 fi
13743 ;;
13744
13745 os2*)
13746 hardcode_libdir_flag_spec_F77='-L$libdir'
13747 hardcode_minus_L_F77=yes
13748 allow_undefined_flag_F77=unsupported
13749 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'
13750 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13751 ;;
13752
13753 osf3*)
13754 if test "$GCC" = yes; then
13755 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13756 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'
13757 else
13758 allow_undefined_flag_F77=' -expect_unresolved \*'
13759 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'
13760 fi
13761 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13762 hardcode_libdir_separator_F77=:
13763 ;;
13764
13765 osf4* | osf5*) # as osf3* with the addition of -msym flag
13766 if test "$GCC" = yes; then
13767 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13768 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'
13769 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13770 else
13771 allow_undefined_flag_F77=' -expect_unresolved \*'
13772 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'
13773 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~
13774 $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'
13775
13776 # Both c and cxx compiler support -rpath directly
13777 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13778 fi
13779 hardcode_libdir_separator_F77=:
13780 ;;
13781
13782 sco3.2v5*)
13783 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13784 hardcode_shlibpath_var_F77=no
13785 export_dynamic_flag_spec_F77='${wl}-Bexport'
13786 runpath_var=LD_RUN_PATH
13787 hardcode_runpath_var=yes
13788 ;;
13789
13790 solaris*)
13791 no_undefined_flag_F77=' -z text'
13792 if test "$GCC" = yes; then
13793 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13794 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13795 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13796 else
13797 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13798 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13799 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13800 fi
13801 hardcode_libdir_flag_spec_F77='-R$libdir'
13802 hardcode_shlibpath_var_F77=no
13803 case $host_os in
13804 solaris2.[0-5] | solaris2.[0-5].*) ;;
13805 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13806 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13807 esac
13808 link_all_deplibs_F77=yes
13809 ;;
13810
13811 sunos4*)
13812 if test "x$host_vendor" = xsequent; then
13813 # Use $CC to link under sequent, because it throws in some extra .o
13814 # files that make .init and .fini sections work.
13815 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13816 else
13817 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13818 fi
13819 hardcode_libdir_flag_spec_F77='-L$libdir'
13820 hardcode_direct_F77=yes
13821 hardcode_minus_L_F77=yes
13822 hardcode_shlibpath_var_F77=no
13823 ;;
13824
13825 sysv4)
13826 case $host_vendor in
13827 sni)
13828 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13829 hardcode_direct_F77=yes # is this really true???
13830 ;;
13831 siemens)
13832 ## LD is ld it makes a PLAMLIB
13833 ## CC just makes a GrossModule.
13834 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13835 reload_cmds_F77='$CC -r -o $output$reload_objs'
13836 hardcode_direct_F77=no
13837 ;;
13838 motorola)
13839 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13840 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13841 ;;
13842 esac
13843 runpath_var='LD_RUN_PATH'
13844 hardcode_shlibpath_var_F77=no
13845 ;;
13846
13847 sysv4.3*)
13848 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13849 hardcode_shlibpath_var_F77=no
13850 export_dynamic_flag_spec_F77='-Bexport'
13851 ;;
13852
13853 sysv4*MP*)
13854 if test -d /usr/nec; then
13855 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13856 hardcode_shlibpath_var_F77=no
13857 runpath_var=LD_RUN_PATH
13858 hardcode_runpath_var=yes
13859 ld_shlibs_F77=yes
13860 fi
13861 ;;
13862
13863 sysv4.2uw2*)
13864 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13865 hardcode_direct_F77=yes
13866 hardcode_minus_L_F77=no
13867 hardcode_shlibpath_var_F77=no
13868 hardcode_runpath_var=yes
13869 runpath_var=LD_RUN_PATH
13870 ;;
13871
13872 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13873 no_undefined_flag_F77='${wl}-z ${wl}text'
13874 if test "$GCC" = yes; then
13875 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13876 else
13877 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13878 fi
13879 runpath_var='LD_RUN_PATH'
13880 hardcode_shlibpath_var_F77=no
13881 ;;
13882
13883 sysv5*)
13884 no_undefined_flag_F77=' -z text'
13885 # $CC -shared without GNU ld will not create a library from C++
13886 # object files and a static libstdc++, better avoid it by now
13887 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13888 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13889 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13890 hardcode_libdir_flag_spec_F77=
13891 hardcode_shlibpath_var_F77=no
13892 runpath_var='LD_RUN_PATH'
13893 ;;
13894
13895 uts4*)
13896 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13897 hardcode_libdir_flag_spec_F77='-L$libdir'
13898 hardcode_shlibpath_var_F77=no
13899 ;;
13900
13901 *)
13902 ld_shlibs_F77=no
13903 ;;
13904 esac
13905 fi
13906
13907echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13908echo "${ECHO_T}$ld_shlibs_F77" >&6
13909test "$ld_shlibs_F77" = no && can_build_shared=no
13910
13911variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13912if test "$GCC" = yes; then
13913 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13914fi
13915
13916#
13917# Do we need to explicitly link libc?
13918#
13919case "x$archive_cmds_need_lc_F77" in
13920x|xyes)
13921 # Assume -lc should be added
13922 archive_cmds_need_lc_F77=yes
13923
13924 if test "$enable_shared" = yes && test "$GCC" = yes; then
13925 case $archive_cmds_F77 in
13926 *'~'*)
13927 # FIXME: we may have to deal with multi-command sequences.
13928 ;;
13929 '$CC '*)
13930 # Test whether the compiler implicitly links with -lc since on some
13931 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13932 # to ld, don't add -lc before -lgcc.
13933 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13934echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13935 $rm conftest*
13936 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13937
13938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13939 (eval $ac_compile) 2>&5
13940 ac_status=$?
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); } 2>conftest.err; then
13943 soname=conftest
13944 lib=conftest
13945 libobjs=conftest.$ac_objext
13946 deplibs=
13947 wl=$lt_prog_compiler_wl_F77
13948 compiler_flags=-v
13949 linker_flags=-v
13950 verstring=
13951 output_objdir=.
13952 libname=conftest
13953 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13954 allow_undefined_flag_F77=
13955 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13956 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13957 ac_status=$?
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }
13960 then
13961 archive_cmds_need_lc_F77=no
13962 else
13963 archive_cmds_need_lc_F77=yes
13964 fi
13965 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13966 else
13967 cat conftest.err 1>&5
13968 fi
13969 $rm conftest*
13970 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13971echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13972 ;;
13973 esac
13974 fi
13975 ;;
13976esac
13977
13978echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13979echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13980hardcode_action_F77=
13981if test -n "$hardcode_libdir_flag_spec_F77" || \
13982 test -n "$runpath_var F77" || \
13983 test "X$hardcode_automatic_F77"="Xyes" ; then
13984
13985 # We can hardcode non-existant directories.
13986 if test "$hardcode_direct_F77" != no &&
13987 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13988 # have to relink, otherwise we might link with an installed library
13989 # when we should be linking with a yet-to-be-installed one
13990 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13991 test "$hardcode_minus_L_F77" != no; then
13992 # Linking always hardcodes the temporary library directory.
13993 hardcode_action_F77=relink
13994 else
13995 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13996 hardcode_action_F77=immediate
13997 fi
13998else
13999 # We cannot hardcode anything, or else we can only hardcode existing
14000 # directories.
14001 hardcode_action_F77=unsupported
14002fi
14003echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14004echo "${ECHO_T}$hardcode_action_F77" >&6
14005
14006if test "$hardcode_action_F77" = relink; then
14007 # Fast installation is not supported
14008 enable_fast_install=no
14009elif test "$shlibpath_overrides_runpath" = yes ||
14010 test "$enable_shared" = no; then
14011 # Fast installation is not necessary
14012 enable_fast_install=needless
14013fi
14014
14015striplib=
14016old_striplib=
14017echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14018echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14019if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14020 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14021 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14022 echo "$as_me:$LINENO: result: yes" >&5
14023echo "${ECHO_T}yes" >&6
14024else
14025# FIXME - insert some real tests, host_os isn't really good enough
14026 case $host_os in
14027 darwin*)
14028 if test -n "$STRIP" ; then
14029 striplib="$STRIP -x"
14030 echo "$as_me:$LINENO: result: yes" >&5
14031echo "${ECHO_T}yes" >&6
14032 else
14033 echo "$as_me:$LINENO: result: no" >&5
14034echo "${ECHO_T}no" >&6
14035fi
14036 ;;
14037 *)
14038 echo "$as_me:$LINENO: result: no" >&5
14039echo "${ECHO_T}no" >&6
14040 ;;
14041 esac
14042fi
14043
14044echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14045echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14046library_names_spec=
14047libname_spec='lib$name'
14048soname_spec=
14049shrext=".so"
14050postinstall_cmds=
14051postuninstall_cmds=
14052finish_cmds=
14053finish_eval=
14054shlibpath_var=
14055shlibpath_overrides_runpath=unknown
14056version_type=none
14057dynamic_linker="$host_os ld.so"
14058sys_lib_dlsearch_path_spec="/lib /usr/lib"
14059if test "$GCC" = yes; then
14060 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14061 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14062 # if the path contains ";" then we assume it to be the separator
14063 # otherwise default to the standard path separator (i.e. ":") - it is
14064 # assumed that no part of a normal pathname contains ";" but that should
14065 # okay in the real world where ";" in dirpaths is itself problematic.
14066 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14067 else
14068 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14069 fi
14070else
14071 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14072fi
14073need_lib_prefix=unknown
14074hardcode_into_libs=no
14075
14076# when you set need_version to no, make sure it does not cause -set_version
14077# flags to be left without arguments
14078need_version=unknown
14079
14080case $host_os in
14081aix3*)
14082 version_type=linux
14083 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14084 shlibpath_var=LIBPATH
14085
14086 # AIX 3 has no versioning support, so we append a major version to the name.
14087 soname_spec='${libname}${release}${shared_ext}$major'
14088 ;;
14089
14090aix4* | aix5*)
14091 version_type=linux
14092 need_lib_prefix=no
14093 need_version=no
14094 hardcode_into_libs=yes
14095 if test "$host_cpu" = ia64; then
14096 # AIX 5 supports IA64
14097 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14098 shlibpath_var=LD_LIBRARY_PATH
14099 else
14100 # With GCC up to 2.95.x, collect2 would create an import file
14101 # for dependence libraries. The import file would start with
14102 # the line `#! .'. This would cause the generated library to
14103 # depend on `.', always an invalid library. This was fixed in
14104 # development snapshots of GCC prior to 3.0.
14105 case $host_os in
14106 aix4 | aix4.[01] | aix4.[01].*)
14107 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14108 echo ' yes '
14109 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14110 :
14111 else
14112 can_build_shared=no
14113 fi
14114 ;;
14115 esac
14116 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14117 # soname into executable. Probably we can add versioning support to
14118 # collect2, so additional links can be useful in future.
14119 if test "$aix_use_runtimelinking" = yes; then
14120 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14121 # instead of lib<name>.a to let people know that these are not
14122 # typical AIX shared libraries.
14123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14124 else
14125 # We preserve .a as extension for shared libraries through AIX4.2
14126 # and later when we are not doing run time linking.
14127 library_names_spec='${libname}${release}.a $libname.a'
14128 soname_spec='${libname}${release}${shared_ext}$major'
14129 fi
14130 shlibpath_var=LIBPATH
14131 fi
14132 ;;
14133
14134amigaos*)
14135 library_names_spec='$libname.ixlibrary $libname.a'
14136 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14137 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'
14138 ;;
14139
14140beos*)
14141 library_names_spec='${libname}${shared_ext}'
14142 dynamic_linker="$host_os ld.so"
14143 shlibpath_var=LIBRARY_PATH
14144 ;;
14145
14146bsdi4*)
14147 version_type=linux
14148 need_version=no
14149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14150 soname_spec='${libname}${release}${shared_ext}$major'
14151 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14152 shlibpath_var=LD_LIBRARY_PATH
14153 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14154 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14155 # the default ld.so.conf also contains /usr/contrib/lib and
14156 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14157 # libtool to hard-code these into programs
14158 ;;
14159
14160cygwin* | mingw* | pw32*)
14161 version_type=windows
14162 shrext=".dll"
14163 need_version=no
14164 need_lib_prefix=no
14165
14166 case $GCC,$host_os in
14167 yes,cygwin* | yes,mingw* | yes,pw32*)
14168 library_names_spec='$libname.dll.a'
14169 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14170 postinstall_cmds='base_file=`basename \${file}`~
14171 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14172 dldir=$destdir/`dirname \$dlpath`~
14173 test -d \$dldir || mkdir -p \$dldir~
14174 $install_prog $dir/$dlname \$dldir/$dlname'
14175 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14176 dlpath=$dir/\$dldll~
14177 $rm \$dlpath'
14178 shlibpath_overrides_runpath=yes
14179
14180 case $host_os in
14181 cygwin*)
14182 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14183 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14184 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14185 ;;
14186 mingw*)
14187 # MinGW DLLs use traditional 'lib' prefix
14188 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14189 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14190 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14191 # It is most probably a Windows format PATH printed by
14192 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14193 # path with ; separators, and with drive letters. We can handle the
14194 # drive letters (cygwin fileutils understands them), so leave them,
14195 # especially as we might pass files found there to a mingw objdump,
14196 # which wouldn't understand a cygwinified path. Ahh.
14197 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14198 else
14199 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14200 fi
14201 ;;
14202 pw32*)
14203 # pw32 DLLs use 'pw' prefix rather than 'lib'
14204 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14205 ;;
14206 esac
14207 ;;
14208
14209 *)
14210 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14211 ;;
14212 esac
14213 dynamic_linker='Win32 ld.exe'
14214 # FIXME: first we should search . and the directory the executable is in
14215 shlibpath_var=PATH
14216 ;;
14217
14218darwin* | rhapsody*)
14219 dynamic_linker="$host_os dyld"
14220 version_type=darwin
14221 need_lib_prefix=no
14222 need_version=no
14223 # FIXME: Relying on posixy $() will cause problems for
14224 # cross-compilation, but unfortunately the echo tests do not
14225 # yet detect zsh echo's removal of \ escapes.
14226 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14227 soname_spec='${libname}${release}${major}$shared_ext'
14228 shlibpath_overrides_runpath=yes
14229 shlibpath_var=DYLD_LIBRARY_PATH
14230 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14231 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14232 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14233 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"`
14234 fi
14235 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14236 ;;
14237
14238dgux*)
14239 version_type=linux
14240 need_lib_prefix=no
14241 need_version=no
14242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14243 soname_spec='${libname}${release}${shared_ext}$major'
14244 shlibpath_var=LD_LIBRARY_PATH
14245 ;;
14246
14247freebsd1*)
14248 dynamic_linker=no
14249 ;;
14250
14251freebsd*)
14252 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14253 version_type=freebsd-$objformat
14254 case $version_type in
14255 freebsd-elf*)
14256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14257 need_version=no
14258 need_lib_prefix=no
14259 ;;
14260 freebsd-*)
14261 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14262 need_version=yes
14263 ;;
14264 esac
14265 shlibpath_var=LD_LIBRARY_PATH
14266 case $host_os in
14267 freebsd2*)
14268 shlibpath_overrides_runpath=yes
14269 ;;
14270 freebsd3.01* | freebsdelf3.01*)
14271 shlibpath_overrides_runpath=yes
14272 hardcode_into_libs=yes
14273 ;;
14274 *) # from 3.2 on
14275 shlibpath_overrides_runpath=no
14276 hardcode_into_libs=yes
14277 ;;
14278 esac
14279 ;;
14280
14281gnu*)
14282 version_type=linux
14283 need_lib_prefix=no
14284 need_version=no
14285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14286 soname_spec='${libname}${release}${shared_ext}$major'
14287 shlibpath_var=LD_LIBRARY_PATH
14288 hardcode_into_libs=yes
14289 ;;
14290
14291hpux9* | hpux10* | hpux11*)
14292 # Give a soname corresponding to the major version so that dld.sl refuses to
14293 # link against other versions.
14294 version_type=sunos
14295 need_lib_prefix=no
14296 need_version=no
14297 case "$host_cpu" in
14298 ia64*)
14299 shrext='.so'
14300 hardcode_into_libs=yes
14301 dynamic_linker="$host_os dld.so"
14302 shlibpath_var=LD_LIBRARY_PATH
14303 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14305 soname_spec='${libname}${release}${shared_ext}$major'
14306 if test "X$HPUX_IA64_MODE" = X32; then
14307 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14308 else
14309 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14310 fi
14311 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14312 ;;
14313 hppa*64*)
14314 shrext='.sl'
14315 hardcode_into_libs=yes
14316 dynamic_linker="$host_os dld.sl"
14317 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14318 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14320 soname_spec='${libname}${release}${shared_ext}$major'
14321 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14322 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14323 ;;
14324 *)
14325 shrext='.sl'
14326 dynamic_linker="$host_os dld.sl"
14327 shlibpath_var=SHLIB_PATH
14328 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14330 soname_spec='${libname}${release}${shared_ext}$major'
14331 ;;
14332 esac
14333 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14334 postinstall_cmds='chmod 555 $lib'
14335 ;;
14336
14337irix5* | irix6* | nonstopux*)
14338 case $host_os in
14339 nonstopux*) version_type=nonstopux ;;
14340 *)
14341 if test "$lt_cv_prog_gnu_ld" = yes; then
14342 version_type=linux
14343 else
14344 version_type=irix
14345 fi ;;
14346 esac
14347 need_lib_prefix=no
14348 need_version=no
14349 soname_spec='${libname}${release}${shared_ext}$major'
14350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14351 case $host_os in
14352 irix5* | nonstopux*)
14353 libsuff= shlibsuff=
14354 ;;
14355 *)
14356 case $LD in # libtool.m4 will add one of these switches to LD
14357 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14358 libsuff= shlibsuff= libmagic=32-bit;;
14359 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14360 libsuff=32 shlibsuff=N32 libmagic=N32;;
14361 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14362 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14363 *) libsuff= shlibsuff= libmagic=never-match;;
14364 esac
14365 ;;
14366 esac
14367 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14368 shlibpath_overrides_runpath=no
14369 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14370 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14371 hardcode_into_libs=yes
14372 ;;
14373
14374# No shared lib support for Linux oldld, aout, or coff.
14375linux*oldld* | linux*aout* | linux*coff*)
14376 dynamic_linker=no
14377 ;;
14378
14379# This must be Linux ELF.
14380linux*)
14381 version_type=linux
14382 need_lib_prefix=no
14383 need_version=no
14384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14385 soname_spec='${libname}${release}${shared_ext}$major'
14386 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14387 shlibpath_var=LD_LIBRARY_PATH
14388 shlibpath_overrides_runpath=no
14389 # This implies no fast_install, which is unacceptable.
14390 # Some rework will be needed to allow for fast_install
14391 # before this can be enabled.
14392 hardcode_into_libs=yes
14393
14394 # We used to test for /lib/ld.so.1 and disable shared libraries on
14395 # powerpc, because MkLinux only supported shared libraries with the
14396 # GNU dynamic linker. Since this was broken with cross compilers,
14397 # most powerpc-linux boxes support dynamic linking these days and
14398 # people can always --disable-shared, the test was removed, and we
14399 # assume the GNU/Linux dynamic linker is in use.
14400 dynamic_linker='GNU/Linux ld.so'
14401 ;;
14402
14403netbsd*)
14404 version_type=sunos
14405 need_lib_prefix=no
14406 need_version=no
14407 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14409 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14410 dynamic_linker='NetBSD (a.out) ld.so'
14411 else
14412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14413 soname_spec='${libname}${release}${shared_ext}$major'
14414 dynamic_linker='NetBSD ld.elf_so'
14415 fi
14416 shlibpath_var=LD_LIBRARY_PATH
14417 shlibpath_overrides_runpath=yes
14418 hardcode_into_libs=yes
14419 ;;
14420
14421newsos6)
14422 version_type=linux
14423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14424 shlibpath_var=LD_LIBRARY_PATH
14425 shlibpath_overrides_runpath=yes
14426 ;;
14427
14428nto-qnx)
14429 version_type=linux
14430 need_lib_prefix=no
14431 need_version=no
14432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14433 soname_spec='${libname}${release}${shared_ext}$major'
14434 shlibpath_var=LD_LIBRARY_PATH
14435 shlibpath_overrides_runpath=yes
14436 ;;
14437
14438openbsd*)
14439 version_type=sunos
14440 need_lib_prefix=no
14441 need_version=no
14442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14443 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14444 shlibpath_var=LD_LIBRARY_PATH
14445 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14446 case $host_os in
14447 openbsd2.[89] | openbsd2.[89].*)
14448 shlibpath_overrides_runpath=no
14449 ;;
14450 *)
14451 shlibpath_overrides_runpath=yes
14452 ;;
14453 esac
14454 else
14455 shlibpath_overrides_runpath=yes
14456 fi
14457 ;;
14458
14459os2*)
14460 libname_spec='$name'
14461 shrext=".dll"
14462 need_lib_prefix=no
14463 library_names_spec='$libname${shared_ext} $libname.a'
14464 dynamic_linker='OS/2 ld.exe'
14465 shlibpath_var=LIBPATH
14466 ;;
14467
14468osf3* | osf4* | osf5*)
14469 version_type=osf
14470 need_lib_prefix=no
14471 need_version=no
14472 soname_spec='${libname}${release}${shared_ext}$major'
14473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14474 shlibpath_var=LD_LIBRARY_PATH
14475 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14476 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14477 ;;
14478
14479sco3.2v5*)
14480 version_type=osf
14481 soname_spec='${libname}${release}${shared_ext}$major'
14482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14483 shlibpath_var=LD_LIBRARY_PATH
14484 ;;
14485
14486solaris*)
14487 version_type=linux
14488 need_lib_prefix=no
14489 need_version=no
14490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14491 soname_spec='${libname}${release}${shared_ext}$major'
14492 shlibpath_var=LD_LIBRARY_PATH
14493 shlibpath_overrides_runpath=yes
14494 hardcode_into_libs=yes
14495 # ldd complains unless libraries are executable
14496 postinstall_cmds='chmod +x $lib'
14497 ;;
14498
14499sunos4*)
14500 version_type=sunos
14501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14502 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14503 shlibpath_var=LD_LIBRARY_PATH
14504 shlibpath_overrides_runpath=yes
14505 if test "$with_gnu_ld" = yes; then
14506 need_lib_prefix=no
14507 fi
14508 need_version=yes
14509 ;;
14510
14511sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14512 version_type=linux
14513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14514 soname_spec='${libname}${release}${shared_ext}$major'
14515 shlibpath_var=LD_LIBRARY_PATH
14516 case $host_vendor in
14517 sni)
14518 shlibpath_overrides_runpath=no
14519 need_lib_prefix=no
14520 export_dynamic_flag_spec='${wl}-Blargedynsym'
14521 runpath_var=LD_RUN_PATH
14522 ;;
14523 siemens)
14524 need_lib_prefix=no
14525 ;;
14526 motorola)
14527 need_lib_prefix=no
14528 need_version=no
14529 shlibpath_overrides_runpath=no
14530 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14531 ;;
14532 esac
14533 ;;
14534
14535sysv4*MP*)
14536 if test -d /usr/nec ;then
14537 version_type=linux
14538 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14539 soname_spec='$libname${shared_ext}.$major'
14540 shlibpath_var=LD_LIBRARY_PATH
14541 fi
14542 ;;
14543
14544uts4*)
14545 version_type=linux
14546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14547 soname_spec='${libname}${release}${shared_ext}$major'
14548 shlibpath_var=LD_LIBRARY_PATH
14549 ;;
14550
14551*)
14552 dynamic_linker=no
14553 ;;
14554esac
14555echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14556echo "${ECHO_T}$dynamic_linker" >&6
14557test "$dynamic_linker" = no && can_build_shared=no
14558
14559
14560# The else clause should only fire when bootstrapping the
14561# libtool distribution, otherwise you forgot to ship ltmain.sh
14562# with your package, and you will get complaints that there are
14563# no rules to generate ltmain.sh.
14564if test -f "$ltmain"; then
14565 # See if we are running on zsh, and set the options which allow our commands through
14566 # without removal of \ escapes.
14567 if test -n "${ZSH_VERSION+set}" ; then
14568 setopt NO_GLOB_SUBST
14569 fi
14570 # Now quote all the things that may contain metacharacters while being
14571 # careful not to overquote the AC_SUBSTed values. We take copies of the
14572 # variables and quote the copies for generation of the libtool script.
14573 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14574 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14575 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14576 deplibs_check_method reload_flag reload_cmds need_locks \
14577 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14578 lt_cv_sys_global_symbol_to_c_name_address \
14579 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14580 old_postinstall_cmds old_postuninstall_cmds \
14581 compiler_F77 \
14582 CC_F77 \
14583 LD_F77 \
14584 lt_prog_compiler_wl_F77 \
14585 lt_prog_compiler_pic_F77 \
14586 lt_prog_compiler_static_F77 \
14587 lt_prog_compiler_no_builtin_flag_F77 \
14588 export_dynamic_flag_spec_F77 \
14589 thread_safe_flag_spec_F77 \
14590 whole_archive_flag_spec_F77 \
14591 enable_shared_with_static_runtimes_F77 \
14592 old_archive_cmds_F77 \
14593 old_archive_from_new_cmds_F77 \
14594 predep_objects_F77 \
14595 postdep_objects_F77 \
14596 predeps_F77 \
14597 postdeps_F77 \
14598 compiler_lib_search_path_F77 \
14599 archive_cmds_F77 \
14600 archive_expsym_cmds_F77 \
14601 postinstall_cmds_F77 \
14602 postuninstall_cmds_F77 \
14603 old_archive_from_expsyms_cmds_F77 \
14604 allow_undefined_flag_F77 \
14605 no_undefined_flag_F77 \
14606 export_symbols_cmds_F77 \
14607 hardcode_libdir_flag_spec_F77 \
14608 hardcode_libdir_flag_spec_ld_F77 \
14609 hardcode_libdir_separator_F77 \
14610 hardcode_automatic_F77 \
14611 module_cmds_F77 \
14612 module_expsym_cmds_F77 \
14613 lt_cv_prog_compiler_c_o_F77 \
14614 exclude_expsyms_F77 \
14615 include_expsyms_F77; do
14616
14617 case $var in
14618 old_archive_cmds_F77 | \
14619 old_archive_from_new_cmds_F77 | \
14620 archive_cmds_F77 | \
14621 archive_expsym_cmds_F77 | \
14622 module_cmds_F77 | \
14623 module_expsym_cmds_F77 | \
14624 old_archive_from_expsyms_cmds_F77 | \
14625 export_symbols_cmds_F77 | \
14626 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14627 postinstall_cmds | postuninstall_cmds | \
14628 old_postinstall_cmds | old_postuninstall_cmds | \
14629 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14630 # Double-quote double-evaled strings.
14631 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14632 ;;
14633 *)
14634 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14635 ;;
14636 esac
14637 done
14638
14639 case $lt_echo in
14640 *'\$0 --fallback-echo"')
14641 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14642 ;;
14643 esac
14644
14645cfgfile="$ofile"
14646
14647 cat <<__EOF__ >> "$cfgfile"
14648# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14649
14650# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14651
14652# Shell to use when invoking shell scripts.
14653SHELL=$lt_SHELL
14654
14655# Whether or not to build shared libraries.
14656build_libtool_libs=$enable_shared
14657
14658# Whether or not to build static libraries.
14659build_old_libs=$enable_static
14660
14661# Whether or not to add -lc for building shared libraries.
14662build_libtool_need_lc=$archive_cmds_need_lc_F77
14663
14664# Whether or not to disallow shared libs when runtime libs are static
14665allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14666
14667# Whether or not to optimize for fast installation.
14668fast_install=$enable_fast_install
14669
14670# The host system.
14671host_alias=$host_alias
14672host=$host
14673
14674# An echo program that does not interpret backslashes.
14675echo=$lt_echo
14676
14677# The archiver.
14678AR=$lt_AR
14679AR_FLAGS=$lt_AR_FLAGS
14680
14681# A C compiler.
14682LTCC=$lt_LTCC
14683
14684# A language-specific compiler.
14685CC=$lt_compiler_F77
14686
14687# Is the compiler the GNU C compiler?
14688with_gcc=$GCC_F77
14689
14690# An ERE matcher.
14691EGREP=$lt_EGREP
14692
14693# The linker used to build libraries.
14694LD=$lt_LD_F77
14695
14696# Whether we need hard or soft links.
14697LN_S=$lt_LN_S
14698
14699# A BSD-compatible nm program.
14700NM=$lt_NM
14701
14702# A symbol stripping program
14703STRIP=$STRIP
14704
14705# Used to examine libraries when file_magic_cmd begins "file"
14706MAGIC_CMD=$MAGIC_CMD
14707
14708# Used on cygwin: DLL creation program.
14709DLLTOOL="$DLLTOOL"
14710
14711# Used on cygwin: object dumper.
14712OBJDUMP="$OBJDUMP"
14713
14714# Used on cygwin: assembler.
14715AS="$AS"
14716
14717# The name of the directory that contains temporary libtool files.
14718objdir=$objdir
14719
14720# How to create reloadable object files.
14721reload_flag=$lt_reload_flag
14722reload_cmds=$lt_reload_cmds
14723
14724# How to pass a linker flag through the compiler.
14725wl=$lt_lt_prog_compiler_wl_F77
14726
14727# Object file suffix (normally "o").
14728objext="$ac_objext"
14729
14730# Old archive suffix (normally "a").
14731libext="$libext"
14732
14733# Shared library suffix (normally ".so").
14734shrext='$shrext'
14735
14736# Executable file suffix (normally "").
14737exeext="$exeext"
14738
14739# Additional compiler flags for building library objects.
14740pic_flag=$lt_lt_prog_compiler_pic_F77
14741pic_mode=$pic_mode
14742
14743# What is the maximum length of a command?
14744max_cmd_len=$lt_cv_sys_max_cmd_len
14745
14746# Does compiler simultaneously support -c and -o options?
14747compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14748
14749# Must we lock files when doing compilation ?
14750need_locks=$lt_need_locks
14751
14752# Do we need the lib prefix for modules?
14753need_lib_prefix=$need_lib_prefix
14754
14755# Do we need a version for libraries?
14756need_version=$need_version
14757
14758# Whether dlopen is supported.
14759dlopen_support=$enable_dlopen
14760
14761# Whether dlopen of programs is supported.
14762dlopen_self=$enable_dlopen_self
14763
14764# Whether dlopen of statically linked programs is supported.
14765dlopen_self_static=$enable_dlopen_self_static
14766
14767# Compiler flag to prevent dynamic linking.
14768link_static_flag=$lt_lt_prog_compiler_static_F77
14769
14770# Compiler flag to turn off builtin functions.
14771no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14772
14773# Compiler flag to allow reflexive dlopens.
14774export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14775
14776# Compiler flag to generate shared objects directly from archives.
14777whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14778
14779# Compiler flag to generate thread-safe objects.
14780thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14781
14782# Library versioning type.
14783version_type=$version_type
14784
14785# Format of library name prefix.
14786libname_spec=$lt_libname_spec
14787
14788# List of archive names. First name is the real one, the rest are links.
14789# The last name is the one that the linker finds with -lNAME.
14790library_names_spec=$lt_library_names_spec
14791
14792# The coded name of the library, if different from the real name.
14793soname_spec=$lt_soname_spec
14794
14795# Commands used to build and install an old-style archive.
14796RANLIB=$lt_RANLIB
14797old_archive_cmds=$lt_old_archive_cmds_F77
14798old_postinstall_cmds=$lt_old_postinstall_cmds
14799old_postuninstall_cmds=$lt_old_postuninstall_cmds
14800
14801# Create an old-style archive from a shared archive.
14802old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14803
14804# Create a temporary old-style archive to link instead of a shared archive.
14805old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14806
14807# Commands used to build and install a shared archive.
14808archive_cmds=$lt_archive_cmds_F77
14809archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14810postinstall_cmds=$lt_postinstall_cmds
14811postuninstall_cmds=$lt_postuninstall_cmds
14812
14813# Commands used to build a loadable module (assumed same as above if empty)
14814module_cmds=$lt_module_cmds_F77
14815module_expsym_cmds=$lt_module_expsym_cmds_F77
14816
14817# Commands to strip libraries.
14818old_striplib=$lt_old_striplib
14819striplib=$lt_striplib
14820
14821# Dependencies to place before the objects being linked to create a
14822# shared library.
14823predep_objects=$lt_predep_objects_F77
14824
14825# Dependencies to place after the objects being linked to create a
14826# shared library.
14827postdep_objects=$lt_postdep_objects_F77
14828
14829# Dependencies to place before the objects being linked to create a
14830# shared library.
14831predeps=$lt_predeps_F77
14832
14833# Dependencies to place after the objects being linked to create a
14834# shared library.
14835postdeps=$lt_postdeps_F77
14836
14837# The library search path used internally by the compiler when linking
14838# a shared library.
14839compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14840
14841# Method to check whether dependent libraries are shared objects.
14842deplibs_check_method=$lt_deplibs_check_method
14843
14844# Command to use when deplibs_check_method == file_magic.
14845file_magic_cmd=$lt_file_magic_cmd
14846
14847# Flag that allows shared libraries with undefined symbols to be built.
14848allow_undefined_flag=$lt_allow_undefined_flag_F77
14849
14850# Flag that forces no undefined symbols.
14851no_undefined_flag=$lt_no_undefined_flag_F77
14852
14853# Commands used to finish a libtool library installation in a directory.
14854finish_cmds=$lt_finish_cmds
14855
14856# Same as above, but a single script fragment to be evaled but not shown.
14857finish_eval=$lt_finish_eval
14858
14859# Take the output of nm and produce a listing of raw symbols and C names.
14860global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14861
14862# Transform the output of nm in a proper C declaration
14863global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14864
14865# Transform the output of nm in a C name address pair
14866global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14867
14868# This is the shared library runtime path variable.
14869runpath_var=$runpath_var
14870
14871# This is the shared library path variable.
14872shlibpath_var=$shlibpath_var
14873
14874# Is shlibpath searched before the hard-coded library search path?
14875shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14876
14877# How to hardcode a shared library path into an executable.
14878hardcode_action=$hardcode_action_F77
14879
14880# Whether we should hardcode library paths into libraries.
14881hardcode_into_libs=$hardcode_into_libs
14882
14883# Flag to hardcode \$libdir into a binary during linking.
14884# This must work even if \$libdir does not exist.
14885hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14886
14887# If ld is used when linking, flag to hardcode \$libdir into
14888# a binary during linking. This must work even if \$libdir does
14889# not exist.
14890hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14891
14892# Whether we need a single -rpath flag with a separated argument.
14893hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14894
14895# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14896# resulting binary.
14897hardcode_direct=$hardcode_direct_F77
14898
14899# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14900# resulting binary.
14901hardcode_minus_L=$hardcode_minus_L_F77
14902
14903# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14904# the resulting binary.
14905hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14906
14907# Set to yes if building a shared library automatically hardcodes DIR into the library
14908# and all subsequent libraries and executables linked against it.
14909hardcode_automatic=$hardcode_automatic_F77
14910
14911# Variables whose values should be saved in libtool wrapper scripts and
14912# restored at relink time.
14913variables_saved_for_relink="$variables_saved_for_relink"
14914
14915# Whether libtool must link a program against all its dependency libraries.
14916link_all_deplibs=$link_all_deplibs_F77
14917
14918# Compile-time system search path for libraries
14919sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14920
14921# Run-time system search path for libraries
14922sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14923
14924# Fix the shell variable \$srcfile for the compiler.
14925fix_srcfile_path="$fix_srcfile_path_F77"
14926
14927# Set to yes if exported symbols are required.
14928always_export_symbols=$always_export_symbols_F77
14929
14930# The commands to list exported symbols.
14931export_symbols_cmds=$lt_export_symbols_cmds_F77
14932
14933# The commands to extract the exported symbol list from a shared archive.
14934extract_expsyms_cmds=$lt_extract_expsyms_cmds
14935
14936# Symbols that should not be listed in the preloaded symbols.
14937exclude_expsyms=$lt_exclude_expsyms_F77
14938
14939# Symbols that must always be exported.
14940include_expsyms=$lt_include_expsyms_F77
14941
14942# ### END LIBTOOL TAG CONFIG: $tagname
14943
14944__EOF__
14945
14946
14947else
14948 # If there is no Makefile yet, we rely on a make rule to execute
14949 # `config.status --recheck' to rerun these tests and create the
14950 # libtool script then.
14951 test -f Makefile && make "$ltmain"
14952fi
14953
14954
14955ac_ext=c
14956ac_cpp='$CPP $CPPFLAGS'
14957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14959ac_compiler_gnu=$ac_cv_c_compiler_gnu
14960
14961CC="$lt_save_CC"
14962
14963 else
14964 tagname=""
14965 fi
14966 ;;
14967
14968 GCJ)
14969 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14970
14971
14972
14973# Source file extension for Java test sources.
14974ac_ext=java
14975
14976# Object file extension for compiled Java test sources.
14977objext=o
14978objext_GCJ=$objext
14979
14980# Code to be used in simple compile tests
14981lt_simple_compile_test_code="class foo {}\n"
14982
14983# Code to be used in simple link tests
14984lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14985
14986# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14987
14988# If no C compiler was specified, use CC.
14989LTCC=${LTCC-"$CC"}
14990
14991# Allow CC to be a program name with arguments.
14992compiler=$CC
14993
14994
14995# Allow CC to be a program name with arguments.
14996lt_save_CC="$CC"
14997CC=${GCJ-"gcj"}
14998compiler=$CC
14999compiler_GCJ=$CC
15000
15001# GCJ did not exist at the time GCC didn't implicitly link libc in.
15002archive_cmds_need_lc_GCJ=no
15003
15004## CAVEAT EMPTOR:
15005## There is no encapsulation within the following macros, do not change
15006## the running order or otherwise move them around unless you know exactly
15007## what you are doing...
15008
15009lt_prog_compiler_no_builtin_flag_GCJ=
15010
15011if test "$GCC" = yes; then
15012 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15013
15014 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15015echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15016if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15017 echo $ECHO_N "(cached) $ECHO_C" >&6
15018else
15019 lt_cv_prog_compiler_rtti_exceptions=no
15020 ac_outfile=conftest.$ac_objext
15021 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15022 lt_compiler_flag="-fno-rtti -fno-exceptions"
15023 # Insert the option either (1) after the last *FLAGS variable, or
15024 # (2) before a word containing "conftest.", or (3) at the end.
15025 # Note that $ac_compile itself does not contain backslashes and begins
15026 # with a dollar sign (not a hyphen), so the echo should work correctly.
15027 # The option is referenced via a variable to avoid confusing sed.
15028 lt_compile=`echo "$ac_compile" | $SED \
15029 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15030 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15031 -e 's:$: $lt_compiler_flag:'`
John Criswell67181ca2003-09-26 14:53:17 +000015032 (eval echo "\"\$as_me:15032: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015033 (eval "$lt_compile" 2>conftest.err)
15034 ac_status=$?
15035 cat conftest.err >&5
John Criswell67181ca2003-09-26 14:53:17 +000015036 echo "$as_me:15036: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015037 if (exit $ac_status) && test -s "$ac_outfile"; then
15038 # The compiler can only warn and ignore the option if not recognized
15039 # So say no if there are warnings
15040 if test ! -s conftest.err; then
15041 lt_cv_prog_compiler_rtti_exceptions=yes
15042 fi
15043 fi
15044 $rm conftest*
15045
15046fi
15047echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15048echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15049
15050if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15051 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15052else
15053 :
15054fi
15055
15056fi
15057
15058lt_prog_compiler_wl_GCJ=
15059lt_prog_compiler_pic_GCJ=
15060lt_prog_compiler_static_GCJ=
15061
15062echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15063echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15064
15065 if test "$GCC" = yes; then
15066 lt_prog_compiler_wl_GCJ='-Wl,'
15067 lt_prog_compiler_static_GCJ='-static'
15068
15069 case $host_os in
15070 aix*)
15071 # All AIX code is PIC.
15072 if test "$host_cpu" = ia64; then
15073 # AIX 5 now supports IA64 processor
15074 lt_prog_compiler_static_GCJ='-Bstatic'
15075 fi
15076 ;;
15077
15078 amigaos*)
15079 # FIXME: we need at least 68020 code to build shared libraries, but
15080 # adding the `-m68020' flag to GCC prevents building anything better,
15081 # like `-m68040'.
15082 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15083 ;;
15084
15085 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15086 # PIC is the default for these OSes.
15087 ;;
15088
15089 mingw* | pw32* | os2*)
15090 # This hack is so that the source file can tell whether it is being
15091 # built for inclusion in a dll (and should export symbols for example).
15092 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15093 ;;
15094
15095 darwin* | rhapsody*)
15096 # PIC is the default on this platform
15097 # Common symbols not allowed in MH_DYLIB files
15098 lt_prog_compiler_pic_GCJ='-fno-common'
15099 ;;
15100
15101 msdosdjgpp*)
15102 # Just because we use GCC doesn't mean we suddenly get shared libraries
15103 # on systems that don't support them.
15104 lt_prog_compiler_can_build_shared_GCJ=no
15105 enable_shared=no
15106 ;;
15107
15108 sysv4*MP*)
15109 if test -d /usr/nec; then
15110 lt_prog_compiler_pic_GCJ=-Kconform_pic
15111 fi
15112 ;;
15113
15114 hpux*)
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='-fPIC'
15123 ;;
15124 esac
15125 ;;
15126
15127 *)
15128 lt_prog_compiler_pic_GCJ='-fPIC'
15129 ;;
15130 esac
15131 else
15132 # PORTME Check for flag to pass linker flags through the system compiler.
15133 case $host_os in
15134 aix*)
15135 lt_prog_compiler_wl_GCJ='-Wl,'
15136 if test "$host_cpu" = ia64; then
15137 # AIX 5 now supports IA64 processor
15138 lt_prog_compiler_static_GCJ='-Bstatic'
15139 else
15140 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15141 fi
15142 ;;
15143
15144 mingw* | pw32* | os2*)
15145 # This hack is so that the source file can tell whether it is being
15146 # built for inclusion in a dll (and should export symbols for example).
15147 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15148 ;;
15149
15150 hpux9* | hpux10* | hpux11*)
15151 lt_prog_compiler_wl_GCJ='-Wl,'
15152 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15153 # not for PA HP-UX.
15154 case "$host_cpu" in
15155 hppa*64*|ia64*)
15156 # +Z the default
15157 ;;
15158 *)
15159 lt_prog_compiler_pic_GCJ='+Z'
15160 ;;
15161 esac
15162 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15163 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15164 ;;
15165
15166 irix5* | irix6* | nonstopux*)
15167 lt_prog_compiler_wl_GCJ='-Wl,'
15168 # PIC (with -KPIC) is the default.
15169 lt_prog_compiler_static_GCJ='-non_shared'
15170 ;;
15171
15172 newsos6)
15173 lt_prog_compiler_pic_GCJ='-KPIC'
15174 lt_prog_compiler_static_GCJ='-Bstatic'
15175 ;;
15176
15177 linux*)
15178 case $CC in
15179 icc|ecc)
15180 lt_prog_compiler_wl_GCJ='-Wl,'
15181 lt_prog_compiler_pic_GCJ='-KPIC'
15182 lt_prog_compiler_static_GCJ='-static'
15183 ;;
15184 ccc)
15185 lt_prog_compiler_wl_GCJ='-Wl,'
15186 # All Alpha code is PIC.
15187 lt_prog_compiler_static_GCJ='-non_shared'
15188 ;;
15189 esac
15190 ;;
15191
15192 osf3* | osf4* | osf5*)
15193 lt_prog_compiler_wl_GCJ='-Wl,'
15194 # All OSF/1 code is PIC.
15195 lt_prog_compiler_static_GCJ='-non_shared'
15196 ;;
15197
15198 sco3.2v5*)
15199 lt_prog_compiler_pic_GCJ='-Kpic'
15200 lt_prog_compiler_static_GCJ='-dn'
15201 ;;
15202
15203 solaris*)
15204 lt_prog_compiler_wl_GCJ='-Wl,'
15205 lt_prog_compiler_pic_GCJ='-KPIC'
15206 lt_prog_compiler_static_GCJ='-Bstatic'
15207 ;;
15208
15209 sunos4*)
15210 lt_prog_compiler_wl_GCJ='-Qoption ld '
15211 lt_prog_compiler_pic_GCJ='-PIC'
15212 lt_prog_compiler_static_GCJ='-Bstatic'
15213 ;;
15214
15215 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15216 lt_prog_compiler_wl_GCJ='-Wl,'
15217 lt_prog_compiler_pic_GCJ='-KPIC'
15218 lt_prog_compiler_static_GCJ='-Bstatic'
15219 ;;
15220
15221 sysv4*MP*)
15222 if test -d /usr/nec ;then
15223 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15224 lt_prog_compiler_static_GCJ='-Bstatic'
15225 fi
15226 ;;
15227
15228 uts4*)
15229 lt_prog_compiler_pic_GCJ='-pic'
15230 lt_prog_compiler_static_GCJ='-Bstatic'
15231 ;;
15232
15233 *)
15234 lt_prog_compiler_can_build_shared_GCJ=no
15235 ;;
15236 esac
15237 fi
15238
15239echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15240echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15241
15242#
15243# Check to make sure the PIC flag actually works.
15244#
15245if test -n "$lt_prog_compiler_pic_GCJ"; then
15246 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15247echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15248if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15249 echo $ECHO_N "(cached) $ECHO_C" >&6
15250else
15251 lt_prog_compiler_pic_works_GCJ=no
15252 ac_outfile=conftest.$ac_objext
15253 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15254 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15255 # Insert the option either (1) after the last *FLAGS variable, or
15256 # (2) before a word containing "conftest.", or (3) at the end.
15257 # Note that $ac_compile itself does not contain backslashes and begins
15258 # with a dollar sign (not a hyphen), so the echo should work correctly.
15259 # The option is referenced via a variable to avoid confusing sed.
15260 lt_compile=`echo "$ac_compile" | $SED \
15261 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15263 -e 's:$: $lt_compiler_flag:'`
John Criswell67181ca2003-09-26 14:53:17 +000015264 (eval echo "\"\$as_me:15264: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015265 (eval "$lt_compile" 2>conftest.err)
15266 ac_status=$?
15267 cat conftest.err >&5
John Criswell67181ca2003-09-26 14:53:17 +000015268 echo "$as_me:15268: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015269 if (exit $ac_status) && test -s "$ac_outfile"; then
15270 # The compiler can only warn and ignore the option if not recognized
15271 # So say no if there are warnings
15272 if test ! -s conftest.err; then
15273 lt_prog_compiler_pic_works_GCJ=yes
15274 fi
15275 fi
15276 $rm conftest*
15277
15278fi
15279echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15280echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15281
15282if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15283 case $lt_prog_compiler_pic_GCJ in
15284 "" | " "*) ;;
15285 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15286 esac
15287else
15288 lt_prog_compiler_pic_GCJ=
15289 lt_prog_compiler_can_build_shared_GCJ=no
15290fi
15291
15292fi
15293case "$host_os" in
15294 # For platforms which do not support PIC, -DPIC is meaningless:
15295 *djgpp*)
15296 lt_prog_compiler_pic_GCJ=
15297 ;;
15298 *)
15299 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15300 ;;
15301esac
15302
15303echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15304echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15305if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15306 echo $ECHO_N "(cached) $ECHO_C" >&6
15307else
15308 lt_cv_prog_compiler_c_o_GCJ=no
15309 $rm -r conftest 2>/dev/null
15310 mkdir conftest
15311 cd conftest
15312 mkdir out
15313 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15314
15315 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15316 # that will create temporary files in the current directory regardless of
15317 # the output directory. Thus, making CWD read-only will cause this test
15318 # to fail, enabling locking or at least warning the user not to do parallel
15319 # builds.
15320 chmod -w .
15321
15322 lt_compiler_flag="-o out/conftest2.$ac_objext"
15323 # Insert the option either (1) after the last *FLAGS variable, or
15324 # (2) before a word containing "conftest.", or (3) at the end.
15325 # Note that $ac_compile itself does not contain backslashes and begins
15326 # with a dollar sign (not a hyphen), so the echo should work correctly.
15327 lt_compile=`echo "$ac_compile" | $SED \
15328 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15329 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15330 -e 's:$: $lt_compiler_flag:'`
John Criswell67181ca2003-09-26 14:53:17 +000015331 (eval echo "\"\$as_me:15331: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015332 (eval "$lt_compile" 2>out/conftest.err)
15333 ac_status=$?
15334 cat out/conftest.err >&5
John Criswell67181ca2003-09-26 14:53:17 +000015335 echo "$as_me:15335: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015336 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15337 then
15338 # The compiler can only warn and ignore the option if not recognized
15339 # So say no if there are warnings
15340 if test ! -s out/conftest.err; then
15341 lt_cv_prog_compiler_c_o_GCJ=yes
15342 fi
15343 fi
15344 chmod u+w .
15345 $rm conftest* out/*
15346 rmdir out
15347 cd ..
15348 rmdir conftest
15349 $rm conftest*
15350
15351fi
15352echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15353echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15354
15355
15356hard_links="nottested"
15357if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15358 # do not overwrite the value of need_locks provided by the user
15359 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15360echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15361 hard_links=yes
15362 $rm conftest*
15363 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15364 touch conftest.a
15365 ln conftest.a conftest.b 2>&5 || hard_links=no
15366 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15367 echo "$as_me:$LINENO: result: $hard_links" >&5
15368echo "${ECHO_T}$hard_links" >&6
15369 if test "$hard_links" = no; then
15370 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15371echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15372 need_locks=warn
15373 fi
15374else
15375 need_locks=no
15376fi
15377
15378echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15379echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15380
15381 runpath_var=
15382 allow_undefined_flag_GCJ=
15383 enable_shared_with_static_runtimes_GCJ=no
15384 archive_cmds_GCJ=
15385 archive_expsym_cmds_GCJ=
15386 old_archive_From_new_cmds_GCJ=
15387 old_archive_from_expsyms_cmds_GCJ=
15388 export_dynamic_flag_spec_GCJ=
15389 whole_archive_flag_spec_GCJ=
15390 thread_safe_flag_spec_GCJ=
15391 hardcode_libdir_flag_spec_GCJ=
15392 hardcode_libdir_flag_spec_ld_GCJ=
15393 hardcode_libdir_separator_GCJ=
15394 hardcode_direct_GCJ=no
15395 hardcode_minus_L_GCJ=no
15396 hardcode_shlibpath_var_GCJ=unsupported
15397 link_all_deplibs_GCJ=unknown
15398 hardcode_automatic_GCJ=no
15399 module_cmds_GCJ=
15400 module_expsym_cmds_GCJ=
15401 always_export_symbols_GCJ=no
15402 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15403 # include_expsyms should be a list of space-separated symbols to be *always*
15404 # included in the symbol list
15405 include_expsyms_GCJ=
15406 # exclude_expsyms can be an extended regexp of symbols to exclude
15407 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15408 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15409 # as well as any symbol that contains `d'.
15410 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15411 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15412 # platforms (ab)use it in PIC code, but their linkers get confused if
15413 # the symbol is explicitly referenced. Since portable code cannot
15414 # rely on this symbol name, it's probably fine to never include it in
15415 # preloaded symbol tables.
15416 extract_expsyms_cmds=
15417
15418 case $host_os in
15419 cygwin* | mingw* | pw32*)
15420 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15421 # When not using gcc, we currently assume that we are using
15422 # Microsoft Visual C++.
15423 if test "$GCC" != yes; then
15424 with_gnu_ld=no
15425 fi
15426 ;;
15427 openbsd*)
15428 with_gnu_ld=no
15429 ;;
15430 esac
15431
15432 ld_shlibs_GCJ=yes
15433 if test "$with_gnu_ld" = yes; then
15434 # If archive_cmds runs LD, not CC, wlarc should be empty
15435 wlarc='${wl}'
15436
15437 # See if GNU ld supports shared libraries.
15438 case $host_os in
15439 aix3* | aix4* | aix5*)
15440 # On AIX/PPC, the GNU linker is very broken
15441 if test "$host_cpu" != ia64; then
15442 ld_shlibs_GCJ=no
15443 cat <<EOF 1>&2
15444
15445*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15446*** to be unable to reliably create shared libraries on AIX.
15447*** Therefore, libtool is disabling shared libraries support. If you
15448*** really care for shared libraries, you may want to modify your PATH
15449*** so that a non-GNU linker is found, and then restart.
15450
15451EOF
15452 fi
15453 ;;
15454
15455 amigaos*)
15456 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)'
15457 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15458 hardcode_minus_L_GCJ=yes
15459
15460 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15461 # that the semantics of dynamic libraries on AmigaOS, at least up
15462 # to version 4, is to share data among multiple programs linked
15463 # with the same dynamic library. Since this doesn't match the
15464 # behavior of shared libraries on other platforms, we can't use
15465 # them.
15466 ld_shlibs_GCJ=no
15467 ;;
15468
15469 beos*)
15470 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15471 allow_undefined_flag_GCJ=unsupported
15472 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15473 # support --undefined. This deserves some investigation. FIXME
15474 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15475 else
15476 ld_shlibs_GCJ=no
15477 fi
15478 ;;
15479
15480 cygwin* | mingw* | pw32*)
15481 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15482 # as there is no search path for DLLs.
15483 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15484 allow_undefined_flag_GCJ=unsupported
15485 always_export_symbols_GCJ=no
15486 enable_shared_with_static_runtimes_GCJ=yes
15487 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15488
15489 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15490 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15491 # If the export-symbols file already is a .def file (1st line
15492 # is EXPORTS), use it as is; otherwise, prepend...
15493 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15494 cp $export_symbols $output_objdir/$soname.def;
15495 else
15496 echo EXPORTS > $output_objdir/$soname.def;
15497 cat $export_symbols >> $output_objdir/$soname.def;
15498 fi~
15499 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15500 else
15501 ld_shlibs=no
15502 fi
15503 ;;
15504
15505 netbsd*)
15506 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15507 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15508 wlarc=
15509 else
15510 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15511 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15512 fi
15513 ;;
15514
15515 solaris* | sysv5*)
15516 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15517 ld_shlibs_GCJ=no
15518 cat <<EOF 1>&2
15519
15520*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15521*** create shared libraries on Solaris systems. Therefore, libtool
15522*** is disabling shared libraries support. We urge you to upgrade GNU
15523*** binutils to release 2.9.1 or newer. Another option is to modify
15524*** your PATH or compiler configuration so that the native linker is
15525*** used, and then restart.
15526
15527EOF
15528 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15529 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15530 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15531 else
15532 ld_shlibs_GCJ=no
15533 fi
15534 ;;
15535
15536 sunos4*)
15537 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15538 wlarc=
15539 hardcode_direct_GCJ=yes
15540 hardcode_shlibpath_var_GCJ=no
15541 ;;
15542
15543 *)
15544 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15545 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15546 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15547 else
15548 ld_shlibs_GCJ=no
15549 fi
15550 ;;
15551 esac
15552
15553 if test "$ld_shlibs_GCJ" = yes; then
15554 runpath_var=LD_RUN_PATH
15555 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15556 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15557 # ancient GNU ld didn't support --whole-archive et. al.
15558 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15559 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15560 else
15561 whole_archive_flag_spec_GCJ=
15562 fi
15563 fi
15564 else
15565 # PORTME fill in a description of your system's linker (not GNU ld)
15566 case $host_os in
15567 aix3*)
15568 allow_undefined_flag_GCJ=unsupported
15569 always_export_symbols_GCJ=yes
15570 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'
15571 # Note: this linker hardcodes the directories in LIBPATH if there
15572 # are no directories specified by -L.
15573 hardcode_minus_L_GCJ=yes
15574 if test "$GCC" = yes && test -z "$link_static_flag"; then
15575 # Neither direct hardcoding nor static linking is supported with a
15576 # broken collect2.
15577 hardcode_direct_GCJ=unsupported
15578 fi
15579 ;;
15580
15581 aix4* | aix5*)
15582 if test "$host_cpu" = ia64; then
15583 # On IA64, the linker does run time linking by default, so we don't
15584 # have to do anything special.
15585 aix_use_runtimelinking=no
15586 exp_sym_flag='-Bexport'
15587 no_entry_flag=""
15588 else
15589 # If we're using GNU nm, then we don't want the "-C" option.
15590 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15591 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15592 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'
15593 else
15594 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'
15595 fi
15596 aix_use_runtimelinking=no
15597
15598 # Test if we are trying to use run time linking or normal
15599 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15600 # need to do runtime linking.
15601 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15602 for ld_flag in $LDFLAGS; do
15603 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15604 aix_use_runtimelinking=yes
15605 break
15606 fi
15607 done
15608 esac
15609
15610 exp_sym_flag='-bexport'
15611 no_entry_flag='-bnoentry'
15612 fi
15613
15614 # When large executables or shared objects are built, AIX ld can
15615 # have problems creating the table of contents. If linking a library
15616 # or program results in "error TOC overflow" add -mminimal-toc to
15617 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15618 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15619
15620 archive_cmds_GCJ=''
15621 hardcode_direct_GCJ=yes
15622 hardcode_libdir_separator_GCJ=':'
15623 link_all_deplibs_GCJ=yes
15624
15625 if test "$GCC" = yes; then
15626 case $host_os in aix4.012|aix4.012.*)
15627 # We only want to do this on AIX 4.2 and lower, the check
15628 # below for broken collect2 doesn't work under 4.3+
15629 collect2name=`${CC} -print-prog-name=collect2`
15630 if test -f "$collect2name" && \
15631 strings "$collect2name" | grep resolve_lib_name >/dev/null
15632 then
15633 # We have reworked collect2
15634 hardcode_direct_GCJ=yes
15635 else
15636 # We have old collect2
15637 hardcode_direct_GCJ=unsupported
15638 # It fails to find uninstalled libraries when the uninstalled
15639 # path is not listed in the libpath. Setting hardcode_minus_L
15640 # to unsupported forces relinking
15641 hardcode_minus_L_GCJ=yes
15642 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15643 hardcode_libdir_separator_GCJ=
15644 fi
15645 esac
15646 shared_flag='-shared'
15647 else
15648 # not using gcc
15649 if test "$host_cpu" = ia64; then
15650 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15651 # chokes on -Wl,-G. The following line is correct:
15652 shared_flag='-G'
15653 else
15654 if test "$aix_use_runtimelinking" = yes; then
15655 shared_flag='${wl}-G'
15656 else
15657 shared_flag='${wl}-bM:SRE'
15658 fi
15659 fi
15660 fi
15661
15662 # It seems that -bexpall does not export symbols beginning with
15663 # underscore (_), so it is better to generate a list of symbols to export.
15664 always_export_symbols_GCJ=yes
15665 if test "$aix_use_runtimelinking" = yes; then
15666 # Warning - without using the other runtime loading flags (-brtl),
15667 # -berok will link without error, but may produce a broken library.
15668 allow_undefined_flag_GCJ='-berok'
15669 # Determine the default libpath from the value encoded in an empty executable.
15670 cat >conftest.$ac_ext <<_ACEOF
15671#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015672/* confdefs.h. */
15673_ACEOF
15674cat confdefs.h >>conftest.$ac_ext
15675cat >>conftest.$ac_ext <<_ACEOF
15676/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015677
John Criswell47fdd832003-07-14 16:52:07 +000015678int
15679main ()
15680{
15681
15682 ;
15683 return 0;
15684}
15685_ACEOF
15686rm -f conftest.$ac_objext conftest$ac_exeext
15687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15688 (eval $ac_link) 2>&5
15689 ac_status=$?
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); } &&
15692 { ac_try='test -s conftest$ac_exeext'
15693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694 (eval $ac_try) 2>&5
15695 ac_status=$?
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; }; then
15698
15699aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15700}'`
15701# Check for a 64-bit object if we didn't find anything.
15702if 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; }
15703}'`; fi
15704else
15705 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015706sed 's/^/| /' conftest.$ac_ext >&5
15707
John Criswell47fdd832003-07-14 16:52:07 +000015708fi
15709rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15710if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15711
15712 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15713 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"
15714 else
15715 if test "$host_cpu" = ia64; then
15716 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15717 allow_undefined_flag_GCJ="-z nodefs"
15718 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"
15719 else
15720 # Determine the default libpath from the value encoded in an empty executable.
15721 cat >conftest.$ac_ext <<_ACEOF
15722#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015723/* confdefs.h. */
15724_ACEOF
15725cat confdefs.h >>conftest.$ac_ext
15726cat >>conftest.$ac_ext <<_ACEOF
15727/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015728
John Criswell47fdd832003-07-14 16:52:07 +000015729int
15730main ()
15731{
15732
15733 ;
15734 return 0;
15735}
15736_ACEOF
15737rm -f conftest.$ac_objext conftest$ac_exeext
15738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15739 (eval $ac_link) 2>&5
15740 ac_status=$?
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); } &&
15743 { ac_try='test -s conftest$ac_exeext'
15744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15745 (eval $ac_try) 2>&5
15746 ac_status=$?
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); }; }; then
15749
15750aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15751}'`
15752# Check for a 64-bit object if we didn't find anything.
15753if 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; }
15754}'`; fi
15755else
15756 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015757sed 's/^/| /' conftest.$ac_ext >&5
15758
John Criswell47fdd832003-07-14 16:52:07 +000015759fi
15760rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15761if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15762
15763 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15764 # Warning - without using the other run time loading flags,
15765 # -berok will link without error, but may produce a broken library.
15766 no_undefined_flag_GCJ=' ${wl}-bernotok'
15767 allow_undefined_flag_GCJ=' ${wl}-berok'
15768 # -bexpall does not export symbols beginning with underscore (_)
15769 always_export_symbols_GCJ=yes
15770 # Exported symbols can be pulled into shared objects from archives
15771 whole_archive_flag_spec_GCJ=' '
15772 archive_cmds_need_lc_GCJ=yes
15773 # This is similar to how AIX traditionally builds it's shared libraries.
15774 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'
15775 fi
15776 fi
15777 ;;
15778
15779 amigaos*)
15780 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)'
15781 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15782 hardcode_minus_L_GCJ=yes
15783 # see comment about different semantics on the GNU ld section
15784 ld_shlibs_GCJ=no
15785 ;;
15786
15787 bsdi4*)
15788 export_dynamic_flag_spec_GCJ=-rdynamic
15789 ;;
15790
15791 cygwin* | mingw* | pw32*)
15792 # When not using gcc, we currently assume that we are using
15793 # Microsoft Visual C++.
15794 # hardcode_libdir_flag_spec is actually meaningless, as there is
15795 # no search path for DLLs.
15796 hardcode_libdir_flag_spec_GCJ=' '
15797 allow_undefined_flag_GCJ=unsupported
15798 # Tell ltmain to make .lib files, not .a files.
15799 libext=lib
15800 # Tell ltmain to make .dll files, not .so files.
15801 shrext=".dll"
15802 # FIXME: Setting linknames here is a bad hack.
15803 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15804 # The linker will automatically build a .lib file if we build a DLL.
15805 old_archive_From_new_cmds_GCJ='true'
15806 # FIXME: Should let the user specify the lib program.
15807 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15808 fix_srcfile_path='`cygpath -w "$srcfile"`'
15809 enable_shared_with_static_runtimes_GCJ=yes
15810 ;;
15811
15812 darwin* | rhapsody*)
15813 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15814 archive_cmds_need_lc_GCJ=no
15815 case "$host_os" in
15816 rhapsody* | darwin1.[012])
15817 allow_undefined_flag_GCJ='-undefined suppress'
15818 ;;
15819 *) # Darwin 1.3 on
15820 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15821 ;;
15822 esac
15823 # FIXME: Relying on posixy $() will cause problems for
15824 # cross-compilation, but unfortunately the echo tests do not
15825 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15826 # `"' quotes if we put them in here... so don't!
15827 lt_int_apple_cc_single_mod=no
15828 output_verbose_link_cmd='echo'
15829 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15830 lt_int_apple_cc_single_mod=yes
15831 fi
15832 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15833 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15834 else
15835 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'
15836 fi
15837 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15838 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15839 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15840 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}'
15841 else
15842 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}'
15843 fi
15844 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}'
15845 hardcode_direct_GCJ=no
15846 hardcode_automatic_GCJ=yes
15847 hardcode_shlibpath_var_GCJ=unsupported
15848 whole_archive_flag_spec_GCJ='-all_load $convenience'
15849 link_all_deplibs_GCJ=yes
15850 fi
15851 ;;
15852
15853 dgux*)
15854 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15855 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15856 hardcode_shlibpath_var_GCJ=no
15857 ;;
15858
15859 freebsd1*)
15860 ld_shlibs_GCJ=no
15861 ;;
15862
15863 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15864 # support. Future versions do this automatically, but an explicit c++rt0.o
15865 # does not break anything, and helps significantly (at the cost of a little
15866 # extra space).
15867 freebsd2.2*)
15868 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15869 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15870 hardcode_direct_GCJ=yes
15871 hardcode_shlibpath_var_GCJ=no
15872 ;;
15873
15874 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15875 freebsd2*)
15876 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15877 hardcode_direct_GCJ=yes
15878 hardcode_minus_L_GCJ=yes
15879 hardcode_shlibpath_var_GCJ=no
15880 ;;
15881
15882 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15883 freebsd*)
15884 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15885 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15886 hardcode_direct_GCJ=yes
15887 hardcode_shlibpath_var_GCJ=no
15888 ;;
15889
15890 hpux9*)
15891 if test "$GCC" = yes; then
15892 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'
15893 else
15894 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'
15895 fi
15896 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15897 hardcode_libdir_separator_GCJ=:
15898 hardcode_direct_GCJ=yes
15899
15900 # hardcode_minus_L: Not really in the search PATH,
15901 # but as the default location of the library.
15902 hardcode_minus_L_GCJ=yes
15903 export_dynamic_flag_spec_GCJ='${wl}-E'
15904 ;;
15905
15906 hpux10* | hpux11*)
15907 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15908 case "$host_cpu" in
15909 hppa*64*|ia64*)
15910 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15911 ;;
15912 *)
15913 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15914 ;;
15915 esac
15916 else
15917 case "$host_cpu" in
15918 hppa*64*|ia64*)
15919 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15920 ;;
15921 *)
15922 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15923 ;;
15924 esac
15925 fi
15926 if test "$with_gnu_ld" = no; then
15927 case "$host_cpu" in
15928 hppa*64*)
15929 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15930 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15931 hardcode_libdir_separator_GCJ=:
15932 hardcode_direct_GCJ=no
15933 hardcode_shlibpath_var_GCJ=no
15934 ;;
15935 ia64*)
15936 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15937 hardcode_direct_GCJ=no
15938 hardcode_shlibpath_var_GCJ=no
15939
15940 # hardcode_minus_L: Not really in the search PATH,
15941 # but as the default location of the library.
15942 hardcode_minus_L_GCJ=yes
15943 ;;
15944 *)
15945 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15946 hardcode_libdir_separator_GCJ=:
15947 hardcode_direct_GCJ=yes
15948 export_dynamic_flag_spec_GCJ='${wl}-E'
15949
15950 # hardcode_minus_L: Not really in the search PATH,
15951 # but as the default location of the library.
15952 hardcode_minus_L_GCJ=yes
15953 ;;
15954 esac
15955 fi
15956 ;;
15957
15958 irix5* | irix6* | nonstopux*)
15959 if test "$GCC" = yes; then
15960 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'
15961 else
15962 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'
15963 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15964 fi
15965 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15966 hardcode_libdir_separator_GCJ=:
15967 link_all_deplibs_GCJ=yes
15968 ;;
15969
15970 netbsd*)
15971 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15972 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15973 else
15974 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15975 fi
15976 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15977 hardcode_direct_GCJ=yes
15978 hardcode_shlibpath_var_GCJ=no
15979 ;;
15980
15981 newsos6)
15982 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15983 hardcode_direct_GCJ=yes
15984 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15985 hardcode_libdir_separator_GCJ=:
15986 hardcode_shlibpath_var_GCJ=no
15987 ;;
15988
15989 openbsd*)
15990 hardcode_direct_GCJ=yes
15991 hardcode_shlibpath_var_GCJ=no
15992 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15993 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15994 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15995 export_dynamic_flag_spec_GCJ='${wl}-E'
15996 else
15997 case $host_os in
15998 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15999 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16000 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16001 ;;
16002 *)
16003 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16004 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16005 ;;
16006 esac
16007 fi
16008 ;;
16009
16010 os2*)
16011 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16012 hardcode_minus_L_GCJ=yes
16013 allow_undefined_flag_GCJ=unsupported
16014 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'
16015 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16016 ;;
16017
16018 osf3*)
16019 if test "$GCC" = yes; then
16020 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16021 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'
16022 else
16023 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16024 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'
16025 fi
16026 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16027 hardcode_libdir_separator_GCJ=:
16028 ;;
16029
16030 osf4* | osf5*) # as osf3* with the addition of -msym flag
16031 if test "$GCC" = yes; then
16032 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16033 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'
16034 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16035 else
16036 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16037 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'
16038 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~
16039 $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'
16040
16041 # Both c and cxx compiler support -rpath directly
16042 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16043 fi
16044 hardcode_libdir_separator_GCJ=:
16045 ;;
16046
16047 sco3.2v5*)
16048 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16049 hardcode_shlibpath_var_GCJ=no
16050 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16051 runpath_var=LD_RUN_PATH
16052 hardcode_runpath_var=yes
16053 ;;
16054
16055 solaris*)
16056 no_undefined_flag_GCJ=' -z text'
16057 if test "$GCC" = yes; then
16058 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16059 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16060 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16061 else
16062 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16063 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16064 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16065 fi
16066 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16067 hardcode_shlibpath_var_GCJ=no
16068 case $host_os in
16069 solaris2.[0-5] | solaris2.[0-5].*) ;;
16070 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16071 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16072 esac
16073 link_all_deplibs_GCJ=yes
16074 ;;
16075
16076 sunos4*)
16077 if test "x$host_vendor" = xsequent; then
16078 # Use $CC to link under sequent, because it throws in some extra .o
16079 # files that make .init and .fini sections work.
16080 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16081 else
16082 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16083 fi
16084 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16085 hardcode_direct_GCJ=yes
16086 hardcode_minus_L_GCJ=yes
16087 hardcode_shlibpath_var_GCJ=no
16088 ;;
16089
16090 sysv4)
16091 case $host_vendor in
16092 sni)
16093 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16094 hardcode_direct_GCJ=yes # is this really true???
16095 ;;
16096 siemens)
16097 ## LD is ld it makes a PLAMLIB
16098 ## CC just makes a GrossModule.
16099 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16100 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16101 hardcode_direct_GCJ=no
16102 ;;
16103 motorola)
16104 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16105 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16106 ;;
16107 esac
16108 runpath_var='LD_RUN_PATH'
16109 hardcode_shlibpath_var_GCJ=no
16110 ;;
16111
16112 sysv4.3*)
16113 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16114 hardcode_shlibpath_var_GCJ=no
16115 export_dynamic_flag_spec_GCJ='-Bexport'
16116 ;;
16117
16118 sysv4*MP*)
16119 if test -d /usr/nec; then
16120 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16121 hardcode_shlibpath_var_GCJ=no
16122 runpath_var=LD_RUN_PATH
16123 hardcode_runpath_var=yes
16124 ld_shlibs_GCJ=yes
16125 fi
16126 ;;
16127
16128 sysv4.2uw2*)
16129 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16130 hardcode_direct_GCJ=yes
16131 hardcode_minus_L_GCJ=no
16132 hardcode_shlibpath_var_GCJ=no
16133 hardcode_runpath_var=yes
16134 runpath_var=LD_RUN_PATH
16135 ;;
16136
16137 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16138 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16139 if test "$GCC" = yes; then
16140 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16141 else
16142 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16143 fi
16144 runpath_var='LD_RUN_PATH'
16145 hardcode_shlibpath_var_GCJ=no
16146 ;;
16147
16148 sysv5*)
16149 no_undefined_flag_GCJ=' -z text'
16150 # $CC -shared without GNU ld will not create a library from C++
16151 # object files and a static libstdc++, better avoid it by now
16152 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16153 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16154 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16155 hardcode_libdir_flag_spec_GCJ=
16156 hardcode_shlibpath_var_GCJ=no
16157 runpath_var='LD_RUN_PATH'
16158 ;;
16159
16160 uts4*)
16161 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16162 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16163 hardcode_shlibpath_var_GCJ=no
16164 ;;
16165
16166 *)
16167 ld_shlibs_GCJ=no
16168 ;;
16169 esac
16170 fi
16171
16172echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16173echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16174test "$ld_shlibs_GCJ" = no && can_build_shared=no
16175
16176variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16177if test "$GCC" = yes; then
16178 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16179fi
16180
16181#
16182# Do we need to explicitly link libc?
16183#
16184case "x$archive_cmds_need_lc_GCJ" in
16185x|xyes)
16186 # Assume -lc should be added
16187 archive_cmds_need_lc_GCJ=yes
16188
16189 if test "$enable_shared" = yes && test "$GCC" = yes; then
16190 case $archive_cmds_GCJ in
16191 *'~'*)
16192 # FIXME: we may have to deal with multi-command sequences.
16193 ;;
16194 '$CC '*)
16195 # Test whether the compiler implicitly links with -lc since on some
16196 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16197 # to ld, don't add -lc before -lgcc.
16198 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16199echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16200 $rm conftest*
16201 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16202
16203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16204 (eval $ac_compile) 2>&5
16205 ac_status=$?
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); } 2>conftest.err; then
16208 soname=conftest
16209 lib=conftest
16210 libobjs=conftest.$ac_objext
16211 deplibs=
16212 wl=$lt_prog_compiler_wl_GCJ
16213 compiler_flags=-v
16214 linker_flags=-v
16215 verstring=
16216 output_objdir=.
16217 libname=conftest
16218 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16219 allow_undefined_flag_GCJ=
16220 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16221 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16222 ac_status=$?
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); }
16225 then
16226 archive_cmds_need_lc_GCJ=no
16227 else
16228 archive_cmds_need_lc_GCJ=yes
16229 fi
16230 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16231 else
16232 cat conftest.err 1>&5
16233 fi
16234 $rm conftest*
16235 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16236echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16237 ;;
16238 esac
16239 fi
16240 ;;
16241esac
16242
16243echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16244echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16245hardcode_action_GCJ=
16246if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16247 test -n "$runpath_var GCJ" || \
16248 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16249
16250 # We can hardcode non-existant directories.
16251 if test "$hardcode_direct_GCJ" != no &&
16252 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16253 # have to relink, otherwise we might link with an installed library
16254 # when we should be linking with a yet-to-be-installed one
16255 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16256 test "$hardcode_minus_L_GCJ" != no; then
16257 # Linking always hardcodes the temporary library directory.
16258 hardcode_action_GCJ=relink
16259 else
16260 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16261 hardcode_action_GCJ=immediate
16262 fi
16263else
16264 # We cannot hardcode anything, or else we can only hardcode existing
16265 # directories.
16266 hardcode_action_GCJ=unsupported
16267fi
16268echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16269echo "${ECHO_T}$hardcode_action_GCJ" >&6
16270
16271if test "$hardcode_action_GCJ" = relink; then
16272 # Fast installation is not supported
16273 enable_fast_install=no
16274elif test "$shlibpath_overrides_runpath" = yes ||
16275 test "$enable_shared" = no; then
16276 # Fast installation is not necessary
16277 enable_fast_install=needless
16278fi
16279
16280striplib=
16281old_striplib=
16282echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16283echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16284if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16285 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16286 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16287 echo "$as_me:$LINENO: result: yes" >&5
16288echo "${ECHO_T}yes" >&6
16289else
16290# FIXME - insert some real tests, host_os isn't really good enough
16291 case $host_os in
16292 darwin*)
16293 if test -n "$STRIP" ; then
16294 striplib="$STRIP -x"
16295 echo "$as_me:$LINENO: result: yes" >&5
16296echo "${ECHO_T}yes" >&6
16297 else
16298 echo "$as_me:$LINENO: result: no" >&5
16299echo "${ECHO_T}no" >&6
16300fi
16301 ;;
16302 *)
16303 echo "$as_me:$LINENO: result: no" >&5
16304echo "${ECHO_T}no" >&6
16305 ;;
16306 esac
16307fi
16308
16309echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16310echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16311library_names_spec=
16312libname_spec='lib$name'
16313soname_spec=
16314shrext=".so"
16315postinstall_cmds=
16316postuninstall_cmds=
16317finish_cmds=
16318finish_eval=
16319shlibpath_var=
16320shlibpath_overrides_runpath=unknown
16321version_type=none
16322dynamic_linker="$host_os ld.so"
16323sys_lib_dlsearch_path_spec="/lib /usr/lib"
16324if test "$GCC" = yes; then
16325 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16326 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16327 # if the path contains ";" then we assume it to be the separator
16328 # otherwise default to the standard path separator (i.e. ":") - it is
16329 # assumed that no part of a normal pathname contains ";" but that should
16330 # okay in the real world where ";" in dirpaths is itself problematic.
16331 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16332 else
16333 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16334 fi
16335else
16336 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16337fi
16338need_lib_prefix=unknown
16339hardcode_into_libs=no
16340
16341# when you set need_version to no, make sure it does not cause -set_version
16342# flags to be left without arguments
16343need_version=unknown
16344
16345case $host_os in
16346aix3*)
16347 version_type=linux
16348 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16349 shlibpath_var=LIBPATH
16350
16351 # AIX 3 has no versioning support, so we append a major version to the name.
16352 soname_spec='${libname}${release}${shared_ext}$major'
16353 ;;
16354
16355aix4* | aix5*)
16356 version_type=linux
16357 need_lib_prefix=no
16358 need_version=no
16359 hardcode_into_libs=yes
16360 if test "$host_cpu" = ia64; then
16361 # AIX 5 supports IA64
16362 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16363 shlibpath_var=LD_LIBRARY_PATH
16364 else
16365 # With GCC up to 2.95.x, collect2 would create an import file
16366 # for dependence libraries. The import file would start with
16367 # the line `#! .'. This would cause the generated library to
16368 # depend on `.', always an invalid library. This was fixed in
16369 # development snapshots of GCC prior to 3.0.
16370 case $host_os in
16371 aix4 | aix4.[01] | aix4.[01].*)
16372 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16373 echo ' yes '
16374 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16375 :
16376 else
16377 can_build_shared=no
16378 fi
16379 ;;
16380 esac
16381 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16382 # soname into executable. Probably we can add versioning support to
16383 # collect2, so additional links can be useful in future.
16384 if test "$aix_use_runtimelinking" = yes; then
16385 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16386 # instead of lib<name>.a to let people know that these are not
16387 # typical AIX shared libraries.
16388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16389 else
16390 # We preserve .a as extension for shared libraries through AIX4.2
16391 # and later when we are not doing run time linking.
16392 library_names_spec='${libname}${release}.a $libname.a'
16393 soname_spec='${libname}${release}${shared_ext}$major'
16394 fi
16395 shlibpath_var=LIBPATH
16396 fi
16397 ;;
16398
16399amigaos*)
16400 library_names_spec='$libname.ixlibrary $libname.a'
16401 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16402 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'
16403 ;;
16404
16405beos*)
16406 library_names_spec='${libname}${shared_ext}'
16407 dynamic_linker="$host_os ld.so"
16408 shlibpath_var=LIBRARY_PATH
16409 ;;
16410
16411bsdi4*)
16412 version_type=linux
16413 need_version=no
16414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16415 soname_spec='${libname}${release}${shared_ext}$major'
16416 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16417 shlibpath_var=LD_LIBRARY_PATH
16418 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16419 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16420 # the default ld.so.conf also contains /usr/contrib/lib and
16421 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16422 # libtool to hard-code these into programs
16423 ;;
16424
16425cygwin* | mingw* | pw32*)
16426 version_type=windows
16427 shrext=".dll"
16428 need_version=no
16429 need_lib_prefix=no
16430
16431 case $GCC,$host_os in
16432 yes,cygwin* | yes,mingw* | yes,pw32*)
16433 library_names_spec='$libname.dll.a'
16434 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16435 postinstall_cmds='base_file=`basename \${file}`~
16436 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16437 dldir=$destdir/`dirname \$dlpath`~
16438 test -d \$dldir || mkdir -p \$dldir~
16439 $install_prog $dir/$dlname \$dldir/$dlname'
16440 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16441 dlpath=$dir/\$dldll~
16442 $rm \$dlpath'
16443 shlibpath_overrides_runpath=yes
16444
16445 case $host_os in
16446 cygwin*)
16447 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16448 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16449 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16450 ;;
16451 mingw*)
16452 # MinGW DLLs use traditional 'lib' prefix
16453 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16454 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16455 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16456 # It is most probably a Windows format PATH printed by
16457 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16458 # path with ; separators, and with drive letters. We can handle the
16459 # drive letters (cygwin fileutils understands them), so leave them,
16460 # especially as we might pass files found there to a mingw objdump,
16461 # which wouldn't understand a cygwinified path. Ahh.
16462 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16463 else
16464 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16465 fi
16466 ;;
16467 pw32*)
16468 # pw32 DLLs use 'pw' prefix rather than 'lib'
16469 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16470 ;;
16471 esac
16472 ;;
16473
16474 *)
16475 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16476 ;;
16477 esac
16478 dynamic_linker='Win32 ld.exe'
16479 # FIXME: first we should search . and the directory the executable is in
16480 shlibpath_var=PATH
16481 ;;
16482
16483darwin* | rhapsody*)
16484 dynamic_linker="$host_os dyld"
16485 version_type=darwin
16486 need_lib_prefix=no
16487 need_version=no
16488 # FIXME: Relying on posixy $() will cause problems for
16489 # cross-compilation, but unfortunately the echo tests do not
16490 # yet detect zsh echo's removal of \ escapes.
16491 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16492 soname_spec='${libname}${release}${major}$shared_ext'
16493 shlibpath_overrides_runpath=yes
16494 shlibpath_var=DYLD_LIBRARY_PATH
16495 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16496 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16497 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16498 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"`
16499 fi
16500 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16501 ;;
16502
16503dgux*)
16504 version_type=linux
16505 need_lib_prefix=no
16506 need_version=no
16507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16508 soname_spec='${libname}${release}${shared_ext}$major'
16509 shlibpath_var=LD_LIBRARY_PATH
16510 ;;
16511
16512freebsd1*)
16513 dynamic_linker=no
16514 ;;
16515
16516freebsd*)
16517 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16518 version_type=freebsd-$objformat
16519 case $version_type in
16520 freebsd-elf*)
16521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16522 need_version=no
16523 need_lib_prefix=no
16524 ;;
16525 freebsd-*)
16526 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16527 need_version=yes
16528 ;;
16529 esac
16530 shlibpath_var=LD_LIBRARY_PATH
16531 case $host_os in
16532 freebsd2*)
16533 shlibpath_overrides_runpath=yes
16534 ;;
16535 freebsd3.01* | freebsdelf3.01*)
16536 shlibpath_overrides_runpath=yes
16537 hardcode_into_libs=yes
16538 ;;
16539 *) # from 3.2 on
16540 shlibpath_overrides_runpath=no
16541 hardcode_into_libs=yes
16542 ;;
16543 esac
16544 ;;
16545
16546gnu*)
16547 version_type=linux
16548 need_lib_prefix=no
16549 need_version=no
16550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16551 soname_spec='${libname}${release}${shared_ext}$major'
16552 shlibpath_var=LD_LIBRARY_PATH
16553 hardcode_into_libs=yes
16554 ;;
16555
16556hpux9* | hpux10* | hpux11*)
16557 # Give a soname corresponding to the major version so that dld.sl refuses to
16558 # link against other versions.
16559 version_type=sunos
16560 need_lib_prefix=no
16561 need_version=no
16562 case "$host_cpu" in
16563 ia64*)
16564 shrext='.so'
16565 hardcode_into_libs=yes
16566 dynamic_linker="$host_os dld.so"
16567 shlibpath_var=LD_LIBRARY_PATH
16568 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16570 soname_spec='${libname}${release}${shared_ext}$major'
16571 if test "X$HPUX_IA64_MODE" = X32; then
16572 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16573 else
16574 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16575 fi
16576 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16577 ;;
16578 hppa*64*)
16579 shrext='.sl'
16580 hardcode_into_libs=yes
16581 dynamic_linker="$host_os dld.sl"
16582 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16583 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16585 soname_spec='${libname}${release}${shared_ext}$major'
16586 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16587 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16588 ;;
16589 *)
16590 shrext='.sl'
16591 dynamic_linker="$host_os dld.sl"
16592 shlibpath_var=SHLIB_PATH
16593 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16595 soname_spec='${libname}${release}${shared_ext}$major'
16596 ;;
16597 esac
16598 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16599 postinstall_cmds='chmod 555 $lib'
16600 ;;
16601
16602irix5* | irix6* | nonstopux*)
16603 case $host_os in
16604 nonstopux*) version_type=nonstopux ;;
16605 *)
16606 if test "$lt_cv_prog_gnu_ld" = yes; then
16607 version_type=linux
16608 else
16609 version_type=irix
16610 fi ;;
16611 esac
16612 need_lib_prefix=no
16613 need_version=no
16614 soname_spec='${libname}${release}${shared_ext}$major'
16615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16616 case $host_os in
16617 irix5* | nonstopux*)
16618 libsuff= shlibsuff=
16619 ;;
16620 *)
16621 case $LD in # libtool.m4 will add one of these switches to LD
16622 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16623 libsuff= shlibsuff= libmagic=32-bit;;
16624 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16625 libsuff=32 shlibsuff=N32 libmagic=N32;;
16626 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16627 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16628 *) libsuff= shlibsuff= libmagic=never-match;;
16629 esac
16630 ;;
16631 esac
16632 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16633 shlibpath_overrides_runpath=no
16634 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16635 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16636 hardcode_into_libs=yes
16637 ;;
16638
16639# No shared lib support for Linux oldld, aout, or coff.
16640linux*oldld* | linux*aout* | linux*coff*)
16641 dynamic_linker=no
16642 ;;
16643
16644# This must be Linux ELF.
16645linux*)
16646 version_type=linux
16647 need_lib_prefix=no
16648 need_version=no
16649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16650 soname_spec='${libname}${release}${shared_ext}$major'
16651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16652 shlibpath_var=LD_LIBRARY_PATH
16653 shlibpath_overrides_runpath=no
16654 # This implies no fast_install, which is unacceptable.
16655 # Some rework will be needed to allow for fast_install
16656 # before this can be enabled.
16657 hardcode_into_libs=yes
16658
16659 # We used to test for /lib/ld.so.1 and disable shared libraries on
16660 # powerpc, because MkLinux only supported shared libraries with the
16661 # GNU dynamic linker. Since this was broken with cross compilers,
16662 # most powerpc-linux boxes support dynamic linking these days and
16663 # people can always --disable-shared, the test was removed, and we
16664 # assume the GNU/Linux dynamic linker is in use.
16665 dynamic_linker='GNU/Linux ld.so'
16666 ;;
16667
16668netbsd*)
16669 version_type=sunos
16670 need_lib_prefix=no
16671 need_version=no
16672 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16674 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16675 dynamic_linker='NetBSD (a.out) ld.so'
16676 else
16677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16678 soname_spec='${libname}${release}${shared_ext}$major'
16679 dynamic_linker='NetBSD ld.elf_so'
16680 fi
16681 shlibpath_var=LD_LIBRARY_PATH
16682 shlibpath_overrides_runpath=yes
16683 hardcode_into_libs=yes
16684 ;;
16685
16686newsos6)
16687 version_type=linux
16688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16689 shlibpath_var=LD_LIBRARY_PATH
16690 shlibpath_overrides_runpath=yes
16691 ;;
16692
16693nto-qnx)
16694 version_type=linux
16695 need_lib_prefix=no
16696 need_version=no
16697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16698 soname_spec='${libname}${release}${shared_ext}$major'
16699 shlibpath_var=LD_LIBRARY_PATH
16700 shlibpath_overrides_runpath=yes
16701 ;;
16702
16703openbsd*)
16704 version_type=sunos
16705 need_lib_prefix=no
16706 need_version=no
16707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16708 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16709 shlibpath_var=LD_LIBRARY_PATH
16710 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16711 case $host_os in
16712 openbsd2.[89] | openbsd2.[89].*)
16713 shlibpath_overrides_runpath=no
16714 ;;
16715 *)
16716 shlibpath_overrides_runpath=yes
16717 ;;
16718 esac
16719 else
16720 shlibpath_overrides_runpath=yes
16721 fi
16722 ;;
16723
16724os2*)
16725 libname_spec='$name'
16726 shrext=".dll"
16727 need_lib_prefix=no
16728 library_names_spec='$libname${shared_ext} $libname.a'
16729 dynamic_linker='OS/2 ld.exe'
16730 shlibpath_var=LIBPATH
16731 ;;
16732
16733osf3* | osf4* | osf5*)
16734 version_type=osf
16735 need_lib_prefix=no
16736 need_version=no
16737 soname_spec='${libname}${release}${shared_ext}$major'
16738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16739 shlibpath_var=LD_LIBRARY_PATH
16740 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16741 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16742 ;;
16743
16744sco3.2v5*)
16745 version_type=osf
16746 soname_spec='${libname}${release}${shared_ext}$major'
16747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16748 shlibpath_var=LD_LIBRARY_PATH
16749 ;;
16750
16751solaris*)
16752 version_type=linux
16753 need_lib_prefix=no
16754 need_version=no
16755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16756 soname_spec='${libname}${release}${shared_ext}$major'
16757 shlibpath_var=LD_LIBRARY_PATH
16758 shlibpath_overrides_runpath=yes
16759 hardcode_into_libs=yes
16760 # ldd complains unless libraries are executable
16761 postinstall_cmds='chmod +x $lib'
16762 ;;
16763
16764sunos4*)
16765 version_type=sunos
16766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16767 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16768 shlibpath_var=LD_LIBRARY_PATH
16769 shlibpath_overrides_runpath=yes
16770 if test "$with_gnu_ld" = yes; then
16771 need_lib_prefix=no
16772 fi
16773 need_version=yes
16774 ;;
16775
16776sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16777 version_type=linux
16778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16779 soname_spec='${libname}${release}${shared_ext}$major'
16780 shlibpath_var=LD_LIBRARY_PATH
16781 case $host_vendor in
16782 sni)
16783 shlibpath_overrides_runpath=no
16784 need_lib_prefix=no
16785 export_dynamic_flag_spec='${wl}-Blargedynsym'
16786 runpath_var=LD_RUN_PATH
16787 ;;
16788 siemens)
16789 need_lib_prefix=no
16790 ;;
16791 motorola)
16792 need_lib_prefix=no
16793 need_version=no
16794 shlibpath_overrides_runpath=no
16795 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16796 ;;
16797 esac
16798 ;;
16799
16800sysv4*MP*)
16801 if test -d /usr/nec ;then
16802 version_type=linux
16803 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16804 soname_spec='$libname${shared_ext}.$major'
16805 shlibpath_var=LD_LIBRARY_PATH
16806 fi
16807 ;;
16808
16809uts4*)
16810 version_type=linux
16811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16812 soname_spec='${libname}${release}${shared_ext}$major'
16813 shlibpath_var=LD_LIBRARY_PATH
16814 ;;
16815
16816*)
16817 dynamic_linker=no
16818 ;;
16819esac
16820echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16821echo "${ECHO_T}$dynamic_linker" >&6
16822test "$dynamic_linker" = no && can_build_shared=no
16823
16824if test "x$enable_dlopen" != xyes; then
16825 enable_dlopen=unknown
16826 enable_dlopen_self=unknown
16827 enable_dlopen_self_static=unknown
16828else
16829 lt_cv_dlopen=no
16830 lt_cv_dlopen_libs=
16831
16832 case $host_os in
16833 beos*)
16834 lt_cv_dlopen="load_add_on"
16835 lt_cv_dlopen_libs=
16836 lt_cv_dlopen_self=yes
16837 ;;
16838
16839 mingw* | pw32*)
16840 lt_cv_dlopen="LoadLibrary"
16841 lt_cv_dlopen_libs=
16842 ;;
16843
16844 cygwin*)
16845 lt_cv_dlopen="dlopen"
16846 lt_cv_dlopen_libs=
16847 ;;
16848
16849 darwin*)
16850 # if libdl is installed we need to link against it
16851 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16852echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16853if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16854 echo $ECHO_N "(cached) $ECHO_C" >&6
16855else
16856 ac_check_lib_save_LIBS=$LIBS
16857LIBS="-ldl $LIBS"
16858cat >conftest.$ac_ext <<_ACEOF
16859#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016860/* confdefs.h. */
16861_ACEOF
16862cat confdefs.h >>conftest.$ac_ext
16863cat >>conftest.$ac_ext <<_ACEOF
16864/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016865
16866/* Override any gcc2 internal prototype to avoid an error. */
16867#ifdef __cplusplus
16868extern "C"
16869#endif
16870/* We use char because int might match the return type of a gcc2
16871 builtin and then its argument prototype would still apply. */
16872char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016873int
16874main ()
16875{
16876dlopen ();
16877 ;
16878 return 0;
16879}
16880_ACEOF
16881rm -f conftest.$ac_objext conftest$ac_exeext
16882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16883 (eval $ac_link) 2>&5
16884 ac_status=$?
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); } &&
16887 { ac_try='test -s conftest$ac_exeext'
16888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16889 (eval $ac_try) 2>&5
16890 ac_status=$?
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; }; then
16893 ac_cv_lib_dl_dlopen=yes
16894else
16895 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016896sed 's/^/| /' conftest.$ac_ext >&5
16897
John Criswell47fdd832003-07-14 16:52:07 +000016898ac_cv_lib_dl_dlopen=no
16899fi
16900rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16901LIBS=$ac_check_lib_save_LIBS
16902fi
16903echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16904echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16905if test $ac_cv_lib_dl_dlopen = yes; then
16906 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16907else
16908
16909 lt_cv_dlopen="dyld"
16910 lt_cv_dlopen_libs=
16911 lt_cv_dlopen_self=yes
16912
16913fi
16914
16915 ;;
16916
16917 *)
16918 echo "$as_me:$LINENO: checking for shl_load" >&5
16919echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16920if test "${ac_cv_func_shl_load+set}" = set; then
16921 echo $ECHO_N "(cached) $ECHO_C" >&6
16922else
16923 cat >conftest.$ac_ext <<_ACEOF
16924#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016925/* confdefs.h. */
16926_ACEOF
16927cat confdefs.h >>conftest.$ac_ext
16928cat >>conftest.$ac_ext <<_ACEOF
16929/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016930/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016931 which can conflict with char shl_load (); below.
16932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16933 <limits.h> exists even on freestanding compilers. */
16934#ifdef __STDC__
16935# include <limits.h>
16936#else
16937# include <assert.h>
16938#endif
John Criswell47fdd832003-07-14 16:52:07 +000016939/* Override any gcc2 internal prototype to avoid an error. */
16940#ifdef __cplusplus
16941extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016942{
John Criswell47fdd832003-07-14 16:52:07 +000016943#endif
16944/* We use char because int might match the return type of a gcc2
16945 builtin and then its argument prototype would still apply. */
16946char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016947/* The GNU C library defines this for functions which it implements
16948 to always fail with ENOSYS. Some functions are actually named
16949 something starting with __ and the normal name is an alias. */
16950#if defined (__stub_shl_load) || defined (__stub___shl_load)
16951choke me
16952#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016953char (*f) () = shl_load;
16954#endif
16955#ifdef __cplusplus
16956}
John Criswell47fdd832003-07-14 16:52:07 +000016957#endif
16958
John Criswell0c38eaf2003-09-10 15:17:25 +000016959int
16960main ()
16961{
16962return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016963 ;
16964 return 0;
16965}
16966_ACEOF
16967rm -f conftest.$ac_objext conftest$ac_exeext
16968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16969 (eval $ac_link) 2>&5
16970 ac_status=$?
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); } &&
16973 { ac_try='test -s conftest$ac_exeext'
16974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16975 (eval $ac_try) 2>&5
16976 ac_status=$?
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); }; }; then
16979 ac_cv_func_shl_load=yes
16980else
16981 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016982sed 's/^/| /' conftest.$ac_ext >&5
16983
John Criswell47fdd832003-07-14 16:52:07 +000016984ac_cv_func_shl_load=no
16985fi
16986rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16987fi
16988echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16989echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16990if test $ac_cv_func_shl_load = yes; then
16991 lt_cv_dlopen="shl_load"
16992else
16993 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16994echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16995if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16996 echo $ECHO_N "(cached) $ECHO_C" >&6
16997else
16998 ac_check_lib_save_LIBS=$LIBS
16999LIBS="-ldld $LIBS"
17000cat >conftest.$ac_ext <<_ACEOF
17001#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017002/* confdefs.h. */
17003_ACEOF
17004cat confdefs.h >>conftest.$ac_ext
17005cat >>conftest.$ac_ext <<_ACEOF
17006/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017007
17008/* Override any gcc2 internal prototype to avoid an error. */
17009#ifdef __cplusplus
17010extern "C"
17011#endif
17012/* We use char because int might match the return type of a gcc2
17013 builtin and then its argument prototype would still apply. */
17014char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017015int
17016main ()
17017{
17018shl_load ();
17019 ;
17020 return 0;
17021}
17022_ACEOF
17023rm -f conftest.$ac_objext conftest$ac_exeext
17024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17025 (eval $ac_link) 2>&5
17026 ac_status=$?
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); } &&
17029 { ac_try='test -s conftest$ac_exeext'
17030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17031 (eval $ac_try) 2>&5
17032 ac_status=$?
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; }; then
17035 ac_cv_lib_dld_shl_load=yes
17036else
17037 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017038sed 's/^/| /' conftest.$ac_ext >&5
17039
John Criswell47fdd832003-07-14 16:52:07 +000017040ac_cv_lib_dld_shl_load=no
17041fi
17042rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17043LIBS=$ac_check_lib_save_LIBS
17044fi
17045echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17046echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17047if test $ac_cv_lib_dld_shl_load = yes; then
17048 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17049else
17050 echo "$as_me:$LINENO: checking for dlopen" >&5
17051echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17052if test "${ac_cv_func_dlopen+set}" = set; then
17053 echo $ECHO_N "(cached) $ECHO_C" >&6
17054else
17055 cat >conftest.$ac_ext <<_ACEOF
17056#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017057/* confdefs.h. */
17058_ACEOF
17059cat confdefs.h >>conftest.$ac_ext
17060cat >>conftest.$ac_ext <<_ACEOF
17061/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017062/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017063 which can conflict with char dlopen (); below.
17064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17065 <limits.h> exists even on freestanding compilers. */
17066#ifdef __STDC__
17067# include <limits.h>
17068#else
17069# include <assert.h>
17070#endif
John Criswell47fdd832003-07-14 16:52:07 +000017071/* Override any gcc2 internal prototype to avoid an error. */
17072#ifdef __cplusplus
17073extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017074{
John Criswell47fdd832003-07-14 16:52:07 +000017075#endif
17076/* We use char because int might match the return type of a gcc2
17077 builtin and then its argument prototype would still apply. */
17078char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017079/* The GNU C library defines this for functions which it implements
17080 to always fail with ENOSYS. Some functions are actually named
17081 something starting with __ and the normal name is an alias. */
17082#if defined (__stub_dlopen) || defined (__stub___dlopen)
17083choke me
17084#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017085char (*f) () = dlopen;
17086#endif
17087#ifdef __cplusplus
17088}
John Criswell47fdd832003-07-14 16:52:07 +000017089#endif
17090
John Criswell0c38eaf2003-09-10 15:17:25 +000017091int
17092main ()
17093{
17094return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017095 ;
17096 return 0;
17097}
17098_ACEOF
17099rm -f conftest.$ac_objext conftest$ac_exeext
17100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17101 (eval $ac_link) 2>&5
17102 ac_status=$?
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); } &&
17105 { ac_try='test -s conftest$ac_exeext'
17106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17107 (eval $ac_try) 2>&5
17108 ac_status=$?
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); }; }; then
17111 ac_cv_func_dlopen=yes
17112else
17113 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017114sed 's/^/| /' conftest.$ac_ext >&5
17115
John Criswell47fdd832003-07-14 16:52:07 +000017116ac_cv_func_dlopen=no
17117fi
17118rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17119fi
17120echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17121echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17122if test $ac_cv_func_dlopen = yes; then
17123 lt_cv_dlopen="dlopen"
17124else
17125 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17126echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17127if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17128 echo $ECHO_N "(cached) $ECHO_C" >&6
17129else
17130 ac_check_lib_save_LIBS=$LIBS
17131LIBS="-ldl $LIBS"
17132cat >conftest.$ac_ext <<_ACEOF
17133#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017134/* confdefs.h. */
17135_ACEOF
17136cat confdefs.h >>conftest.$ac_ext
17137cat >>conftest.$ac_ext <<_ACEOF
17138/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017139
17140/* Override any gcc2 internal prototype to avoid an error. */
17141#ifdef __cplusplus
17142extern "C"
17143#endif
17144/* We use char because int might match the return type of a gcc2
17145 builtin and then its argument prototype would still apply. */
17146char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017147int
17148main ()
17149{
17150dlopen ();
17151 ;
17152 return 0;
17153}
17154_ACEOF
17155rm -f conftest.$ac_objext conftest$ac_exeext
17156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17157 (eval $ac_link) 2>&5
17158 ac_status=$?
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); } &&
17161 { ac_try='test -s conftest$ac_exeext'
17162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17163 (eval $ac_try) 2>&5
17164 ac_status=$?
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); }; }; then
17167 ac_cv_lib_dl_dlopen=yes
17168else
17169 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017170sed 's/^/| /' conftest.$ac_ext >&5
17171
John Criswell47fdd832003-07-14 16:52:07 +000017172ac_cv_lib_dl_dlopen=no
17173fi
17174rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17175LIBS=$ac_check_lib_save_LIBS
17176fi
17177echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17178echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17179if test $ac_cv_lib_dl_dlopen = yes; then
17180 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17181else
17182 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17183echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17184if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17185 echo $ECHO_N "(cached) $ECHO_C" >&6
17186else
17187 ac_check_lib_save_LIBS=$LIBS
17188LIBS="-lsvld $LIBS"
17189cat >conftest.$ac_ext <<_ACEOF
17190#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017191/* confdefs.h. */
17192_ACEOF
17193cat confdefs.h >>conftest.$ac_ext
17194cat >>conftest.$ac_ext <<_ACEOF
17195/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017196
17197/* Override any gcc2 internal prototype to avoid an error. */
17198#ifdef __cplusplus
17199extern "C"
17200#endif
17201/* We use char because int might match the return type of a gcc2
17202 builtin and then its argument prototype would still apply. */
17203char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017204int
17205main ()
17206{
17207dlopen ();
17208 ;
17209 return 0;
17210}
17211_ACEOF
17212rm -f conftest.$ac_objext conftest$ac_exeext
17213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17214 (eval $ac_link) 2>&5
17215 ac_status=$?
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); } &&
17218 { ac_try='test -s conftest$ac_exeext'
17219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220 (eval $ac_try) 2>&5
17221 ac_status=$?
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); }; }; then
17224 ac_cv_lib_svld_dlopen=yes
17225else
17226 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017227sed 's/^/| /' conftest.$ac_ext >&5
17228
John Criswell47fdd832003-07-14 16:52:07 +000017229ac_cv_lib_svld_dlopen=no
17230fi
17231rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17232LIBS=$ac_check_lib_save_LIBS
17233fi
17234echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17235echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17236if test $ac_cv_lib_svld_dlopen = yes; then
17237 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17238else
17239 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17240echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17241if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17242 echo $ECHO_N "(cached) $ECHO_C" >&6
17243else
17244 ac_check_lib_save_LIBS=$LIBS
17245LIBS="-ldld $LIBS"
17246cat >conftest.$ac_ext <<_ACEOF
17247#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017248/* confdefs.h. */
17249_ACEOF
17250cat confdefs.h >>conftest.$ac_ext
17251cat >>conftest.$ac_ext <<_ACEOF
17252/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017253
17254/* Override any gcc2 internal prototype to avoid an error. */
17255#ifdef __cplusplus
17256extern "C"
17257#endif
17258/* We use char because int might match the return type of a gcc2
17259 builtin and then its argument prototype would still apply. */
17260char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017261int
17262main ()
17263{
17264dld_link ();
17265 ;
17266 return 0;
17267}
17268_ACEOF
17269rm -f conftest.$ac_objext conftest$ac_exeext
17270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17271 (eval $ac_link) 2>&5
17272 ac_status=$?
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); } &&
17275 { ac_try='test -s conftest$ac_exeext'
17276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17277 (eval $ac_try) 2>&5
17278 ac_status=$?
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); }; }; then
17281 ac_cv_lib_dld_dld_link=yes
17282else
17283 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017284sed 's/^/| /' conftest.$ac_ext >&5
17285
John Criswell47fdd832003-07-14 16:52:07 +000017286ac_cv_lib_dld_dld_link=no
17287fi
17288rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17289LIBS=$ac_check_lib_save_LIBS
17290fi
17291echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17292echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17293if test $ac_cv_lib_dld_dld_link = yes; then
17294 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17295fi
17296
17297
17298fi
17299
17300
17301fi
17302
17303
17304fi
17305
17306
17307fi
17308
17309
17310fi
17311
17312 ;;
17313 esac
17314
17315 if test "x$lt_cv_dlopen" != xno; then
17316 enable_dlopen=yes
17317 else
17318 enable_dlopen=no
17319 fi
17320
17321 case $lt_cv_dlopen in
17322 dlopen)
17323 save_CPPFLAGS="$CPPFLAGS"
17324 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17325
17326 save_LDFLAGS="$LDFLAGS"
17327 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17328
17329 save_LIBS="$LIBS"
17330 LIBS="$lt_cv_dlopen_libs $LIBS"
17331
17332 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17333echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17334if test "${lt_cv_dlopen_self+set}" = set; then
17335 echo $ECHO_N "(cached) $ECHO_C" >&6
17336else
17337 if test "$cross_compiling" = yes; then :
17338 lt_cv_dlopen_self=cross
17339else
17340 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17341 lt_status=$lt_dlunknown
17342 cat > conftest.$ac_ext <<EOF
John Criswell67181ca2003-09-26 14:53:17 +000017343#line 17343 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017344#include "confdefs.h"
17345
17346#if HAVE_DLFCN_H
17347#include <dlfcn.h>
17348#endif
17349
17350#include <stdio.h>
17351
17352#ifdef RTLD_GLOBAL
17353# define LT_DLGLOBAL RTLD_GLOBAL
17354#else
17355# ifdef DL_GLOBAL
17356# define LT_DLGLOBAL DL_GLOBAL
17357# else
17358# define LT_DLGLOBAL 0
17359# endif
17360#endif
17361
17362/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17363 find out it does not work in some platform. */
17364#ifndef LT_DLLAZY_OR_NOW
17365# ifdef RTLD_LAZY
17366# define LT_DLLAZY_OR_NOW RTLD_LAZY
17367# else
17368# ifdef DL_LAZY
17369# define LT_DLLAZY_OR_NOW DL_LAZY
17370# else
17371# ifdef RTLD_NOW
17372# define LT_DLLAZY_OR_NOW RTLD_NOW
17373# else
17374# ifdef DL_NOW
17375# define LT_DLLAZY_OR_NOW DL_NOW
17376# else
17377# define LT_DLLAZY_OR_NOW 0
17378# endif
17379# endif
17380# endif
17381# endif
17382#endif
17383
17384#ifdef __cplusplus
17385extern "C" void exit (int);
17386#endif
17387
17388void fnord() { int i=42;}
17389int main ()
17390{
17391 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17392 int status = $lt_dlunknown;
17393
17394 if (self)
17395 {
17396 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17397 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17398 /* dlclose (self); */
17399 }
17400
17401 exit (status);
17402}
17403EOF
17404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17405 (eval $ac_link) 2>&5
17406 ac_status=$?
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17409 (./conftest; exit; ) 2>/dev/null
17410 lt_status=$?
17411 case x$lt_status in
17412 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17413 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17414 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17415 esac
17416 else :
17417 # compilation failed
17418 lt_cv_dlopen_self=no
17419 fi
17420fi
17421rm -fr conftest*
17422
17423
17424fi
17425echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17426echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17427
17428 if test "x$lt_cv_dlopen_self" = xyes; then
17429 LDFLAGS="$LDFLAGS $link_static_flag"
17430 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17431echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17432if test "${lt_cv_dlopen_self_static+set}" = set; then
17433 echo $ECHO_N "(cached) $ECHO_C" >&6
17434else
17435 if test "$cross_compiling" = yes; then :
17436 lt_cv_dlopen_self_static=cross
17437else
17438 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17439 lt_status=$lt_dlunknown
17440 cat > conftest.$ac_ext <<EOF
John Criswell67181ca2003-09-26 14:53:17 +000017441#line 17441 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017442#include "confdefs.h"
17443
17444#if HAVE_DLFCN_H
17445#include <dlfcn.h>
17446#endif
17447
17448#include <stdio.h>
17449
17450#ifdef RTLD_GLOBAL
17451# define LT_DLGLOBAL RTLD_GLOBAL
17452#else
17453# ifdef DL_GLOBAL
17454# define LT_DLGLOBAL DL_GLOBAL
17455# else
17456# define LT_DLGLOBAL 0
17457# endif
17458#endif
17459
17460/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17461 find out it does not work in some platform. */
17462#ifndef LT_DLLAZY_OR_NOW
17463# ifdef RTLD_LAZY
17464# define LT_DLLAZY_OR_NOW RTLD_LAZY
17465# else
17466# ifdef DL_LAZY
17467# define LT_DLLAZY_OR_NOW DL_LAZY
17468# else
17469# ifdef RTLD_NOW
17470# define LT_DLLAZY_OR_NOW RTLD_NOW
17471# else
17472# ifdef DL_NOW
17473# define LT_DLLAZY_OR_NOW DL_NOW
17474# else
17475# define LT_DLLAZY_OR_NOW 0
17476# endif
17477# endif
17478# endif
17479# endif
17480#endif
17481
17482#ifdef __cplusplus
17483extern "C" void exit (int);
17484#endif
17485
17486void fnord() { int i=42;}
17487int main ()
17488{
17489 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17490 int status = $lt_dlunknown;
17491
17492 if (self)
17493 {
17494 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17495 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17496 /* dlclose (self); */
17497 }
17498
17499 exit (status);
17500}
17501EOF
17502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17503 (eval $ac_link) 2>&5
17504 ac_status=$?
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17507 (./conftest; exit; ) 2>/dev/null
17508 lt_status=$?
17509 case x$lt_status in
17510 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17511 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17512 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17513 esac
17514 else :
17515 # compilation failed
17516 lt_cv_dlopen_self_static=no
17517 fi
17518fi
17519rm -fr conftest*
17520
17521
17522fi
17523echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17524echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17525 fi
17526
17527 CPPFLAGS="$save_CPPFLAGS"
17528 LDFLAGS="$save_LDFLAGS"
17529 LIBS="$save_LIBS"
17530 ;;
17531 esac
17532
17533 case $lt_cv_dlopen_self in
17534 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17535 *) enable_dlopen_self=unknown ;;
17536 esac
17537
17538 case $lt_cv_dlopen_self_static in
17539 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17540 *) enable_dlopen_self_static=unknown ;;
17541 esac
17542fi
17543
17544
17545# The else clause should only fire when bootstrapping the
17546# libtool distribution, otherwise you forgot to ship ltmain.sh
17547# with your package, and you will get complaints that there are
17548# no rules to generate ltmain.sh.
17549if test -f "$ltmain"; then
17550 # See if we are running on zsh, and set the options which allow our commands through
17551 # without removal of \ escapes.
17552 if test -n "${ZSH_VERSION+set}" ; then
17553 setopt NO_GLOB_SUBST
17554 fi
17555 # Now quote all the things that may contain metacharacters while being
17556 # careful not to overquote the AC_SUBSTed values. We take copies of the
17557 # variables and quote the copies for generation of the libtool script.
17558 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17559 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17560 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17561 deplibs_check_method reload_flag reload_cmds need_locks \
17562 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17563 lt_cv_sys_global_symbol_to_c_name_address \
17564 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17565 old_postinstall_cmds old_postuninstall_cmds \
17566 compiler_GCJ \
17567 CC_GCJ \
17568 LD_GCJ \
17569 lt_prog_compiler_wl_GCJ \
17570 lt_prog_compiler_pic_GCJ \
17571 lt_prog_compiler_static_GCJ \
17572 lt_prog_compiler_no_builtin_flag_GCJ \
17573 export_dynamic_flag_spec_GCJ \
17574 thread_safe_flag_spec_GCJ \
17575 whole_archive_flag_spec_GCJ \
17576 enable_shared_with_static_runtimes_GCJ \
17577 old_archive_cmds_GCJ \
17578 old_archive_from_new_cmds_GCJ \
17579 predep_objects_GCJ \
17580 postdep_objects_GCJ \
17581 predeps_GCJ \
17582 postdeps_GCJ \
17583 compiler_lib_search_path_GCJ \
17584 archive_cmds_GCJ \
17585 archive_expsym_cmds_GCJ \
17586 postinstall_cmds_GCJ \
17587 postuninstall_cmds_GCJ \
17588 old_archive_from_expsyms_cmds_GCJ \
17589 allow_undefined_flag_GCJ \
17590 no_undefined_flag_GCJ \
17591 export_symbols_cmds_GCJ \
17592 hardcode_libdir_flag_spec_GCJ \
17593 hardcode_libdir_flag_spec_ld_GCJ \
17594 hardcode_libdir_separator_GCJ \
17595 hardcode_automatic_GCJ \
17596 module_cmds_GCJ \
17597 module_expsym_cmds_GCJ \
17598 lt_cv_prog_compiler_c_o_GCJ \
17599 exclude_expsyms_GCJ \
17600 include_expsyms_GCJ; do
17601
17602 case $var in
17603 old_archive_cmds_GCJ | \
17604 old_archive_from_new_cmds_GCJ | \
17605 archive_cmds_GCJ | \
17606 archive_expsym_cmds_GCJ | \
17607 module_cmds_GCJ | \
17608 module_expsym_cmds_GCJ | \
17609 old_archive_from_expsyms_cmds_GCJ | \
17610 export_symbols_cmds_GCJ | \
17611 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17612 postinstall_cmds | postuninstall_cmds | \
17613 old_postinstall_cmds | old_postuninstall_cmds | \
17614 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17615 # Double-quote double-evaled strings.
17616 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17617 ;;
17618 *)
17619 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17620 ;;
17621 esac
17622 done
17623
17624 case $lt_echo in
17625 *'\$0 --fallback-echo"')
17626 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17627 ;;
17628 esac
17629
17630cfgfile="$ofile"
17631
17632 cat <<__EOF__ >> "$cfgfile"
17633# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17634
17635# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17636
17637# Shell to use when invoking shell scripts.
17638SHELL=$lt_SHELL
17639
17640# Whether or not to build shared libraries.
17641build_libtool_libs=$enable_shared
17642
17643# Whether or not to build static libraries.
17644build_old_libs=$enable_static
17645
17646# Whether or not to add -lc for building shared libraries.
17647build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17648
17649# Whether or not to disallow shared libs when runtime libs are static
17650allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17651
17652# Whether or not to optimize for fast installation.
17653fast_install=$enable_fast_install
17654
17655# The host system.
17656host_alias=$host_alias
17657host=$host
17658
17659# An echo program that does not interpret backslashes.
17660echo=$lt_echo
17661
17662# The archiver.
17663AR=$lt_AR
17664AR_FLAGS=$lt_AR_FLAGS
17665
17666# A C compiler.
17667LTCC=$lt_LTCC
17668
17669# A language-specific compiler.
17670CC=$lt_compiler_GCJ
17671
17672# Is the compiler the GNU C compiler?
17673with_gcc=$GCC_GCJ
17674
17675# An ERE matcher.
17676EGREP=$lt_EGREP
17677
17678# The linker used to build libraries.
17679LD=$lt_LD_GCJ
17680
17681# Whether we need hard or soft links.
17682LN_S=$lt_LN_S
17683
17684# A BSD-compatible nm program.
17685NM=$lt_NM
17686
17687# A symbol stripping program
17688STRIP=$STRIP
17689
17690# Used to examine libraries when file_magic_cmd begins "file"
17691MAGIC_CMD=$MAGIC_CMD
17692
17693# Used on cygwin: DLL creation program.
17694DLLTOOL="$DLLTOOL"
17695
17696# Used on cygwin: object dumper.
17697OBJDUMP="$OBJDUMP"
17698
17699# Used on cygwin: assembler.
17700AS="$AS"
17701
17702# The name of the directory that contains temporary libtool files.
17703objdir=$objdir
17704
17705# How to create reloadable object files.
17706reload_flag=$lt_reload_flag
17707reload_cmds=$lt_reload_cmds
17708
17709# How to pass a linker flag through the compiler.
17710wl=$lt_lt_prog_compiler_wl_GCJ
17711
17712# Object file suffix (normally "o").
17713objext="$ac_objext"
17714
17715# Old archive suffix (normally "a").
17716libext="$libext"
17717
17718# Shared library suffix (normally ".so").
17719shrext='$shrext'
17720
17721# Executable file suffix (normally "").
17722exeext="$exeext"
17723
17724# Additional compiler flags for building library objects.
17725pic_flag=$lt_lt_prog_compiler_pic_GCJ
17726pic_mode=$pic_mode
17727
17728# What is the maximum length of a command?
17729max_cmd_len=$lt_cv_sys_max_cmd_len
17730
17731# Does compiler simultaneously support -c and -o options?
17732compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17733
17734# Must we lock files when doing compilation ?
17735need_locks=$lt_need_locks
17736
17737# Do we need the lib prefix for modules?
17738need_lib_prefix=$need_lib_prefix
17739
17740# Do we need a version for libraries?
17741need_version=$need_version
17742
17743# Whether dlopen is supported.
17744dlopen_support=$enable_dlopen
17745
17746# Whether dlopen of programs is supported.
17747dlopen_self=$enable_dlopen_self
17748
17749# Whether dlopen of statically linked programs is supported.
17750dlopen_self_static=$enable_dlopen_self_static
17751
17752# Compiler flag to prevent dynamic linking.
17753link_static_flag=$lt_lt_prog_compiler_static_GCJ
17754
17755# Compiler flag to turn off builtin functions.
17756no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17757
17758# Compiler flag to allow reflexive dlopens.
17759export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17760
17761# Compiler flag to generate shared objects directly from archives.
17762whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17763
17764# Compiler flag to generate thread-safe objects.
17765thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17766
17767# Library versioning type.
17768version_type=$version_type
17769
17770# Format of library name prefix.
17771libname_spec=$lt_libname_spec
17772
17773# List of archive names. First name is the real one, the rest are links.
17774# The last name is the one that the linker finds with -lNAME.
17775library_names_spec=$lt_library_names_spec
17776
17777# The coded name of the library, if different from the real name.
17778soname_spec=$lt_soname_spec
17779
17780# Commands used to build and install an old-style archive.
17781RANLIB=$lt_RANLIB
17782old_archive_cmds=$lt_old_archive_cmds_GCJ
17783old_postinstall_cmds=$lt_old_postinstall_cmds
17784old_postuninstall_cmds=$lt_old_postuninstall_cmds
17785
17786# Create an old-style archive from a shared archive.
17787old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17788
17789# Create a temporary old-style archive to link instead of a shared archive.
17790old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17791
17792# Commands used to build and install a shared archive.
17793archive_cmds=$lt_archive_cmds_GCJ
17794archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17795postinstall_cmds=$lt_postinstall_cmds
17796postuninstall_cmds=$lt_postuninstall_cmds
17797
17798# Commands used to build a loadable module (assumed same as above if empty)
17799module_cmds=$lt_module_cmds_GCJ
17800module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17801
17802# Commands to strip libraries.
17803old_striplib=$lt_old_striplib
17804striplib=$lt_striplib
17805
17806# Dependencies to place before the objects being linked to create a
17807# shared library.
17808predep_objects=$lt_predep_objects_GCJ
17809
17810# Dependencies to place after the objects being linked to create a
17811# shared library.
17812postdep_objects=$lt_postdep_objects_GCJ
17813
17814# Dependencies to place before the objects being linked to create a
17815# shared library.
17816predeps=$lt_predeps_GCJ
17817
17818# Dependencies to place after the objects being linked to create a
17819# shared library.
17820postdeps=$lt_postdeps_GCJ
17821
17822# The library search path used internally by the compiler when linking
17823# a shared library.
17824compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17825
17826# Method to check whether dependent libraries are shared objects.
17827deplibs_check_method=$lt_deplibs_check_method
17828
17829# Command to use when deplibs_check_method == file_magic.
17830file_magic_cmd=$lt_file_magic_cmd
17831
17832# Flag that allows shared libraries with undefined symbols to be built.
17833allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17834
17835# Flag that forces no undefined symbols.
17836no_undefined_flag=$lt_no_undefined_flag_GCJ
17837
17838# Commands used to finish a libtool library installation in a directory.
17839finish_cmds=$lt_finish_cmds
17840
17841# Same as above, but a single script fragment to be evaled but not shown.
17842finish_eval=$lt_finish_eval
17843
17844# Take the output of nm and produce a listing of raw symbols and C names.
17845global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17846
17847# Transform the output of nm in a proper C declaration
17848global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17849
17850# Transform the output of nm in a C name address pair
17851global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17852
17853# This is the shared library runtime path variable.
17854runpath_var=$runpath_var
17855
17856# This is the shared library path variable.
17857shlibpath_var=$shlibpath_var
17858
17859# Is shlibpath searched before the hard-coded library search path?
17860shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17861
17862# How to hardcode a shared library path into an executable.
17863hardcode_action=$hardcode_action_GCJ
17864
17865# Whether we should hardcode library paths into libraries.
17866hardcode_into_libs=$hardcode_into_libs
17867
17868# Flag to hardcode \$libdir into a binary during linking.
17869# This must work even if \$libdir does not exist.
17870hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17871
17872# If ld is used when linking, flag to hardcode \$libdir into
17873# a binary during linking. This must work even if \$libdir does
17874# not exist.
17875hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17876
17877# Whether we need a single -rpath flag with a separated argument.
17878hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17879
17880# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17881# resulting binary.
17882hardcode_direct=$hardcode_direct_GCJ
17883
17884# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17885# resulting binary.
17886hardcode_minus_L=$hardcode_minus_L_GCJ
17887
17888# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17889# the resulting binary.
17890hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17891
17892# Set to yes if building a shared library automatically hardcodes DIR into the library
17893# and all subsequent libraries and executables linked against it.
17894hardcode_automatic=$hardcode_automatic_GCJ
17895
17896# Variables whose values should be saved in libtool wrapper scripts and
17897# restored at relink time.
17898variables_saved_for_relink="$variables_saved_for_relink"
17899
17900# Whether libtool must link a program against all its dependency libraries.
17901link_all_deplibs=$link_all_deplibs_GCJ
17902
17903# Compile-time system search path for libraries
17904sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17905
17906# Run-time system search path for libraries
17907sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17908
17909# Fix the shell variable \$srcfile for the compiler.
17910fix_srcfile_path="$fix_srcfile_path_GCJ"
17911
17912# Set to yes if exported symbols are required.
17913always_export_symbols=$always_export_symbols_GCJ
17914
17915# The commands to list exported symbols.
17916export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17917
17918# The commands to extract the exported symbol list from a shared archive.
17919extract_expsyms_cmds=$lt_extract_expsyms_cmds
17920
17921# Symbols that should not be listed in the preloaded symbols.
17922exclude_expsyms=$lt_exclude_expsyms_GCJ
17923
17924# Symbols that must always be exported.
17925include_expsyms=$lt_include_expsyms_GCJ
17926
17927# ### END LIBTOOL TAG CONFIG: $tagname
17928
17929__EOF__
17930
17931
17932else
17933 # If there is no Makefile yet, we rely on a make rule to execute
17934 # `config.status --recheck' to rerun these tests and create the
17935 # libtool script then.
17936 test -f Makefile && make "$ltmain"
17937fi
17938
17939
17940ac_ext=c
17941ac_cpp='$CPP $CPPFLAGS'
17942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17944ac_compiler_gnu=$ac_cv_c_compiler_gnu
17945
17946CC="$lt_save_CC"
17947
17948 else
17949 tagname=""
17950 fi
17951 ;;
17952
17953 RC)
17954
17955
17956
17957# Source file extension for RC test sources.
17958ac_ext=rc
17959
17960# Object file extension for compiled RC test sources.
17961objext=o
17962objext_RC=$objext
17963
17964# Code to be used in simple compile tests
17965lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17966
17967# Code to be used in simple link tests
17968lt_simple_link_test_code="$lt_simple_compile_test_code"
17969
17970# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17971
17972# If no C compiler was specified, use CC.
17973LTCC=${LTCC-"$CC"}
17974
17975# Allow CC to be a program name with arguments.
17976compiler=$CC
17977
17978
17979# Allow CC to be a program name with arguments.
17980lt_save_CC="$CC"
17981CC=${RC-"windres"}
17982compiler=$CC
17983compiler_RC=$CC
17984lt_cv_prog_compiler_c_o_RC=yes
17985
17986# The else clause should only fire when bootstrapping the
17987# libtool distribution, otherwise you forgot to ship ltmain.sh
17988# with your package, and you will get complaints that there are
17989# no rules to generate ltmain.sh.
17990if test -f "$ltmain"; then
17991 # See if we are running on zsh, and set the options which allow our commands through
17992 # without removal of \ escapes.
17993 if test -n "${ZSH_VERSION+set}" ; then
17994 setopt NO_GLOB_SUBST
17995 fi
17996 # Now quote all the things that may contain metacharacters while being
17997 # careful not to overquote the AC_SUBSTed values. We take copies of the
17998 # variables and quote the copies for generation of the libtool script.
17999 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18000 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18001 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18002 deplibs_check_method reload_flag reload_cmds need_locks \
18003 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18004 lt_cv_sys_global_symbol_to_c_name_address \
18005 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18006 old_postinstall_cmds old_postuninstall_cmds \
18007 compiler_RC \
18008 CC_RC \
18009 LD_RC \
18010 lt_prog_compiler_wl_RC \
18011 lt_prog_compiler_pic_RC \
18012 lt_prog_compiler_static_RC \
18013 lt_prog_compiler_no_builtin_flag_RC \
18014 export_dynamic_flag_spec_RC \
18015 thread_safe_flag_spec_RC \
18016 whole_archive_flag_spec_RC \
18017 enable_shared_with_static_runtimes_RC \
18018 old_archive_cmds_RC \
18019 old_archive_from_new_cmds_RC \
18020 predep_objects_RC \
18021 postdep_objects_RC \
18022 predeps_RC \
18023 postdeps_RC \
18024 compiler_lib_search_path_RC \
18025 archive_cmds_RC \
18026 archive_expsym_cmds_RC \
18027 postinstall_cmds_RC \
18028 postuninstall_cmds_RC \
18029 old_archive_from_expsyms_cmds_RC \
18030 allow_undefined_flag_RC \
18031 no_undefined_flag_RC \
18032 export_symbols_cmds_RC \
18033 hardcode_libdir_flag_spec_RC \
18034 hardcode_libdir_flag_spec_ld_RC \
18035 hardcode_libdir_separator_RC \
18036 hardcode_automatic_RC \
18037 module_cmds_RC \
18038 module_expsym_cmds_RC \
18039 lt_cv_prog_compiler_c_o_RC \
18040 exclude_expsyms_RC \
18041 include_expsyms_RC; do
18042
18043 case $var in
18044 old_archive_cmds_RC | \
18045 old_archive_from_new_cmds_RC | \
18046 archive_cmds_RC | \
18047 archive_expsym_cmds_RC | \
18048 module_cmds_RC | \
18049 module_expsym_cmds_RC | \
18050 old_archive_from_expsyms_cmds_RC | \
18051 export_symbols_cmds_RC | \
18052 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18053 postinstall_cmds | postuninstall_cmds | \
18054 old_postinstall_cmds | old_postuninstall_cmds | \
18055 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18056 # Double-quote double-evaled strings.
18057 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18058 ;;
18059 *)
18060 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18061 ;;
18062 esac
18063 done
18064
18065 case $lt_echo in
18066 *'\$0 --fallback-echo"')
18067 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18068 ;;
18069 esac
18070
18071cfgfile="$ofile"
18072
18073 cat <<__EOF__ >> "$cfgfile"
18074# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18075
18076# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18077
18078# Shell to use when invoking shell scripts.
18079SHELL=$lt_SHELL
18080
18081# Whether or not to build shared libraries.
18082build_libtool_libs=$enable_shared
18083
18084# Whether or not to build static libraries.
18085build_old_libs=$enable_static
18086
18087# Whether or not to add -lc for building shared libraries.
18088build_libtool_need_lc=$archive_cmds_need_lc_RC
18089
18090# Whether or not to disallow shared libs when runtime libs are static
18091allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18092
18093# Whether or not to optimize for fast installation.
18094fast_install=$enable_fast_install
18095
18096# The host system.
18097host_alias=$host_alias
18098host=$host
18099
18100# An echo program that does not interpret backslashes.
18101echo=$lt_echo
18102
18103# The archiver.
18104AR=$lt_AR
18105AR_FLAGS=$lt_AR_FLAGS
18106
18107# A C compiler.
18108LTCC=$lt_LTCC
18109
18110# A language-specific compiler.
18111CC=$lt_compiler_RC
18112
18113# Is the compiler the GNU C compiler?
18114with_gcc=$GCC_RC
18115
18116# An ERE matcher.
18117EGREP=$lt_EGREP
18118
18119# The linker used to build libraries.
18120LD=$lt_LD_RC
18121
18122# Whether we need hard or soft links.
18123LN_S=$lt_LN_S
18124
18125# A BSD-compatible nm program.
18126NM=$lt_NM
18127
18128# A symbol stripping program
18129STRIP=$STRIP
18130
18131# Used to examine libraries when file_magic_cmd begins "file"
18132MAGIC_CMD=$MAGIC_CMD
18133
18134# Used on cygwin: DLL creation program.
18135DLLTOOL="$DLLTOOL"
18136
18137# Used on cygwin: object dumper.
18138OBJDUMP="$OBJDUMP"
18139
18140# Used on cygwin: assembler.
18141AS="$AS"
18142
18143# The name of the directory that contains temporary libtool files.
18144objdir=$objdir
18145
18146# How to create reloadable object files.
18147reload_flag=$lt_reload_flag
18148reload_cmds=$lt_reload_cmds
18149
18150# How to pass a linker flag through the compiler.
18151wl=$lt_lt_prog_compiler_wl_RC
18152
18153# Object file suffix (normally "o").
18154objext="$ac_objext"
18155
18156# Old archive suffix (normally "a").
18157libext="$libext"
18158
18159# Shared library suffix (normally ".so").
18160shrext='$shrext'
18161
18162# Executable file suffix (normally "").
18163exeext="$exeext"
18164
18165# Additional compiler flags for building library objects.
18166pic_flag=$lt_lt_prog_compiler_pic_RC
18167pic_mode=$pic_mode
18168
18169# What is the maximum length of a command?
18170max_cmd_len=$lt_cv_sys_max_cmd_len
18171
18172# Does compiler simultaneously support -c and -o options?
18173compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18174
18175# Must we lock files when doing compilation ?
18176need_locks=$lt_need_locks
18177
18178# Do we need the lib prefix for modules?
18179need_lib_prefix=$need_lib_prefix
18180
18181# Do we need a version for libraries?
18182need_version=$need_version
18183
18184# Whether dlopen is supported.
18185dlopen_support=$enable_dlopen
18186
18187# Whether dlopen of programs is supported.
18188dlopen_self=$enable_dlopen_self
18189
18190# Whether dlopen of statically linked programs is supported.
18191dlopen_self_static=$enable_dlopen_self_static
18192
18193# Compiler flag to prevent dynamic linking.
18194link_static_flag=$lt_lt_prog_compiler_static_RC
18195
18196# Compiler flag to turn off builtin functions.
18197no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18198
18199# Compiler flag to allow reflexive dlopens.
18200export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18201
18202# Compiler flag to generate shared objects directly from archives.
18203whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18204
18205# Compiler flag to generate thread-safe objects.
18206thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18207
18208# Library versioning type.
18209version_type=$version_type
18210
18211# Format of library name prefix.
18212libname_spec=$lt_libname_spec
18213
18214# List of archive names. First name is the real one, the rest are links.
18215# The last name is the one that the linker finds with -lNAME.
18216library_names_spec=$lt_library_names_spec
18217
18218# The coded name of the library, if different from the real name.
18219soname_spec=$lt_soname_spec
18220
18221# Commands used to build and install an old-style archive.
18222RANLIB=$lt_RANLIB
18223old_archive_cmds=$lt_old_archive_cmds_RC
18224old_postinstall_cmds=$lt_old_postinstall_cmds
18225old_postuninstall_cmds=$lt_old_postuninstall_cmds
18226
18227# Create an old-style archive from a shared archive.
18228old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18229
18230# Create a temporary old-style archive to link instead of a shared archive.
18231old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18232
18233# Commands used to build and install a shared archive.
18234archive_cmds=$lt_archive_cmds_RC
18235archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18236postinstall_cmds=$lt_postinstall_cmds
18237postuninstall_cmds=$lt_postuninstall_cmds
18238
18239# Commands used to build a loadable module (assumed same as above if empty)
18240module_cmds=$lt_module_cmds_RC
18241module_expsym_cmds=$lt_module_expsym_cmds_RC
18242
18243# Commands to strip libraries.
18244old_striplib=$lt_old_striplib
18245striplib=$lt_striplib
18246
18247# Dependencies to place before the objects being linked to create a
18248# shared library.
18249predep_objects=$lt_predep_objects_RC
18250
18251# Dependencies to place after the objects being linked to create a
18252# shared library.
18253postdep_objects=$lt_postdep_objects_RC
18254
18255# Dependencies to place before the objects being linked to create a
18256# shared library.
18257predeps=$lt_predeps_RC
18258
18259# Dependencies to place after the objects being linked to create a
18260# shared library.
18261postdeps=$lt_postdeps_RC
18262
18263# The library search path used internally by the compiler when linking
18264# a shared library.
18265compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18266
18267# Method to check whether dependent libraries are shared objects.
18268deplibs_check_method=$lt_deplibs_check_method
18269
18270# Command to use when deplibs_check_method == file_magic.
18271file_magic_cmd=$lt_file_magic_cmd
18272
18273# Flag that allows shared libraries with undefined symbols to be built.
18274allow_undefined_flag=$lt_allow_undefined_flag_RC
18275
18276# Flag that forces no undefined symbols.
18277no_undefined_flag=$lt_no_undefined_flag_RC
18278
18279# Commands used to finish a libtool library installation in a directory.
18280finish_cmds=$lt_finish_cmds
18281
18282# Same as above, but a single script fragment to be evaled but not shown.
18283finish_eval=$lt_finish_eval
18284
18285# Take the output of nm and produce a listing of raw symbols and C names.
18286global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18287
18288# Transform the output of nm in a proper C declaration
18289global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18290
18291# Transform the output of nm in a C name address pair
18292global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18293
18294# This is the shared library runtime path variable.
18295runpath_var=$runpath_var
18296
18297# This is the shared library path variable.
18298shlibpath_var=$shlibpath_var
18299
18300# Is shlibpath searched before the hard-coded library search path?
18301shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18302
18303# How to hardcode a shared library path into an executable.
18304hardcode_action=$hardcode_action_RC
18305
18306# Whether we should hardcode library paths into libraries.
18307hardcode_into_libs=$hardcode_into_libs
18308
18309# Flag to hardcode \$libdir into a binary during linking.
18310# This must work even if \$libdir does not exist.
18311hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18312
18313# If ld is used when linking, flag to hardcode \$libdir into
18314# a binary during linking. This must work even if \$libdir does
18315# not exist.
18316hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18317
18318# Whether we need a single -rpath flag with a separated argument.
18319hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18320
18321# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18322# resulting binary.
18323hardcode_direct=$hardcode_direct_RC
18324
18325# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18326# resulting binary.
18327hardcode_minus_L=$hardcode_minus_L_RC
18328
18329# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18330# the resulting binary.
18331hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18332
18333# Set to yes if building a shared library automatically hardcodes DIR into the library
18334# and all subsequent libraries and executables linked against it.
18335hardcode_automatic=$hardcode_automatic_RC
18336
18337# Variables whose values should be saved in libtool wrapper scripts and
18338# restored at relink time.
18339variables_saved_for_relink="$variables_saved_for_relink"
18340
18341# Whether libtool must link a program against all its dependency libraries.
18342link_all_deplibs=$link_all_deplibs_RC
18343
18344# Compile-time system search path for libraries
18345sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18346
18347# Run-time system search path for libraries
18348sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18349
18350# Fix the shell variable \$srcfile for the compiler.
18351fix_srcfile_path="$fix_srcfile_path_RC"
18352
18353# Set to yes if exported symbols are required.
18354always_export_symbols=$always_export_symbols_RC
18355
18356# The commands to list exported symbols.
18357export_symbols_cmds=$lt_export_symbols_cmds_RC
18358
18359# The commands to extract the exported symbol list from a shared archive.
18360extract_expsyms_cmds=$lt_extract_expsyms_cmds
18361
18362# Symbols that should not be listed in the preloaded symbols.
18363exclude_expsyms=$lt_exclude_expsyms_RC
18364
18365# Symbols that must always be exported.
18366include_expsyms=$lt_include_expsyms_RC
18367
18368# ### END LIBTOOL TAG CONFIG: $tagname
18369
18370__EOF__
18371
18372
18373else
18374 # If there is no Makefile yet, we rely on a make rule to execute
18375 # `config.status --recheck' to rerun these tests and create the
18376 # libtool script then.
18377 test -f Makefile && make "$ltmain"
18378fi
18379
18380
18381ac_ext=c
18382ac_cpp='$CPP $CPPFLAGS'
18383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18385ac_compiler_gnu=$ac_cv_c_compiler_gnu
18386
18387CC="$lt_save_CC"
18388
18389 ;;
18390
18391 *)
18392 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18393echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18394 { (exit 1); exit 1; }; }
18395 ;;
18396 esac
18397
18398 # Append the new tag name to the list of available tags.
18399 if test -n "$tagname" ; then
18400 available_tags="$available_tags $tagname"
18401 fi
18402 fi
18403 done
18404 IFS="$lt_save_ifs"
18405
18406 # Now substitute the updated list of available tags.
18407 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18408 mv "${ofile}T" "$ofile"
18409 chmod +x "$ofile"
18410 else
18411 rm -f "${ofile}T"
18412 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18413echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18414 { (exit 1); exit 1; }; }
18415 fi
18416fi
John Criswell7a73b802003-06-30 21:59:07 +000018417
18418
18419
18420# This can be used to rebuild libtool when needed
18421LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18422
18423# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018424LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018425
18426# Prevent multiple expansion
18427
18428
18429
John Criswell47fdd832003-07-14 16:52:07 +000018430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
John Criswellde00db22003-08-25 16:49:54 +000018448# Extract the first word of "pwd", so it can be a program name with args.
18449set dummy pwd; ac_word=$2
18450echo "$as_me:$LINENO: checking for $ac_word" >&5
18451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18452if test "${ac_cv_path_RPWD+set}" = set; then
18453 echo $ECHO_N "(cached) $ECHO_C" >&6
18454else
18455 case $RPWD in
18456 [\\/]* | ?:[\\/]*)
18457 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18458 ;;
18459 *)
18460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18461for as_dir in $PATH
18462do
18463 IFS=$as_save_IFS
18464 test -z "$as_dir" && as_dir=.
18465 for ac_exec_ext in '' $ac_executable_extensions; do
18466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18467 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18469 break 2
18470 fi
18471done
18472done
18473
John Criswell39827c82003-09-23 15:28:52 +000018474 test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
John Criswellde00db22003-08-25 16:49:54 +000018475 ;;
18476esac
18477fi
18478RPWD=$ac_cv_path_RPWD
18479
18480if test -n "$RPWD"; then
18481 echo "$as_me:$LINENO: result: $RPWD" >&5
18482echo "${ECHO_T}$RPWD" >&6
18483else
18484 echo "$as_me:$LINENO: result: no" >&5
18485echo "${ECHO_T}no" >&6
18486fi
18487
John Criswell39827c82003-09-23 15:28:52 +000018488if test ${RPWD} = "false"
18489then
18490 { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18491echo "$as_me: error: pwd required but not found" >&2;}
18492 { (exit 1); exit 1; }; }
18493fi
18494
John Criswell7a73b802003-06-30 21:59:07 +000018495# Extract the first word of "ar", so it can be a program name with args.
18496set dummy ar; ac_word=$2
18497echo "$as_me:$LINENO: checking for $ac_word" >&5
18498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18499if test "${ac_cv_path_AR+set}" = set; then
18500 echo $ECHO_N "(cached) $ECHO_C" >&6
18501else
18502 case $AR in
18503 [\\/]* | ?:[\\/]*)
18504 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18505 ;;
18506 *)
18507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18508for as_dir in $PATH
18509do
18510 IFS=$as_save_IFS
18511 test -z "$as_dir" && as_dir=.
18512 for ac_exec_ext in '' $ac_executable_extensions; do
18513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18514 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18516 break 2
18517 fi
18518done
18519done
18520
John Criswell39827c82003-09-23 15:28:52 +000018521 test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018522 ;;
18523esac
18524fi
18525AR=$ac_cv_path_AR
18526
18527if test -n "$AR"; then
18528 echo "$as_me:$LINENO: result: $AR" >&5
18529echo "${ECHO_T}$AR" >&6
18530else
18531 echo "$as_me:$LINENO: result: no" >&5
18532echo "${ECHO_T}no" >&6
18533fi
18534
John Criswell39827c82003-09-23 15:28:52 +000018535if test ${AR} = "false"
18536then
18537 { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18538echo "$as_me: error: ar required but not found" >&2;}
18539 { (exit 1); exit 1; }; }
18540fi
18541
John Criswell7a73b802003-06-30 21:59:07 +000018542# Extract the first word of "sed", so it can be a program name with args.
18543set dummy sed; ac_word=$2
18544echo "$as_me:$LINENO: checking for $ac_word" >&5
18545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18546if test "${ac_cv_path_SED+set}" = set; then
18547 echo $ECHO_N "(cached) $ECHO_C" >&6
18548else
18549 case $SED in
18550 [\\/]* | ?:[\\/]*)
18551 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18552 ;;
18553 *)
18554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18555for as_dir in $PATH
18556do
18557 IFS=$as_save_IFS
18558 test -z "$as_dir" && as_dir=.
18559 for ac_exec_ext in '' $ac_executable_extensions; do
18560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18561 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18563 break 2
18564 fi
18565done
18566done
18567
John Criswell39827c82003-09-23 15:28:52 +000018568 test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
John Criswell7a73b802003-06-30 21:59:07 +000018569 ;;
18570esac
18571fi
18572SED=$ac_cv_path_SED
18573
18574if test -n "$SED"; then
18575 echo "$as_me:$LINENO: result: $SED" >&5
18576echo "${ECHO_T}$SED" >&6
18577else
18578 echo "$as_me:$LINENO: result: no" >&5
18579echo "${ECHO_T}no" >&6
18580fi
18581
John Criswell39827c82003-09-23 15:28:52 +000018582if test ${SED} = "false"
18583then
18584 { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18585echo "$as_me: error: sed required but not found" >&2;}
18586 { (exit 1); exit 1; }; }
18587fi
18588
John Criswell7a73b802003-06-30 21:59:07 +000018589# Extract the first word of "rm", so it can be a program name with args.
18590set dummy rm; ac_word=$2
18591echo "$as_me:$LINENO: checking for $ac_word" >&5
18592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18593if test "${ac_cv_path_RM+set}" = set; then
18594 echo $ECHO_N "(cached) $ECHO_C" >&6
18595else
18596 case $RM in
18597 [\\/]* | ?:[\\/]*)
18598 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18599 ;;
18600 *)
18601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18602for as_dir in $PATH
18603do
18604 IFS=$as_save_IFS
18605 test -z "$as_dir" && as_dir=.
18606 for ac_exec_ext in '' $ac_executable_extensions; do
18607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18608 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18610 break 2
18611 fi
18612done
18613done
18614
John Criswell39827c82003-09-23 15:28:52 +000018615 test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
John Criswell7a73b802003-06-30 21:59:07 +000018616 ;;
18617esac
18618fi
18619RM=$ac_cv_path_RM
18620
18621if test -n "$RM"; then
18622 echo "$as_me:$LINENO: result: $RM" >&5
18623echo "${ECHO_T}$RM" >&6
18624else
18625 echo "$as_me:$LINENO: result: no" >&5
18626echo "${ECHO_T}no" >&6
18627fi
18628
John Criswell39827c82003-09-23 15:28:52 +000018629if test ${RM} = "false"
18630then
18631 { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18632echo "$as_me: error: rm required but not found" >&2;}
18633 { (exit 1); exit 1; }; }
18634fi
18635
John Criswell7a73b802003-06-30 21:59:07 +000018636# Extract the first word of "echo", so it can be a program name with args.
18637set dummy echo; ac_word=$2
18638echo "$as_me:$LINENO: checking for $ac_word" >&5
18639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18640if test "${ac_cv_path_ECHO+set}" = set; then
18641 echo $ECHO_N "(cached) $ECHO_C" >&6
18642else
18643 case $ECHO in
18644 [\\/]* | ?:[\\/]*)
18645 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18646 ;;
18647 *)
18648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18649for as_dir in $PATH
18650do
18651 IFS=$as_save_IFS
18652 test -z "$as_dir" && as_dir=.
18653 for ac_exec_ext in '' $ac_executable_extensions; do
18654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18655 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18657 break 2
18658 fi
18659done
18660done
18661
John Criswell39827c82003-09-23 15:28:52 +000018662 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
John Criswell7a73b802003-06-30 21:59:07 +000018663 ;;
18664esac
18665fi
18666ECHO=$ac_cv_path_ECHO
18667
18668if test -n "$ECHO"; then
18669 echo "$as_me:$LINENO: result: $ECHO" >&5
18670echo "${ECHO_T}$ECHO" >&6
18671else
18672 echo "$as_me:$LINENO: result: no" >&5
18673echo "${ECHO_T}no" >&6
18674fi
18675
John Criswell39827c82003-09-23 15:28:52 +000018676if test ${ECHO} = "false"
18677then
18678 { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18679echo "$as_me: error: echo required but not found" >&2;}
18680 { (exit 1); exit 1; }; }
18681fi
18682
John Criswell7a73b802003-06-30 21:59:07 +000018683# Extract the first word of "mkdir", so it can be a program name with args.
18684set dummy mkdir; ac_word=$2
18685echo "$as_me:$LINENO: checking for $ac_word" >&5
18686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18687if test "${ac_cv_path_MKDIR+set}" = set; then
18688 echo $ECHO_N "(cached) $ECHO_C" >&6
18689else
18690 case $MKDIR in
18691 [\\/]* | ?:[\\/]*)
18692 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18693 ;;
18694 *)
18695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18696for as_dir in $PATH
18697do
18698 IFS=$as_save_IFS
18699 test -z "$as_dir" && as_dir=.
18700 for ac_exec_ext in '' $ac_executable_extensions; do
18701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18702 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18704 break 2
18705 fi
18706done
18707done
18708
John Criswell39827c82003-09-23 15:28:52 +000018709 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018710 ;;
18711esac
18712fi
18713MKDIR=$ac_cv_path_MKDIR
18714
18715if test -n "$MKDIR"; then
18716 echo "$as_me:$LINENO: result: $MKDIR" >&5
18717echo "${ECHO_T}$MKDIR" >&6
18718else
18719 echo "$as_me:$LINENO: result: no" >&5
18720echo "${ECHO_T}no" >&6
18721fi
18722
John Criswell39827c82003-09-23 15:28:52 +000018723if test ${MKDIR} = "false"
18724then
18725 { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18726echo "$as_me: error: mkdir required but not found" >&2;}
18727 { (exit 1); exit 1; }; }
18728fi
18729
John Criswell7a73b802003-06-30 21:59:07 +000018730# Extract the first word of "date", so it can be a program name with args.
18731set dummy date; ac_word=$2
18732echo "$as_me:$LINENO: checking for $ac_word" >&5
18733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18734if test "${ac_cv_path_DATE+set}" = set; then
18735 echo $ECHO_N "(cached) $ECHO_C" >&6
18736else
18737 case $DATE in
18738 [\\/]* | ?:[\\/]*)
18739 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18740 ;;
18741 *)
18742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18743for as_dir in $PATH
18744do
18745 IFS=$as_save_IFS
18746 test -z "$as_dir" && as_dir=.
18747 for ac_exec_ext in '' $ac_executable_extensions; do
18748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18749 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18751 break 2
18752 fi
18753done
18754done
18755
John Criswell39827c82003-09-23 15:28:52 +000018756 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
John Criswell7a73b802003-06-30 21:59:07 +000018757 ;;
18758esac
18759fi
18760DATE=$ac_cv_path_DATE
18761
18762if test -n "$DATE"; then
18763 echo "$as_me:$LINENO: result: $DATE" >&5
18764echo "${ECHO_T}$DATE" >&6
18765else
18766 echo "$as_me:$LINENO: result: no" >&5
18767echo "${ECHO_T}no" >&6
18768fi
18769
John Criswell39827c82003-09-23 15:28:52 +000018770if test ${DATE} = "false"
18771then
18772 { { echo "$as_me:$LINENO: error: date required but not found" >&5
18773echo "$as_me: error: date required but not found" >&2;}
18774 { (exit 1); exit 1; }; }
18775fi
18776
John Criswell7a73b802003-06-30 21:59:07 +000018777# Extract the first word of "mv", so it can be a program name with args.
18778set dummy mv; ac_word=$2
18779echo "$as_me:$LINENO: checking for $ac_word" >&5
18780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18781if test "${ac_cv_path_MV+set}" = set; then
18782 echo $ECHO_N "(cached) $ECHO_C" >&6
18783else
18784 case $MV in
18785 [\\/]* | ?:[\\/]*)
18786 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18787 ;;
18788 *)
18789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18790for as_dir in $PATH
18791do
18792 IFS=$as_save_IFS
18793 test -z "$as_dir" && as_dir=.
18794 for ac_exec_ext in '' $ac_executable_extensions; do
18795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18796 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18798 break 2
18799 fi
18800done
18801done
18802
John Criswell39827c82003-09-23 15:28:52 +000018803 test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
John Criswell7a73b802003-06-30 21:59:07 +000018804 ;;
18805esac
18806fi
18807MV=$ac_cv_path_MV
18808
18809if test -n "$MV"; then
18810 echo "$as_me:$LINENO: result: $MV" >&5
18811echo "${ECHO_T}$MV" >&6
18812else
18813 echo "$as_me:$LINENO: result: no" >&5
18814echo "${ECHO_T}no" >&6
18815fi
18816
John Criswell39827c82003-09-23 15:28:52 +000018817if test ${MV} = "false"
18818then
18819 { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18820echo "$as_me: error: mv required but not found" >&2;}
18821 { (exit 1); exit 1; }; }
18822fi
18823
John Criswell7a73b802003-06-30 21:59:07 +000018824# Extract the first word of "dot", so it can be a program name with args.
18825set dummy dot; ac_word=$2
18826echo "$as_me:$LINENO: checking for $ac_word" >&5
18827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18828if test "${ac_cv_path_DOT+set}" = set; then
18829 echo $ECHO_N "(cached) $ECHO_C" >&6
18830else
18831 case $DOT in
18832 [\\/]* | ?:[\\/]*)
18833 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18834 ;;
18835 *)
18836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18837for as_dir in $PATH
18838do
18839 IFS=$as_save_IFS
18840 test -z "$as_dir" && as_dir=.
18841 for ac_exec_ext in '' $ac_executable_extensions; do
18842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18843 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18845 break 2
18846 fi
18847done
18848done
18849
John Criswell39827c82003-09-23 15:28:52 +000018850 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
John Criswell7a73b802003-06-30 21:59:07 +000018851 ;;
18852esac
18853fi
18854DOT=$ac_cv_path_DOT
18855
18856if test -n "$DOT"; then
18857 echo "$as_me:$LINENO: result: $DOT" >&5
18858echo "${ECHO_T}$DOT" >&6
18859else
18860 echo "$as_me:$LINENO: result: no" >&5
18861echo "${ECHO_T}no" >&6
18862fi
18863
John Criswell39827c82003-09-23 15:28:52 +000018864
John Criswell7a73b802003-06-30 21:59:07 +000018865# Extract the first word of "etags", so it can be a program name with args.
18866set dummy etags; ac_word=$2
18867echo "$as_me:$LINENO: checking for $ac_word" >&5
18868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18869if test "${ac_cv_path_ETAGS+set}" = set; then
18870 echo $ECHO_N "(cached) $ECHO_C" >&6
18871else
18872 case $ETAGS in
18873 [\\/]* | ?:[\\/]*)
18874 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18875 ;;
18876 *)
18877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18878for as_dir in $PATH
18879do
18880 IFS=$as_save_IFS
18881 test -z "$as_dir" && as_dir=.
18882 for ac_exec_ext in '' $ac_executable_extensions; do
18883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18884 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18886 break 2
18887 fi
18888done
18889done
18890
John Criswell39827c82003-09-23 15:28:52 +000018891 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
John Criswell7a73b802003-06-30 21:59:07 +000018892 ;;
18893esac
18894fi
18895ETAGS=$ac_cv_path_ETAGS
18896
18897if test -n "$ETAGS"; then
18898 echo "$as_me:$LINENO: result: $ETAGS" >&5
18899echo "${ECHO_T}$ETAGS" >&6
18900else
18901 echo "$as_me:$LINENO: result: no" >&5
18902echo "${ECHO_T}no" >&6
18903fi
18904
John Criswell39827c82003-09-23 15:28:52 +000018905
John Criswell7a73b802003-06-30 21:59:07 +000018906# Extract the first word of "purify", so it can be a program name with args.
18907set dummy purify; ac_word=$2
18908echo "$as_me:$LINENO: checking for $ac_word" >&5
18909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18910if test "${ac_cv_path_PURIFY+set}" = set; then
18911 echo $ECHO_N "(cached) $ECHO_C" >&6
18912else
18913 case $PURIFY in
18914 [\\/]* | ?:[\\/]*)
18915 ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18916 ;;
18917 *)
18918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18919for as_dir in $PATH
18920do
18921 IFS=$as_save_IFS
18922 test -z "$as_dir" && as_dir=.
18923 for ac_exec_ext in '' $ac_executable_extensions; do
18924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18925 ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18927 break 2
18928 fi
18929done
18930done
18931
John Criswell39827c82003-09-23 15:28:52 +000018932 test -z "$ac_cv_path_PURIFY" && ac_cv_path_PURIFY="false"
John Criswell7a73b802003-06-30 21:59:07 +000018933 ;;
18934esac
18935fi
18936PURIFY=$ac_cv_path_PURIFY
18937
18938if test -n "$PURIFY"; then
18939 echo "$as_me:$LINENO: result: $PURIFY" >&5
18940echo "${ECHO_T}$PURIFY" >&6
18941else
18942 echo "$as_me:$LINENO: result: no" >&5
18943echo "${ECHO_T}no" >&6
18944fi
18945
John Criswell39827c82003-09-23 15:28:52 +000018946
John Criswellde00db22003-08-25 16:49:54 +000018947# Extract the first word of "python", so it can be a program name with args.
18948set dummy python; ac_word=$2
18949echo "$as_me:$LINENO: checking for $ac_word" >&5
18950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18951if test "${ac_cv_path_PYTHON+set}" = set; then
18952 echo $ECHO_N "(cached) $ECHO_C" >&6
18953else
18954 case $PYTHON in
18955 [\\/]* | ?:[\\/]*)
18956 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18957 ;;
18958 *)
18959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18960for as_dir in $PATH
18961do
18962 IFS=$as_save_IFS
18963 test -z "$as_dir" && as_dir=.
18964 for ac_exec_ext in '' $ac_executable_extensions; do
18965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18966 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18968 break 2
18969 fi
18970done
18971done
18972
John Criswell39827c82003-09-23 15:28:52 +000018973 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
John Criswellde00db22003-08-25 16:49:54 +000018974 ;;
18975esac
18976fi
18977PYTHON=$ac_cv_path_PYTHON
18978
18979if test -n "$PYTHON"; then
18980 echo "$as_me:$LINENO: result: $PYTHON" >&5
18981echo "${ECHO_T}$PYTHON" >&6
18982else
18983 echo "$as_me:$LINENO: result: no" >&5
18984echo "${ECHO_T}no" >&6
18985fi
18986
John Criswell39827c82003-09-23 15:28:52 +000018987if test ${PYTHON} = "false"
18988then
John Criswell61095982003-09-23 20:46:32 +000018989 { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
18990echo "$as_me: WARNING: python required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018991fi
18992
John Criswellde00db22003-08-25 16:49:54 +000018993# Extract the first word of "qmtest", so it can be a program name with args.
18994set dummy qmtest; ac_word=$2
18995echo "$as_me:$LINENO: checking for $ac_word" >&5
18996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18997if test "${ac_cv_path_QMTEST+set}" = set; then
18998 echo $ECHO_N "(cached) $ECHO_C" >&6
18999else
19000 case $QMTEST in
19001 [\\/]* | ?:[\\/]*)
19002 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19003 ;;
19004 *)
19005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19006for as_dir in $PATH
19007do
19008 IFS=$as_save_IFS
19009 test -z "$as_dir" && as_dir=.
19010 for ac_exec_ext in '' $ac_executable_extensions; do
19011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19012 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19014 break 2
19015 fi
19016done
19017done
19018
John Criswell39827c82003-09-23 15:28:52 +000019019 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
John Criswellde00db22003-08-25 16:49:54 +000019020 ;;
19021esac
19022fi
19023QMTEST=$ac_cv_path_QMTEST
19024
19025if test -n "$QMTEST"; then
19026 echo "$as_me:$LINENO: result: $QMTEST" >&5
19027echo "${ECHO_T}$QMTEST" >&6
19028else
19029 echo "$as_me:$LINENO: result: no" >&5
19030echo "${ECHO_T}no" >&6
19031fi
19032
John Criswell39827c82003-09-23 15:28:52 +000019033if test ${QMTEST} = "false"
19034then
John Criswell61095982003-09-23 20:46:32 +000019035 { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19036echo "$as_me: WARNING: qmtest required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019037fi
John Criswellde00db22003-08-25 16:49:54 +000019038
19039pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19040pymajor=`echo $pyversion | cut -d. -f1`
19041pyminor=`echo $pyversion | cut -d. -f2`
19042
19043if test "$pymajor" -ge "2"
19044then
19045 if test "$pymajor" -eq "2"
19046 then
19047 if test "$pyminor" -lt "2"
19048 then
19049 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19050echo "$as_me: error: Python 2.2 or greater required" >&2;}
19051 { (exit 1); exit 1; }; }
19052 fi
19053 fi
19054else
19055 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19056echo "$as_me: error: Python 2.2 or greater required" >&2;}
19057 { (exit 1); exit 1; }; }
19058fi
John Criswell7a73b802003-06-30 21:59:07 +000019059
19060
19061
19062
19063
19064echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19065echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19066if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19067 echo $ECHO_N "(cached) $ECHO_C" >&6
19068else
19069 ac_check_lib_save_LIBS=$LIBS
19070LIBS="-lelf $LIBS"
19071cat >conftest.$ac_ext <<_ACEOF
19072#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019073/* confdefs.h. */
19074_ACEOF
19075cat confdefs.h >>conftest.$ac_ext
19076cat >>conftest.$ac_ext <<_ACEOF
19077/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019078
19079/* Override any gcc2 internal prototype to avoid an error. */
19080#ifdef __cplusplus
19081extern "C"
19082#endif
19083/* We use char because int might match the return type of a gcc2
19084 builtin and then its argument prototype would still apply. */
19085char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000019086int
19087main ()
19088{
19089elf_begin ();
19090 ;
19091 return 0;
19092}
19093_ACEOF
19094rm -f conftest.$ac_objext conftest$ac_exeext
19095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19096 (eval $ac_link) 2>&5
19097 ac_status=$?
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); } &&
19100 { ac_try='test -s conftest$ac_exeext'
19101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19102 (eval $ac_try) 2>&5
19103 ac_status=$?
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; }; then
19106 ac_cv_lib_elf_elf_begin=yes
19107else
19108 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019109sed 's/^/| /' conftest.$ac_ext >&5
19110
John Criswell7a73b802003-06-30 21:59:07 +000019111ac_cv_lib_elf_elf_begin=no
19112fi
19113rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19114LIBS=$ac_check_lib_save_LIBS
19115fi
19116echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19117echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19118if test $ac_cv_lib_elf_elf_begin = yes; then
19119 cat >>confdefs.h <<_ACEOF
19120#define HAVE_LIBELF 1
19121_ACEOF
19122
19123 LIBS="-lelf $LIBS"
19124
19125fi
19126
19127
19128echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19129echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19130if test "${ac_cv_search_dlopen+set}" = set; then
19131 echo $ECHO_N "(cached) $ECHO_C" >&6
19132else
19133 ac_func_search_save_LIBS=$LIBS
19134ac_cv_search_dlopen=no
19135cat >conftest.$ac_ext <<_ACEOF
19136#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019137/* confdefs.h. */
19138_ACEOF
19139cat confdefs.h >>conftest.$ac_ext
19140cat >>conftest.$ac_ext <<_ACEOF
19141/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019142
19143/* Override any gcc2 internal prototype to avoid an error. */
19144#ifdef __cplusplus
19145extern "C"
19146#endif
19147/* We use char because int might match the return type of a gcc2
19148 builtin and then its argument prototype would still apply. */
19149char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019150int
19151main ()
19152{
19153dlopen ();
19154 ;
19155 return 0;
19156}
19157_ACEOF
19158rm -f conftest.$ac_objext conftest$ac_exeext
19159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19160 (eval $ac_link) 2>&5
19161 ac_status=$?
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); } &&
19164 { ac_try='test -s conftest$ac_exeext'
19165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19166 (eval $ac_try) 2>&5
19167 ac_status=$?
19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); }; }; then
19170 ac_cv_search_dlopen="none required"
19171else
19172 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019173sed 's/^/| /' conftest.$ac_ext >&5
19174
John Criswell7a73b802003-06-30 21:59:07 +000019175fi
19176rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19177if test "$ac_cv_search_dlopen" = no; then
19178 for ac_lib in dl; do
19179 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19180 cat >conftest.$ac_ext <<_ACEOF
19181#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019182/* confdefs.h. */
19183_ACEOF
19184cat confdefs.h >>conftest.$ac_ext
19185cat >>conftest.$ac_ext <<_ACEOF
19186/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019187
19188/* Override any gcc2 internal prototype to avoid an error. */
19189#ifdef __cplusplus
19190extern "C"
19191#endif
19192/* We use char because int might match the return type of a gcc2
19193 builtin and then its argument prototype would still apply. */
19194char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019195int
19196main ()
19197{
19198dlopen ();
19199 ;
19200 return 0;
19201}
19202_ACEOF
19203rm -f conftest.$ac_objext conftest$ac_exeext
19204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19205 (eval $ac_link) 2>&5
19206 ac_status=$?
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); } &&
19209 { ac_try='test -s conftest$ac_exeext'
19210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19211 (eval $ac_try) 2>&5
19212 ac_status=$?
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); }; }; then
19215 ac_cv_search_dlopen="-l$ac_lib"
19216break
19217else
19218 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019219sed 's/^/| /' conftest.$ac_ext >&5
19220
John Criswell7a73b802003-06-30 21:59:07 +000019221fi
19222rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19223 done
19224fi
19225LIBS=$ac_func_search_save_LIBS
19226fi
19227echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19228echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19229if test "$ac_cv_search_dlopen" != no; then
19230 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19231
19232else
19233 { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19234echo "$as_me: error: dlopen() required but not found" >&2;}
19235 { (exit 1); exit 1; }; }
19236fi
19237
19238
19239echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19240echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19241if test "${ac_cv_search_mallinfo+set}" = set; then
19242 echo $ECHO_N "(cached) $ECHO_C" >&6
19243else
19244 ac_func_search_save_LIBS=$LIBS
19245ac_cv_search_mallinfo=no
19246cat >conftest.$ac_ext <<_ACEOF
19247#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019248/* confdefs.h. */
19249_ACEOF
19250cat confdefs.h >>conftest.$ac_ext
19251cat >>conftest.$ac_ext <<_ACEOF
19252/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019253
19254/* Override any gcc2 internal prototype to avoid an error. */
19255#ifdef __cplusplus
19256extern "C"
19257#endif
19258/* We use char because int might match the return type of a gcc2
19259 builtin and then its argument prototype would still apply. */
19260char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019261int
19262main ()
19263{
19264mallinfo ();
19265 ;
19266 return 0;
19267}
19268_ACEOF
19269rm -f conftest.$ac_objext conftest$ac_exeext
19270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19271 (eval $ac_link) 2>&5
19272 ac_status=$?
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); } &&
19275 { ac_try='test -s conftest$ac_exeext'
19276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19277 (eval $ac_try) 2>&5
19278 ac_status=$?
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); }; }; then
19281 ac_cv_search_mallinfo="none required"
19282else
19283 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019284sed 's/^/| /' conftest.$ac_ext >&5
19285
John Criswell7a73b802003-06-30 21:59:07 +000019286fi
19287rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19288if test "$ac_cv_search_mallinfo" = no; then
19289 for ac_lib in malloc; do
19290 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19291 cat >conftest.$ac_ext <<_ACEOF
19292#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019293/* confdefs.h. */
19294_ACEOF
19295cat confdefs.h >>conftest.$ac_ext
19296cat >>conftest.$ac_ext <<_ACEOF
19297/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019298
19299/* Override any gcc2 internal prototype to avoid an error. */
19300#ifdef __cplusplus
19301extern "C"
19302#endif
19303/* We use char because int might match the return type of a gcc2
19304 builtin and then its argument prototype would still apply. */
19305char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019306int
19307main ()
19308{
19309mallinfo ();
19310 ;
19311 return 0;
19312}
19313_ACEOF
19314rm -f conftest.$ac_objext conftest$ac_exeext
19315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19316 (eval $ac_link) 2>&5
19317 ac_status=$?
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); } &&
19320 { ac_try='test -s conftest$ac_exeext'
19321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322 (eval $ac_try) 2>&5
19323 ac_status=$?
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); }; }; then
19326 ac_cv_search_mallinfo="-l$ac_lib"
19327break
19328else
19329 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019330sed 's/^/| /' conftest.$ac_ext >&5
19331
John Criswell7a73b802003-06-30 21:59:07 +000019332fi
19333rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19334 done
19335fi
19336LIBS=$ac_func_search_save_LIBS
19337fi
19338echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19339echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19340if test "$ac_cv_search_mallinfo" != no; then
19341 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19342 cat >>confdefs.h <<\_ACEOF
19343#define HAVE_MALLINFO 1
19344_ACEOF
19345
19346fi
19347
19348
19349
19350echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19351echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19352if test "${ac_cv_header_stdc+set}" = set; then
19353 echo $ECHO_N "(cached) $ECHO_C" >&6
19354else
19355 cat >conftest.$ac_ext <<_ACEOF
19356#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019357/* confdefs.h. */
19358_ACEOF
19359cat confdefs.h >>conftest.$ac_ext
19360cat >>conftest.$ac_ext <<_ACEOF
19361/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019362#include <stdlib.h>
19363#include <stdarg.h>
19364#include <string.h>
19365#include <float.h>
19366
John Criswell0c38eaf2003-09-10 15:17:25 +000019367int
19368main ()
19369{
19370
19371 ;
19372 return 0;
19373}
John Criswell7a73b802003-06-30 21:59:07 +000019374_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019375rm -f conftest.$ac_objext
19376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19377 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019378 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000019379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019380 (exit $ac_status); } &&
19381 { ac_try='test -s conftest.$ac_objext'
19382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19383 (eval $ac_try) 2>&5
19384 ac_status=$?
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019387 ac_cv_header_stdc=yes
19388else
19389 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019390sed 's/^/| /' conftest.$ac_ext >&5
19391
19392ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019393fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019394rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019395
19396if test $ac_cv_header_stdc = yes; then
19397 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19398 cat >conftest.$ac_ext <<_ACEOF
19399#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019400/* confdefs.h. */
19401_ACEOF
19402cat confdefs.h >>conftest.$ac_ext
19403cat >>conftest.$ac_ext <<_ACEOF
19404/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019405#include <string.h>
19406
19407_ACEOF
19408if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019409 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019410 :
19411else
19412 ac_cv_header_stdc=no
19413fi
19414rm -f conftest*
19415
19416fi
19417
19418if test $ac_cv_header_stdc = yes; then
19419 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19420 cat >conftest.$ac_ext <<_ACEOF
19421#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019422/* confdefs.h. */
19423_ACEOF
19424cat confdefs.h >>conftest.$ac_ext
19425cat >>conftest.$ac_ext <<_ACEOF
19426/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019427#include <stdlib.h>
19428
19429_ACEOF
19430if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019431 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019432 :
19433else
19434 ac_cv_header_stdc=no
19435fi
19436rm -f conftest*
19437
19438fi
19439
19440if test $ac_cv_header_stdc = yes; then
19441 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19442 if test "$cross_compiling" = yes; then
19443 :
19444else
19445 cat >conftest.$ac_ext <<_ACEOF
19446#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019447/* confdefs.h. */
19448_ACEOF
19449cat confdefs.h >>conftest.$ac_ext
19450cat >>conftest.$ac_ext <<_ACEOF
19451/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019452#include <ctype.h>
19453#if ((' ' & 0x0FF) == 0x020)
19454# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19455# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19456#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019457# define ISLOWER(c) \
19458 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000019459 || ('j' <= (c) && (c) <= 'r') \
19460 || ('s' <= (c) && (c) <= 'z'))
19461# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19462#endif
19463
19464#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19465int
19466main ()
19467{
19468 int i;
19469 for (i = 0; i < 256; i++)
19470 if (XOR (islower (i), ISLOWER (i))
19471 || toupper (i) != TOUPPER (i))
19472 exit(2);
19473 exit (0);
19474}
19475_ACEOF
19476rm -f conftest$ac_exeext
19477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19478 (eval $ac_link) 2>&5
19479 ac_status=$?
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19483 (eval $ac_try) 2>&5
19484 ac_status=$?
19485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486 (exit $ac_status); }; }; then
19487 :
19488else
19489 echo "$as_me: program exited with status $ac_status" >&5
19490echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019491sed 's/^/| /' conftest.$ac_ext >&5
19492
John Criswell7a73b802003-06-30 21:59:07 +000019493( exit $ac_status )
19494ac_cv_header_stdc=no
19495fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019496rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019497fi
19498fi
19499fi
19500echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19501echo "${ECHO_T}$ac_cv_header_stdc" >&6
19502if test $ac_cv_header_stdc = yes; then
19503
19504cat >>confdefs.h <<\_ACEOF
19505#define STDC_HEADERS 1
19506_ACEOF
19507
19508fi
19509
19510echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19511echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19512if test "${ac_cv_header_sys_wait_h+set}" = set; then
19513 echo $ECHO_N "(cached) $ECHO_C" >&6
19514else
19515 cat >conftest.$ac_ext <<_ACEOF
19516#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019517/* confdefs.h. */
19518_ACEOF
19519cat confdefs.h >>conftest.$ac_ext
19520cat >>conftest.$ac_ext <<_ACEOF
19521/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019522#include <sys/types.h>
19523#include <sys/wait.h>
19524#ifndef WEXITSTATUS
19525# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19526#endif
19527#ifndef WIFEXITED
19528# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19529#endif
19530
John Criswell7a73b802003-06-30 21:59:07 +000019531int
19532main ()
19533{
19534 int s;
19535 wait (&s);
19536 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19537 ;
19538 return 0;
19539}
19540_ACEOF
19541rm -f conftest.$ac_objext
19542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19543 (eval $ac_compile) 2>&5
19544 ac_status=$?
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); } &&
19547 { ac_try='test -s conftest.$ac_objext'
19548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19549 (eval $ac_try) 2>&5
19550 ac_status=$?
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); }; }; then
19553 ac_cv_header_sys_wait_h=yes
19554else
19555 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019556sed 's/^/| /' conftest.$ac_ext >&5
19557
John Criswell7a73b802003-06-30 21:59:07 +000019558ac_cv_header_sys_wait_h=no
19559fi
19560rm -f conftest.$ac_objext conftest.$ac_ext
19561fi
19562echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19563echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19564if test $ac_cv_header_sys_wait_h = yes; then
19565
19566cat >>confdefs.h <<\_ACEOF
19567#define HAVE_SYS_WAIT_H 1
19568_ACEOF
19569
19570fi
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19582do
19583as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19584if eval "test \"\${$as_ac_Header+set}\" = set"; then
19585 echo "$as_me:$LINENO: checking for $ac_header" >&5
19586echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19587if eval "test \"\${$as_ac_Header+set}\" = set"; then
19588 echo $ECHO_N "(cached) $ECHO_C" >&6
19589fi
19590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19591echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19592else
19593 # Is the header compilable?
19594echo "$as_me:$LINENO: checking $ac_header usability" >&5
19595echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19596cat >conftest.$ac_ext <<_ACEOF
19597#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019598/* confdefs.h. */
19599_ACEOF
19600cat confdefs.h >>conftest.$ac_ext
19601cat >>conftest.$ac_ext <<_ACEOF
19602/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019603$ac_includes_default
19604#include <$ac_header>
19605_ACEOF
19606rm -f conftest.$ac_objext
19607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19608 (eval $ac_compile) 2>&5
19609 ac_status=$?
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); } &&
19612 { ac_try='test -s conftest.$ac_objext'
19613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19614 (eval $ac_try) 2>&5
19615 ac_status=$?
19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); }; }; then
19618 ac_header_compiler=yes
19619else
19620 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019621sed 's/^/| /' conftest.$ac_ext >&5
19622
John Criswell7a73b802003-06-30 21:59:07 +000019623ac_header_compiler=no
19624fi
19625rm -f conftest.$ac_objext conftest.$ac_ext
19626echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19627echo "${ECHO_T}$ac_header_compiler" >&6
19628
19629# Is the header present?
19630echo "$as_me:$LINENO: checking $ac_header presence" >&5
19631echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19632cat >conftest.$ac_ext <<_ACEOF
19633#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019634/* confdefs.h. */
19635_ACEOF
19636cat confdefs.h >>conftest.$ac_ext
19637cat >>conftest.$ac_ext <<_ACEOF
19638/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019639#include <$ac_header>
19640_ACEOF
19641if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19643 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019644 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019645 rm -f conftest.er1
19646 cat conftest.err >&5
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); } >/dev/null; then
19649 if test -s conftest.err; then
19650 ac_cpp_err=$ac_c_preproc_warn_flag
19651 else
19652 ac_cpp_err=
19653 fi
19654else
19655 ac_cpp_err=yes
19656fi
19657if test -z "$ac_cpp_err"; then
19658 ac_header_preproc=yes
19659else
19660 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019661sed 's/^/| /' conftest.$ac_ext >&5
19662
John Criswell7a73b802003-06-30 21:59:07 +000019663 ac_header_preproc=no
19664fi
19665rm -f conftest.err conftest.$ac_ext
19666echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19667echo "${ECHO_T}$ac_header_preproc" >&6
19668
19669# So? What about this header?
19670case $ac_header_compiler:$ac_header_preproc in
19671 yes:no )
19672 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19673echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019675echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19676 (
19677 cat <<\_ASBOX
19678## ------------------------------------ ##
19679## Report this to bug-autoconf@gnu.org. ##
19680## ------------------------------------ ##
19681_ASBOX
19682 ) |
19683 sed "s/^/$as_me: WARNING: /" >&2
19684 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019685 no:yes )
19686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19687echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19689echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019691echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19692 (
19693 cat <<\_ASBOX
19694## ------------------------------------ ##
19695## Report this to bug-autoconf@gnu.org. ##
19696## ------------------------------------ ##
19697_ASBOX
19698 ) |
19699 sed "s/^/$as_me: WARNING: /" >&2
19700 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019701esac
19702echo "$as_me:$LINENO: checking for $ac_header" >&5
19703echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19704if eval "test \"\${$as_ac_Header+set}\" = set"; then
19705 echo $ECHO_N "(cached) $ECHO_C" >&6
19706else
19707 eval "$as_ac_Header=$ac_header_preproc"
19708fi
19709echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19710echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19711
19712fi
19713if test `eval echo '${'$as_ac_Header'}'` = yes; then
19714 cat >>confdefs.h <<_ACEOF
19715#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19716_ACEOF
19717
19718fi
19719
19720done
19721
19722
19723
19724
19725
19726
19727for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19728do
19729as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19730if eval "test \"\${$as_ac_Header+set}\" = set"; then
19731 echo "$as_me:$LINENO: checking for $ac_header" >&5
19732echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19733if eval "test \"\${$as_ac_Header+set}\" = set"; then
19734 echo $ECHO_N "(cached) $ECHO_C" >&6
19735fi
19736echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19737echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19738else
19739 # Is the header compilable?
19740echo "$as_me:$LINENO: checking $ac_header usability" >&5
19741echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19742cat >conftest.$ac_ext <<_ACEOF
19743#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019744/* confdefs.h. */
19745_ACEOF
19746cat confdefs.h >>conftest.$ac_ext
19747cat >>conftest.$ac_ext <<_ACEOF
19748/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019749$ac_includes_default
19750#include <$ac_header>
19751_ACEOF
19752rm -f conftest.$ac_objext
19753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19754 (eval $ac_compile) 2>&5
19755 ac_status=$?
19756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 (exit $ac_status); } &&
19758 { ac_try='test -s conftest.$ac_objext'
19759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19760 (eval $ac_try) 2>&5
19761 ac_status=$?
19762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763 (exit $ac_status); }; }; then
19764 ac_header_compiler=yes
19765else
19766 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019767sed 's/^/| /' conftest.$ac_ext >&5
19768
John Criswell7a73b802003-06-30 21:59:07 +000019769ac_header_compiler=no
19770fi
19771rm -f conftest.$ac_objext conftest.$ac_ext
19772echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19773echo "${ECHO_T}$ac_header_compiler" >&6
19774
19775# Is the header present?
19776echo "$as_me:$LINENO: checking $ac_header presence" >&5
19777echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19778cat >conftest.$ac_ext <<_ACEOF
19779#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019780/* confdefs.h. */
19781_ACEOF
19782cat confdefs.h >>conftest.$ac_ext
19783cat >>conftest.$ac_ext <<_ACEOF
19784/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019785#include <$ac_header>
19786_ACEOF
19787if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19789 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019790 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019791 rm -f conftest.er1
19792 cat conftest.err >&5
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); } >/dev/null; then
19795 if test -s conftest.err; then
19796 ac_cpp_err=$ac_c_preproc_warn_flag
19797 else
19798 ac_cpp_err=
19799 fi
19800else
19801 ac_cpp_err=yes
19802fi
19803if test -z "$ac_cpp_err"; then
19804 ac_header_preproc=yes
19805else
19806 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019807sed 's/^/| /' conftest.$ac_ext >&5
19808
John Criswell7a73b802003-06-30 21:59:07 +000019809 ac_header_preproc=no
19810fi
19811rm -f conftest.err conftest.$ac_ext
19812echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19813echo "${ECHO_T}$ac_header_preproc" >&6
19814
19815# So? What about this header?
19816case $ac_header_compiler:$ac_header_preproc in
19817 yes:no )
19818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19819echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019821echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19822 (
19823 cat <<\_ASBOX
19824## ------------------------------------ ##
19825## Report this to bug-autoconf@gnu.org. ##
19826## ------------------------------------ ##
19827_ASBOX
19828 ) |
19829 sed "s/^/$as_me: WARNING: /" >&2
19830 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019831 no:yes )
19832 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19833echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19834 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19835echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019837echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19838 (
19839 cat <<\_ASBOX
19840## ------------------------------------ ##
19841## Report this to bug-autoconf@gnu.org. ##
19842## ------------------------------------ ##
19843_ASBOX
19844 ) |
19845 sed "s/^/$as_me: WARNING: /" >&2
19846 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019847esac
19848echo "$as_me:$LINENO: checking for $ac_header" >&5
19849echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19850if eval "test \"\${$as_ac_Header+set}\" = set"; then
19851 echo $ECHO_N "(cached) $ECHO_C" >&6
19852else
19853 eval "$as_ac_Header=$ac_header_preproc"
19854fi
19855echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19856echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19857
19858fi
19859if test `eval echo '${'$as_ac_Header'}'` = yes; then
19860 cat >>confdefs.h <<_ACEOF
19861#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19862_ACEOF
19863
19864fi
19865
19866done
19867
19868
19869
19870
19871for ac_header in dlfcn.h link.h
19872do
19873as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19874if eval "test \"\${$as_ac_Header+set}\" = set"; then
19875 echo "$as_me:$LINENO: checking for $ac_header" >&5
19876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19877if eval "test \"\${$as_ac_Header+set}\" = set"; then
19878 echo $ECHO_N "(cached) $ECHO_C" >&6
19879fi
19880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19881echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19882else
19883 # Is the header compilable?
19884echo "$as_me:$LINENO: checking $ac_header usability" >&5
19885echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19886cat >conftest.$ac_ext <<_ACEOF
19887#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019888/* confdefs.h. */
19889_ACEOF
19890cat confdefs.h >>conftest.$ac_ext
19891cat >>conftest.$ac_ext <<_ACEOF
19892/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019893$ac_includes_default
19894#include <$ac_header>
19895_ACEOF
19896rm -f conftest.$ac_objext
19897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19898 (eval $ac_compile) 2>&5
19899 ac_status=$?
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); } &&
19902 { ac_try='test -s conftest.$ac_objext'
19903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19904 (eval $ac_try) 2>&5
19905 ac_status=$?
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); }; }; then
19908 ac_header_compiler=yes
19909else
19910 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019911sed 's/^/| /' conftest.$ac_ext >&5
19912
John Criswell7a73b802003-06-30 21:59:07 +000019913ac_header_compiler=no
19914fi
19915rm -f conftest.$ac_objext conftest.$ac_ext
19916echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19917echo "${ECHO_T}$ac_header_compiler" >&6
19918
19919# Is the header present?
19920echo "$as_me:$LINENO: checking $ac_header presence" >&5
19921echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19922cat >conftest.$ac_ext <<_ACEOF
19923#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019924/* confdefs.h. */
19925_ACEOF
19926cat confdefs.h >>conftest.$ac_ext
19927cat >>conftest.$ac_ext <<_ACEOF
19928/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019929#include <$ac_header>
19930_ACEOF
19931if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19933 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019934 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019935 rm -f conftest.er1
19936 cat conftest.err >&5
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); } >/dev/null; then
19939 if test -s conftest.err; then
19940 ac_cpp_err=$ac_c_preproc_warn_flag
19941 else
19942 ac_cpp_err=
19943 fi
19944else
19945 ac_cpp_err=yes
19946fi
19947if test -z "$ac_cpp_err"; then
19948 ac_header_preproc=yes
19949else
19950 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019951sed 's/^/| /' conftest.$ac_ext >&5
19952
John Criswell7a73b802003-06-30 21:59:07 +000019953 ac_header_preproc=no
19954fi
19955rm -f conftest.err conftest.$ac_ext
19956echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19957echo "${ECHO_T}$ac_header_preproc" >&6
19958
19959# So? What about this header?
19960case $ac_header_compiler:$ac_header_preproc in
19961 yes:no )
19962 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19963echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019965echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19966 (
19967 cat <<\_ASBOX
19968## ------------------------------------ ##
19969## Report this to bug-autoconf@gnu.org. ##
19970## ------------------------------------ ##
19971_ASBOX
19972 ) |
19973 sed "s/^/$as_me: WARNING: /" >&2
19974 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019975 no:yes )
19976 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19977echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19978 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19979echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019981echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19982 (
19983 cat <<\_ASBOX
19984## ------------------------------------ ##
19985## Report this to bug-autoconf@gnu.org. ##
19986## ------------------------------------ ##
19987_ASBOX
19988 ) |
19989 sed "s/^/$as_me: WARNING: /" >&2
19990 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019991esac
19992echo "$as_me:$LINENO: checking for $ac_header" >&5
19993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19994if eval "test \"\${$as_ac_Header+set}\" = set"; then
19995 echo $ECHO_N "(cached) $ECHO_C" >&6
19996else
19997 eval "$as_ac_Header=$ac_header_preproc"
19998fi
19999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20000echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20001
20002fi
20003if test `eval echo '${'$as_ac_Header'}'` = yes; then
20004 cat >>confdefs.h <<_ACEOF
20005#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20006_ACEOF
20007
20008fi
20009
20010done
20011
20012
20013
John Criswell7a73b802003-06-30 21:59:07 +000020014echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20015echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20016if test "${ac_cv_c_const+set}" = set; then
20017 echo $ECHO_N "(cached) $ECHO_C" >&6
20018else
20019 cat >conftest.$ac_ext <<_ACEOF
20020#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020021/* confdefs.h. */
20022_ACEOF
20023cat confdefs.h >>conftest.$ac_ext
20024cat >>conftest.$ac_ext <<_ACEOF
20025/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020026
John Criswell7a73b802003-06-30 21:59:07 +000020027int
20028main ()
20029{
20030/* FIXME: Include the comments suggested by Paul. */
20031#ifndef __cplusplus
20032 /* Ultrix mips cc rejects this. */
20033 typedef int charset[2];
20034 const charset x;
20035 /* SunOS 4.1.1 cc rejects this. */
20036 char const *const *ccp;
20037 char **p;
20038 /* NEC SVR4.0.2 mips cc rejects this. */
20039 struct point {int x, y;};
20040 static struct point const zero = {0,0};
20041 /* AIX XL C 1.02.0.0 rejects this.
20042 It does not let you subtract one const X* pointer from another in
20043 an arm of an if-expression whose if-part is not a constant
20044 expression */
20045 const char *g = "string";
20046 ccp = &g + (g ? g-g : 0);
20047 /* HPUX 7.0 cc rejects these. */
20048 ++ccp;
20049 p = (char**) ccp;
20050 ccp = (char const *const *) p;
20051 { /* SCO 3.2v4 cc rejects this. */
20052 char *t;
20053 char const *s = 0 ? (char *) 0 : (char const *) 0;
20054
20055 *t++ = 0;
20056 }
20057 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20058 int x[] = {25, 17};
20059 const int *foo = &x[0];
20060 ++foo;
20061 }
20062 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20063 typedef const int *iptr;
20064 iptr p = 0;
20065 ++p;
20066 }
20067 { /* AIX XL C 1.02.0.0 rejects this saying
20068 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20069 struct s { int j; const int *ap[3]; };
20070 struct s *b; b->j = 5;
20071 }
20072 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20073 const int foo = 10;
20074 }
20075#endif
20076
20077 ;
20078 return 0;
20079}
20080_ACEOF
20081rm -f conftest.$ac_objext
20082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20083 (eval $ac_compile) 2>&5
20084 ac_status=$?
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); } &&
20087 { ac_try='test -s conftest.$ac_objext'
20088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20089 (eval $ac_try) 2>&5
20090 ac_status=$?
20091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); }; }; then
20093 ac_cv_c_const=yes
20094else
20095 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020096sed 's/^/| /' conftest.$ac_ext >&5
20097
John Criswell7a73b802003-06-30 21:59:07 +000020098ac_cv_c_const=no
20099fi
20100rm -f conftest.$ac_objext conftest.$ac_ext
20101fi
20102echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20103echo "${ECHO_T}$ac_cv_c_const" >&6
20104if test $ac_cv_c_const = no; then
20105
20106cat >>confdefs.h <<\_ACEOF
20107#define const
20108_ACEOF
20109
20110fi
20111
20112echo "$as_me:$LINENO: checking for inline" >&5
20113echo $ECHO_N "checking for inline... $ECHO_C" >&6
20114if test "${ac_cv_c_inline+set}" = set; then
20115 echo $ECHO_N "(cached) $ECHO_C" >&6
20116else
20117 ac_cv_c_inline=no
20118for ac_kw in inline __inline__ __inline; do
20119 cat >conftest.$ac_ext <<_ACEOF
20120#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020121/* confdefs.h. */
20122_ACEOF
20123cat confdefs.h >>conftest.$ac_ext
20124cat >>conftest.$ac_ext <<_ACEOF
20125/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020126#ifndef __cplusplus
John Criswell0c38eaf2003-09-10 15:17:25 +000020127typedef int foo_t;
20128static $ac_kw foo_t static_foo () {return 0; }
20129$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000020130#endif
20131
20132_ACEOF
20133rm -f conftest.$ac_objext
20134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20135 (eval $ac_compile) 2>&5
20136 ac_status=$?
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); } &&
20139 { ac_try='test -s conftest.$ac_objext'
20140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20141 (eval $ac_try) 2>&5
20142 ac_status=$?
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); }; }; then
20145 ac_cv_c_inline=$ac_kw; break
20146else
20147 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020148sed 's/^/| /' conftest.$ac_ext >&5
20149
John Criswell7a73b802003-06-30 21:59:07 +000020150fi
20151rm -f conftest.$ac_objext conftest.$ac_ext
20152done
20153
20154fi
20155echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20156echo "${ECHO_T}$ac_cv_c_inline" >&6
20157case $ac_cv_c_inline in
20158 inline | yes) ;;
20159 no)
20160cat >>confdefs.h <<\_ACEOF
20161#define inline
20162_ACEOF
20163 ;;
20164 *) cat >>confdefs.h <<_ACEOF
20165#define inline $ac_cv_c_inline
20166_ACEOF
20167 ;;
20168esac
20169
20170
20171echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20172echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20173if test "${ac_cv_c_bigendian+set}" = set; then
20174 echo $ECHO_N "(cached) $ECHO_C" >&6
20175else
20176 # See if sys/param.h defines the BYTE_ORDER macro.
20177cat >conftest.$ac_ext <<_ACEOF
20178#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020179/* confdefs.h. */
20180_ACEOF
20181cat confdefs.h >>conftest.$ac_ext
20182cat >>conftest.$ac_ext <<_ACEOF
20183/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020184#include <sys/types.h>
20185#include <sys/param.h>
20186
John Criswell7a73b802003-06-30 21:59:07 +000020187int
20188main ()
20189{
20190#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20191 bogus endian macros
20192#endif
20193
20194 ;
20195 return 0;
20196}
20197_ACEOF
20198rm -f conftest.$ac_objext
20199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20200 (eval $ac_compile) 2>&5
20201 ac_status=$?
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); } &&
20204 { ac_try='test -s conftest.$ac_objext'
20205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20206 (eval $ac_try) 2>&5
20207 ac_status=$?
20208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); }; }; then
20210 # It does; now see whether it defined to BIG_ENDIAN or not.
20211cat >conftest.$ac_ext <<_ACEOF
20212#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020213/* confdefs.h. */
20214_ACEOF
20215cat confdefs.h >>conftest.$ac_ext
20216cat >>conftest.$ac_ext <<_ACEOF
20217/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020218#include <sys/types.h>
20219#include <sys/param.h>
20220
John Criswell7a73b802003-06-30 21:59:07 +000020221int
20222main ()
20223{
20224#if BYTE_ORDER != BIG_ENDIAN
20225 not big endian
20226#endif
20227
20228 ;
20229 return 0;
20230}
20231_ACEOF
20232rm -f conftest.$ac_objext
20233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20234 (eval $ac_compile) 2>&5
20235 ac_status=$?
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); } &&
20238 { ac_try='test -s conftest.$ac_objext'
20239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20240 (eval $ac_try) 2>&5
20241 ac_status=$?
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); }; }; then
20244 ac_cv_c_bigendian=yes
20245else
20246 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020247sed 's/^/| /' conftest.$ac_ext >&5
20248
John Criswell7a73b802003-06-30 21:59:07 +000020249ac_cv_c_bigendian=no
20250fi
20251rm -f conftest.$ac_objext conftest.$ac_ext
20252else
20253 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020254sed 's/^/| /' conftest.$ac_ext >&5
20255
John Criswell7a73b802003-06-30 21:59:07 +000020256# It does not; compile a test program.
20257if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020258 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000020259 ac_cv_c_bigendian=unknown
20260 cat >conftest.$ac_ext <<_ACEOF
20261#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020262/* confdefs.h. */
20263_ACEOF
20264cat confdefs.h >>conftest.$ac_ext
20265cat >>conftest.$ac_ext <<_ACEOF
20266/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020267short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20268short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20269void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20270short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20271short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20272void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000020273int
20274main ()
20275{
20276 _ascii (); _ebcdic ();
20277 ;
20278 return 0;
20279}
20280_ACEOF
20281rm -f conftest.$ac_objext
20282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20283 (eval $ac_compile) 2>&5
20284 ac_status=$?
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); } &&
20287 { ac_try='test -s conftest.$ac_objext'
20288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20289 (eval $ac_try) 2>&5
20290 ac_status=$?
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); }; }; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020293 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020294 ac_cv_c_bigendian=yes
20295fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020296if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020297 if test "$ac_cv_c_bigendian" = unknown; then
20298 ac_cv_c_bigendian=no
20299 else
20300 # finding both strings is unlikely to happen, but who knows?
20301 ac_cv_c_bigendian=unknown
20302 fi
20303fi
20304else
20305 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020306sed 's/^/| /' conftest.$ac_ext >&5
20307
John Criswell7a73b802003-06-30 21:59:07 +000020308fi
20309rm -f conftest.$ac_objext conftest.$ac_ext
20310else
20311 cat >conftest.$ac_ext <<_ACEOF
20312#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020313/* confdefs.h. */
20314_ACEOF
20315cat confdefs.h >>conftest.$ac_ext
20316cat >>conftest.$ac_ext <<_ACEOF
20317/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020318int
20319main ()
20320{
20321 /* Are we little or big endian? From Harbison&Steele. */
20322 union
20323 {
20324 long l;
20325 char c[sizeof (long)];
20326 } u;
20327 u.l = 1;
20328 exit (u.c[sizeof (long) - 1] == 1);
20329}
20330_ACEOF
20331rm -f conftest$ac_exeext
20332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20333 (eval $ac_link) 2>&5
20334 ac_status=$?
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20338 (eval $ac_try) 2>&5
20339 ac_status=$?
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); }; }; then
20342 ac_cv_c_bigendian=no
20343else
20344 echo "$as_me: program exited with status $ac_status" >&5
20345echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020346sed 's/^/| /' conftest.$ac_ext >&5
20347
John Criswell7a73b802003-06-30 21:59:07 +000020348( exit $ac_status )
20349ac_cv_c_bigendian=yes
20350fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020351rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020352fi
20353fi
20354rm -f conftest.$ac_objext conftest.$ac_ext
20355fi
20356echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20357echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20358case $ac_cv_c_bigendian in
20359 yes)
20360 cat >>confdefs.h <<\_ACEOF
20361#define ENDIAN_BIG 1
20362_ACEOF
20363 ;;
20364 no)
20365 cat >>confdefs.h <<\_ACEOF
20366#define ENDIAN_LITTLE 1
20367_ACEOF
20368 ;;
20369 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020370 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020371presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020372echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020373presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20374 { (exit 1); exit 1; }; } ;;
20375esac
20376
20377
20378echo "$as_me:$LINENO: checking for pid_t" >&5
20379echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20380if test "${ac_cv_type_pid_t+set}" = set; then
20381 echo $ECHO_N "(cached) $ECHO_C" >&6
20382else
20383 cat >conftest.$ac_ext <<_ACEOF
20384#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020385/* confdefs.h. */
20386_ACEOF
20387cat confdefs.h >>conftest.$ac_ext
20388cat >>conftest.$ac_ext <<_ACEOF
20389/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020390$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020391int
20392main ()
20393{
20394if ((pid_t *) 0)
20395 return 0;
20396if (sizeof (pid_t))
20397 return 0;
20398 ;
20399 return 0;
20400}
20401_ACEOF
20402rm -f conftest.$ac_objext
20403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20404 (eval $ac_compile) 2>&5
20405 ac_status=$?
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); } &&
20408 { ac_try='test -s conftest.$ac_objext'
20409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20410 (eval $ac_try) 2>&5
20411 ac_status=$?
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); }; }; then
20414 ac_cv_type_pid_t=yes
20415else
20416 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020417sed 's/^/| /' conftest.$ac_ext >&5
20418
John Criswell7a73b802003-06-30 21:59:07 +000020419ac_cv_type_pid_t=no
20420fi
20421rm -f conftest.$ac_objext conftest.$ac_ext
20422fi
20423echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20424echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20425if test $ac_cv_type_pid_t = yes; then
20426 :
20427else
20428
20429cat >>confdefs.h <<_ACEOF
20430#define pid_t int
20431_ACEOF
20432
20433fi
20434
20435echo "$as_me:$LINENO: checking for size_t" >&5
20436echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20437if test "${ac_cv_type_size_t+set}" = set; then
20438 echo $ECHO_N "(cached) $ECHO_C" >&6
20439else
20440 cat >conftest.$ac_ext <<_ACEOF
20441#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020442/* confdefs.h. */
20443_ACEOF
20444cat confdefs.h >>conftest.$ac_ext
20445cat >>conftest.$ac_ext <<_ACEOF
20446/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020447$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020448int
20449main ()
20450{
20451if ((size_t *) 0)
20452 return 0;
20453if (sizeof (size_t))
20454 return 0;
20455 ;
20456 return 0;
20457}
20458_ACEOF
20459rm -f conftest.$ac_objext
20460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20461 (eval $ac_compile) 2>&5
20462 ac_status=$?
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); } &&
20465 { ac_try='test -s conftest.$ac_objext'
20466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20467 (eval $ac_try) 2>&5
20468 ac_status=$?
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); }; }; then
20471 ac_cv_type_size_t=yes
20472else
20473 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020474sed 's/^/| /' conftest.$ac_ext >&5
20475
John Criswell7a73b802003-06-30 21:59:07 +000020476ac_cv_type_size_t=no
20477fi
20478rm -f conftest.$ac_objext conftest.$ac_ext
20479fi
20480echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20481echo "${ECHO_T}$ac_cv_type_size_t" >&6
20482if test $ac_cv_type_size_t = yes; then
20483 :
20484else
20485
20486cat >>confdefs.h <<_ACEOF
20487#define size_t unsigned
20488_ACEOF
20489
20490fi
20491
20492echo "$as_me:$LINENO: checking for int64_t" >&5
20493echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20494if test "${ac_cv_type_int64_t+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$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020505int
20506main ()
20507{
20508if ((int64_t *) 0)
20509 return 0;
20510if (sizeof (int64_t))
20511 return 0;
20512 ;
20513 return 0;
20514}
20515_ACEOF
20516rm -f conftest.$ac_objext
20517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20518 (eval $ac_compile) 2>&5
20519 ac_status=$?
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); } &&
20522 { ac_try='test -s conftest.$ac_objext'
20523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20524 (eval $ac_try) 2>&5
20525 ac_status=$?
20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527 (exit $ac_status); }; }; then
20528 ac_cv_type_int64_t=yes
20529else
20530 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020531sed 's/^/| /' conftest.$ac_ext >&5
20532
John Criswell7a73b802003-06-30 21:59:07 +000020533ac_cv_type_int64_t=no
20534fi
20535rm -f conftest.$ac_objext conftest.$ac_ext
20536fi
20537echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20538echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20539if test $ac_cv_type_int64_t = yes; then
20540
20541cat >>confdefs.h <<_ACEOF
20542#define HAVE_INT64_T 1
20543_ACEOF
20544
20545
20546else
20547 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20548echo "$as_me: error: Type int64_t required but not found" >&2;}
20549 { (exit 1); exit 1; }; }
20550fi
20551
20552echo "$as_me:$LINENO: checking for uint64_t" >&5
20553echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20554if test "${ac_cv_type_uint64_t+set}" = set; then
20555 echo $ECHO_N "(cached) $ECHO_C" >&6
20556else
20557 cat >conftest.$ac_ext <<_ACEOF
20558#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020559/* confdefs.h. */
20560_ACEOF
20561cat confdefs.h >>conftest.$ac_ext
20562cat >>conftest.$ac_ext <<_ACEOF
20563/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020564$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020565int
20566main ()
20567{
20568if ((uint64_t *) 0)
20569 return 0;
20570if (sizeof (uint64_t))
20571 return 0;
20572 ;
20573 return 0;
20574}
20575_ACEOF
20576rm -f conftest.$ac_objext
20577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20578 (eval $ac_compile) 2>&5
20579 ac_status=$?
20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); } &&
20582 { ac_try='test -s conftest.$ac_objext'
20583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20584 (eval $ac_try) 2>&5
20585 ac_status=$?
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); }; }; then
20588 ac_cv_type_uint64_t=yes
20589else
20590 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020591sed 's/^/| /' conftest.$ac_ext >&5
20592
John Criswell7a73b802003-06-30 21:59:07 +000020593ac_cv_type_uint64_t=no
20594fi
20595rm -f conftest.$ac_objext conftest.$ac_ext
20596fi
20597echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20598echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20599if test $ac_cv_type_uint64_t = yes; then
20600
20601cat >>confdefs.h <<_ACEOF
20602#define HAVE_UINT64_T 1
20603_ACEOF
20604
20605
20606else
20607 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20608echo "$as_me: error: Type uint64_t required but not found" >&2;}
20609 { (exit 1); exit 1; }; }
20610fi
20611
20612echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20613echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20614if test "${ac_cv_header_time+set}" = set; then
20615 echo $ECHO_N "(cached) $ECHO_C" >&6
20616else
20617 cat >conftest.$ac_ext <<_ACEOF
20618#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020619/* confdefs.h. */
20620_ACEOF
20621cat confdefs.h >>conftest.$ac_ext
20622cat >>conftest.$ac_ext <<_ACEOF
20623/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020624#include <sys/types.h>
20625#include <sys/time.h>
20626#include <time.h>
20627
John Criswell7a73b802003-06-30 21:59:07 +000020628int
20629main ()
20630{
20631if ((struct tm *) 0)
20632return 0;
20633 ;
20634 return 0;
20635}
20636_ACEOF
20637rm -f conftest.$ac_objext
20638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20639 (eval $ac_compile) 2>&5
20640 ac_status=$?
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); } &&
20643 { ac_try='test -s conftest.$ac_objext'
20644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20645 (eval $ac_try) 2>&5
20646 ac_status=$?
20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); }; }; then
20649 ac_cv_header_time=yes
20650else
20651 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020652sed 's/^/| /' conftest.$ac_ext >&5
20653
John Criswell7a73b802003-06-30 21:59:07 +000020654ac_cv_header_time=no
20655fi
20656rm -f conftest.$ac_objext conftest.$ac_ext
20657fi
20658echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20659echo "${ECHO_T}$ac_cv_header_time" >&6
20660if test $ac_cv_header_time = yes; then
20661
20662cat >>confdefs.h <<\_ACEOF
20663#define TIME_WITH_SYS_TIME 1
20664_ACEOF
20665
20666fi
20667
20668echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20669echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20670if test "${ac_cv_struct_tm+set}" = set; then
20671 echo $ECHO_N "(cached) $ECHO_C" >&6
20672else
20673 cat >conftest.$ac_ext <<_ACEOF
20674#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020675/* confdefs.h. */
20676_ACEOF
20677cat confdefs.h >>conftest.$ac_ext
20678cat >>conftest.$ac_ext <<_ACEOF
20679/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020680#include <sys/types.h>
20681#include <time.h>
20682
John Criswell7a73b802003-06-30 21:59:07 +000020683int
20684main ()
20685{
20686struct tm *tp; tp->tm_sec;
20687 ;
20688 return 0;
20689}
20690_ACEOF
20691rm -f conftest.$ac_objext
20692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20693 (eval $ac_compile) 2>&5
20694 ac_status=$?
20695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696 (exit $ac_status); } &&
20697 { ac_try='test -s conftest.$ac_objext'
20698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20699 (eval $ac_try) 2>&5
20700 ac_status=$?
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); }; }; then
20703 ac_cv_struct_tm=time.h
20704else
20705 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020706sed 's/^/| /' conftest.$ac_ext >&5
20707
John Criswell7a73b802003-06-30 21:59:07 +000020708ac_cv_struct_tm=sys/time.h
20709fi
20710rm -f conftest.$ac_objext conftest.$ac_ext
20711fi
20712echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20713echo "${ECHO_T}$ac_cv_struct_tm" >&6
20714if test $ac_cv_struct_tm = sys/time.h; then
20715
20716cat >>confdefs.h <<\_ACEOF
20717#define TM_IN_SYS_TIME 1
20718_ACEOF
20719
20720fi
20721
20722
John Criswell7a73b802003-06-30 21:59:07 +000020723echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20724echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20725if test "${ac_cv_cxx_namespaces+set}" = set; then
20726 echo $ECHO_N "(cached) $ECHO_C" >&6
20727else
20728
20729
20730 ac_ext=cc
20731ac_cpp='$CXXCPP $CPPFLAGS'
20732ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20733ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20734ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20735
20736 cat >conftest.$ac_ext <<_ACEOF
20737#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020738/* confdefs.h. */
20739_ACEOF
20740cat confdefs.h >>conftest.$ac_ext
20741cat >>conftest.$ac_ext <<_ACEOF
20742/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020743namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020744int
20745main ()
20746{
20747using namespace Outer::Inner; return i;
20748 ;
20749 return 0;
20750}
20751_ACEOF
20752rm -f conftest.$ac_objext
20753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20754 (eval $ac_compile) 2>&5
20755 ac_status=$?
20756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757 (exit $ac_status); } &&
20758 { ac_try='test -s conftest.$ac_objext'
20759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20760 (eval $ac_try) 2>&5
20761 ac_status=$?
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); }; }; then
20764 ac_cv_cxx_namespaces=yes
20765else
20766 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020767sed 's/^/| /' conftest.$ac_ext >&5
20768
John Criswell7a73b802003-06-30 21:59:07 +000020769ac_cv_cxx_namespaces=no
20770fi
20771rm -f conftest.$ac_objext conftest.$ac_ext
20772 ac_ext=c
20773ac_cpp='$CPP $CPPFLAGS'
20774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20776ac_compiler_gnu=$ac_cv_c_compiler_gnu
20777
20778
20779fi
20780echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20781echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20782if test "$ac_cv_cxx_namespaces" = yes; then
20783
20784cat >>confdefs.h <<\_ACEOF
20785#define HAVE_NAMESPACES
20786_ACEOF
20787
20788fi
20789
20790echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20791echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20792if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20793 echo $ECHO_N "(cached) $ECHO_C" >&6
20794else
20795
20796
20797
20798 ac_ext=cc
20799ac_cpp='$CXXCPP $CPPFLAGS'
20800ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20801ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20802ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20803
20804 cat >conftest.$ac_ext <<_ACEOF
20805#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020806/* confdefs.h. */
20807_ACEOF
20808cat confdefs.h >>conftest.$ac_ext
20809cat >>conftest.$ac_ext <<_ACEOF
20810/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020811#include <ext/hash_map>
20812#ifdef HAVE_NAMESPACES
20813using namespace std;
20814#endif
John Criswell7a73b802003-06-30 21:59:07 +000020815int
20816main ()
20817{
20818hash_map<int, int> t; return 0;
20819 ;
20820 return 0;
20821}
20822_ACEOF
20823rm -f conftest.$ac_objext
20824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20825 (eval $ac_compile) 2>&5
20826 ac_status=$?
20827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828 (exit $ac_status); } &&
20829 { ac_try='test -s conftest.$ac_objext'
20830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20831 (eval $ac_try) 2>&5
20832 ac_status=$?
20833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834 (exit $ac_status); }; }; then
20835 ac_cv_cxx_have_ext_hash_map=std
20836else
20837 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020838sed 's/^/| /' conftest.$ac_ext >&5
20839
John Criswell7a73b802003-06-30 21:59:07 +000020840ac_cv_cxx_have_ext_hash_map=no
20841fi
20842rm -f conftest.$ac_objext conftest.$ac_ext
20843 cat >conftest.$ac_ext <<_ACEOF
20844#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020845/* confdefs.h. */
20846_ACEOF
20847cat confdefs.h >>conftest.$ac_ext
20848cat >>conftest.$ac_ext <<_ACEOF
20849/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020850#include <ext/hash_map>
20851#ifdef HAVE_NAMESPACES
20852using namespace __gnu_cxx;
20853#endif
John Criswell7a73b802003-06-30 21:59:07 +000020854int
20855main ()
20856{
20857hash_map<int, int> t; return 0;
20858 ;
20859 return 0;
20860}
20861_ACEOF
20862rm -f conftest.$ac_objext
20863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20864 (eval $ac_compile) 2>&5
20865 ac_status=$?
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); } &&
20868 { ac_try='test -s conftest.$ac_objext'
20869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20870 (eval $ac_try) 2>&5
20871 ac_status=$?
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); }; }; then
20874 ac_cv_cxx_have_ext_hash_map=gnu
20875else
20876 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020877sed 's/^/| /' conftest.$ac_ext >&5
20878
John Criswell7a73b802003-06-30 21:59:07 +000020879ac_cv_cxx_have_ext_hash_map=no
20880fi
20881rm -f conftest.$ac_objext conftest.$ac_ext
20882 ac_ext=c
20883ac_cpp='$CPP $CPPFLAGS'
20884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20886ac_compiler_gnu=$ac_cv_c_compiler_gnu
20887
20888
20889fi
20890echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20891echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20892if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20893
20894cat >>confdefs.h <<\_ACEOF
20895#define HAVE_STD_EXT_HASH_MAP
20896_ACEOF
20897
20898fi
20899if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20900
20901cat >>confdefs.h <<\_ACEOF
20902#define HAVE_GNU_EXT_HASH_MAP
20903_ACEOF
20904
20905fi
20906
20907echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20908echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20909if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20910 echo $ECHO_N "(cached) $ECHO_C" >&6
20911else
20912
20913
20914
20915 ac_ext=cc
20916ac_cpp='$CXXCPP $CPPFLAGS'
20917ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20918ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20919ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20920
20921 cat >conftest.$ac_ext <<_ACEOF
20922#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020923/* confdefs.h. */
20924_ACEOF
20925cat confdefs.h >>conftest.$ac_ext
20926cat >>conftest.$ac_ext <<_ACEOF
20927/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020928#include <ext/hash_set>
20929#ifdef HAVE_NAMESPACES
20930using namespace std;
20931#endif
John Criswell7a73b802003-06-30 21:59:07 +000020932int
20933main ()
20934{
20935hash_set<int> t; return 0;
20936 ;
20937 return 0;
20938}
20939_ACEOF
20940rm -f conftest.$ac_objext
20941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20942 (eval $ac_compile) 2>&5
20943 ac_status=$?
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); } &&
20946 { ac_try='test -s conftest.$ac_objext'
20947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948 (eval $ac_try) 2>&5
20949 ac_status=$?
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); }; }; then
20952 ac_cv_cxx_have_ext_hash_set=std
20953else
20954 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020955sed 's/^/| /' conftest.$ac_ext >&5
20956
John Criswell7a73b802003-06-30 21:59:07 +000020957ac_cv_cxx_have_ext_hash_set=no
20958fi
20959rm -f conftest.$ac_objext conftest.$ac_ext
20960 cat >conftest.$ac_ext <<_ACEOF
20961#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020962/* confdefs.h. */
20963_ACEOF
20964cat confdefs.h >>conftest.$ac_ext
20965cat >>conftest.$ac_ext <<_ACEOF
20966/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020967#include <ext/hash_set>
20968#ifdef HAVE_NAMESPACES
20969using namespace __gnu_cxx;
20970#endif
John Criswell7a73b802003-06-30 21:59:07 +000020971int
20972main ()
20973{
20974hash_set<int> t; return 0;
20975 ;
20976 return 0;
20977}
20978_ACEOF
20979rm -f conftest.$ac_objext
20980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20981 (eval $ac_compile) 2>&5
20982 ac_status=$?
20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); } &&
20985 { ac_try='test -s conftest.$ac_objext'
20986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20987 (eval $ac_try) 2>&5
20988 ac_status=$?
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); }; }; then
20991 ac_cv_cxx_have_ext_hash_set=gnu
20992else
20993 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020994sed 's/^/| /' conftest.$ac_ext >&5
20995
John Criswell7a73b802003-06-30 21:59:07 +000020996ac_cv_cxx_have_ext_hash_set=no
20997fi
20998rm -f conftest.$ac_objext conftest.$ac_ext
20999 ac_ext=c
21000ac_cpp='$CPP $CPPFLAGS'
21001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21003ac_compiler_gnu=$ac_cv_c_compiler_gnu
21004
21005
21006fi
21007echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
21008echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
21009if test "$ac_cv_cxx_have_ext_hash_set" = std; then
21010
21011cat >>confdefs.h <<\_ACEOF
21012#define HAVE_STD_EXT_HASH_SET
21013_ACEOF
21014
21015fi
21016if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
21017
21018cat >>confdefs.h <<\_ACEOF
21019#define HAVE_GNU_EXT_HASH_SET
21020_ACEOF
21021
21022fi
21023
21024echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21025echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21026if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21027 echo $ECHO_N "(cached) $ECHO_C" >&6
21028else
21029
21030
21031
21032 ac_ext=cc
21033ac_cpp='$CXXCPP $CPPFLAGS'
21034ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21035ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21036ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21037
21038 cat >conftest.$ac_ext <<_ACEOF
21039#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021040/* confdefs.h. */
21041_ACEOF
21042cat confdefs.h >>conftest.$ac_ext
21043cat >>conftest.$ac_ext <<_ACEOF
21044/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021045#include <ext/slist>
21046#ifdef HAVE_NAMESPACES
21047using namespace std;
21048#endif
John Criswell7a73b802003-06-30 21:59:07 +000021049int
21050main ()
21051{
21052slist<int> s; return 0;
21053 ;
21054 return 0;
21055}
21056_ACEOF
21057rm -f conftest.$ac_objext
21058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21059 (eval $ac_compile) 2>&5
21060 ac_status=$?
21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); } &&
21063 { ac_try='test -s conftest.$ac_objext'
21064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21065 (eval $ac_try) 2>&5
21066 ac_status=$?
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); }; }; then
21069 ac_cv_cxx_have_ext_slist=std
21070else
21071 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021072sed 's/^/| /' conftest.$ac_ext >&5
21073
John Criswell7a73b802003-06-30 21:59:07 +000021074ac_cv_cxx_have_ext_slist=no
21075fi
21076rm -f conftest.$ac_objext conftest.$ac_ext
21077 cat >conftest.$ac_ext <<_ACEOF
21078#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021079/* confdefs.h. */
21080_ACEOF
21081cat confdefs.h >>conftest.$ac_ext
21082cat >>conftest.$ac_ext <<_ACEOF
21083/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021084#include <ext/slist>
21085#ifdef HAVE_NAMESPACES
21086using namespace __gnu_cxx;
21087#endif
John Criswell7a73b802003-06-30 21:59:07 +000021088int
21089main ()
21090{
21091slist<int> s; return 0;
21092 ;
21093 return 0;
21094}
21095_ACEOF
21096rm -f conftest.$ac_objext
21097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21098 (eval $ac_compile) 2>&5
21099 ac_status=$?
21100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101 (exit $ac_status); } &&
21102 { ac_try='test -s conftest.$ac_objext'
21103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21104 (eval $ac_try) 2>&5
21105 ac_status=$?
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); }; }; then
21108 ac_cv_cxx_have_ext_slist=gnu
21109else
21110 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021111sed 's/^/| /' conftest.$ac_ext >&5
21112
John Criswell7a73b802003-06-30 21:59:07 +000021113ac_cv_cxx_have_ext_slist=no
21114fi
21115rm -f conftest.$ac_objext conftest.$ac_ext
21116
21117 ac_ext=c
21118ac_cpp='$CPP $CPPFLAGS'
21119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21121ac_compiler_gnu=$ac_cv_c_compiler_gnu
21122
21123
21124fi
21125echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21126echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21127if test "$ac_cv_cxx_have_ext_slist" = std; then
21128
21129cat >>confdefs.h <<\_ACEOF
21130#define HAVE_EXT_SLIST std
21131_ACEOF
21132
21133fi
21134if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21135
21136cat >>confdefs.h <<\_ACEOF
21137#define HAVE_EXT_SLIST gnu
21138_ACEOF
21139
21140fi
21141
21142echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21143echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21144if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21145 echo $ECHO_N "(cached) $ECHO_C" >&6
21146else
21147
21148
21149
21150 ac_ext=cc
21151ac_cpp='$CXXCPP $CPPFLAGS'
21152ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21153ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21154ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21155
21156 cat >conftest.$ac_ext <<_ACEOF
21157#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021158/* confdefs.h. */
21159_ACEOF
21160cat confdefs.h >>conftest.$ac_ext
21161cat >>conftest.$ac_ext <<_ACEOF
21162/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021163#include <iterator>
21164#ifdef HAVE_NAMESPACES
21165using namespace std;
21166#endif
John Criswell7a73b802003-06-30 21:59:07 +000021167int
21168main ()
21169{
21170iterator<int,int,int> t; return 0;
21171 ;
21172 return 0;
21173}
21174_ACEOF
21175rm -f conftest.$ac_objext
21176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21177 (eval $ac_compile) 2>&5
21178 ac_status=$?
21179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 (exit $ac_status); } &&
21181 { ac_try='test -s conftest.$ac_objext'
21182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21183 (eval $ac_try) 2>&5
21184 ac_status=$?
21185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186 (exit $ac_status); }; }; then
21187 ac_cv_cxx_have_std_iterator=yes
21188else
21189 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021190sed 's/^/| /' conftest.$ac_ext >&5
21191
John Criswell7a73b802003-06-30 21:59:07 +000021192ac_cv_cxx_have_std_iterator=no
21193fi
21194rm -f conftest.$ac_objext conftest.$ac_ext
21195 ac_ext=c
21196ac_cpp='$CPP $CPPFLAGS'
21197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21199ac_compiler_gnu=$ac_cv_c_compiler_gnu
21200
21201
21202fi
21203echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21204echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21205if test "$ac_cv_cxx_have_std_iterator" = yes; then
21206
21207cat >>confdefs.h <<\_ACEOF
21208#define HAVE_STD_ITERATOR
21209_ACEOF
21210
21211fi
21212
21213echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21214echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21215if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21216 echo $ECHO_N "(cached) $ECHO_C" >&6
21217else
21218
21219
21220
21221 ac_ext=cc
21222ac_cpp='$CXXCPP $CPPFLAGS'
21223ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21224ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21225ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21226
21227 cat >conftest.$ac_ext <<_ACEOF
21228#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021229/* confdefs.h. */
21230_ACEOF
21231cat confdefs.h >>conftest.$ac_ext
21232cat >>conftest.$ac_ext <<_ACEOF
21233/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021234#include <iterator>
21235#ifdef HAVE_NAMESPACES
21236using namespace std;
21237#endif
John Criswell7a73b802003-06-30 21:59:07 +000021238int
21239main ()
21240{
John Criswellc78022e2003-07-29 19:11:58 +000021241bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021242 ;
21243 return 0;
21244}
21245_ACEOF
21246rm -f conftest.$ac_objext
21247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21248 (eval $ac_compile) 2>&5
21249 ac_status=$?
21250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251 (exit $ac_status); } &&
21252 { ac_try='test -s conftest.$ac_objext'
21253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21254 (eval $ac_try) 2>&5
21255 ac_status=$?
21256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); }; }; then
21258 ac_cv_cxx_have_bi_iterator=yes
21259else
21260 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021261sed 's/^/| /' conftest.$ac_ext >&5
21262
John Criswell7a73b802003-06-30 21:59:07 +000021263ac_cv_cxx_have_bi_iterator=no
21264fi
21265rm -f conftest.$ac_objext conftest.$ac_ext
21266 ac_ext=c
21267ac_cpp='$CPP $CPPFLAGS'
21268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21270ac_compiler_gnu=$ac_cv_c_compiler_gnu
21271
21272
21273fi
21274echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21275echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21276if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21277
21278cat >>confdefs.h <<\_ACEOF
21279#define HAVE_BI_ITERATOR
21280_ACEOF
21281
21282fi
21283
21284echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21285echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21286if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21287 echo $ECHO_N "(cached) $ECHO_C" >&6
21288else
21289
21290
21291
21292 ac_ext=cc
21293ac_cpp='$CXXCPP $CPPFLAGS'
21294ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21295ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21296ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21297
21298 cat >conftest.$ac_ext <<_ACEOF
21299#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021300/* confdefs.h. */
21301_ACEOF
21302cat confdefs.h >>conftest.$ac_ext
21303cat >>conftest.$ac_ext <<_ACEOF
21304/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021305#include <iterator>
21306#ifdef HAVE_NAMESPACES
21307using namespace std;
21308#endif
John Criswell7a73b802003-06-30 21:59:07 +000021309int
21310main ()
21311{
John Criswellc78022e2003-07-29 19:11:58 +000021312forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021313 ;
21314 return 0;
21315}
21316_ACEOF
21317rm -f conftest.$ac_objext
21318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21319 (eval $ac_compile) 2>&5
21320 ac_status=$?
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); } &&
21323 { ac_try='test -s conftest.$ac_objext'
21324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21325 (eval $ac_try) 2>&5
21326 ac_status=$?
21327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328 (exit $ac_status); }; }; then
21329 ac_cv_cxx_have_fwd_iterator=yes
21330else
21331 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021332sed 's/^/| /' conftest.$ac_ext >&5
21333
John Criswell7a73b802003-06-30 21:59:07 +000021334ac_cv_cxx_have_fwd_iterator=no
21335fi
21336rm -f conftest.$ac_objext conftest.$ac_ext
21337 ac_ext=c
21338ac_cpp='$CPP $CPPFLAGS'
21339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21341ac_compiler_gnu=$ac_cv_c_compiler_gnu
21342
21343
21344fi
21345echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21346echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21347if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21348
21349cat >>confdefs.h <<\_ACEOF
21350#define HAVE_FWD_ITERATOR
21351_ACEOF
21352
21353fi
21354
21355
21356# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21357# for constant arguments. Useless!
21358echo "$as_me:$LINENO: checking for working alloca.h" >&5
21359echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21360if test "${ac_cv_working_alloca_h+set}" = set; then
21361 echo $ECHO_N "(cached) $ECHO_C" >&6
21362else
21363 cat >conftest.$ac_ext <<_ACEOF
21364#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021365/* confdefs.h. */
21366_ACEOF
21367cat confdefs.h >>conftest.$ac_ext
21368cat >>conftest.$ac_ext <<_ACEOF
21369/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021370#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021371int
21372main ()
21373{
21374char *p = (char *) alloca (2 * sizeof (int));
21375 ;
21376 return 0;
21377}
21378_ACEOF
21379rm -f conftest.$ac_objext conftest$ac_exeext
21380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21381 (eval $ac_link) 2>&5
21382 ac_status=$?
21383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384 (exit $ac_status); } &&
21385 { ac_try='test -s conftest$ac_exeext'
21386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21387 (eval $ac_try) 2>&5
21388 ac_status=$?
21389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390 (exit $ac_status); }; }; then
21391 ac_cv_working_alloca_h=yes
21392else
21393 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021394sed 's/^/| /' conftest.$ac_ext >&5
21395
John Criswell7a73b802003-06-30 21:59:07 +000021396ac_cv_working_alloca_h=no
21397fi
21398rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21399fi
21400echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21401echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21402if test $ac_cv_working_alloca_h = yes; then
21403
21404cat >>confdefs.h <<\_ACEOF
21405#define HAVE_ALLOCA_H 1
21406_ACEOF
21407
21408fi
21409
21410echo "$as_me:$LINENO: checking for alloca" >&5
21411echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21412if test "${ac_cv_func_alloca_works+set}" = set; then
21413 echo $ECHO_N "(cached) $ECHO_C" >&6
21414else
21415 cat >conftest.$ac_ext <<_ACEOF
21416#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021417/* confdefs.h. */
21418_ACEOF
21419cat confdefs.h >>conftest.$ac_ext
21420cat >>conftest.$ac_ext <<_ACEOF
21421/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021422#ifdef __GNUC__
21423# define alloca __builtin_alloca
21424#else
21425# ifdef _MSC_VER
21426# include <malloc.h>
21427# define alloca _alloca
21428# else
21429# if HAVE_ALLOCA_H
21430# include <alloca.h>
21431# else
21432# ifdef _AIX
21433 #pragma alloca
21434# else
21435# ifndef alloca /* predefined by HP cc +Olibcalls */
21436char *alloca ();
21437# endif
21438# endif
21439# endif
21440# endif
21441#endif
21442
John Criswell7a73b802003-06-30 21:59:07 +000021443int
21444main ()
21445{
21446char *p = (char *) alloca (1);
21447 ;
21448 return 0;
21449}
21450_ACEOF
21451rm -f conftest.$ac_objext conftest$ac_exeext
21452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21453 (eval $ac_link) 2>&5
21454 ac_status=$?
21455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456 (exit $ac_status); } &&
21457 { ac_try='test -s conftest$ac_exeext'
21458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21459 (eval $ac_try) 2>&5
21460 ac_status=$?
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); }; }; then
21463 ac_cv_func_alloca_works=yes
21464else
21465 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021466sed 's/^/| /' conftest.$ac_ext >&5
21467
John Criswell7a73b802003-06-30 21:59:07 +000021468ac_cv_func_alloca_works=no
21469fi
21470rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21471fi
21472echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21473echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21474
21475if test $ac_cv_func_alloca_works = yes; then
21476
21477cat >>confdefs.h <<\_ACEOF
21478#define HAVE_ALLOCA 1
21479_ACEOF
21480
21481else
21482 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21483# that cause trouble. Some versions do not even contain alloca or
21484# contain a buggy version. If you still want to use their alloca,
21485# use ar to extract alloca.o from them instead of compiling alloca.c.
21486
21487ALLOCA=alloca.$ac_objext
21488
21489cat >>confdefs.h <<\_ACEOF
21490#define C_ALLOCA 1
21491_ACEOF
21492
21493
21494echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21495echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21496if test "${ac_cv_os_cray+set}" = set; then
21497 echo $ECHO_N "(cached) $ECHO_C" >&6
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 +000021506#if defined(CRAY) && ! defined(CRAY2)
21507webecray
21508#else
21509wenotbecray
21510#endif
21511
21512_ACEOF
21513if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021514 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021515 ac_cv_os_cray=yes
21516else
21517 ac_cv_os_cray=no
21518fi
21519rm -f conftest*
21520
21521fi
21522echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21523echo "${ECHO_T}$ac_cv_os_cray" >&6
21524if test $ac_cv_os_cray = yes; then
21525 for ac_func in _getb67 GETB67 getb67; do
21526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21527echo "$as_me:$LINENO: checking for $ac_func" >&5
21528echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21529if eval "test \"\${$as_ac_var+set}\" = set"; then
21530 echo $ECHO_N "(cached) $ECHO_C" >&6
21531else
21532 cat >conftest.$ac_ext <<_ACEOF
21533#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021534/* confdefs.h. */
21535_ACEOF
21536cat confdefs.h >>conftest.$ac_ext
21537cat >>conftest.$ac_ext <<_ACEOF
21538/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021539/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021540 which can conflict with char $ac_func (); below.
21541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21542 <limits.h> exists even on freestanding compilers. */
21543#ifdef __STDC__
21544# include <limits.h>
21545#else
21546# include <assert.h>
21547#endif
John Criswell7a73b802003-06-30 21:59:07 +000021548/* Override any gcc2 internal prototype to avoid an error. */
21549#ifdef __cplusplus
21550extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021551{
John Criswell7a73b802003-06-30 21:59:07 +000021552#endif
21553/* We use char because int might match the return type of a gcc2
21554 builtin and then its argument prototype would still apply. */
21555char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021556/* The GNU C library defines this for functions which it implements
21557 to always fail with ENOSYS. Some functions are actually named
21558 something starting with __ and the normal name is an alias. */
21559#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21560choke me
21561#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021562char (*f) () = $ac_func;
21563#endif
21564#ifdef __cplusplus
21565}
John Criswell7a73b802003-06-30 21:59:07 +000021566#endif
21567
John Criswell0c38eaf2003-09-10 15:17:25 +000021568int
21569main ()
21570{
21571return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021572 ;
21573 return 0;
21574}
21575_ACEOF
21576rm -f conftest.$ac_objext conftest$ac_exeext
21577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21578 (eval $ac_link) 2>&5
21579 ac_status=$?
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); } &&
21582 { ac_try='test -s conftest$ac_exeext'
21583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21584 (eval $ac_try) 2>&5
21585 ac_status=$?
21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587 (exit $ac_status); }; }; then
21588 eval "$as_ac_var=yes"
21589else
21590 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021591sed 's/^/| /' conftest.$ac_ext >&5
21592
John Criswell7a73b802003-06-30 21:59:07 +000021593eval "$as_ac_var=no"
21594fi
21595rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21596fi
21597echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21598echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21599if test `eval echo '${'$as_ac_var'}'` = yes; then
21600
21601cat >>confdefs.h <<_ACEOF
21602#define CRAY_STACKSEG_END $ac_func
21603_ACEOF
21604
21605 break
21606fi
21607
21608 done
21609fi
21610
21611echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21612echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21613if test "${ac_cv_c_stack_direction+set}" = set; then
21614 echo $ECHO_N "(cached) $ECHO_C" >&6
21615else
21616 if test "$cross_compiling" = yes; then
21617 ac_cv_c_stack_direction=0
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 +000021626int
21627find_stack_direction ()
21628{
21629 static char *addr = 0;
21630 auto char dummy;
21631 if (addr == 0)
21632 {
21633 addr = &dummy;
21634 return find_stack_direction ();
21635 }
21636 else
21637 return (&dummy > addr) ? 1 : -1;
21638}
21639
21640int
21641main ()
21642{
21643 exit (find_stack_direction () < 0);
21644}
21645_ACEOF
21646rm -f conftest$ac_exeext
21647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21648 (eval $ac_link) 2>&5
21649 ac_status=$?
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653 (eval $ac_try) 2>&5
21654 ac_status=$?
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); }; }; then
21657 ac_cv_c_stack_direction=1
21658else
21659 echo "$as_me: program exited with status $ac_status" >&5
21660echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021661sed 's/^/| /' conftest.$ac_ext >&5
21662
John Criswell7a73b802003-06-30 21:59:07 +000021663( exit $ac_status )
21664ac_cv_c_stack_direction=-1
21665fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021666rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021667fi
21668fi
21669echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21670echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21671
21672cat >>confdefs.h <<_ACEOF
21673#define STACK_DIRECTION $ac_cv_c_stack_direction
21674_ACEOF
21675
21676
21677fi
21678
21679if test $ac_cv_c_compiler_gnu = yes; then
21680 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21681echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21682if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21683 echo $ECHO_N "(cached) $ECHO_C" >&6
21684else
21685 ac_pattern="Autoconf.*'x'"
21686 cat >conftest.$ac_ext <<_ACEOF
21687#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021688/* confdefs.h. */
21689_ACEOF
21690cat confdefs.h >>conftest.$ac_ext
21691cat >>conftest.$ac_ext <<_ACEOF
21692/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021693#include <sgtty.h>
21694Autoconf TIOCGETP
21695_ACEOF
21696if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021697 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021698 ac_cv_prog_gcc_traditional=yes
21699else
21700 ac_cv_prog_gcc_traditional=no
21701fi
21702rm -f conftest*
21703
21704
21705 if test $ac_cv_prog_gcc_traditional = no; then
21706 cat >conftest.$ac_ext <<_ACEOF
21707#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021708/* confdefs.h. */
21709_ACEOF
21710cat confdefs.h >>conftest.$ac_ext
21711cat >>conftest.$ac_ext <<_ACEOF
21712/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021713#include <termio.h>
21714Autoconf TCGETA
21715_ACEOF
21716if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021717 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021718 ac_cv_prog_gcc_traditional=yes
21719fi
21720rm -f conftest*
21721
21722 fi
21723fi
21724echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21725echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21726 if test $ac_cv_prog_gcc_traditional = yes; then
21727 CC="$CC -traditional"
21728 fi
21729fi
21730
21731echo "$as_me:$LINENO: checking for working memcmp" >&5
21732echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21733if test "${ac_cv_func_memcmp_working+set}" = set; then
21734 echo $ECHO_N "(cached) $ECHO_C" >&6
21735else
21736 if test "$cross_compiling" = yes; then
21737 ac_cv_func_memcmp_working=no
21738else
21739 cat >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
John Criswell7a73b802003-06-30 21:59:07 +000021747int
21748main ()
21749{
21750
21751 /* Some versions of memcmp are not 8-bit clean. */
21752 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21753 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21754 exit (1);
21755
21756 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21757 or more and with at least one buffer not starting on a 4-byte boundary.
21758 William Lewis provided this test program. */
21759 {
21760 char foo[21];
21761 char bar[21];
21762 int i;
21763 for (i = 0; i < 4; i++)
21764 {
21765 char *a = foo + i;
21766 char *b = bar + i;
21767 strcpy (a, "--------01111111");
21768 strcpy (b, "--------10000000");
21769 if (memcmp (a, b, 16) >= 0)
21770 exit (1);
21771 }
21772 exit (0);
21773 }
21774
21775 ;
21776 return 0;
21777}
21778_ACEOF
21779rm -f conftest$ac_exeext
21780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21781 (eval $ac_link) 2>&5
21782 ac_status=$?
21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21786 (eval $ac_try) 2>&5
21787 ac_status=$?
21788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789 (exit $ac_status); }; }; then
21790 ac_cv_func_memcmp_working=yes
21791else
21792 echo "$as_me: program exited with status $ac_status" >&5
21793echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021794sed 's/^/| /' conftest.$ac_ext >&5
21795
John Criswell7a73b802003-06-30 21:59:07 +000021796( exit $ac_status )
21797ac_cv_func_memcmp_working=no
21798fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021799rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021800fi
21801fi
21802echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21803echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21804test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21805
21806
21807
21808for ac_header in stdlib.h unistd.h
21809do
21810as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21811if eval "test \"\${$as_ac_Header+set}\" = set"; then
21812 echo "$as_me:$LINENO: checking for $ac_header" >&5
21813echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21814if eval "test \"\${$as_ac_Header+set}\" = set"; then
21815 echo $ECHO_N "(cached) $ECHO_C" >&6
21816fi
21817echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21818echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21819else
21820 # Is the header compilable?
21821echo "$as_me:$LINENO: checking $ac_header usability" >&5
21822echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21823cat >conftest.$ac_ext <<_ACEOF
21824#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021825/* confdefs.h. */
21826_ACEOF
21827cat confdefs.h >>conftest.$ac_ext
21828cat >>conftest.$ac_ext <<_ACEOF
21829/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021830$ac_includes_default
21831#include <$ac_header>
21832_ACEOF
21833rm -f conftest.$ac_objext
21834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21835 (eval $ac_compile) 2>&5
21836 ac_status=$?
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); } &&
21839 { ac_try='test -s conftest.$ac_objext'
21840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21841 (eval $ac_try) 2>&5
21842 ac_status=$?
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); }; }; then
21845 ac_header_compiler=yes
21846else
21847 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021848sed 's/^/| /' conftest.$ac_ext >&5
21849
John Criswell7a73b802003-06-30 21:59:07 +000021850ac_header_compiler=no
21851fi
21852rm -f conftest.$ac_objext conftest.$ac_ext
21853echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21854echo "${ECHO_T}$ac_header_compiler" >&6
21855
21856# Is the header present?
21857echo "$as_me:$LINENO: checking $ac_header presence" >&5
21858echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21859cat >conftest.$ac_ext <<_ACEOF
21860#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021861/* confdefs.h. */
21862_ACEOF
21863cat confdefs.h >>conftest.$ac_ext
21864cat >>conftest.$ac_ext <<_ACEOF
21865/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021866#include <$ac_header>
21867_ACEOF
21868if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21870 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021871 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021872 rm -f conftest.er1
21873 cat conftest.err >&5
21874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875 (exit $ac_status); } >/dev/null; then
21876 if test -s conftest.err; then
21877 ac_cpp_err=$ac_c_preproc_warn_flag
21878 else
21879 ac_cpp_err=
21880 fi
21881else
21882 ac_cpp_err=yes
21883fi
21884if test -z "$ac_cpp_err"; then
21885 ac_header_preproc=yes
21886else
21887 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021888sed 's/^/| /' conftest.$ac_ext >&5
21889
John Criswell7a73b802003-06-30 21:59:07 +000021890 ac_header_preproc=no
21891fi
21892rm -f conftest.err conftest.$ac_ext
21893echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21894echo "${ECHO_T}$ac_header_preproc" >&6
21895
21896# So? What about this header?
21897case $ac_header_compiler:$ac_header_preproc in
21898 yes:no )
21899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21900echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021902echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21903 (
21904 cat <<\_ASBOX
21905## ------------------------------------ ##
21906## Report this to bug-autoconf@gnu.org. ##
21907## ------------------------------------ ##
21908_ASBOX
21909 ) |
21910 sed "s/^/$as_me: WARNING: /" >&2
21911 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021912 no:yes )
21913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21914echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21916echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021918echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21919 (
21920 cat <<\_ASBOX
21921## ------------------------------------ ##
21922## Report this to bug-autoconf@gnu.org. ##
21923## ------------------------------------ ##
21924_ASBOX
21925 ) |
21926 sed "s/^/$as_me: WARNING: /" >&2
21927 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021928esac
21929echo "$as_me:$LINENO: checking for $ac_header" >&5
21930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21931if eval "test \"\${$as_ac_Header+set}\" = set"; then
21932 echo $ECHO_N "(cached) $ECHO_C" >&6
21933else
21934 eval "$as_ac_Header=$ac_header_preproc"
21935fi
21936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21937echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21938
21939fi
21940if test `eval echo '${'$as_ac_Header'}'` = yes; then
21941 cat >>confdefs.h <<_ACEOF
21942#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21943_ACEOF
21944
21945fi
21946
21947done
21948
21949
21950for ac_func in getpagesize
21951do
21952as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21953echo "$as_me:$LINENO: checking for $ac_func" >&5
21954echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21955if eval "test \"\${$as_ac_var+set}\" = set"; then
21956 echo $ECHO_N "(cached) $ECHO_C" >&6
21957else
21958 cat >conftest.$ac_ext <<_ACEOF
21959#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021960/* confdefs.h. */
21961_ACEOF
21962cat confdefs.h >>conftest.$ac_ext
21963cat >>conftest.$ac_ext <<_ACEOF
21964/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021965/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021966 which can conflict with char $ac_func (); below.
21967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21968 <limits.h> exists even on freestanding compilers. */
21969#ifdef __STDC__
21970# include <limits.h>
21971#else
21972# include <assert.h>
21973#endif
John Criswell7a73b802003-06-30 21:59:07 +000021974/* Override any gcc2 internal prototype to avoid an error. */
21975#ifdef __cplusplus
21976extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021977{
John Criswell7a73b802003-06-30 21:59:07 +000021978#endif
21979/* We use char because int might match the return type of a gcc2
21980 builtin and then its argument prototype would still apply. */
21981char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021982/* The GNU C library defines this for functions which it implements
21983 to always fail with ENOSYS. Some functions are actually named
21984 something starting with __ and the normal name is an alias. */
21985#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21986choke me
21987#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021988char (*f) () = $ac_func;
21989#endif
21990#ifdef __cplusplus
21991}
John Criswell7a73b802003-06-30 21:59:07 +000021992#endif
21993
John Criswell0c38eaf2003-09-10 15:17:25 +000021994int
21995main ()
21996{
21997return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021998 ;
21999 return 0;
22000}
22001_ACEOF
22002rm -f conftest.$ac_objext conftest$ac_exeext
22003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22004 (eval $ac_link) 2>&5
22005 ac_status=$?
22006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007 (exit $ac_status); } &&
22008 { ac_try='test -s conftest$ac_exeext'
22009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22010 (eval $ac_try) 2>&5
22011 ac_status=$?
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); }; }; then
22014 eval "$as_ac_var=yes"
22015else
22016 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022017sed 's/^/| /' conftest.$ac_ext >&5
22018
John Criswell7a73b802003-06-30 21:59:07 +000022019eval "$as_ac_var=no"
22020fi
22021rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22022fi
22023echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22024echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22025if test `eval echo '${'$as_ac_var'}'` = yes; then
22026 cat >>confdefs.h <<_ACEOF
22027#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22028_ACEOF
22029
22030fi
22031done
22032
22033echo "$as_me:$LINENO: checking for working mmap" >&5
22034echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22035if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22036 echo $ECHO_N "(cached) $ECHO_C" >&6
22037else
22038 if test "$cross_compiling" = yes; then
22039 ac_cv_func_mmap_fixed_mapped=no
22040else
22041 cat >conftest.$ac_ext <<_ACEOF
22042#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022043/* confdefs.h. */
22044_ACEOF
22045cat confdefs.h >>conftest.$ac_ext
22046cat >>conftest.$ac_ext <<_ACEOF
22047/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022048$ac_includes_default
22049/* malloc might have been renamed as rpl_malloc. */
22050#undef malloc
22051
22052/* Thanks to Mike Haertel and Jim Avera for this test.
22053 Here is a matrix of mmap possibilities:
22054 mmap private not fixed
22055 mmap private fixed at somewhere currently unmapped
22056 mmap private fixed at somewhere already mapped
22057 mmap shared not fixed
22058 mmap shared fixed at somewhere currently unmapped
22059 mmap shared fixed at somewhere already mapped
22060 For private mappings, we should verify that changes cannot be read()
22061 back from the file, nor mmap's back from the file at a different
22062 address. (There have been systems where private was not correctly
22063 implemented like the infamous i386 svr4.0, and systems where the
22064 VM page cache was not coherent with the file system buffer cache
22065 like early versions of FreeBSD and possibly contemporary NetBSD.)
22066 For shared mappings, we should conversely verify that changes get
22067 propagated back to all the places they're supposed to be.
22068
22069 Grep wants private fixed already mapped.
22070 The main things grep needs to know about mmap are:
22071 * does it exist and is it safe to write into the mmap'd area
22072 * how to use it (BSD variants) */
22073
22074#include <fcntl.h>
22075#include <sys/mman.h>
22076
22077#if !STDC_HEADERS && !HAVE_STDLIB_H
22078char *malloc ();
22079#endif
22080
22081/* This mess was copied from the GNU getpagesize.h. */
22082#if !HAVE_GETPAGESIZE
22083/* Assume that all systems that can run configure have sys/param.h. */
22084# if !HAVE_SYS_PARAM_H
22085# define HAVE_SYS_PARAM_H 1
22086# endif
22087
22088# ifdef _SC_PAGESIZE
22089# define getpagesize() sysconf(_SC_PAGESIZE)
22090# else /* no _SC_PAGESIZE */
22091# if HAVE_SYS_PARAM_H
22092# include <sys/param.h>
22093# ifdef EXEC_PAGESIZE
22094# define getpagesize() EXEC_PAGESIZE
22095# else /* no EXEC_PAGESIZE */
22096# ifdef NBPG
22097# define getpagesize() NBPG * CLSIZE
22098# ifndef CLSIZE
22099# define CLSIZE 1
22100# endif /* no CLSIZE */
22101# else /* no NBPG */
22102# ifdef NBPC
22103# define getpagesize() NBPC
22104# else /* no NBPC */
22105# ifdef PAGESIZE
22106# define getpagesize() PAGESIZE
22107# endif /* PAGESIZE */
22108# endif /* no NBPC */
22109# endif /* no NBPG */
22110# endif /* no EXEC_PAGESIZE */
22111# else /* no HAVE_SYS_PARAM_H */
22112# define getpagesize() 8192 /* punt totally */
22113# endif /* no HAVE_SYS_PARAM_H */
22114# endif /* no _SC_PAGESIZE */
22115
22116#endif /* no HAVE_GETPAGESIZE */
22117
22118int
22119main ()
22120{
22121 char *data, *data2, *data3;
22122 int i, pagesize;
22123 int fd;
22124
22125 pagesize = getpagesize ();
22126
22127 /* First, make a file with some known garbage in it. */
22128 data = (char *) malloc (pagesize);
22129 if (!data)
22130 exit (1);
22131 for (i = 0; i < pagesize; ++i)
22132 *(data + i) = rand ();
22133 umask (0);
22134 fd = creat ("conftest.mmap", 0600);
22135 if (fd < 0)
22136 exit (1);
22137 if (write (fd, data, pagesize) != pagesize)
22138 exit (1);
22139 close (fd);
22140
22141 /* Next, try to mmap the file at a fixed address which already has
22142 something else allocated at it. If we can, also make sure that
22143 we see the same garbage. */
22144 fd = open ("conftest.mmap", O_RDWR);
22145 if (fd < 0)
22146 exit (1);
22147 data2 = (char *) malloc (2 * pagesize);
22148 if (!data2)
22149 exit (1);
22150 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22151 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22152 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22153 exit (1);
22154 for (i = 0; i < pagesize; ++i)
22155 if (*(data + i) != *(data2 + i))
22156 exit (1);
22157
22158 /* Finally, make sure that changes to the mapped area do not
22159 percolate back to the file as seen by read(). (This is a bug on
22160 some variants of i386 svr4.0.) */
22161 for (i = 0; i < pagesize; ++i)
22162 *(data2 + i) = *(data2 + i) + 1;
22163 data3 = (char *) malloc (pagesize);
22164 if (!data3)
22165 exit (1);
22166 if (read (fd, data3, pagesize) != pagesize)
22167 exit (1);
22168 for (i = 0; i < pagesize; ++i)
22169 if (*(data + i) != *(data3 + i))
22170 exit (1);
22171 close (fd);
22172 exit (0);
22173}
22174_ACEOF
22175rm -f conftest$ac_exeext
22176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22177 (eval $ac_link) 2>&5
22178 ac_status=$?
22179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22182 (eval $ac_try) 2>&5
22183 ac_status=$?
22184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22185 (exit $ac_status); }; }; then
22186 ac_cv_func_mmap_fixed_mapped=yes
22187else
22188 echo "$as_me: program exited with status $ac_status" >&5
22189echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022190sed 's/^/| /' conftest.$ac_ext >&5
22191
John Criswell7a73b802003-06-30 21:59:07 +000022192( exit $ac_status )
22193ac_cv_func_mmap_fixed_mapped=no
22194fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022195rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022196fi
22197fi
22198echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22199echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22200if test $ac_cv_func_mmap_fixed_mapped = yes; then
22201
22202cat >>confdefs.h <<\_ACEOF
22203#define HAVE_MMAP 1
22204_ACEOF
22205
22206fi
22207rm -f conftest.mmap
22208
22209echo "$as_me:$LINENO: checking for mmap of files" >&5
22210echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22211if test "${ac_cv_func_mmap_file+set}" = set; then
22212 echo $ECHO_N "(cached) $ECHO_C" >&6
22213else
22214
22215
22216 ac_ext=c
22217ac_cpp='$CPP $CPPFLAGS'
22218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22220ac_compiler_gnu=$ac_cv_c_compiler_gnu
22221
22222 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022223 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22224See \`config.log' for more details." >&5
22225echo "$as_me: error: cannot run test program while cross compiling
22226See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022227 { (exit 1); exit 1; }; }
22228else
22229 cat >conftest.$ac_ext <<_ACEOF
22230#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022231/* confdefs.h. */
22232_ACEOF
22233cat confdefs.h >>conftest.$ac_ext
22234cat >>conftest.$ac_ext <<_ACEOF
22235/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022236
22237#ifdef HAVE_SYS_MMAN_H
22238#include <sys/mman.h>
22239#endif
22240
22241#ifdef HAVE_SYS_TYPES_H
22242#include <sys/types.h>
22243#endif
22244
22245#ifdef HAVE_FCNTL_H
22246#include <fcntl.h>
22247#endif
22248
22249 int fd;
22250 int main () {
22251 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22252_ACEOF
22253rm -f conftest$ac_exeext
22254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22255 (eval $ac_link) 2>&5
22256 ac_status=$?
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22260 (eval $ac_try) 2>&5
22261 ac_status=$?
22262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22263 (exit $ac_status); }; }; then
22264 ac_cv_func_mmap_file=yes
22265else
22266 echo "$as_me: program exited with status $ac_status" >&5
22267echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022268sed 's/^/| /' conftest.$ac_ext >&5
22269
John Criswell7a73b802003-06-30 21:59:07 +000022270( exit $ac_status )
22271ac_cv_func_mmap_file=no
22272fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022273rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022274fi
22275 ac_ext=c
22276ac_cpp='$CPP $CPPFLAGS'
22277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22279ac_compiler_gnu=$ac_cv_c_compiler_gnu
22280
22281
22282fi
22283echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22284echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22285if test "$ac_cv_func_mmap_file" = yes; then
22286 cat >>confdefs.h <<\_ACEOF
22287#define HAVE_MMAP_FILE 1
22288_ACEOF
22289
22290 MMAP_FILE=yes
22291
22292fi
22293
22294if test ${ac_cv_func_mmap_file} = "no"
22295then
22296 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22297echo "$as_me: error: mmap() of files required but not found" >&2;}
22298 { (exit 1); exit 1; }; }
22299fi
22300echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22301echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22302if test "${ac_cv_header_mmap_anon+set}" = set; then
22303 echo $ECHO_N "(cached) $ECHO_C" >&6
22304else
22305
22306
22307 ac_ext=c
22308ac_cpp='$CPP $CPPFLAGS'
22309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22311ac_compiler_gnu=$ac_cv_c_compiler_gnu
22312
22313 cat >conftest.$ac_ext <<_ACEOF
22314#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022315/* confdefs.h. */
22316_ACEOF
22317cat confdefs.h >>conftest.$ac_ext
22318cat >>conftest.$ac_ext <<_ACEOF
22319/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022320#include <sys/mman.h>
22321 #include <unistd.h>
22322 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022323int
22324main ()
22325{
22326mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22327 ;
22328 return 0;
22329}
22330_ACEOF
22331rm -f conftest.$ac_objext
22332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22333 (eval $ac_compile) 2>&5
22334 ac_status=$?
22335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22336 (exit $ac_status); } &&
22337 { ac_try='test -s conftest.$ac_objext'
22338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22339 (eval $ac_try) 2>&5
22340 ac_status=$?
22341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342 (exit $ac_status); }; }; then
22343 ac_cv_header_mmap_anon=yes
22344else
22345 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022346sed 's/^/| /' conftest.$ac_ext >&5
22347
John Criswell7a73b802003-06-30 21:59:07 +000022348ac_cv_header_mmap_anon=no
22349fi
22350rm -f conftest.$ac_objext conftest.$ac_ext
22351 ac_ext=c
22352ac_cpp='$CPP $CPPFLAGS'
22353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22355ac_compiler_gnu=$ac_cv_c_compiler_gnu
22356
22357
22358fi
22359echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22360echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22361if test "$ac_cv_header_mmap_anon" = yes; then
22362 cat >>confdefs.h <<\_ACEOF
22363#define HAVE_MMAP_ANONYMOUS 1
22364_ACEOF
22365
22366fi
22367
22368echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22369echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22370if test "${ac_cv_type_signal+set}" = set; then
22371 echo $ECHO_N "(cached) $ECHO_C" >&6
22372else
22373 cat >conftest.$ac_ext <<_ACEOF
22374#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022375/* confdefs.h. */
22376_ACEOF
22377cat confdefs.h >>conftest.$ac_ext
22378cat >>conftest.$ac_ext <<_ACEOF
22379/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022380#include <sys/types.h>
22381#include <signal.h>
22382#ifdef signal
22383# undef signal
22384#endif
22385#ifdef __cplusplus
22386extern "C" void (*signal (int, void (*)(int)))(int);
22387#else
22388void (*signal ()) ();
22389#endif
22390
John Criswell7a73b802003-06-30 21:59:07 +000022391int
22392main ()
22393{
22394int i;
22395 ;
22396 return 0;
22397}
22398_ACEOF
22399rm -f conftest.$ac_objext
22400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22401 (eval $ac_compile) 2>&5
22402 ac_status=$?
22403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404 (exit $ac_status); } &&
22405 { ac_try='test -s conftest.$ac_objext'
22406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22407 (eval $ac_try) 2>&5
22408 ac_status=$?
22409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410 (exit $ac_status); }; }; then
22411 ac_cv_type_signal=void
22412else
22413 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022414sed 's/^/| /' conftest.$ac_ext >&5
22415
John Criswell7a73b802003-06-30 21:59:07 +000022416ac_cv_type_signal=int
22417fi
22418rm -f conftest.$ac_objext conftest.$ac_ext
22419fi
22420echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22421echo "${ECHO_T}$ac_cv_type_signal" >&6
22422
22423cat >>confdefs.h <<_ACEOF
22424#define RETSIGTYPE $ac_cv_type_signal
22425_ACEOF
22426
22427
22428
22429
22430
22431
22432
22433
22434
22435
22436
22437for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22438do
22439as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22440echo "$as_me:$LINENO: checking for $ac_func" >&5
22441echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22442if eval "test \"\${$as_ac_var+set}\" = set"; then
22443 echo $ECHO_N "(cached) $ECHO_C" >&6
22444else
22445 cat >conftest.$ac_ext <<_ACEOF
22446#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022447/* confdefs.h. */
22448_ACEOF
22449cat confdefs.h >>conftest.$ac_ext
22450cat >>conftest.$ac_ext <<_ACEOF
22451/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022452/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022453 which can conflict with char $ac_func (); below.
22454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22455 <limits.h> exists even on freestanding compilers. */
22456#ifdef __STDC__
22457# include <limits.h>
22458#else
22459# include <assert.h>
22460#endif
John Criswell7a73b802003-06-30 21:59:07 +000022461/* Override any gcc2 internal prototype to avoid an error. */
22462#ifdef __cplusplus
22463extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022464{
John Criswell7a73b802003-06-30 21:59:07 +000022465#endif
22466/* We use char because int might match the return type of a gcc2
22467 builtin and then its argument prototype would still apply. */
22468char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022469/* The GNU C library defines this for functions which it implements
22470 to always fail with ENOSYS. Some functions are actually named
22471 something starting with __ and the normal name is an alias. */
22472#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22473choke me
22474#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022475char (*f) () = $ac_func;
22476#endif
22477#ifdef __cplusplus
22478}
John Criswell7a73b802003-06-30 21:59:07 +000022479#endif
22480
John Criswell0c38eaf2003-09-10 15:17:25 +000022481int
22482main ()
22483{
22484return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022485 ;
22486 return 0;
22487}
22488_ACEOF
22489rm -f conftest.$ac_objext conftest$ac_exeext
22490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22491 (eval $ac_link) 2>&5
22492 ac_status=$?
22493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494 (exit $ac_status); } &&
22495 { ac_try='test -s conftest$ac_exeext'
22496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22497 (eval $ac_try) 2>&5
22498 ac_status=$?
22499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500 (exit $ac_status); }; }; then
22501 eval "$as_ac_var=yes"
22502else
22503 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022504sed 's/^/| /' conftest.$ac_ext >&5
22505
John Criswell7a73b802003-06-30 21:59:07 +000022506eval "$as_ac_var=no"
22507fi
22508rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22509fi
22510echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22511echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22512if test `eval echo '${'$as_ac_var'}'` = yes; then
22513 cat >>confdefs.h <<_ACEOF
22514#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22515_ACEOF
22516
22517fi
22518done
22519
22520
22521
22522echo "$as_me:$LINENO: checking for mmap" >&5
22523echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22524if test "${ac_cv_func_mmap+set}" = set; then
22525 echo $ECHO_N "(cached) $ECHO_C" >&6
22526else
22527 cat >conftest.$ac_ext <<_ACEOF
22528#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022529/* confdefs.h. */
22530_ACEOF
22531cat confdefs.h >>conftest.$ac_ext
22532cat >>conftest.$ac_ext <<_ACEOF
22533/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022534/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022535 which can conflict with char mmap (); below.
22536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22537 <limits.h> exists even on freestanding compilers. */
22538#ifdef __STDC__
22539# include <limits.h>
22540#else
22541# include <assert.h>
22542#endif
John Criswell7a73b802003-06-30 21:59:07 +000022543/* Override any gcc2 internal prototype to avoid an error. */
22544#ifdef __cplusplus
22545extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022546{
John Criswell7a73b802003-06-30 21:59:07 +000022547#endif
22548/* We use char because int might match the return type of a gcc2
22549 builtin and then its argument prototype would still apply. */
22550char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000022551/* The GNU C library defines this for functions which it implements
22552 to always fail with ENOSYS. Some functions are actually named
22553 something starting with __ and the normal name is an alias. */
22554#if defined (__stub_mmap) || defined (__stub___mmap)
22555choke me
22556#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022557char (*f) () = mmap;
22558#endif
22559#ifdef __cplusplus
22560}
John Criswell7a73b802003-06-30 21:59:07 +000022561#endif
22562
John Criswell0c38eaf2003-09-10 15:17:25 +000022563int
22564main ()
22565{
22566return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000022567 ;
22568 return 0;
22569}
22570_ACEOF
22571rm -f conftest.$ac_objext conftest$ac_exeext
22572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22573 (eval $ac_link) 2>&5
22574 ac_status=$?
22575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576 (exit $ac_status); } &&
22577 { ac_try='test -s conftest$ac_exeext'
22578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22579 (eval $ac_try) 2>&5
22580 ac_status=$?
22581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582 (exit $ac_status); }; }; then
22583 ac_cv_func_mmap=yes
22584else
22585 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022586sed 's/^/| /' conftest.$ac_ext >&5
22587
John Criswell7a73b802003-06-30 21:59:07 +000022588ac_cv_func_mmap=no
22589fi
22590rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22591fi
22592echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22593echo "${ECHO_T}$ac_cv_func_mmap" >&6
22594if test $ac_cv_func_mmap = yes; then
22595 :
22596else
22597 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22598echo "$as_me: error: Function mmap() required but not found" >&2;}
22599 { (exit 1); exit 1; }; }
22600fi
22601
22602echo "$as_me:$LINENO: checking for mprotect" >&5
22603echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22604if test "${ac_cv_func_mprotect+set}" = set; then
22605 echo $ECHO_N "(cached) $ECHO_C" >&6
22606else
22607 cat >conftest.$ac_ext <<_ACEOF
22608#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022609/* confdefs.h. */
22610_ACEOF
22611cat confdefs.h >>conftest.$ac_ext
22612cat >>conftest.$ac_ext <<_ACEOF
22613/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022614/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022615 which can conflict with char mprotect (); below.
22616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22617 <limits.h> exists even on freestanding compilers. */
22618#ifdef __STDC__
22619# include <limits.h>
22620#else
22621# include <assert.h>
22622#endif
John Criswell7a73b802003-06-30 21:59:07 +000022623/* Override any gcc2 internal prototype to avoid an error. */
22624#ifdef __cplusplus
22625extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022626{
John Criswell7a73b802003-06-30 21:59:07 +000022627#endif
22628/* We use char because int might match the return type of a gcc2
22629 builtin and then its argument prototype would still apply. */
22630char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022631/* The GNU C library defines this for functions which it implements
22632 to always fail with ENOSYS. Some functions are actually named
22633 something starting with __ and the normal name is an alias. */
22634#if defined (__stub_mprotect) || defined (__stub___mprotect)
22635choke me
22636#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022637char (*f) () = mprotect;
22638#endif
22639#ifdef __cplusplus
22640}
John Criswell7a73b802003-06-30 21:59:07 +000022641#endif
22642
John Criswell0c38eaf2003-09-10 15:17:25 +000022643int
22644main ()
22645{
22646return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022647 ;
22648 return 0;
22649}
22650_ACEOF
22651rm -f conftest.$ac_objext conftest$ac_exeext
22652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22653 (eval $ac_link) 2>&5
22654 ac_status=$?
22655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656 (exit $ac_status); } &&
22657 { ac_try='test -s conftest$ac_exeext'
22658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22659 (eval $ac_try) 2>&5
22660 ac_status=$?
22661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22662 (exit $ac_status); }; }; then
22663 ac_cv_func_mprotect=yes
22664else
22665 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022666sed 's/^/| /' conftest.$ac_ext >&5
22667
John Criswell7a73b802003-06-30 21:59:07 +000022668ac_cv_func_mprotect=no
22669fi
22670rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22671fi
22672echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22673echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22674if test $ac_cv_func_mprotect = yes; then
22675 :
22676else
22677 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22678echo "$as_me: error: Function mprotect() required but not found" >&2;}
22679 { (exit 1); exit 1; }; }
22680fi
22681
22682
John Criswellb13092b2003-07-22 21:00:24 +000022683
John Criswell7a73b802003-06-30 21:59:07 +000022684# Check whether --enable-purify or --disable-purify was given.
22685if test "${enable_purify+set}" = set; then
22686 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000022687
22688else
John Criswellb13092b2003-07-22 21:00:24 +000022689 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000022690fi;
John Criswellb13092b2003-07-22 21:00:24 +000022691if test ${enableval} = "no"
22692then
22693 ENABLE_PURIFY=
22694
22695else
22696 ENABLE_PURIFY=ENABLE_PURIFY=1
22697
22698fi
22699
John Criswell7a73b802003-06-30 21:59:07 +000022700# Check whether --enable-optimized or --disable-optimized was given.
22701if test "${enable_optimized+set}" = set; then
22702 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022703
22704else
John Criswellb13092b2003-07-22 21:00:24 +000022705 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022706fi;
John Criswellb13092b2003-07-22 21:00:24 +000022707if test ${enableval} = "no"
22708then
22709 ENABLE_OPTIMIZED=
22710
22711else
22712 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22713
22714fi
22715
John Criswell7a73b802003-06-30 21:59:07 +000022716# Check whether --enable-spec or --disable-spec was given.
22717if test "${enable_spec+set}" = set; then
22718 enableval="$enable_spec"
John Criswell7a73b802003-06-30 21:59:07 +000022719
22720else
John Criswellb13092b2003-07-22 21:00:24 +000022721 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022722fi;
John Criswellb13092b2003-07-22 21:00:24 +000022723if test ${enableval} = "no"
22724then
22725 USE_SPEC=
22726
22727else
22728 USE_SPEC=USE_SPEC=1
22729
22730fi
22731
John Criswell7a73b802003-06-30 21:59:07 +000022732# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22733if test "${enable_precompiled_bytecode+set}" = set; then
22734 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000022735
22736else
John Criswellb13092b2003-07-22 21:00:24 +000022737 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022738fi;
John Criswellb13092b2003-07-22 21:00:24 +000022739if test ${enableval} = "no"
22740then
22741 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000022742
John Criswellb13092b2003-07-22 21:00:24 +000022743else
22744 UPB=USE_PRECOMPILED_BYTECODE=1
22745
22746fi
John Criswellf02dbf02003-07-22 20:07:49 +000022747
22748
22749# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22750if test "${enable_llc_diffs+set}" = set; then
22751 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022752
22753else
John Criswellb13092b2003-07-22 21:00:24 +000022754 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022755fi;
John Criswellb13092b2003-07-22 21:00:24 +000022756if test ${enableval} = "no"
22757then
22758 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022759
John Criswellb13092b2003-07-22 21:00:24 +000022760else
22761 DISABLE_LLC_DIFFS=
22762
22763fi
22764
22765# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022766if test "${enable_jit+set}" = set; then
22767 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022768
22769else
John Criswellc78022e2003-07-29 19:11:58 +000022770 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022771fi;
John Criswellb13092b2003-07-22 21:00:24 +000022772
22773if test ${enableval} = "no"
22774then
22775 JIT=
22776
22777else
John Criswellc78022e2003-07-29 19:11:58 +000022778 case $target in
22779 *i*86*)
22780 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022781
John Criswellc78022e2003-07-29 19:11:58 +000022782 ;;
22783 *sparc*)
22784 JIT=TARGET_HAS_JIT=1
22785
22786 ;;
22787 *)
22788 JIT=
22789
22790 ;;
22791 esac
John Criswellb13092b2003-07-22 21:00:24 +000022792fi
John Criswell7a73b802003-06-30 21:59:07 +000022793
22794
John Criswellc78022e2003-07-29 19:11:58 +000022795
John Criswell7a73b802003-06-30 21:59:07 +000022796# Check whether --with-spec or --without-spec was given.
22797if test "${with_spec+set}" = set; then
22798 withval="$with_spec"
22799 SPEC_ROOT=$withval
22800
22801else
22802 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22803
22804fi;
22805
John Criswellc78022e2003-07-29 19:11:58 +000022806
John Criswell7a73b802003-06-30 21:59:07 +000022807# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22808if test "${with_llvmgccdir+set}" = set; then
22809 withval="$with_llvmgccdir"
22810 LLVMGCCDIR=$withval
22811
22812fi;
22813
John Criswellc78022e2003-07-29 19:11:58 +000022814
John Criswell7a73b802003-06-30 21:59:07 +000022815# Check whether --with-bcrepos or --without-bcrepos was given.
22816if test "${with_bcrepos+set}" = set; then
22817 withval="$with_bcrepos"
22818 BCR=$withval
22819
22820else
22821 BCR=/home/vadve/lattner/LLVMPrograms
22822
22823fi;
22824
John Criswellc78022e2003-07-29 19:11:58 +000022825
John Criswell7a73b802003-06-30 21:59:07 +000022826# Check whether --with-papi or --without-papi was given.
22827if test "${with_papi+set}" = set; then
22828 withval="$with_papi"
22829 PAPIDIR=$withval
22830
22831else
John Criswellde00db22003-08-25 16:49:54 +000022832 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022833
22834fi;
22835
John Criswell7a73b802003-06-30 21:59:07 +000022836
22837# Check whether --with-purify or --without-purify was given.
22838if test "${with_purify+set}" = set; then
22839 withval="$with_purify"
22840 PURIFY=$withval
22841
22842fi;
22843
John Criswellde00db22003-08-25 16:49:54 +000022844
John Criswell0c38eaf2003-09-10 15:17:25 +000022845 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000022846cat >confcache <<\_ACEOF
22847# This file is a shell script that caches the results of configure
22848# tests run on this system so they can be shared between configure
22849# scripts and configure runs, see configure's option --config-cache.
22850# It is not useful on other systems. If it contains results you don't
22851# want to keep, you may remove or edit it.
22852#
22853# config.status only pays attention to the cache file if you give it
22854# the --recheck option to rerun configure.
22855#
John Criswell0c38eaf2003-09-10 15:17:25 +000022856# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022857# loading this file, other *unset* `ac_cv_foo' will be assigned the
22858# following values.
22859
22860_ACEOF
22861
22862# The following way of writing the cache mishandles newlines in values,
22863# but we know of no workaround that is simple, portable, and efficient.
22864# So, don't put newlines in cache variables' values.
22865# Ultrix sh set writes to stderr and can't be redirected directly,
22866# and sets the high bit in the cache file unless we assign to the vars.
22867{
22868 (set) 2>&1 |
22869 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22870 *ac_space=\ *)
22871 # `set' does not quote correctly, so add quotes (double-quote
22872 # substitution turns \\\\ into \\, and sed turns \\ into \).
22873 sed -n \
22874 "s/'/'\\\\''/g;
22875 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22876 ;;
22877 *)
22878 # `set' quotes correctly as required by POSIX, so do not add quotes.
22879 sed -n \
22880 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22881 ;;
22882 esac;
22883} |
22884 sed '
22885 t clear
22886 : clear
22887 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22888 t end
22889 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22890 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000022891if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022892 if test -w $cache_file; then
22893 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22894 cat confcache >$cache_file
22895 else
22896 echo "not updating unwritable cache $cache_file"
22897 fi
22898fi
22899rm -f confcache
22900
22901test "x$prefix" = xNONE && prefix=$ac_default_prefix
22902# Let make expand exec_prefix.
22903test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22904
22905# VPATH may cause trouble with some makes, so we remove $(srcdir),
22906# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22907# trailing colons and then remove the whole line if VPATH becomes empty
22908# (actually we leave an empty line to preserve line numbers).
22909if test "x$srcdir" = x.; then
22910 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22911s/:*\$(srcdir):*/:/;
22912s/:*\${srcdir}:*/:/;
22913s/:*@srcdir@:*/:/;
22914s/^\([^=]*=[ ]*\):*/\1/;
22915s/:*$//;
22916s/^[^=]*=[ ]*$//;
22917}'
22918fi
22919
22920DEFS=-DHAVE_CONFIG_H
22921
John Criswell0c38eaf2003-09-10 15:17:25 +000022922ac_libobjs=
22923ac_ltlibobjs=
22924for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22925 # 1. Remove the extension, and $U if already installed.
22926 ac_i=`echo "$ac_i" |
22927 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22928 # 2. Add them.
22929 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22930 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22931done
22932LIBOBJS=$ac_libobjs
22933
22934LTLIBOBJS=$ac_ltlibobjs
22935
22936
John Criswell7a73b802003-06-30 21:59:07 +000022937
22938: ${CONFIG_STATUS=./config.status}
22939ac_clean_files_save=$ac_clean_files
22940ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22941{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22942echo "$as_me: creating $CONFIG_STATUS" >&6;}
22943cat >$CONFIG_STATUS <<_ACEOF
22944#! $SHELL
22945# Generated by $as_me.
22946# Run this file to recreate the current configuration.
22947# Compiler output produced by configure, useful for debugging
22948# configure, is in config.log if it exists.
22949
22950debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022951ac_cs_recheck=false
22952ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022953SHELL=\${CONFIG_SHELL-$SHELL}
22954_ACEOF
22955
22956cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022957## --------------------- ##
22958## M4sh Initialization. ##
22959## --------------------- ##
22960
22961# Be Bourne compatible
22962if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22963 emulate sh
22964 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022965 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22966 # is contrary to our usage. Disable this feature.
22967 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000022968elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22969 set -o posix
22970fi
22971
John Criswell7a73b802003-06-30 21:59:07 +000022972# Support unset when possible.
22973if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22974 as_unset=unset
22975else
22976 as_unset=false
22977fi
22978
John Criswell0c38eaf2003-09-10 15:17:25 +000022979
22980# Work around bugs in pre-3.0 UWIN ksh.
22981$as_unset ENV MAIL MAILPATH
22982PS1='$ '
22983PS2='> '
22984PS4='+ '
22985
22986# NLS nuisances.
22987for as_var in \
22988 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22989 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22990 LC_TELEPHONE LC_TIME
22991do
22992 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22993 eval $as_var=C; export $as_var
22994 else
22995 $as_unset $as_var
22996 fi
22997done
22998
22999# Required to use basename.
23000if expr a : '\(a\)' >/dev/null 2>&1; then
23001 as_expr=expr
23002else
23003 as_expr=false
23004fi
23005
23006if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23007 as_basename=basename
23008else
23009 as_basename=false
23010fi
John Criswell7a73b802003-06-30 21:59:07 +000023011
23012
23013# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000023014as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000023015$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23016 X"$0" : 'X\(//\)$' \| \
23017 X"$0" : 'X\(/\)$' \| \
23018 . : '\(.\)' 2>/dev/null ||
23019echo X/"$0" |
23020 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23021 /^X\/\(\/\/\)$/{ s//\1/; q; }
23022 /^X\/\(\/\).*/{ s//\1/; q; }
23023 s/.*/./; q'`
23024
John Criswell0c38eaf2003-09-10 15:17:25 +000023025
John Criswell7a73b802003-06-30 21:59:07 +000023026# PATH needs CR, and LINENO needs CR and PATH.
23027# Avoid depending upon Character Ranges.
23028as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23029as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23030as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23031as_cr_digits='0123456789'
23032as_cr_alnum=$as_cr_Letters$as_cr_digits
23033
23034# The user is always right.
23035if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023036 echo "#! /bin/sh" >conf$$.sh
23037 echo "exit 0" >>conf$$.sh
23038 chmod +x conf$$.sh
23039 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023040 PATH_SEPARATOR=';'
23041 else
23042 PATH_SEPARATOR=:
23043 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000023044 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000023045fi
23046
23047
23048 as_lineno_1=$LINENO
23049 as_lineno_2=$LINENO
23050 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23051 test "x$as_lineno_1" != "x$as_lineno_2" &&
23052 test "x$as_lineno_3" = "x$as_lineno_2" || {
23053 # Find who we are. Look in the path if we contain no path at all
23054 # relative or not.
23055 case $0 in
23056 *[\\/]* ) as_myself=$0 ;;
23057 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23058for as_dir in $PATH
23059do
23060 IFS=$as_save_IFS
23061 test -z "$as_dir" && as_dir=.
23062 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23063done
23064
23065 ;;
23066 esac
23067 # We did not find ourselves, most probably we were run as `sh COMMAND'
23068 # in which case we are not to be found in the path.
23069 if test "x$as_myself" = x; then
23070 as_myself=$0
23071 fi
23072 if test ! -f "$as_myself"; then
23073 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23074echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23075 { (exit 1); exit 1; }; }
23076 fi
23077 case $CONFIG_SHELL in
23078 '')
23079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23080for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23081do
23082 IFS=$as_save_IFS
23083 test -z "$as_dir" && as_dir=.
23084 for as_base in sh bash ksh sh5; do
23085 case $as_dir in
23086 /*)
23087 if ("$as_dir/$as_base" -c '
23088 as_lineno_1=$LINENO
23089 as_lineno_2=$LINENO
23090 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23091 test "x$as_lineno_1" != "x$as_lineno_2" &&
23092 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023093 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23094 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000023095 CONFIG_SHELL=$as_dir/$as_base
23096 export CONFIG_SHELL
23097 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23098 fi;;
23099 esac
23100 done
23101done
23102;;
23103 esac
23104
23105 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23106 # uniformly replaced by the line number. The first 'sed' inserts a
23107 # line-number line before each line; the second 'sed' does the real
23108 # work. The second script uses 'N' to pair each line-number line
23109 # with the numbered line, and appends trailing '-' during
23110 # substitution so that $LINENO is not a special case at line end.
23111 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23112 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23113 sed '=' <$as_myself |
23114 sed '
23115 N
23116 s,$,-,
23117 : loop
23118 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23119 t loop
23120 s,-$,,
23121 s,^['$as_cr_digits']*\n,,
23122 ' >$as_me.lineno &&
23123 chmod +x $as_me.lineno ||
23124 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23125echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23126 { (exit 1); exit 1; }; }
23127
23128 # Don't try to exec as it changes $[0], causing all sort of problems
23129 # (the dirname of $[0] is not the place where we might find the
23130 # original and so on. Autoconf is especially sensible to this).
23131 . ./$as_me.lineno
23132 # Exit status is that of the last command.
23133 exit
23134}
23135
23136
23137case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23138 *c*,-n*) ECHO_N= ECHO_C='
23139' ECHO_T=' ' ;;
23140 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23141 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23142esac
23143
23144if expr a : '\(a\)' >/dev/null 2>&1; then
23145 as_expr=expr
23146else
23147 as_expr=false
23148fi
23149
23150rm -f conf$$ conf$$.exe conf$$.file
23151echo >conf$$.file
23152if ln -s conf$$.file conf$$ 2>/dev/null; then
23153 # We could just check for DJGPP; but this test a) works b) is more generic
23154 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23155 if test -f conf$$.exe; then
23156 # Don't use ln at all; we don't have any links
23157 as_ln_s='cp -p'
23158 else
23159 as_ln_s='ln -s'
23160 fi
23161elif ln conf$$.file conf$$ 2>/dev/null; then
23162 as_ln_s=ln
23163else
23164 as_ln_s='cp -p'
23165fi
23166rm -f conf$$ conf$$.exe conf$$.file
23167
John Criswell0c38eaf2003-09-10 15:17:25 +000023168if mkdir -p . 2>/dev/null; then
23169 as_mkdir_p=:
23170else
23171 as_mkdir_p=false
23172fi
23173
John Criswell7a73b802003-06-30 21:59:07 +000023174as_executable_p="test -f"
23175
23176# Sed expression to map a string onto a valid CPP name.
23177as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23178
23179# Sed expression to map a string onto a valid variable name.
23180as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23181
23182
23183# IFS
23184# We need space, tab and new line, in precisely that order.
23185as_nl='
23186'
23187IFS=" $as_nl"
23188
23189# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000023190$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023191
23192exec 6>&1
23193
23194# Open the log real soon, to keep \$[0] and so on meaningful, and to
23195# report actual input values of CONFIG_FILES etc. instead of their
23196# values after options handling. Logging --version etc. is OK.
23197exec 5>>config.log
23198{
23199 echo
23200 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23201## Running $as_me. ##
23202_ASBOX
23203} >&5
23204cat >&5 <<_CSEOF
23205
23206This file was extended by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000023207generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023208
23209 CONFIG_FILES = $CONFIG_FILES
23210 CONFIG_HEADERS = $CONFIG_HEADERS
23211 CONFIG_LINKS = $CONFIG_LINKS
23212 CONFIG_COMMANDS = $CONFIG_COMMANDS
23213 $ $0 $@
23214
23215_CSEOF
23216echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23217echo >&5
23218_ACEOF
23219
23220# Files that config.status was made for.
23221if test -n "$ac_config_files"; then
23222 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23223fi
23224
23225if test -n "$ac_config_headers"; then
23226 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23227fi
23228
23229if test -n "$ac_config_links"; then
23230 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23231fi
23232
23233if test -n "$ac_config_commands"; then
23234 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23235fi
23236
23237cat >>$CONFIG_STATUS <<\_ACEOF
23238
23239ac_cs_usage="\
23240\`$as_me' instantiates files from templates according to the
23241current configuration.
23242
23243Usage: $0 [OPTIONS] [FILE]...
23244
23245 -h, --help print this help, then exit
23246 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000023247 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023248 -d, --debug don't remove temporary files
23249 --recheck update $as_me by reconfiguring in the same conditions
23250 --file=FILE[:TEMPLATE]
23251 instantiate the configuration file FILE
23252 --header=FILE[:TEMPLATE]
23253 instantiate the configuration header FILE
23254
23255Configuration files:
23256$config_files
23257
23258Configuration headers:
23259$config_headers
23260
John Criswellc764fbc2003-09-06 15:17:13 +000023261Configuration commands:
23262$config_commands
23263
John Criswell7a73b802003-06-30 21:59:07 +000023264Report bugs to <bug-autoconf@gnu.org>."
23265_ACEOF
23266
23267cat >>$CONFIG_STATUS <<_ACEOF
23268ac_cs_version="\\
23269[LLVM] config.status [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +000023270configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023271 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23272
23273Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23274Free Software Foundation, Inc.
23275This config.status script is free software; the Free Software Foundation
23276gives unlimited permission to copy, distribute and modify it."
23277srcdir=$srcdir
23278INSTALL="$INSTALL"
23279_ACEOF
23280
23281cat >>$CONFIG_STATUS <<\_ACEOF
23282# If no file are specified by the user, then we need to provide default
23283# value. By we need to know if files were specified by the user.
23284ac_need_defaults=:
23285while test $# != 0
23286do
23287 case $1 in
23288 --*=*)
23289 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23290 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023291 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023292 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023293 -*)
23294 ac_option=$1
23295 ac_optarg=$2
23296 ac_shift=shift
23297 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023298 *) # This is not an option, so the user has probably given explicit
23299 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000023300 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023301 ac_need_defaults=false;;
23302 esac
23303
John Criswell0c38eaf2003-09-10 15:17:25 +000023304 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023305 # Handling of the options.
23306_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000023307cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023308 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23309 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023310 --version | --vers* | -V )
23311 echo "$ac_cs_version"; exit 0 ;;
23312 --he | --h)
23313 # Conflict between --help and --header
23314 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23315Try \`$0 --help' for more information." >&5
23316echo "$as_me: error: ambiguous option: $1
23317Try \`$0 --help' for more information." >&2;}
23318 { (exit 1); exit 1; }; };;
23319 --help | --hel | -h )
23320 echo "$ac_cs_usage"; exit 0 ;;
23321 --debug | --d* | -d )
23322 debug=: ;;
23323 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023324 $ac_shift
23325 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023326 ac_need_defaults=false;;
23327 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023328 $ac_shift
23329 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023330 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023331 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23332 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23333 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023334
23335 # This is an error.
23336 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23337Try \`$0 --help' for more information." >&5
23338echo "$as_me: error: unrecognized option: $1
23339Try \`$0 --help' for more information." >&2;}
23340 { (exit 1); exit 1; }; } ;;
23341
23342 *) ac_config_targets="$ac_config_targets $1" ;;
23343
23344 esac
23345 shift
23346done
23347
John Criswell0c38eaf2003-09-10 15:17:25 +000023348ac_configure_extra_args=
23349
23350if $ac_cs_silent; then
23351 exec 6>/dev/null
23352 ac_configure_extra_args="$ac_configure_extra_args --silent"
23353fi
23354
23355_ACEOF
23356cat >>$CONFIG_STATUS <<_ACEOF
23357if \$ac_cs_recheck; then
23358 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23359 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23360fi
23361
John Criswell7a73b802003-06-30 21:59:07 +000023362_ACEOF
23363
John Criswellc764fbc2003-09-06 15:17:13 +000023364cat >>$CONFIG_STATUS <<_ACEOF
23365#
23366# INIT-COMMANDS section.
23367#
John Criswell7a73b802003-06-30 21:59:07 +000023368
John Criswellc764fbc2003-09-06 15:17:13 +000023369${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23370${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23371${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23372${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23373${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23374${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23375${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23376${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23377${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23378${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23379${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23380${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23381${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23382${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23383${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23384${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23385${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023386${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23387${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23388${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23389${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23390${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23391${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23392${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23393${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23394${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23395${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23396${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23397${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23398${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23399${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23400${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23401${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23402${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23403${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23404${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23405${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23406${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023407${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023408${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23409${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23410${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23411${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023412${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023413${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023414${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23415${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023416${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23417${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23418${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23419${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswell08acb9b2003-09-16 02:12:45 +000023420${srcdir}/autoconf/mkinstalldirs `dirname test/QMTestDB/QMTest/llvm.py`
John Criswellc764fbc2003-09-06 15:17:13 +000023421${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23422${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23423${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23424${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23425${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23426${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23427${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23428${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23429${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23430${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23431${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23432${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23433${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23434${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23435${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23436${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23437${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23438${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023439${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
John Criswellc764fbc2003-09-06 15:17:13 +000023440${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23441${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23442${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23443${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23444${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23445${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23446${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23447${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23448${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23449${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23450${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23451${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23452${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23453${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23454${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23455${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23456${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23457${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
John Criswell48e3cb92003-09-12 16:31:43 +000023458${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23459${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023460${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23461${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023462${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23463${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23464${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23465${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23466${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23467${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23468${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23469${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23470${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23471${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23472${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23473${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23474${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23475${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23476${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23477${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23478${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23479${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23480${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23481${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23482${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23483${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23484${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23485${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023486${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023487${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23488${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23489${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23490${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23491${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23492${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023493${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023494${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023495${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23496${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23497${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23498${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23499${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023500${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23501${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23502${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
John Criswellffaaf3b2003-09-10 18:38:44 +000023503${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23504${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23505${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23506${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23507${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23508${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023509${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023510${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
John Criswell0afe8252003-09-11 20:53:48 +000023511${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
John Criswell67181ca2003-09-26 14:53:17 +000023512${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023513${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23514${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023515${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023516${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23517${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23518${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023519${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023520${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023521${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
Chris Lattnerebd70302003-09-13 03:29:53 +000023522${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023523${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023524${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023525${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23526${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023527${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23528${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23529${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23530${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23531${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23532${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23533${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23534${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23535${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23536${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23537${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23538${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23539${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23540${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23541${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23542${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23543${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23544
23545_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023546
23547
23548
23549cat >>$CONFIG_STATUS <<\_ACEOF
23550for ac_config_target in $ac_config_targets
23551do
23552 case "$ac_config_target" in
23553 # Handling of arguments.
23554 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023555 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23556 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23557 "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23558 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23559 "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23560 "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23561 "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23562 "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23563 "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23564 "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23565 "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23566 "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23567 "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23568 "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23569 "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23570 "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23571 "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023572 "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23573 "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23574 "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23575 "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23576 "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23577 "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23578 "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23579 "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23580 "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23581 "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23582 "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23583 "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23584 "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23585 "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23586 "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23587 "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23588 "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23589 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23590 "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23591 "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23592 "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023593 "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023594 "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23595 "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23596 "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23597 "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023598 "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023599 "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023600 "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23601 "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023602 "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23603 "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23604 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23605 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswell08acb9b2003-09-16 02:12:45 +000023606 "test/QMTestDB/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTestDB/QMTest/llvm.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023607 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23608 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23609 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23610 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23611 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23612 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23613 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23614 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23615 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23616 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23617 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23618 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23619 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23620 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23621 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23622 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23623 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23624 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023625 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023626 "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23627 "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23628 "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23629 "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23630 "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23631 "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23632 "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23633 "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23634 "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23635 "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23636 "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23637 "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23638 "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23639 "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23640 "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23641 "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23642 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23643 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023644 "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23645 "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
John Criswell39e83892003-09-12 16:36:17 +000023646 "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23647 "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023648 "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23649 "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23650 "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23651 "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23652 "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23653 "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23654 "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23655 "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23656 "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23657 "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23658 "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23659 "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23660 "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23661 "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23662 "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23663 "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23664 "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23665 "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23666 "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23667 "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23668 "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23669 "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23670 "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23671 "test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ;;
John Criswell39e83892003-09-12 16:36:17 +000023672 "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023673 "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23674 "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23675 "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23676 "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23677 "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23678 "test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023679 "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023680 "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023681 "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23682 "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23683 "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23684 "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23685 "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023686 "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23687 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23688 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000023689 "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23690 "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23691 "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23692 "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23693 "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23694 "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023695 "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023696 "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
John Criswell0afe8252003-09-11 20:53:48 +000023697 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswell67181ca2003-09-26 14:53:17 +000023698 "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023699 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23700 "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023701 "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023702 "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23703 "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23704 "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023705 "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023706 "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023707 "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000023708 "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023709 "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023710 "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023711 "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
23712 "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023713 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23714 "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23715 "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23716 "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
23717 "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23718 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23719 "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23720 "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23721 "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23722 "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23723 "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23724 "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23725 "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23726 "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23727 "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23728 "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23729 "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000023730 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23731 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23732echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23733 { (exit 1); exit 1; }; };;
23734 esac
23735done
23736
23737# If the user did not use the arguments to specify the items to instantiate,
23738# then the envvar interface is used. Set only those that are not.
23739# We use the long form for the default assignment because of an extremely
23740# bizarre bug on SunOS 4.1.3.
23741if $ac_need_defaults; then
23742 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23743 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023744 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023745fi
23746
John Criswell0c38eaf2003-09-10 15:17:25 +000023747# Have a temporary directory for convenience. Make it in the build tree
23748# simply because there is no reason to put it here, and in addition,
23749# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000023750# Create a temporary directory, and hook for its removal unless debugging.
23751$debug ||
23752{
23753 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23754 trap '{ (exit 1); exit 1; }' 1 2 13 15
23755}
23756
23757# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023758
John Criswell7a73b802003-06-30 21:59:07 +000023759{
John Criswell0c38eaf2003-09-10 15:17:25 +000023760 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023761 test -n "$tmp" && test -d "$tmp"
23762} ||
23763{
John Criswell0c38eaf2003-09-10 15:17:25 +000023764 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000023765 (umask 077 && mkdir $tmp)
23766} ||
23767{
John Criswell0c38eaf2003-09-10 15:17:25 +000023768 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000023769 { (exit 1); exit 1; }
23770}
23771
23772_ACEOF
23773
23774cat >>$CONFIG_STATUS <<_ACEOF
23775
23776#
23777# CONFIG_FILES section.
23778#
23779
23780# No need to generate the scripts if there are no CONFIG_FILES.
23781# This happens for instance when ./config.status config.h
23782if test -n "\$CONFIG_FILES"; then
23783 # Protect against being on the right side of a sed subst in config.status.
23784 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23785 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23786s,@SHELL@,$SHELL,;t t
23787s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23788s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23789s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23790s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23791s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23792s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23793s,@exec_prefix@,$exec_prefix,;t t
23794s,@prefix@,$prefix,;t t
23795s,@program_transform_name@,$program_transform_name,;t t
23796s,@bindir@,$bindir,;t t
23797s,@sbindir@,$sbindir,;t t
23798s,@libexecdir@,$libexecdir,;t t
23799s,@datadir@,$datadir,;t t
23800s,@sysconfdir@,$sysconfdir,;t t
23801s,@sharedstatedir@,$sharedstatedir,;t t
23802s,@localstatedir@,$localstatedir,;t t
23803s,@libdir@,$libdir,;t t
23804s,@includedir@,$includedir,;t t
23805s,@oldincludedir@,$oldincludedir,;t t
23806s,@infodir@,$infodir,;t t
23807s,@mandir@,$mandir,;t t
23808s,@build_alias@,$build_alias,;t t
23809s,@host_alias@,$host_alias,;t t
23810s,@target_alias@,$target_alias,;t t
23811s,@DEFS@,$DEFS,;t t
23812s,@ECHO_C@,$ECHO_C,;t t
23813s,@ECHO_N@,$ECHO_N,;t t
23814s,@ECHO_T@,$ECHO_T,;t t
23815s,@LIBS@,$LIBS,;t t
23816s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23817s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23818s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23819s,@build@,$build,;t t
23820s,@build_cpu@,$build_cpu,;t t
23821s,@build_vendor@,$build_vendor,;t t
23822s,@build_os@,$build_os,;t t
23823s,@host@,$host,;t t
23824s,@host_cpu@,$host_cpu,;t t
23825s,@host_vendor@,$host_vendor,;t t
23826s,@host_os@,$host_os,;t t
23827s,@target@,$target,;t t
23828s,@target_cpu@,$target_cpu,;t t
23829s,@target_vendor@,$target_vendor,;t t
23830s,@target_os@,$target_os,;t t
23831s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023832s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000023833s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023834s,@CXX@,$CXX,;t t
23835s,@CXXFLAGS@,$CXXFLAGS,;t t
23836s,@LDFLAGS@,$LDFLAGS,;t t
23837s,@CPPFLAGS@,$CPPFLAGS,;t t
23838s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23839s,@EXEEXT@,$EXEEXT,;t t
23840s,@OBJEXT@,$OBJEXT,;t t
23841s,@CC@,$CC,;t t
23842s,@CFLAGS@,$CFLAGS,;t t
23843s,@ac_ct_CC@,$ac_ct_CC,;t t
23844s,@CPP@,$CPP,;t t
23845s,@ifGNUmake@,$ifGNUmake,;t t
23846s,@LEX@,$LEX,;t t
23847s,@LEXLIB@,$LEXLIB,;t t
23848s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23849s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023850s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023851s,@LN_S@,$LN_S,;t t
23852s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023853s,@AR@,$AR,;t t
23854s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023855s,@RANLIB@,$RANLIB,;t t
23856s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23857s,@STRIP@,$STRIP,;t t
23858s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023859s,@CXXCPP@,$CXXCPP,;t t
23860s,@F77@,$F77,;t t
23861s,@FFLAGS@,$FFLAGS,;t t
23862s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023863s,@LIBTOOL@,$LIBTOOL,;t t
John Criswellde00db22003-08-25 16:49:54 +000023864s,@RPWD@,$RPWD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023865s,@SED@,$SED,;t t
23866s,@RM@,$RM,;t t
23867s,@MKDIR@,$MKDIR,;t t
23868s,@DATE@,$DATE,;t t
23869s,@MV@,$MV,;t t
23870s,@DOT@,$DOT,;t t
23871s,@ETAGS@,$ETAGS,;t t
23872s,@PURIFY@,$PURIFY,;t t
John Criswellde00db22003-08-25 16:49:54 +000023873s,@PYTHON@,$PYTHON,;t t
23874s,@QMTEST@,$QMTEST,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023875s,@ALLOCA@,$ALLOCA,;t t
23876s,@LIBOBJS@,$LIBOBJS,;t t
23877s,@MMAP_FILE@,$MMAP_FILE,;t t
23878s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023879s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23880s,@USE_SPEC@,$USE_SPEC,;t t
23881s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000023882s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023883s,@JIT@,$JIT,;t t
23884s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23885s,@BCR@,$BCR,;t t
23886s,@PAPIDIR@,$PAPIDIR,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000023887s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023888CEOF
23889
23890_ACEOF
23891
23892 cat >>$CONFIG_STATUS <<\_ACEOF
23893 # Split the substitutions into bite-sized pieces for seds with
23894 # small command number limits, like on Digital OSF/1 and HP-UX.
23895 ac_max_sed_lines=48
23896 ac_sed_frag=1 # Number of current file.
23897 ac_beg=1 # First line for current file.
23898 ac_end=$ac_max_sed_lines # Line after last line for current file.
23899 ac_more_lines=:
23900 ac_sed_cmds=
23901 while $ac_more_lines; do
23902 if test $ac_beg -gt 1; then
23903 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23904 else
23905 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23906 fi
23907 if test ! -s $tmp/subs.frag; then
23908 ac_more_lines=false
23909 else
23910 # The purpose of the label and of the branching condition is to
23911 # speed up the sed processing (if there are no `@' at all, there
23912 # is no need to browse any of the substitutions).
23913 # These are the two extra sed commands mentioned above.
23914 (echo ':t
23915 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23916 if test -z "$ac_sed_cmds"; then
23917 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23918 else
23919 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23920 fi
23921 ac_sed_frag=`expr $ac_sed_frag + 1`
23922 ac_beg=$ac_end
23923 ac_end=`expr $ac_end + $ac_max_sed_lines`
23924 fi
23925 done
23926 if test -z "$ac_sed_cmds"; then
23927 ac_sed_cmds=cat
23928 fi
23929fi # test -n "$CONFIG_FILES"
23930
23931_ACEOF
23932cat >>$CONFIG_STATUS <<\_ACEOF
23933for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23934 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23935 case $ac_file in
23936 - | *:- | *:-:* ) # input from stdin
23937 cat >$tmp/stdin
23938 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23939 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23940 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23941 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23942 * ) ac_file_in=$ac_file.in ;;
23943 esac
23944
23945 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23946 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23947$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23948 X"$ac_file" : 'X\(//\)[^/]' \| \
23949 X"$ac_file" : 'X\(//\)$' \| \
23950 X"$ac_file" : 'X\(/\)' \| \
23951 . : '\(.\)' 2>/dev/null ||
23952echo X"$ac_file" |
23953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23954 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23955 /^X\(\/\/\)$/{ s//\1/; q; }
23956 /^X\(\/\).*/{ s//\1/; q; }
23957 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023958 { if $as_mkdir_p; then
23959 mkdir -p "$ac_dir"
23960 else
23961 as_dir="$ac_dir"
23962 as_dirs=
23963 while test ! -d "$as_dir"; do
23964 as_dirs="$as_dir $as_dirs"
23965 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23966$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23967 X"$as_dir" : 'X\(//\)[^/]' \| \
23968 X"$as_dir" : 'X\(//\)$' \| \
23969 X"$as_dir" : 'X\(/\)' \| \
23970 . : '\(.\)' 2>/dev/null ||
23971echo X"$as_dir" |
23972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23973 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23974 /^X\(\/\/\)$/{ s//\1/; q; }
23975 /^X\(\/\).*/{ s//\1/; q; }
23976 s/.*/./; q'`
23977 done
23978 test ! -n "$as_dirs" || mkdir $as_dirs
23979 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23980echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23981 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023982
23983 ac_builddir=.
23984
23985if test "$ac_dir" != .; then
23986 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23987 # A "../" for each directory in $ac_dir_suffix.
23988 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23989else
23990 ac_dir_suffix= ac_top_builddir=
23991fi
23992
23993case $srcdir in
23994 .) # No --srcdir option. We are building in place.
23995 ac_srcdir=.
23996 if test -z "$ac_top_builddir"; then
23997 ac_top_srcdir=.
23998 else
23999 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24000 fi ;;
24001 [\\/]* | ?:[\\/]* ) # Absolute path.
24002 ac_srcdir=$srcdir$ac_dir_suffix;
24003 ac_top_srcdir=$srcdir ;;
24004 *) # Relative path.
24005 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24006 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24007esac
24008# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24009# absolute.
24010ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024011ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000024012ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24013ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24014
24015
24016 case $INSTALL in
24017 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24018 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24019 esac
24020
24021 if test x"$ac_file" != x-; then
24022 { echo "$as_me:$LINENO: creating $ac_file" >&5
24023echo "$as_me: creating $ac_file" >&6;}
24024 rm -f "$ac_file"
24025 fi
24026 # Let's still pretend it is `configure' which instantiates (i.e., don't
24027 # use $as_me), people would be surprised to read:
24028 # /* config.h. Generated by config.status. */
24029 if test x"$ac_file" = x-; then
24030 configure_input=
24031 else
24032 configure_input="$ac_file. "
24033 fi
24034 configure_input=$configure_input"Generated from `echo $ac_file_in |
24035 sed 's,.*/,,'` by configure."
24036
24037 # First look for the input files in the build tree, otherwise in the
24038 # src tree.
24039 ac_file_inputs=`IFS=:
24040 for f in $ac_file_in; do
24041 case $f in
24042 -) echo $tmp/stdin ;;
24043 [\\/$]*)
24044 # Absolute (can't be DOS-style, as IFS=:)
24045 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24046echo "$as_me: error: cannot find input file: $f" >&2;}
24047 { (exit 1); exit 1; }; }
24048 echo $f;;
24049 *) # Relative
24050 if test -f "$f"; then
24051 # Build tree
24052 echo $f
24053 elif test -f "$srcdir/$f"; then
24054 # Source tree
24055 echo $srcdir/$f
24056 else
24057 # /dev/null tree
24058 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24059echo "$as_me: error: cannot find input file: $f" >&2;}
24060 { (exit 1); exit 1; }; }
24061 fi;;
24062 esac
24063 done` || { (exit 1); exit 1; }
24064_ACEOF
24065cat >>$CONFIG_STATUS <<_ACEOF
24066 sed "$ac_vpsub
24067$extrasub
24068_ACEOF
24069cat >>$CONFIG_STATUS <<\_ACEOF
24070:t
24071/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24072s,@configure_input@,$configure_input,;t t
24073s,@srcdir@,$ac_srcdir,;t t
24074s,@abs_srcdir@,$ac_abs_srcdir,;t t
24075s,@top_srcdir@,$ac_top_srcdir,;t t
24076s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24077s,@builddir@,$ac_builddir,;t t
24078s,@abs_builddir@,$ac_abs_builddir,;t t
24079s,@top_builddir@,$ac_top_builddir,;t t
24080s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24081s,@INSTALL@,$ac_INSTALL,;t t
24082" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24083 rm -f $tmp/stdin
24084 if test x"$ac_file" != x-; then
24085 mv $tmp/out $ac_file
24086 else
24087 cat $tmp/out
24088 rm -f $tmp/out
24089 fi
24090
24091done
24092_ACEOF
24093cat >>$CONFIG_STATUS <<\_ACEOF
24094
24095#
24096# CONFIG_HEADER section.
24097#
24098
24099# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24100# NAME is the cpp macro being defined and VALUE is the value it is being given.
24101#
24102# ac_d sets the value in "#define NAME VALUE" lines.
24103ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24104ac_dB='[ ].*$,\1#\2'
24105ac_dC=' '
24106ac_dD=',;t'
24107# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24108ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24109ac_uB='$,\1#\2define\3'
24110ac_uC=' '
24111ac_uD=',;t'
24112
24113for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24114 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24115 case $ac_file in
24116 - | *:- | *:-:* ) # input from stdin
24117 cat >$tmp/stdin
24118 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24119 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24120 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24121 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24122 * ) ac_file_in=$ac_file.in ;;
24123 esac
24124
24125 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24126echo "$as_me: creating $ac_file" >&6;}
24127
24128 # First look for the input files in the build tree, otherwise in the
24129 # src tree.
24130 ac_file_inputs=`IFS=:
24131 for f in $ac_file_in; do
24132 case $f in
24133 -) echo $tmp/stdin ;;
24134 [\\/$]*)
24135 # Absolute (can't be DOS-style, as IFS=:)
24136 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24137echo "$as_me: error: cannot find input file: $f" >&2;}
24138 { (exit 1); exit 1; }; }
24139 echo $f;;
24140 *) # Relative
24141 if test -f "$f"; then
24142 # Build tree
24143 echo $f
24144 elif test -f "$srcdir/$f"; then
24145 # Source tree
24146 echo $srcdir/$f
24147 else
24148 # /dev/null tree
24149 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24150echo "$as_me: error: cannot find input file: $f" >&2;}
24151 { (exit 1); exit 1; }; }
24152 fi;;
24153 esac
24154 done` || { (exit 1); exit 1; }
24155 # Remove the trailing spaces.
24156 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24157
24158_ACEOF
24159
24160# Transform confdefs.h into two sed scripts, `conftest.defines' and
24161# `conftest.undefs', that substitutes the proper values into
24162# config.h.in to produce config.h. The first handles `#define'
24163# templates, and the second `#undef' templates.
24164# And first: Protect against being on the right side of a sed subst in
24165# config.status. Protect against being in an unquoted here document
24166# in config.status.
24167rm -f conftest.defines conftest.undefs
24168# Using a here document instead of a string reduces the quoting nightmare.
24169# Putting comments in sed scripts is not portable.
24170#
24171# `end' is used to avoid that the second main sed command (meant for
24172# 0-ary CPP macros) applies to n-ary macro definitions.
24173# See the Autoconf documentation for `clear'.
24174cat >confdef2sed.sed <<\_ACEOF
24175s/[\\&,]/\\&/g
24176s,[\\$`],\\&,g
24177t clear
24178: clear
24179s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24180t end
24181s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24182: end
24183_ACEOF
24184# If some macros were called several times there might be several times
24185# the same #defines, which is useless. Nevertheless, we may not want to
24186# sort them, since we want the *last* AC-DEFINE to be honored.
24187uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24188sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24189rm -f confdef2sed.sed
24190
24191# This sed command replaces #undef with comments. This is necessary, for
24192# example, in the case of _POSIX_SOURCE, which is predefined and required
24193# on some systems where configure will not decide to define it.
24194cat >>conftest.undefs <<\_ACEOF
24195s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24196_ACEOF
24197
24198# Break up conftest.defines because some shells have a limit on the size
24199# of here documents, and old seds have small limits too (100 cmds).
24200echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000024201echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024202echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24203echo ' :' >>$CONFIG_STATUS
24204rm -f conftest.tail
24205while grep . conftest.defines >/dev/null
24206do
24207 # Write a limited-size here document to $tmp/defines.sed.
24208 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24209 # Speed up: don't consider the non `#define' lines.
24210 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24211 # Work around the forget-to-reset-the-flag bug.
24212 echo 't clr' >>$CONFIG_STATUS
24213 echo ': clr' >>$CONFIG_STATUS
24214 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24215 echo 'CEOF
24216 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24217 rm -f $tmp/in
24218 mv $tmp/out $tmp/in
24219' >>$CONFIG_STATUS
24220 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24221 rm -f conftest.defines
24222 mv conftest.tail conftest.defines
24223done
24224rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000024225echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024226echo >>$CONFIG_STATUS
24227
24228# Break up conftest.undefs because some shells have a limit on the size
24229# of here documents, and old seds have small limits too (100 cmds).
24230echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24231rm -f conftest.tail
24232while grep . conftest.undefs >/dev/null
24233do
24234 # Write a limited-size here document to $tmp/undefs.sed.
24235 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24236 # Speed up: don't consider the non `#undef'
24237 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24238 # Work around the forget-to-reset-the-flag bug.
24239 echo 't clr' >>$CONFIG_STATUS
24240 echo ': clr' >>$CONFIG_STATUS
24241 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24242 echo 'CEOF
24243 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24244 rm -f $tmp/in
24245 mv $tmp/out $tmp/in
24246' >>$CONFIG_STATUS
24247 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24248 rm -f conftest.undefs
24249 mv conftest.tail conftest.undefs
24250done
24251rm -f conftest.undefs
24252
24253cat >>$CONFIG_STATUS <<\_ACEOF
24254 # Let's still pretend it is `configure' which instantiates (i.e., don't
24255 # use $as_me), people would be surprised to read:
24256 # /* config.h. Generated by config.status. */
24257 if test x"$ac_file" = x-; then
24258 echo "/* Generated by configure. */" >$tmp/config.h
24259 else
24260 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24261 fi
24262 cat $tmp/in >>$tmp/config.h
24263 rm -f $tmp/in
24264 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024265 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024266 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24267echo "$as_me: $ac_file is unchanged" >&6;}
24268 else
24269 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24270$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24271 X"$ac_file" : 'X\(//\)[^/]' \| \
24272 X"$ac_file" : 'X\(//\)$' \| \
24273 X"$ac_file" : 'X\(/\)' \| \
24274 . : '\(.\)' 2>/dev/null ||
24275echo X"$ac_file" |
24276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24277 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24278 /^X\(\/\/\)$/{ s//\1/; q; }
24279 /^X\(\/\).*/{ s//\1/; q; }
24280 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024281 { if $as_mkdir_p; then
24282 mkdir -p "$ac_dir"
24283 else
24284 as_dir="$ac_dir"
24285 as_dirs=
24286 while test ! -d "$as_dir"; do
24287 as_dirs="$as_dir $as_dirs"
24288 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24289$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24290 X"$as_dir" : 'X\(//\)[^/]' \| \
24291 X"$as_dir" : 'X\(//\)$' \| \
24292 X"$as_dir" : 'X\(/\)' \| \
24293 . : '\(.\)' 2>/dev/null ||
24294echo X"$as_dir" |
24295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24296 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24297 /^X\(\/\/\)$/{ s//\1/; q; }
24298 /^X\(\/\).*/{ s//\1/; q; }
24299 s/.*/./; q'`
24300 done
24301 test ! -n "$as_dirs" || mkdir $as_dirs
24302 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24303echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24304 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024305
24306 rm -f $ac_file
24307 mv $tmp/config.h $ac_file
24308 fi
24309 else
24310 cat $tmp/config.h
24311 rm -f $tmp/config.h
24312 fi
24313done
24314_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000024315cat >>$CONFIG_STATUS <<\_ACEOF
24316
24317#
24318# CONFIG_COMMANDS section.
24319#
24320for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24321 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24322 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24323 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24324$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24325 X"$ac_dest" : 'X\(//\)[^/]' \| \
24326 X"$ac_dest" : 'X\(//\)$' \| \
24327 X"$ac_dest" : 'X\(/\)' \| \
24328 . : '\(.\)' 2>/dev/null ||
24329echo X"$ac_dest" |
24330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24331 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24332 /^X\(\/\/\)$/{ s//\1/; q; }
24333 /^X\(\/\).*/{ s//\1/; q; }
24334 s/.*/./; q'`
24335 ac_builddir=.
24336
24337if test "$ac_dir" != .; then
24338 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24339 # A "../" for each directory in $ac_dir_suffix.
24340 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24341else
24342 ac_dir_suffix= ac_top_builddir=
24343fi
24344
24345case $srcdir in
24346 .) # No --srcdir option. We are building in place.
24347 ac_srcdir=.
24348 if test -z "$ac_top_builddir"; then
24349 ac_top_srcdir=.
24350 else
24351 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24352 fi ;;
24353 [\\/]* | ?:[\\/]* ) # Absolute path.
24354 ac_srcdir=$srcdir$ac_dir_suffix;
24355 ac_top_srcdir=$srcdir ;;
24356 *) # Relative path.
24357 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24358 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24359esac
24360# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24361# absolute.
24362ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024363ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000024364ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24365ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24366
24367
24368 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24369echo "$as_me: executing $ac_dest commands" >&6;}
24370 case $ac_dest in
24371 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24372 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24373 Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24374 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24375 lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24376 lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24377 lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24378 lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24379 lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24380 lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24381 lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24382 lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24383 lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24384 lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24385 lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24386 lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24387 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 +000024388 lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24389 lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24390 lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24391 lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24392 lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24393 lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24394 lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24395 lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24396 lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24397 lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24398 lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24399 lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24400 lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24401 lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24402 lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24403 lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24404 lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24405 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24406 runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24407 runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24408 runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
John Criswell613758d2003-09-11 18:03:50 +000024409 runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024410 runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24411 runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24412 runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24413 runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
John Criswell613758d2003-09-11 18:03:50 +000024414 runtime/GCCLibraries/libtermcap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libtermcap/Makefile runtime/GCCLibraries/libtermcap/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024415 runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
John Criswell613758d2003-09-11 18:03:50 +000024416 runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24417 runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024418 runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24419 runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24420 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24421 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswell08acb9b2003-09-16 02:12:45 +000024422 test/QMTestDB/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTestDB/QMTest/llvm.py test/QMTestDB/QMTest/llvm.py ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024423 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24424 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24425 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24426 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24427 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24428 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24429 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24430 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24431 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24432 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24433 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24434 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24435 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24436 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24437 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24438 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24439 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24440 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
John Criswell613758d2003-09-11 18:03:50 +000024441 test/Programs/External/SPEC/Makefile.spec ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec test/Programs/External/SPEC/Makefile.spec ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024442 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 ;;
24443 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 ;;
24444 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 ;;
24445 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 ;;
24446 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 ;;
24447 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 ;;
24448 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 ;;
24449 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 ;;
24450 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 ;;
24451 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 ;;
24452 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 ;;
24453 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 ;;
24454 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 ;;
24455 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 ;;
24456 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 ;;
24457 test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24458 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24459 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024460 test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24461 test/Programs/MultiSource/Applications/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Burg/Makefile test/Programs/MultiSource/Applications/Burg/Makefile ;;
John Criswell39e83892003-09-12 16:36:17 +000024462 test/Programs/MultiSource/Applications/aha/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/aha/Makefile test/Programs/MultiSource/Applications/aha/Makefile ;;
24463 test/Programs/MultiSource/Applications/sgefa/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/sgefa/Makefile test/Programs/MultiSource/Applications/sgefa/Makefile ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024464 test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24465 test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile ;;
24466 test/Programs/MultiSource/Benchmarks/McCat/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/Makefile test/Programs/MultiSource/Benchmarks/McCat/Makefile ;;
24467 test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile ;;
24468 test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile ;;
24469 test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile ;;
24470 test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile ;;
24471 test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile ;;
24472 test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile ;;
24473 test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile ;;
24474 test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile ;;
24475 test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile ;;
24476 test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile ;;
24477 test/Programs/MultiSource/Benchmarks/Olden/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/Makefile test/Programs/MultiSource/Benchmarks/Olden/Makefile ;;
24478 test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile ;;
24479 test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile ;;
24480 test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile ;;
24481 test/Programs/MultiSource/Benchmarks/Olden/health/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/health/Makefile test/Programs/MultiSource/Benchmarks/Olden/health/Makefile ;;
24482 test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile ;;
24483 test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile ;;
24484 test/Programs/MultiSource/Benchmarks/Olden/power/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/power/Makefile test/Programs/MultiSource/Benchmarks/Olden/power/Makefile ;;
24485 test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile ;;
24486 test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile ;;
24487 test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile ;;
John Criswell39e83892003-09-12 16:36:17 +000024488 test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024489 test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile ;;
24490 test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile ;;
24491 test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile ;;
24492 test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile ;;
24493 test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile ;;
24494 test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024495 test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024496 test/Programs/MultiSource/Benchmarks/sim/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/sim/Makefile test/Programs/MultiSource/Benchmarks/sim/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024497 test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24498 test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24499 test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24500 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 ;;
24501 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 +000024502 test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24503 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24504 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 +000024505 test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24506 test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24507 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 ;;
24508 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 ;;
24509 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 ;;
24510 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 +000024511 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 +000024512 test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
John Criswell0afe8252003-09-11 20:53:48 +000024513 test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ;;
John Criswell67181ca2003-09-26 14:53:17 +000024514 test/Programs/SingleSource/Regression/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/Makefile test/Programs/SingleSource/Regression/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024515 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24516 tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024517 tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024518 tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24519 tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24520 tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024521 tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024522 tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024523 tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000024524 tools/llvm-ar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-ar/Makefile tools/llvm-ar/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024525 tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024526 tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024527 tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
24528 tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024529 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24530 utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24531 utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24532 utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
24533 www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24534 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24535 projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24536 projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24537 projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24538 projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24539 projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24540 projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24541 projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24542 projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24543 projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24544 projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24545 projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24546 esac
24547done
24548_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024549
24550cat >>$CONFIG_STATUS <<\_ACEOF
24551
24552{ (exit 0); exit 0; }
24553_ACEOF
24554chmod +x $CONFIG_STATUS
24555ac_clean_files=$ac_clean_files_save
24556
24557
24558# configure is writing to config.log, and then calls config.status.
24559# config.status does its own redirection, appending to config.log.
24560# Unfortunately, on DOS this fails, as config.log is still kept open
24561# by configure, so config.status won't be able to write to it; its
24562# output is simply discarded. So we exec the FD to /dev/null,
24563# effectively closing config.log, so it can be properly (re)opened and
24564# appended to by config.status. When coming back to configure, we
24565# need to make the FD available again.
24566if test "$no_create" != yes; then
24567 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024568 ac_config_status_args=
24569 test "$silent" = yes &&
24570 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024571 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024572 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024573 exec 5>>config.log
24574 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24575 # would make configure fail if this is the last instruction.
24576 $ac_cs_success || { (exit 1); exit 1; }
24577fi
24578